From cea74de3cf598e76d584cbf49d41bd74b3e0d03f Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Thu, 15 Sep 2016 08:31:42 -0400 Subject: [PATCH] More learn mode descriptions. --- .../commands/add_word_to_spell_check.py | 2 +- .../commands/copy_marked_to_clipboard.py | 2 +- .../commands/commands/dec_speech_pitch.py | 2 +- .../commands/commands/dec_speech_rate.py | 2 +- .../commands/commands/dec_speech_volume.py | 2 +- .../commands/commands/first_clipboard.py | 2 +- .../commands/commands/forward_keypress.py | 17 +++++++++++++++++ .../commands/commands/inc_speech_pitch.py | 2 +- .../commands/commands/inc_speech_rate.py | 2 +- .../commands/commands/inc_speech_volume.py | 2 +- .../commands/commands/last_clipboard.py | 2 +- .../commands/commands/next_clipboard.py | 2 +- .../commands/commands/prev_clipboard.py | 2 +- .../commands/commands/quit_fenrir.py | 2 +- .../commands/commands/remove_marks.py | 2 +- .../commands/remove_word_from_spell_check.py | 2 +- .../commands/commands/set_mark.py | 2 +- src/fenrir-package/commands/commands/shut_up.py | 2 +- 18 files changed, 34 insertions(+), 17 deletions(-) create mode 100644 src/fenrir-package/commands/commands/forward_keypress.py diff --git a/src/fenrir-package/commands/commands/add_word_to_spell_check.py b/src/fenrir-package/commands/commands/add_word_to_spell_check.py index a7873114..7c4aee7f 100644 --- a/src/fenrir-package/commands/commands/add_word_to_spell_check.py +++ b/src/fenrir-package/commands/commands/add_word_to_spell_check.py @@ -16,7 +16,7 @@ class command(): def shutdown(self, environment): return environment def getDescription(self): - return 'No Description found' + return 'adds the current word to the exceptions dictionary' def run(self, environment): if not initialized: environment['runtime']['outputManager'].presentText(environment, 'pychant is not installed', interrupt=True) diff --git a/src/fenrir-package/commands/commands/copy_marked_to_clipboard.py b/src/fenrir-package/commands/commands/copy_marked_to_clipboard.py index cd6ae5d9..51e44bf8 100644 --- a/src/fenrir-package/commands/commands/copy_marked_to_clipboard.py +++ b/src/fenrir-package/commands/commands/copy_marked_to_clipboard.py @@ -10,7 +10,7 @@ class command(): def shutdown(self, environment): return environment def getDescription(self): - return 'No Description found' + return 'copies marked text to the currently selected clipboard' def run(self, environment): if (environment['commandBuffer']['Marks']['1'] == None) or \ (environment['commandBuffer']['Marks']['2'] == None): diff --git a/src/fenrir-package/commands/commands/dec_speech_pitch.py b/src/fenrir-package/commands/commands/dec_speech_pitch.py index 2057467e..a24c3e1d 100644 --- a/src/fenrir-package/commands/commands/dec_speech_pitch.py +++ b/src/fenrir-package/commands/commands/dec_speech_pitch.py @@ -9,7 +9,7 @@ class command(): def shutdown(self, environment): return environment def getDescription(self): - return 'No Description found' + return 'decreases the pitch of the speech' def run(self, environment): value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'pitch') diff --git a/src/fenrir-package/commands/commands/dec_speech_rate.py b/src/fenrir-package/commands/commands/dec_speech_rate.py index 2f6c1baa..dca501e1 100644 --- a/src/fenrir-package/commands/commands/dec_speech_rate.py +++ b/src/fenrir-package/commands/commands/dec_speech_rate.py @@ -9,7 +9,7 @@ class command(): def shutdown(self, environment): return environment def getDescription(self): - return 'No Description found' + return 'decreases the rate of the speech' def run(self, environment): value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'rate') diff --git a/src/fenrir-package/commands/commands/dec_speech_volume.py b/src/fenrir-package/commands/commands/dec_speech_volume.py index e62cc51d..04bc09b9 100644 --- a/src/fenrir-package/commands/commands/dec_speech_volume.py +++ b/src/fenrir-package/commands/commands/dec_speech_volume.py @@ -9,7 +9,7 @@ class command(): def shutdown(self, environment): return environment def getDescription(self): - return 'No Description found' + return 'decreases the volume of the speech' def run(self, environment): value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'volume') diff --git a/src/fenrir-package/commands/commands/first_clipboard.py b/src/fenrir-package/commands/commands/first_clipboard.py index 2997edd9..900e5d88 100644 --- a/src/fenrir-package/commands/commands/first_clipboard.py +++ b/src/fenrir-package/commands/commands/first_clipboard.py @@ -12,7 +12,7 @@ class command(): def shutdown(self, environment): return environment def getDescription(self): - return 'No Description found' + return 'selects the first clipboard' def run(self, environment): if len(environment['commandBuffer']['clipboard']) == 0: environment['runtime']['outputManager'].presentText(environment, 'clipboard empty', interrupt=True) diff --git a/src/fenrir-package/commands/commands/forward_keypress.py b/src/fenrir-package/commands/commands/forward_keypress.py new file mode 100644 index 00000000..3f922a5e --- /dev/null +++ b/src/fenrir-package/commands/commands/forward_keypress.py @@ -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 diff --git a/src/fenrir-package/commands/commands/inc_speech_pitch.py b/src/fenrir-package/commands/commands/inc_speech_pitch.py index a824fd94..5f7153d9 100644 --- a/src/fenrir-package/commands/commands/inc_speech_pitch.py +++ b/src/fenrir-package/commands/commands/inc_speech_pitch.py @@ -9,7 +9,7 @@ class command(): def shutdown(self, environment): return environment def getDescription(self): - return 'No Description found' + return 'increases the pitch of the speech' def run(self, environment): value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'pitch') diff --git a/src/fenrir-package/commands/commands/inc_speech_rate.py b/src/fenrir-package/commands/commands/inc_speech_rate.py index a8ba4540..1221fcf1 100644 --- a/src/fenrir-package/commands/commands/inc_speech_rate.py +++ b/src/fenrir-package/commands/commands/inc_speech_rate.py @@ -9,7 +9,7 @@ class command(): def shutdown(self, environment): return environment def getDescription(self): - return 'No Description found' + return 'increase the speech rat' def run(self, environment): value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'rate') diff --git a/src/fenrir-package/commands/commands/inc_speech_volume.py b/src/fenrir-package/commands/commands/inc_speech_volume.py index bee269ce..d8f96905 100644 --- a/src/fenrir-package/commands/commands/inc_speech_volume.py +++ b/src/fenrir-package/commands/commands/inc_speech_volume.py @@ -9,7 +9,7 @@ class command(): def shutdown(self, environment): return environment def getDescription(self): - return 'No Description found' + return 'increase the speech volume' def run(self, environment): value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'volume') diff --git a/src/fenrir-package/commands/commands/last_clipboard.py b/src/fenrir-package/commands/commands/last_clipboard.py index 2731f041..193c928a 100644 --- a/src/fenrir-package/commands/commands/last_clipboard.py +++ b/src/fenrir-package/commands/commands/last_clipboard.py @@ -12,7 +12,7 @@ class command(): def shutdown(self, environment): return environment def getDescription(self): - return 'No Description found' + return 'selects the last clipboard' def run(self, environment): if len(environment['commandBuffer']['clipboard']) == 0: environment['runtime']['outputManager'].presentText(environment, 'clipboard empty', interrupt=True) diff --git a/src/fenrir-package/commands/commands/next_clipboard.py b/src/fenrir-package/commands/commands/next_clipboard.py index dbf11bc7..93d06213 100644 --- a/src/fenrir-package/commands/commands/next_clipboard.py +++ b/src/fenrir-package/commands/commands/next_clipboard.py @@ -12,7 +12,7 @@ class command(): def shutdown(self, environment): return environment def getDescription(self): - return 'No Description found' + return 'selects the next clipboard' def run(self, environment): if len(environment['commandBuffer']['clipboard']) == 0: environment['runtime']['outputManager'].presentText(environment, 'clipboard empty', interrupt=True) diff --git a/src/fenrir-package/commands/commands/prev_clipboard.py b/src/fenrir-package/commands/commands/prev_clipboard.py index 3dfcbd22..37fbe5ba 100644 --- a/src/fenrir-package/commands/commands/prev_clipboard.py +++ b/src/fenrir-package/commands/commands/prev_clipboard.py @@ -12,7 +12,7 @@ class command(): def shutdown(self, environment): return environment def getDescription(self): - return 'No Description found' + return 'selects the previous clipboard' def run(self, environment): if len(environment['commandBuffer']['clipboard']) == 0: environment['runtime']['outputManager'].presentText(environment, 'clipboard empty', interrupt=True) diff --git a/src/fenrir-package/commands/commands/quit_fenrir.py b/src/fenrir-package/commands/commands/quit_fenrir.py index e8b85bcf..0060efe5 100644 --- a/src/fenrir-package/commands/commands/quit_fenrir.py +++ b/src/fenrir-package/commands/commands/quit_fenrir.py @@ -8,7 +8,7 @@ class command(): def shutdown(self, environment): return environment def getDescription(self): - return 'No Description found' + return 'exits Fenrir' def run(self, environment): environment['generalInformation']['running'] = False return environment diff --git a/src/fenrir-package/commands/commands/remove_marks.py b/src/fenrir-package/commands/commands/remove_marks.py index c09932a4..d1c22fd6 100644 --- a/src/fenrir-package/commands/commands/remove_marks.py +++ b/src/fenrir-package/commands/commands/remove_marks.py @@ -8,7 +8,7 @@ class command(): def shutdown(self, environment): return environment def getDescription(self): - return 'No Description found' + return 'removes marks from selected text' def run(self, environment): environment['commandBuffer']['Marks']['1'] = None environment['commandBuffer']['Marks']['2'] = None diff --git a/src/fenrir-package/commands/commands/remove_word_from_spell_check.py b/src/fenrir-package/commands/commands/remove_word_from_spell_check.py index bf967ffd..00f50ee6 100644 --- a/src/fenrir-package/commands/commands/remove_word_from_spell_check.py +++ b/src/fenrir-package/commands/commands/remove_word_from_spell_check.py @@ -16,7 +16,7 @@ class command(): def shutdown(self, environment): return environment def getDescription(self): - return 'No Description found' + return 'removes the current word from the exceptions dictionary' def run(self, environment): if not initialized: environment['runtime']['outputManager'].presentText(environment, 'pychant is not installed', interrupt=True) diff --git a/src/fenrir-package/commands/commands/set_mark.py b/src/fenrir-package/commands/commands/set_mark.py index 4f7cef13..ae6382da 100644 --- a/src/fenrir-package/commands/commands/set_mark.py +++ b/src/fenrir-package/commands/commands/set_mark.py @@ -8,7 +8,7 @@ class command(): def shutdown(self, environment): return environment def getDescription(self): - return 'No Description found' + return 'places marks to select text to copy to the clipboard' def run(self, environment): if environment['screenData']['newCursorReview'] == None: environment['runtime']['outputManager'].presentText(environment, 'no review cursor', interrupt=True) diff --git a/src/fenrir-package/commands/commands/shut_up.py b/src/fenrir-package/commands/commands/shut_up.py index 7a7d7f57..23b4d85e 100644 --- a/src/fenrir-package/commands/commands/shut_up.py +++ b/src/fenrir-package/commands/commands/shut_up.py @@ -8,7 +8,7 @@ class command(): def shutdown(self, environment): return environment def getDescription(self): - return 'No Description found' + return 'interrupts the current presentation' def run(self, environment): environment['runtime']['outputManager'].interruptOutput(environment) def setCallback(self, callback):