add horizontal and vertical announcements
This commit is contained in:
@ -9,9 +9,9 @@ class command():
|
||||
environment['screenData']['newCursorReview'] = environment['screenData']['newCursor'].copy()
|
||||
|
||||
if environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursorReview']['y']].replace(" ","").replace("\n","").replace("\t","") == '':
|
||||
environment['runtime']['outputManager'].speakText(environment, "blank")
|
||||
environment['runtime']['outputManager'].presentText(environment, "blank")
|
||||
else:
|
||||
environment['runtime']['outputManager'].speakText(environment, environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursorReview']['y']])
|
||||
environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursorReview']['y']])
|
||||
return environment
|
||||
def setCallback(self, callback):
|
||||
pass
|
||||
|
@ -6,7 +6,7 @@ class command():
|
||||
def run(self, environment):
|
||||
environment['screenData']['oldCursorReview'] = {'x':-1,'y':-1}
|
||||
environment['screenData']['newCursorReview'] = {'x':-1,'y':-1}
|
||||
environment['runtime']['outputManager'].speakText(environment, "leve review mode")
|
||||
environment['runtime']['outputManager'].presentText(environment, "leve review mode")
|
||||
return environment
|
||||
def setCallback(self, callback):
|
||||
pass
|
||||
|
@ -11,9 +11,9 @@ class command():
|
||||
environment['screenData']['newCursorReview']['y'] = environment['screenData']['newCursorReview']['y'] + 1
|
||||
|
||||
if environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursorReview']['y']].replace(" ","").replace("\n","").replace("\t","") == '':
|
||||
environment['runtime']['outputManager'].speakText(environment, "blank")
|
||||
environment['runtime']['outputManager'].presentText(environment, "blank")
|
||||
else:
|
||||
environment['runtime']['outputManager'].speakText(environment, environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursorReview']['y']])
|
||||
environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursorReview']['y']])
|
||||
return environment
|
||||
def setCallback(self, callback):
|
||||
pass
|
||||
|
@ -10,9 +10,9 @@ class command():
|
||||
if environment['screenData']['newCursorReview']['y'] - 1 >= 0:
|
||||
environment['screenData']['newCursorReview']['y'] = environment['screenData']['newCursorReview']['y'] - 1
|
||||
if environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursorReview']['y']].replace(" ","").replace("\n","").replace("\t","") == '':
|
||||
environment['runtime']['outputManager'].speakText(environment, "blank")
|
||||
environment['runtime']['outputManager'].presentText(environment, "blank")
|
||||
else:
|
||||
environment['runtime']['outputManager'].speakText(environment, environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursorReview']['y']])
|
||||
environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursorReview']['y']])
|
||||
return environment
|
||||
def setCallback(self, callback):
|
||||
pass
|
||||
|
@ -10,7 +10,7 @@ class command():
|
||||
return environment
|
||||
if environment['screenData']['newDelta'] != environment['screenData']['oldDelta'] or \
|
||||
environment['screenData']['newTTY'] != environment['screenData']['oldTTY']:
|
||||
environment['runtime']['outputManager'].speakText(environment, environment['screenData']['newDelta'], Interrupt=False)
|
||||
environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newDelta'], Interrupt=False)
|
||||
return environment
|
||||
def setCallback(self, callback):
|
||||
pass
|
||||
|
@ -6,7 +6,7 @@ class command():
|
||||
def run(self, environment):
|
||||
if environment['screenData']['newDelta'] != environment['screenData']['oldDelta'] or \
|
||||
environment['screenData']['newTTY'] != environment['screenData']['oldTTY']:
|
||||
environment['runtime']['outputManager'].speakText(environment, environment['screenData']['newDelta'])
|
||||
environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newDelta'])
|
||||
return environment
|
||||
def setCallback(self, callback):
|
||||
pass
|
||||
|
Reference in New Issue
Block a user