add horizontal and vertical announcements
This commit is contained in:
parent
a93c60f75b
commit
e2668f1467
7
TODO
7
TODO
@ -16,6 +16,9 @@ ToDos in Priority order:
|
|||||||
enable_disable_speech #enable, disable speech
|
enable_disable_speech #enable, disable speech
|
||||||
enable_disable_braile #enable, disable braile
|
enable_disable_braile #enable, disable braile
|
||||||
enable_disable_sound #enable, disable sound
|
enable_disable_sound #enable, disable sound
|
||||||
|
set_area_mark
|
||||||
|
reset_area_marks
|
||||||
|
toggle_highlighted_mode
|
||||||
|
|
||||||
- implement onInput commands
|
- implement onInput commands
|
||||||
read_line_if_cursor_change_vertical (needed if you arrow up and down, we want to announce the line)
|
read_line_if_cursor_change_vertical (needed if you arrow up and down, we want to announce the line)
|
||||||
@ -23,6 +26,10 @@ ToDos in Priority order:
|
|||||||
echo_char (echos the last char on pressing space or return)
|
echo_char (echos the last char on pressing space or return)
|
||||||
echo_word (echos the last word on pressing space or return)
|
echo_word (echos the last word on pressing space or return)
|
||||||
|
|
||||||
|
- implement onScreenChange commands
|
||||||
|
read highlighted text mode
|
||||||
|
window mode (define a area and just read that changes)
|
||||||
|
|
||||||
- default soundIcon theme (soundfiles)
|
- default soundIcon theme (soundfiles)
|
||||||
- autostart systemd
|
- autostart systemd
|
||||||
- implement braille
|
- implement braille
|
||||||
|
@ -4,6 +4,10 @@ class command():
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
pass
|
pass
|
||||||
def run(self, environment):
|
def run(self, environment):
|
||||||
|
return environment
|
||||||
|
if environment['screenData']['newCursor'] != environment['screenData']['oldCursor']:
|
||||||
|
print(environment['screenData']['newCursor'] != environment['screenData']['oldCursor'])
|
||||||
|
return environment
|
||||||
if environment['screenData']['newDelta'] != environment['screenData']['oldDelta'] or \
|
if environment['screenData']['newDelta'] != environment['screenData']['oldDelta'] or \
|
||||||
environment['screenData']['newTTY'] != environment['screenData']['oldTTY']:
|
environment['screenData']['newTTY'] != environment['screenData']['oldTTY']:
|
||||||
environment['runtime']['outputManager'].speakText(environment, environment['screenData']['newDelta'], Interrupt=False)
|
environment['runtime']['outputManager'].speakText(environment, environment['screenData']['newDelta'], Interrupt=False)
|
@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/python
|
||||||
|
|
||||||
|
class command():
|
||||||
|
def __init__(self):
|
||||||
|
pass
|
||||||
|
def run(self, environment):
|
||||||
|
if environment['screenData']['newCursor']['x'] == environment['screenData']['oldCursor']['x'] or\
|
||||||
|
environment['screenData']['newCursor']['y'] != environment['screenData']['oldCursor']['y']:
|
||||||
|
return environment
|
||||||
|
if environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursor']['y']][environment['screenData']['newCursor']['x']].replace(" ","").replace("\n","").replace("\t","") == '':
|
||||||
|
environment['runtime']['outputManager'].speakText(environment, "blank")
|
||||||
|
else:
|
||||||
|
environment['runtime']['outputManager'].speakText(environment, environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursor']['y']][environment['screenData']['newCursor']['x']])
|
||||||
|
return environment
|
||||||
|
def setCallback(self, callback):
|
||||||
|
pass
|
||||||
|
def shutdown(self):
|
||||||
|
pass
|
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/python
|
||||||
|
|
||||||
|
class command():
|
||||||
|
def __init__(self):
|
||||||
|
pass
|
||||||
|
def run(self, environment):
|
||||||
|
if environment['screenData']['newCursor']['y'] == environment['screenData']['oldCursor']['y']:
|
||||||
|
return environment
|
||||||
|
if environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursor']['y']].replace(" ","").replace("\n","").replace("\t","") == '':
|
||||||
|
environment['runtime']['outputManager'].speakText(environment, "blank")
|
||||||
|
else:
|
||||||
|
environment['runtime']['outputManager'].speakText(environment, environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursor']['y']])
|
||||||
|
return environment
|
||||||
|
def setCallback(self, callback):
|
||||||
|
pass
|
||||||
|
def shutdown(self):
|
||||||
|
pass
|
Loading…
Reference in New Issue
Block a user