From c193f7140b6970c04b1fc97f785ed1b433bcf141 Mon Sep 17 00:00:00 2001 From: chrys Date: Sun, 13 Aug 2017 22:38:12 +0200 Subject: [PATCH] add basic settings for attributs --- config/settings/espeak.settings.conf | 8 ++++++++ config/settings/settings.conf | 8 ++++++++ config/settings/settings.conf.storm | 8 ++++++++ src/fenrir/core/settingsData.py | 5 +++-- 4 files changed, 27 insertions(+), 2 deletions(-) diff --git a/config/settings/espeak.settings.conf b/config/settings/espeak.settings.conf index fd7c3fd1..2d35399c 100644 --- a/config/settings/espeak.settings.conf +++ b/config/settings/espeak.settings.conf @@ -165,6 +165,14 @@ autoSpellCheck=True spellCheckLanguage=en_US scriptPath=/usr/share/fenrir/scripts commandPath= +#fenrirBGColor = the backgroundcolor +#fenrirFGColor = the foregroundcolor +#fenrirUnderline = speak the underline attribute +#fenrirBold = speak the bold attribute +#fenrirBlink = speak the blink attribute +#fenrirFont = the font +#fenrirFontSize = the fontsize +attributeFormatString=Background fenrirBGColor,Foreground fenrirFGColor,fenrirUnderline,fenrirBold,fenrirBlink,fenrirFont,fenrirFontSize [focus] cursor=True diff --git a/config/settings/settings.conf b/config/settings/settings.conf index 6fc96a5f..a6d1ca18 100644 --- a/config/settings/settings.conf +++ b/config/settings/settings.conf @@ -173,6 +173,14 @@ spellCheckLanguage=en_US scriptPath=/usr/share/fenrir/scripts # overload commands, and create new one without changing Fenrir default commandPath= +#fenrirBGColor = the backgroundcolor +#fenrirFGColor = the foregroundcolor +#fenrirUnderline = speak the underline attribute +#fenrirBold = speak the bold attribute +#fenrirBlink = speak the blink attribute +#fenrirFont = the font +#fenrirFontSize = the fontsize +attributeFormatString=Background fenrirBGColor,Foreground fenrirFGColor,fenrirUnderline,fenrirBold,fenrirBlink,fenrirFont,fenrirFontSize [focus] #follow the text cursor diff --git a/config/settings/settings.conf.storm b/config/settings/settings.conf.storm index efdbfe5f..efde299d 100644 --- a/config/settings/settings.conf.storm +++ b/config/settings/settings.conf.storm @@ -120,6 +120,14 @@ spellCheckLanguage=en_US scriptPath=/usr/share/fenrir/scripts # overload commands, and create new one without changing Fenrir default commandPath= +#fenrirBGColor = the backgroundcolor +#fenrirFGColor = the foregroundcolor +#fenrirUnderline = speak the underline attribute +#fenrirBold = speak the bold attribute +#fenrirBlink = speak the blink attribute +#fenrirFont = the font +#fenrirFontSize = the fontsize +attributeFormatString=Background fenrirBGColor,Foreground fenrirFGColor,fenrirUnderline,fenrirBold,fenrirBlink,fenrirFont,fenrirFontSize [focus] #follow the text cursor diff --git a/src/fenrir/core/settingsData.py b/src/fenrir/core/settingsData.py index 27c05d24..80d25b93 100644 --- a/src/fenrir/core/settingsData.py +++ b/src/fenrir/core/settingsData.py @@ -67,8 +67,9 @@ settingsData = { 'dateFormat': '%A, %B %d, %Y', 'autoSpellCheck': False, 'spellCheckLanguage': 'en_US', - 'scriptPath':'/usr/share/fenrir/scripts', - 'commandPath':'/usr/share/fenrir/commands', + 'scriptPath': '/usr/share/fenrir/scripts', + 'commandPath': '/usr/share/fenrir/commands', + 'attributeFormatString': 'Background fenrirBGColor,Foreground fenrirFGColor,fenrirUnderline,fenrirBold,fenrirBlink,fenrirFont,fenrirFontSize' }, 'focus':{ 'cursor': True,