From 3212962a5b2d4de84cd91be5dbef658ebab46a21 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Mon, 21 Apr 2025 14:04:57 -0400 Subject: [PATCH] Adjusted a few of the defaults in punctuation and in settings file. Logs are now in a more screen reader friendly format with timestamps and level coming after the actual information. --- config/punctuation/default.conf | 2 +- config/punctuation/en.conf | 2 +- config/punctuation/rhvoice-en.conf | 2 +- config/settings/settings.conf | 6 +++--- src/fenrirscreenreader/core/debugManager.py | 11 +++++++---- src/fenrirscreenreader/fenrirVersion.py | 2 +- 6 files changed, 14 insertions(+), 11 deletions(-) diff --git a/config/punctuation/default.conf b/config/punctuation/default.conf index ffb850bf..66608489 100644 --- a/config/punctuation/default.conf +++ b/config/punctuation/default.conf @@ -4,7 +4,7 @@ # the entrys are seperated with :===: in words colon tripple equal colon ( to not collide with substitutions) [levelDict] none:===: -some:===:-$~+*-/\@# +some:===:-$~+*-/\@#_ most:===:.,:-$~+*-/\@!#%^&*()[]}{<>; all:===:!"#$%& \'()*+,-./:;<=>?@[\\]^_`{|}~ diff --git a/config/punctuation/en.conf b/config/punctuation/en.conf index dcc8268b..a75b7b62 100644 --- a/config/punctuation/en.conf +++ b/config/punctuation/en.conf @@ -4,7 +4,7 @@ # the entrys are seperated with :===: in words colon tripple equal colon ( to not collide with substitutions) [levelDict] none:===: -some:===:-$~+*-/\@ +some:===:-$~+*-/\@_ most:===:.,:-$~+*-/\@!#%^&*()[]}{<>; all:===:!"#$%& \'()*+,-./:;<=>?@[\\]^_`{|}~ diff --git a/config/punctuation/rhvoice-en.conf b/config/punctuation/rhvoice-en.conf index 9e322b21..4101ea68 100644 --- a/config/punctuation/rhvoice-en.conf +++ b/config/punctuation/rhvoice-en.conf @@ -4,7 +4,7 @@ # the entrys are seperated with :===: in words colon tripple equal colon ( to not collide with substitutions) [levelDict] none:===: -some:===:-$~+*-/\@ +some:===:-$~+*-/\@_ most:===:.,:-$~+*-/\@!#%^&*()[]}{<>; all:===:!"#$%& \'()*+,-./:;<=>?@[\\]^_`{|}~ diff --git a/config/settings/settings.conf b/config/settings/settings.conf index 8eb36302..7853dec6 100644 --- a/config/settings/settings.conf +++ b/config/settings/settings.conf @@ -15,7 +15,7 @@ theme=default # Sound volume controls how loud the sounds for your selected soundpack are. # 0 is quietest, 1.0 is loudest. -volume=1.0 +volume=0.7 # shell commands for generic sound driver # the folowing variable are substituted @@ -131,7 +131,7 @@ punctuationProfile=default punctuationLevel=some respectPunctuationPause=True newLinePause=True -numberOfClipboards=10 +numberOfClipboards=50 # used path for "export_clipboard_to_file" # $user is replaced by username #clipboardExportPath=/home/$user/fenrirClipboard @@ -190,7 +190,7 @@ enableSettingsRemote=True enableCommandRemote=True [barrier] -enabled=True +enabled=False leftBarriers=│└┌─ rightBarriers=│┘┐─ diff --git a/src/fenrirscreenreader/core/debugManager.py b/src/fenrirscreenreader/core/debugManager.py index 1325b756..0e018e40 100644 --- a/src/fenrirscreenreader/core/debugManager.py +++ b/src/fenrirscreenreader/core/debugManager.py @@ -52,12 +52,15 @@ class debugManager(): else: if not self._fileOpened and fileMode: self.openDebugFile() + timestamp = str(datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S.%f')) if onAnyLevel: - msg = 'ANY '+ str(level) + ' ' + str(datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S.%f')) + levelInfo = 'INFO ANY' else: - msg = str(level) +' ' + str(datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S.%f') -) - msg += ': ' + text + levelInfo = str(level) + + # Changed order: text comes first, then level and timestamp + msg = text + ' - ' + levelInfo + ' ' + timestamp + if printMode: print(msg) if fileMode: diff --git a/src/fenrirscreenreader/fenrirVersion.py b/src/fenrirscreenreader/fenrirVersion.py index 4130e89c..e498b246 100644 --- a/src/fenrirscreenreader/fenrirVersion.py +++ b/src/fenrirscreenreader/fenrirVersion.py @@ -4,5 +4,5 @@ # Fenrir TTY screen reader # By Chrys, Storm Dragon, and contributers. -version = "2025.04.17" +version = "2025.04.21" codeName = "testing"