Skip to content

Commit 318e9c1

Browse files
committed
fix issues when allow backquote tags is enabled.
1 parent 8daeb77 commit 318e9c1

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
@@ -186,14 +186,14 @@ def processText(self,text):
186186
text = text.replace('quil', 'qil') #Sometimes this string make everything buggy with IBMTTS in French
187187
if self._backquoteVoiceTags:
188188
text = text.replace('`', ' ') #no embedded commands
189+
text = text.encode('mbcs', 'replace')
189190
text = resub(anticrash_res, text)
190191
#this converts to ansi for anticrash. If this breaks with foreign langs, we can remove it.
191-
text = text.encode('mbcs', 'replace')
192192
else:
193193
#this converts to ansi for anticrash. If this breaks with foreign langs, we can remove it.
194194
text = text.encode('mbcs', 'replace')
195-
text = resub(anticrash_res, text)
196195
text = text.replace(b'`', b' ') #no embedded commands
196+
text = resub(anticrash_res, text)
197197
text = pause_re.sub(br'\1 `p1\2\3', text)
198198
text = time_re.sub(br'\1:\2 \3', text)
199199
return text

0 commit comments

Comments
 (0)