Skip to content

Commit b607f07

Browse files
committed
I thought this was tested, but checking the language for oneCore voices needed not equality but startswith because it might be en-us.
1 parent 93f6e84 commit b607f07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/globalPlugins/MathCAT/MathCAT.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def ConvertSSMLTextForNVDA(text:str, language:str="") -> list:
126126
if use_character:
127127
out.extend((CharacterModeCommand(True), ch, CharacterModeCommand(False)))
128128
else:
129-
out.extend((" ", "eigh" if ch=="a" and language=="en" else ch, " "))
129+
out.extend((" ", "eigh" if ch=="a" and language.startswith("en") else ch, " "))
130130
elif m.lastgroup == "beep":
131131
out.append(BeepCommand(2000, 50))
132132
elif m.lastgroup == "pitch":

0 commit comments

Comments
 (0)