From 49a79d2722c19de7b3434dc3abda185d740ef3ca Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 28 Dec 2025 19:07:54 -0500 Subject: [PATCH] Removed promoted text option. It wasn't all that useful, and the new speech restore performs the same thing more affectively. --- config/settings/settings.conf | 14 ---- config/sound/default/PromotedText.wav | Bin 8684 -> 0 bytes config/sound/default/soundicons.conf | 2 - config/sound/template/soundicons.conf | 2 - docs/fenrir.adoc | 50 ------------- docs/user.txt | 26 ------- .../onScreenUpdate/75000-incoming_promote.py | 66 ------------------ src/fenrirscreenreader/core/settingsData.py | 5 -- src/fenrirscreenreader/fenrirVersion.py | 2 +- 9 files changed, 1 insertion(+), 166 deletions(-) delete mode 100644 config/sound/default/PromotedText.wav delete mode 100644 src/fenrirscreenreader/commands/onScreenUpdate/75000-incoming_promote.py diff --git a/config/settings/settings.conf b/config/settings/settings.conf index 9e7c5f8a..43508a76 100644 --- a/config/settings/settings.conf +++ b/config/settings/settings.conf @@ -243,20 +243,6 @@ leave_review_on_cursor_change=True # Exit review mode when switching to a different TTY/screen leave_review_on_screen_change=True -[promote] -# Enable promoting (announcing) important text updates automatically -enabled=True -# Seconds of inactivity before promoting text updates (prevents spam during active typing) -inactive_timeout_sec=120 -# Comma-separated list of text patterns to promote when detected -# Leave empty to disable pattern-based promotion -# Examples: -# error,warning,failed - Announce build/command errors -# complete,finished,done - Announce task completions -# new message,@username - Announce chat notifications -# download complete - Announce download completions -list= - [menu] # Custom path for VMenu (virtual menu) profiles # Leave empty to use default location (/etc/fenrirscreenreader/vmenu-profiles/) diff --git a/config/sound/default/PromotedText.wav b/config/sound/default/PromotedText.wav deleted file mode 100644 index 210ff2361869b54800caae8d873aea0712aabd37..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8684 zcmWIYbaQ*6$iNWp80MOmTcRMqz`(%Bz{t?Bn}LC$oRNWvL4YA8u_W<;A_GH#LZO

8txUi8m3CHb39?HTYBf+qa(zUv@lN{^G^G z&lh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;9uPD zjlZ713xCD-q5A!_&pO{`zUq5a|9tA_cmHQ|J&^X$t28z@P*Gni?9I&g&-CxD|G(JZ zip`T=#`WUQozE=KydE+={Qt!L>q0IIDGS*@a^lj?oO}PP{Gaph6;m4LR)KDb^>Sy# zH!;8X^88uG^{A_1cN8CAdYSmz_0{AzS+8TBU3qxo;ntUI-~O_M^Mwnp6t9&1uXIpz Kqn@Xpk`@3;4^5Z= diff --git a/config/sound/default/soundicons.conf b/config/sound/default/soundicons.conf index 9987b4be..e95caa7b 100644 --- a/config/sound/default/soundicons.conf +++ b/config/sound/default/soundicons.conf @@ -46,8 +46,6 @@ ErrorSpeech='ErrorSpeech.wav' ErrorScreen='ErrorScreen.wav' # If you cursor over an text that has attributs (like color) HasAttributes='has_attribute.wav' -# fenrir can promote strings if they appear on the screen. -PromotedText='PromotedText.wav' # missspelled indicator mispell='mispell.wav' # the for capital letter diff --git a/config/sound/template/soundicons.conf b/config/sound/template/soundicons.conf index 6304abce..5bc7ac8a 100644 --- a/config/sound/template/soundicons.conf +++ b/config/sound/template/soundicons.conf @@ -50,8 +50,6 @@ ErrorBraille='' ErrorScreen='' # If you cursor over an text that has attributs (like color) HasAttributes='' -# fenrir can promote strings if they appear on the screen. -PromotedText='' # misspelled indicator mispell='' # the for capital letter: diff --git a/docs/fenrir.adoc b/docs/fenrir.adoc index 93983756..a4cb2852 100644 --- a/docs/fenrir.adoc +++ b/docs/fenrir.adoc @@ -1095,23 +1095,6 @@ announce=True interrupt=False .... -==== Promoted List - -Promoted Lists are a nice feature if you are away from your computer or -performing more longer tasks. you can define a list of words which you -want to hear a sound icon for after a period of inactivity. Example if -the word "Chrys" appears after 120 Seconds of inactivity: - -.... -[promote] -enabled=True -inactive_timeout_sec=120 -list=Chrys -.... - -See section link:#Promote[Promote] in `+settings.conf+` for more -information. - === Dictionary You can make use of different kinds of built-in dictionary's. A @@ -2049,39 +2032,6 @@ leave_review_on_screen_change=True Values: on=`+True+`, off=`+False+` -==== Promote - -"Promoted Lists" are configured in the section `+[promote]+`. Turn -Promoted Lists" on or off: - -.... -enabled=True -.... - -Values: on=`+True+`, off=`+False+` - -The minimum time interval of inactivity to activate promoting. By -default it promotes after 120 Seconds inactivity: - -.... -inactive_timeout_sec=120 -.... - -Values: in Seconds - -Define a list of promoted words comma seperated: - -.... -list= -.... - -Values: text (comma seperated) Example to promote the word "nickname" or -a bash prompt: - -.... -list=nickname,$:,#: -.... - ==== Time The automated time announcement is configured in the section `+[time]+`. diff --git a/docs/user.txt b/docs/user.txt index b88fe793..e19abc23 100644 --- a/docs/user.txt +++ b/docs/user.txt @@ -729,15 +729,6 @@ Example on fix minutes in an hour. example every quarter "delaySec=0" and "onMin onMinutes=00,15,30,45 announce=True interrupt=False -==== Promoted List ==== -Promoted Lists are a nice feature if you are away from your computer or performing more longer tasks. -you can define a list of words which you want to hear a sound icon for after a period of inactivity. -Example if the word "Chrys" appears after 120 Seconds of inactivity: - [promote] - enabled=True - inactive_timeout_sec=120 - list=Chrys -See section [[#Promote|Promote]] in ''settings.conf'' for more information. ==== Punctuation ==== Fenrir handles punctuation levels and names for you with several provided dictionaries. @@ -1199,23 +1190,6 @@ Values: on=''True'', off=''False'' Leave the review mode when changing the screen (From TTY3 to TTY4): leave_review_on_screen_change=True Values: on=''True'', off=''False'' -==== Promote ==== -"Promoted Lists" are configured in the section ''[promote]''. -Turn Promoted Lists" on or off: - enabled=True -Values: on=''True'', off=''False'' - -The minimum time interval of inactivity to activate promoting. -By default it promotes after 120 Seconds inactivity: - inactive_timeout_sec=120 -Values: in Seconds - -Define a list of promoted words comma seperated: - list= -Values: text (comma seperated) -Example to promote the word "nickname" or a bash prompt: - list=nickname,$:,#: - ==== Time ==== The automated time announcement is configured in the section ''[time]''. Time announcement is disabled by default. diff --git a/src/fenrirscreenreader/commands/onScreenUpdate/75000-incoming_promote.py b/src/fenrirscreenreader/commands/onScreenUpdate/75000-incoming_promote.py deleted file mode 100644 index 51585b1f..00000000 --- a/src/fenrirscreenreader/commands/onScreenUpdate/75000-incoming_promote.py +++ /dev/null @@ -1,66 +0,0 @@ -#!/usr/bin/env python3 - -import time - -from fenrirscreenreader.core.i18n import _ - -# -*- coding: utf-8 -*- - -# Fenrir TTY screen reader -# By Chrys, Storm Dragon, and contributors. - - -class command: - def __init__(self): - pass - - def initialize(self, environment): - self.env = environment - - def shutdown(self): - pass - - def get_description(self): - return "No Description found" - - def run(self): - if not self.env["runtime"]["SettingsManager"].get_setting_as_bool( - "promote", "enabled" - ): - return - if ( - self.env["runtime"]["SettingsManager"] - .get_setting("promote", "list") - .strip(" \t\n") - == "" - ): - return - if int(time.time() - self.env["input"]["last_input_time"]) < self.env[ - "runtime" - ]["SettingsManager"].get_setting_as_int( - "promote", "inactive_timeout_sec" - ): - return - if ( - len( - self.env["runtime"]["SettingsManager"].get_setting( - "promote", "list" - ) - ) - == 0 - ): - return - for promote in ( - self.env["runtime"]["SettingsManager"] - .get_setting("promote", "list") - .split(",") - ): - if promote in self.env["screen"]["new_delta"]: - self.env["runtime"]["OutputManager"].play_sound_icon( - "PromotedText" - ) - self.env["input"]["last_input_time"] = time.time() - return - - def set_callback(self, callback): - pass diff --git a/src/fenrirscreenreader/core/settingsData.py b/src/fenrirscreenreader/core/settingsData.py index 8604faab..b7c1adb5 100644 --- a/src/fenrirscreenreader/core/settingsData.py +++ b/src/fenrirscreenreader/core/settingsData.py @@ -97,11 +97,6 @@ settings_data = { "vmenu_path": "", "quick_menu": "speech#rate;speech#pitch;speech#volume", }, - "promote": { - "enabled": True, - "inactive_timeout_sec": 120, - "list": "", - }, "time": { "enabled": False, "present_time": True, diff --git a/src/fenrirscreenreader/fenrirVersion.py b/src/fenrirscreenreader/fenrirVersion.py index 9189989e..726b8a93 100644 --- a/src/fenrirscreenreader/fenrirVersion.py +++ b/src/fenrirscreenreader/fenrirVersion.py @@ -4,5 +4,5 @@ # Fenrir TTY screen reader # By Chrys, Storm Dragon, and contributors. -version = "2025.12.20" +version = "2025.12.28" code_name = "testing"