diff --git a/src/fenrir/core/punctuationManager.py b/src/fenrir/core/punctuationManager.py index 84a18c25..3038ebe8 100644 --- a/src/fenrir/core/punctuationManager.py +++ b/src/fenrir/core/punctuationManager.py @@ -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) + ' ')