diff --git a/src/fenrir-package/commands/onScreenChanged/75000-char_echo.py b/src/fenrir-package/commands/onScreenChanged/50000-char_echo.py similarity index 100% rename from src/fenrir-package/commands/onScreenChanged/75000-char_echo.py rename to src/fenrir-package/commands/onScreenChanged/50000-char_echo.py diff --git a/src/fenrir-package/commands/onScreenChanged/60000-word_echo.py b/src/fenrir-package/commands/onScreenChanged/60000-word_echo.py index 35a5d9c9..1854c51d 100644 --- a/src/fenrir-package/commands/onScreenChanged/60000-word_echo.py +++ b/src/fenrir-package/commands/onScreenChanged/60000-word_echo.py @@ -31,7 +31,7 @@ class command(): x, y, currWord = word_utils.getCurrentWord(environment['screenData']['newCursor']['x'], 0, newContent) if not(newContent[environment['screenData']['newCursor']['x']].strip(" \t\n") == '' and x != environment['screenData']['newCursor']['x']): return environment - + print('word') if currWord != '': environment['runtime']['outputManager'].presentText(environment, currWord, interrupt=True) diff --git a/src/fenrir-package/commands/onScreenChanged/70000-incomming.py b/src/fenrir-package/commands/onScreenChanged/70000-incomming.py index 2fb5f690..85a6ff46 100644 --- a/src/fenrir-package/commands/onScreenChanged/70000-incomming.py +++ b/src/fenrir-package/commands/onScreenChanged/70000-incomming.py @@ -6,12 +6,17 @@ class command(): def run(self, environment): if not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'autoReadIncomming'): return environment - + # is there something to read? + if environment['screenData']['newDelta'] == '': + return environment + # dont read TTY change if environment['screenData']['newTTY'] != environment['screenData']['oldTTY']: return environment - if environment['screenData']['newDelta'] == '': - return environment - + # its a cursor movement (experimental) - maybe also check current shortcut string? + if abs(environment['screenData']['newCursor']['x'] - environment['screenData']['oldCursor']['x']) == 1: + if len(environment['screenData']['newDelta']) == 1: + return environment + environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newDelta'], interrupt=False) return environment