Skip to content

Commit 7fcfc67

Browse files
committed
Add space after math speech to work around MS Word but that concatinates the next character in the text onto the math. Fixes #80.
1 parent a515990 commit 7fcfc67

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

addon/globalPlugins/MathCAT/MathCAT.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ def ConvertSSMLTextForNVDA(text: str, language: str = "") -> list:
178178
# MathCAT puts out spaces between words, the speak command seems to want to glom the strings together at times,
179179
# so we need to add individual " "s to the output
180180
out.extend((" ", m.group(0), " "))
181+
# there is a bug in MS Word that concats the math and the next character outside of math, so we add a space
182+
out.append(" ")
181183
if mathCATLanguageSetting != language:
182184
try:
183185
libmathcat.SetPreference("Language", mathCATLanguageSetting)

0 commit comments

Comments
 (0)