From b6d9bbc06d0657dd2b26c1592b58e22ceaff608b Mon Sep 17 00:00:00 2001 From: chrys Date: Mon, 11 Dec 2017 23:10:12 +0100 Subject: [PATCH] add ' to not replace list in puct manager --- src/fenrir/core/punctuationManager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) + ' ')