From 825f25385840eeaaa2a6200e3f25fcf0dbde9520 Mon Sep 17 00:00:00 2001 From: chrys Date: Thu, 6 Sep 2018 13:46:48 +0200 Subject: [PATCH 1/2] Update settingsManager.py --- src/fenrirscreenreader/core/settingsManager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/fenrirscreenreader/core/settingsManager.py b/src/fenrirscreenreader/core/settingsManager.py index 87e6c9e9..d532d3c8 100644 --- a/src/fenrirscreenreader/core/settingsManager.py +++ b/src/fenrirscreenreader/core/settingsManager.py @@ -253,7 +253,10 @@ class settingsManager(): environment['runtime']['settingsManager'].loadSoundIcons(self.getSetting('sound','theme')) environment['runtime']['punctuationManager'] = punctuationManager.punctuationManager() - environment['runtime']['punctuationManager'].initialize(environment) + environment['runtime']['punctuationManager'].initialize(environment) + + environment['runtime']['textManager'] = textManager.textManager() + environment['runtime']['textManager'].initialize(environment) if not os.path.exists(self.getSetting('general','punctuationProfile')): if os.path.exists(settingsRoot + 'punctuation/' + self.getSetting('general','punctuationProfile')): From 8614e19b25603f81118c69da9908efe5c55c99a8 Mon Sep 17 00:00:00 2001 From: chrys Date: Thu, 6 Sep 2018 13:47:57 +0200 Subject: [PATCH 2/2] Update spell_check.py --- src/fenrirscreenreader/commands/commands/spell_check.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/fenrirscreenreader/commands/commands/spell_check.py b/src/fenrirscreenreader/commands/commands/spell_check.py index 326ed866..dbd5cad0 100644 --- a/src/fenrirscreenreader/commands/commands/spell_check.py +++ b/src/fenrirscreenreader/commands/commands/spell_check.py @@ -26,7 +26,6 @@ class command(): return _('checks the spelling of the current word') def updateSpellLanguage(self): if not initialized: - self.env['runtime']['outputManager'].presentText(_('pyenchant is not installed'), interrupt=True) return self.spellChecker = enchant.Dict(self.env['runtime']['settingsManager'].getSetting('general', 'spellCheckLanguage')) self.language = self.env['runtime']['settingsManager'].getSetting('general', 'spellCheckLanguage')