From 2f189da4d0a8c8317c82cd52697aaac5f9086b01 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Tue, 8 Jun 2021 02:23:18 -0400 Subject: [PATCH] Updated message spoken on hour for autotime. --- src/fenrirscreenreader/commands/onHeartBeat/76000-time.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fenrirscreenreader/commands/onHeartBeat/76000-time.py b/src/fenrirscreenreader/commands/onHeartBeat/76000-time.py index 3d194fd9..1ffcbaf8 100755 --- a/src/fenrirscreenreader/commands/onHeartBeat/76000-time.py +++ b/src/fenrirscreenreader/commands/onHeartBeat/76000-time.py @@ -1,5 +1,6 @@ #!/bin/python import time +import re # -*- coding: utf-8 -*- # Fenrir TTY screen reader @@ -63,7 +64,7 @@ class command(): if presentTime: # present the time - self.env['runtime']['outputManager'].presentText(_("It's {0}").format(timeString), soundIcon='', interrupt=False) + self.env['runtime']['outputManager'].presentText(_("It's {0}").format(re.sub('^0', '', timeString).replace(':00', " O'clock ")), soundIcon='', interrupt=False) # and date if changes if presentDate: self.env['runtime']['outputManager'].presentText(dateString , soundIcon='', interrupt=False)