From 9dfd45eb07598ef8030aa65e846a9e570590ce70 Mon Sep 17 00:00:00 2001 From: chrys Date: Thu, 17 May 2018 23:49:32 +0200 Subject: [PATCH] make puse for ibmtts disable --- src/fenrirscreenreader/core/outputManager.py | 6 +++++- src/fenrirscreenreader/core/screenManager.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/fenrirscreenreader/core/outputManager.py b/src/fenrirscreenreader/core/outputManager.py index 5cb82e49..5f502985 100644 --- a/src/fenrirscreenreader/core/outputManager.py +++ b/src/fenrirscreenreader/core/outputManager.py @@ -96,7 +96,11 @@ class outputManager(): self.env['runtime']['debug'].writeDebugOut(str(e),debug.debugLevel.ERROR) try: - cleanText = text.replace('\n',' , ') + if self.env['runtime']['settingsManager'].getSettingAsBool('general', 'newLinePause'): + cleanText = text.replace('\n',' , ') + else: + cleanText = text.replace('\n',' ') + cleanText = self.env['runtime']['headLineManager'].replaceHeadLines(cleanText) cleanText = self.env['runtime']['punctuationManager'].proceedPunctuation(cleanText, ignorePunctuation) cleanText = re.sub(' +$',' ', cleanText) diff --git a/src/fenrirscreenreader/core/screenManager.py b/src/fenrirscreenreader/core/screenManager.py index a496f94c..db8a66a0 100644 --- a/src/fenrirscreenreader/core/screenManager.py +++ b/src/fenrirscreenreader/core/screenManager.py @@ -136,7 +136,7 @@ class screenManager(): newScreenText.split('\n')) diffList = list(diff) - if self.env['runtime']['settingsManager'].getSetting('general', 'newLinePause') and not typing: + if self.env['runtime']['settingsManager'].getSettingAsBool('general', 'newLinePause') and not typing: self.env['screen']['newDelta'] = '\n'.join(x[2:] for x in diffList if x[0] == '+') else: self.env['screen']['newDelta'] = ''.join(x[2:] for x in diffList if x[0] == '+')