Skip to content

Commit f2c852d

Browse files
committed
Add int(...) to work around a bug with Eloquence/CodeFactory addon
Fixes #35
1 parent f09d04b commit f2c852d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

NVDA-addon/addon/globalPlugins/MathCAT/MathCAT.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def ConvertSSMLTextForNVDA(text, language=""):
8080
for m in RE_MP_SPEECH.finditer(text):
8181
if m.lastgroup == "break":
8282
if use_break:
83-
out.append(BreakCommand(time=int(m.group("break")) * breakMulti))
83+
out.append(BreakCommand(time=int(int(m.group("break")) * breakMulti)))
8484
elif m.lastgroup == "char":
8585
# get the NVDA settings for what to do for a capital char and apply them
8686
ch = m.group("char")
@@ -118,7 +118,6 @@ def ConvertSSMLTextForNVDA(text, language=""):
118118
# MathCAT puts out spaces between words, the speak command seems to want to glom the strings together at times,
119119
# so we need to add individual " "s to the output
120120
out.extend((" ", m.group(0), " "))
121-
122121
if language:
123122
out.append(LangChangeCommand(None))
124123
return out

0 commit comments

Comments
 (0)