More learn mode descriptions.

This commit is contained in:
Storm Dragon 2016-09-15 08:31:42 -04:00
parent dce8ef181c
commit cea74de3cf
18 changed files with 34 additions and 17 deletions

View File

@ -16,7 +16,7 @@ class command():
def shutdown(self, environment): def shutdown(self, environment):
return environment return environment
def getDescription(self): def getDescription(self):
return 'No Description found' return 'adds the current word to the exceptions dictionary'
def run(self, environment): def run(self, environment):
if not initialized: if not initialized:
environment['runtime']['outputManager'].presentText(environment, 'pychant is not installed', interrupt=True) environment['runtime']['outputManager'].presentText(environment, 'pychant is not installed', interrupt=True)

View File

@ -10,7 +10,7 @@ class command():
def shutdown(self, environment): def shutdown(self, environment):
return environment return environment
def getDescription(self): def getDescription(self):
return 'No Description found' return 'copies marked text to the currently selected clipboard'
def run(self, environment): def run(self, environment):
if (environment['commandBuffer']['Marks']['1'] == None) or \ if (environment['commandBuffer']['Marks']['1'] == None) or \
(environment['commandBuffer']['Marks']['2'] == None): (environment['commandBuffer']['Marks']['2'] == None):

View File

@ -9,7 +9,7 @@ class command():
def shutdown(self, environment): def shutdown(self, environment):
return environment return environment
def getDescription(self): def getDescription(self):
return 'No Description found' return 'decreases the pitch of the speech'
def run(self, environment): def run(self, environment):
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'pitch') value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'pitch')

View File

@ -9,7 +9,7 @@ class command():
def shutdown(self, environment): def shutdown(self, environment):
return environment return environment
def getDescription(self): def getDescription(self):
return 'No Description found' return 'decreases the rate of the speech'
def run(self, environment): def run(self, environment):
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'rate') value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'rate')

View File

@ -9,7 +9,7 @@ class command():
def shutdown(self, environment): def shutdown(self, environment):
return environment return environment
def getDescription(self): def getDescription(self):
return 'No Description found' return 'decreases the volume of the speech'
def run(self, environment): def run(self, environment):
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'volume') value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'volume')

View File

@ -12,7 +12,7 @@ class command():
def shutdown(self, environment): def shutdown(self, environment):
return environment return environment
def getDescription(self): def getDescription(self):
return 'No Description found' return 'selects the first clipboard'
def run(self, environment): def run(self, environment):
if len(environment['commandBuffer']['clipboard']) == 0: if len(environment['commandBuffer']['clipboard']) == 0:
environment['runtime']['outputManager'].presentText(environment, 'clipboard empty', interrupt=True) environment['runtime']['outputManager'].presentText(environment, 'clipboard empty', interrupt=True)

View File

@ -0,0 +1,17 @@
#!/bin/python
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'sends the following keypress to the terminal'
def run(self, environment):
environment['input']['keyForeward'] = True
environment['runtime']['outputManager'].presentText(environment, 'Foreward next keypress', interrupt=True)
return environment
def setCallback(self, callback):
pass

View File

@ -9,7 +9,7 @@ class command():
def shutdown(self, environment): def shutdown(self, environment):
return environment return environment
def getDescription(self): def getDescription(self):
return 'No Description found' return 'increases the pitch of the speech'
def run(self, environment): def run(self, environment):
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'pitch') value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'pitch')

View File

@ -9,7 +9,7 @@ class command():
def shutdown(self, environment): def shutdown(self, environment):
return environment return environment
def getDescription(self): def getDescription(self):
return 'No Description found' return 'increase the speech rat'
def run(self, environment): def run(self, environment):
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'rate') value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'rate')

View File

@ -9,7 +9,7 @@ class command():
def shutdown(self, environment): def shutdown(self, environment):
return environment return environment
def getDescription(self): def getDescription(self):
return 'No Description found' return 'increase the speech volume'
def run(self, environment): def run(self, environment):
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'volume') value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'volume')

View File

@ -12,7 +12,7 @@ class command():
def shutdown(self, environment): def shutdown(self, environment):
return environment return environment
def getDescription(self): def getDescription(self):
return 'No Description found' return 'selects the last clipboard'
def run(self, environment): def run(self, environment):
if len(environment['commandBuffer']['clipboard']) == 0: if len(environment['commandBuffer']['clipboard']) == 0:
environment['runtime']['outputManager'].presentText(environment, 'clipboard empty', interrupt=True) environment['runtime']['outputManager'].presentText(environment, 'clipboard empty', interrupt=True)

View File

@ -12,7 +12,7 @@ class command():
def shutdown(self, environment): def shutdown(self, environment):
return environment return environment
def getDescription(self): def getDescription(self):
return 'No Description found' return 'selects the next clipboard'
def run(self, environment): def run(self, environment):
if len(environment['commandBuffer']['clipboard']) == 0: if len(environment['commandBuffer']['clipboard']) == 0:
environment['runtime']['outputManager'].presentText(environment, 'clipboard empty', interrupt=True) environment['runtime']['outputManager'].presentText(environment, 'clipboard empty', interrupt=True)

View File

@ -12,7 +12,7 @@ class command():
def shutdown(self, environment): def shutdown(self, environment):
return environment return environment
def getDescription(self): def getDescription(self):
return 'No Description found' return 'selects the previous clipboard'
def run(self, environment): def run(self, environment):
if len(environment['commandBuffer']['clipboard']) == 0: if len(environment['commandBuffer']['clipboard']) == 0:
environment['runtime']['outputManager'].presentText(environment, 'clipboard empty', interrupt=True) environment['runtime']['outputManager'].presentText(environment, 'clipboard empty', interrupt=True)

View File

@ -8,7 +8,7 @@ class command():
def shutdown(self, environment): def shutdown(self, environment):
return environment return environment
def getDescription(self): def getDescription(self):
return 'No Description found' return 'exits Fenrir'
def run(self, environment): def run(self, environment):
environment['generalInformation']['running'] = False environment['generalInformation']['running'] = False
return environment return environment

View File

@ -8,7 +8,7 @@ class command():
def shutdown(self, environment): def shutdown(self, environment):
return environment return environment
def getDescription(self): def getDescription(self):
return 'No Description found' return 'removes marks from selected text'
def run(self, environment): def run(self, environment):
environment['commandBuffer']['Marks']['1'] = None environment['commandBuffer']['Marks']['1'] = None
environment['commandBuffer']['Marks']['2'] = None environment['commandBuffer']['Marks']['2'] = None

View File

@ -16,7 +16,7 @@ class command():
def shutdown(self, environment): def shutdown(self, environment):
return environment return environment
def getDescription(self): def getDescription(self):
return 'No Description found' return 'removes the current word from the exceptions dictionary'
def run(self, environment): def run(self, environment):
if not initialized: if not initialized:
environment['runtime']['outputManager'].presentText(environment, 'pychant is not installed', interrupt=True) environment['runtime']['outputManager'].presentText(environment, 'pychant is not installed', interrupt=True)

View File

@ -8,7 +8,7 @@ class command():
def shutdown(self, environment): def shutdown(self, environment):
return environment return environment
def getDescription(self): def getDescription(self):
return 'No Description found' return 'places marks to select text to copy to the clipboard'
def run(self, environment): def run(self, environment):
if environment['screenData']['newCursorReview'] == None: if environment['screenData']['newCursorReview'] == None:
environment['runtime']['outputManager'].presentText(environment, 'no review cursor', interrupt=True) environment['runtime']['outputManager'].presentText(environment, 'no review cursor', interrupt=True)

View File

@ -8,7 +8,7 @@ class command():
def shutdown(self, environment): def shutdown(self, environment):
return environment return environment
def getDescription(self): def getDescription(self):
return 'No Description found' return 'interrupts the current presentation'
def run(self, environment): def run(self, environment):
environment['runtime']['outputManager'].interruptOutput(environment) environment['runtime']['outputManager'].interruptOutput(environment)
def setCallback(self, callback): def setCallback(self, callback):