Skip to content

Commit

Permalink
fix issues when allow backquote tags is enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidacm committed Aug 25, 2019
1 parent 8daeb77 commit 318e9c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/synthDrivers/ibmeci.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,14 +186,14 @@ def processText(self,text):
text = text.replace('quil', 'qil') #Sometimes this string make everything buggy with IBMTTS in French
if self._backquoteVoiceTags:
text = text.replace('`', ' ') #no embedded commands
text = text.encode('mbcs', 'replace')
text = resub(anticrash_res, text)
#this converts to ansi for anticrash. If this breaks with foreign langs, we can remove it.
text = text.encode('mbcs', 'replace')
else:
#this converts to ansi for anticrash. If this breaks with foreign langs, we can remove it.
text = text.encode('mbcs', 'replace')
text = resub(anticrash_res, text)
text = text.replace(b'`', b' ') #no embedded commands
text = resub(anticrash_res, text)
text = pause_re.sub(br'\1 `p1\2\3', text)
text = time_re.sub(br'\1:\2 \3', text)
return text
Expand Down

0 comments on commit 318e9c1

Please sign in to comment.