add ' to not replace list in puct manager
This commit is contained in:
parent
5b7bfafbd9
commit
b6d9bbc06d
@ -18,7 +18,7 @@ class punctuationManager():
|
||||
#for char in [ord('`'),ord("'")]:
|
||||
# self.allPunctNone[char] = None
|
||||
# dont restore the following (for announce correct pause)
|
||||
for char in [ord('.'), ord(','), ord(';'), ord(':'), ord('?'), ord('!'), ord('-')]:
|
||||
for char in [ord("'"),ord('.'), ord(','), ord(';'), ord(':'), ord('?'), ord('!'), ord('-')]:
|
||||
self.allPunctNone[char] = chr(char)
|
||||
def shutdown(self):
|
||||
pass
|
||||
@ -49,7 +49,7 @@ class punctuationManager():
|
||||
if key in punctuation and key not in ' ':
|
||||
if self.env['runtime']['settingsManager'].getSetting('general', 'respectPunctuationPause') and \
|
||||
len(key) == 1 and \
|
||||
key in ",.;:?!":
|
||||
key in "',.;:?!":
|
||||
resultText = resultText.replace(str(key),' ' +str(item) + str(key) + ' ')
|
||||
else:
|
||||
resultText = resultText.replace(str(key),' ' +str(item) + ' ')
|
||||
|
Loading…
Reference in New Issue
Block a user