tsengwoody / Access8Math

Allows access math content written by MathML ; Assist writing math content by LaTeX
GNU General Public License v2.0
32 stars 15 forks source link

Fix unwanted spelling of message when entering interaction mode. #2

Closed CyrilleB79 closed 5 years ago

CyrilleB79 commented 5 years ago

Issue: When entering in interaction mode, the message "enter interaction mode" is spellt, whereas it should be spoken normally.

Cause: The message string is passed directly to speech.speak. However speech.speak expects a commands sequence. Thus each character of the string is considered a part of the sequence, thus spellt.

Solution: Add bracket around the string in order to pass a list of one string to speech.speak.

Notes: Another solution would be to use speech.speakMessage. However I have kept speech.speak with the string list in order to conform to other spoken messages in this addon.