Skip to content

Commit bde3748

Browse files
Took out Mac detection in the mc fix due to false positives. If NVDA wasn't breaking our strings this wouldn't happen in the first place. Also removed the multiple spaces thing since the way it crashes is caused by bad dictionaries which can be fixed, as the community one has. Partially undoes 647e3a0
1 parent 519f27c commit bde3748

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addon/synthDrivers/ibmeci.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ def unicode(s): return s
5050
re.compile(r'([a-zA-Z0-9_]+)@(\w+)'): r'\1 at \2',
5151
# Does not occur in normal use, however if a dictionary entry contains the Mc prefix, and NVDA splits it up, the synth will crash.
5252
# Also fixes ViaVoice, as the parser is more strict there and doesn't like spaces in Mc names.
53-
# modified to handle NVDA splitting the mac prefix, which ECI will not handle separately. This should be considered an English fix.
54-
re.compile(r"\b(Ma?c) {1,}([A-Z][a-z]+)"): r"\1\2"
53+
# this should be considered an english fix
54+
re.compile(r"\b(Mc) ([A-Z][a-z]+)"): r"\1\2"
5555
}
5656

5757
french_fixes = { re.compile(r'([a-zA-Z0-9_]+)@(\w+)'): r'\1 arobase \2' }

0 commit comments

Comments
 (0)