diff --git a/config/keyboard/laptop.conf b/config/keyboard/laptop.conf index fcc16e14..53626b1d 100644 --- a/config/keyboard/laptop.conf +++ b/config/keyboard/laptop.conf @@ -14,15 +14,15 @@ KEY_FENRIR,KEY_ALT,KEY_2=present_last_line KEY_FENRIR,KEY_K=review_curr_word KEY_FENRIR,KEY_J=review_prev_word KEY_FENRIR,KEY_L=review_next_word -KEY_FENRIR,KEY_ALT,KEY_CTRL,KEY_K=review_curr_word_phonetic -KEY_FENRIR,KEY_ALT,KEY_CTRL,KEY_J=review_prev_word_phonetic -KEY_FENRIR,KEY_ALT,KEY_CTRL,KEY_L=review_next_word_phonetic +KEY_FENRIR,KEY_ALT,KEY_K=review_curr_word_phonetic +KEY_FENRIR,KEY_ALT,KEY_J=review_prev_word_phonetic +KEY_FENRIR,KEY_ALT,KEY_L=review_next_word_phonetic KEY_FENRIR,KEY_COMMA=review_curr_char KEY_FENRIR,KEY_M=review_prev_char KEY_FENRIR,KEY_DOT=review_next_char -KEY_FENRIR,KEY_ALT,KEY_CTRL,KEY_COMMA=curr_char_phonetic -KEY_FENRIR,KEY_ALT,KEY_CTRL,KEY_M=prev_char_phonetic -KEY_FENRIR,KEY_ALT,KEY_CTRL,KEY_DOT=prev_char_phonetic +KEY_FENRIR,KEY_ALT,KEY_COMMA=curr_char_phonetic +KEY_FENRIR,KEY_ALT,KEY_M=prev_char_phonetic +KEY_FENRIR,KEY_ALT,KEY_DOT=next_char_phonetic KEY_FENRIR,KEY_CTRL,KEY_I=review_up KEY_FENRIR,KEY_CTRL,KEY_COMMA=review_down KEY_FENRIR,KEY_SLASH=exit_review @@ -116,6 +116,7 @@ KEY_FENRIR,KEY_CTRL,KEY_SHIFT,KEY_X=remove_marks KEY_FENRIR,KEY_X=set_mark KEY_FENRIR,KEY_SHIFT,KEY_X=marked_text # linux specific -KEY_FENRIR,KEY_F7=export_clipboard_to_x +KEY_FENRIR,KEY_F7=import_clipboard_from_x +KEY_FENRIR,KEY_F8=export_clipboard_to_x KEY_FENRIR,KEY_CTRL,KEY_UP=inc_alsa_volume KEY_FENRIR,KEY_CTRL,KEY_DOWN=dec_alsa_volume diff --git a/config/keyboard/pty.conf b/config/keyboard/pty.conf index 989688de..ba1a23b4 100644 --- a/config/keyboard/pty.conf +++ b/config/keyboard/pty.conf @@ -61,10 +61,14 @@ alt+f12 - quit fenrir ^[[17;2~=clear_clipboard # f7 - paste clipboard ^[[18~=paste_clipboard -# alt+f8 - export clipboard to file -^[[19;3~=export_clipboard_to_file -# control+f8 - import clipboard from file -^[[19;5~=import_clipboard_from_file +# alt+f8 - export clipboard to X +^[[19;3~=export_clipboard_to_x +# control+f8 - import clipboard from X +^[[19;5~=import_clipboard_from_x +# alt+f9 - export clipboard to file +^[[20;3~=export_clipboard_to_file +# control+f9 - import clipboard from file +^[[20;5~=import_clipboard_from_file # shift+f5 - remove marks ^[[15;2~=remove_marks # f5 - set mark diff --git a/src/fenrirscreenreader/commands/commands/add_word_to_spell_check.py b/src/fenrirscreenreader/commands/commands/add_word_to_spell_check.py index 24c24cd9..d0dd515b 100644 --- a/src/fenrirscreenreader/commands/commands/add_word_to_spell_check.py +++ b/src/fenrirscreenreader/commands/commands/add_word_to_spell_check.py @@ -46,10 +46,10 @@ class command(): if currWord != '': if self.spellChecker.is_added(currWord): - self.env['runtime']['outputManager'].presentText(_('{0} is already in dict').format(currWord,), soundIcon='Cancel', interrupt=True) + self.env['runtime']['outputManager'].presentText(_('{0} is already in dictionary').format(currWord,), soundIcon='Cancel', interrupt=True) else: self.spellChecker.add(currWord) - self.env['runtime']['outputManager'].presentText(_('{0} added').format(currWord,), soundIcon='Accept', interrupt=True) + self.env['runtime']['outputManager'].presentText(_('{0} added to dictionary').format(currWord,), soundIcon='Accept', interrupt=True) def setCallback(self, callback): pass diff --git a/src/fenrirscreenreader/commands/commands/braille_flush.py b/src/fenrirscreenreader/commands/commands/braille_flush.py index 5a6bb6ba..72d2092b 100644 --- a/src/fenrirscreenreader/commands/commands/braille_flush.py +++ b/src/fenrirscreenreader/commands/commands/braille_flush.py @@ -14,7 +14,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('flush the braille device if a message is written on') + return _('Clear the Braille device if it is displaying a message') def run(self): self.env['runtime']['outputManager'].clearFlushTime() def setCallback(self, callback): diff --git a/src/fenrirscreenreader/commands/commands/copy_marked_to_clipboard.py b/src/fenrirscreenreader/commands/commands/copy_marked_to_clipboard.py index 8d6c8c4e..0d9e6360 100644 --- a/src/fenrirscreenreader/commands/commands/copy_marked_to_clipboard.py +++ b/src/fenrirscreenreader/commands/commands/copy_marked_to_clipboard.py @@ -19,7 +19,7 @@ class command(): def run(self): if not self.env['commandBuffer']['Marks']['1']: - self.env['runtime']['outputManager'].presentText(_("one or two marks needed"), interrupt=True) + self.env['runtime']['outputManager'].presentText(_("One or two marks are needed"), interrupt=True) return if not self.env['commandBuffer']['Marks']['2']: self.env['runtime']['cursorManager'].setMark() diff --git a/src/fenrirscreenreader/commands/commands/cursor_column.py b/src/fenrirscreenreader/commands/commands/cursor_column.py index 9b738626..7afb9e5f 100644 --- a/src/fenrirscreenreader/commands/commands/cursor_column.py +++ b/src/fenrirscreenreader/commands/commands/cursor_column.py @@ -14,7 +14,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('presents the current column number for review cursor in review mode or the text cursor if not. Starts with 1') + return _('Column number for cursor') def run(self): cursorPos = self.env['runtime']['cursorManager'].getReviewOrTextCursor() self.env['runtime']['outputManager'].presentText(str(cursorPos['x'] + 1) , interrupt=True) diff --git a/src/fenrirscreenreader/commands/commands/cursor_lineno.py b/src/fenrirscreenreader/commands/commands/cursor_lineno.py index cf926dd0..80e665a2 100644 --- a/src/fenrirscreenreader/commands/commands/cursor_lineno.py +++ b/src/fenrirscreenreader/commands/commands/cursor_lineno.py @@ -14,7 +14,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('presents the current line number for review cursor in review mode or the text cursor if not. Starts with 1') + return _('Line number for cursor') def run(self): cursorPos = self.env['runtime']['cursorManager'].getReviewOrTextCursor() self.env['runtime']['outputManager'].presentText(str(cursorPos['y'] + 1), interrupt=True) diff --git a/src/fenrirscreenreader/commands/commands/dec_speech_pitch.py b/src/fenrirscreenreader/commands/commands/dec_speech_pitch.py index e7e6fe06..6dfcf186 100644 --- a/src/fenrirscreenreader/commands/commands/dec_speech_pitch.py +++ b/src/fenrirscreenreader/commands/commands/dec_speech_pitch.py @@ -15,7 +15,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('decreases the pitch of the speech') + return _('Decreases the pitch of the speech') def run(self): value = self.env['runtime']['settingsManager'].getSettingAsFloat('speech', 'pitch') diff --git a/src/fenrirscreenreader/commands/commands/dec_speech_rate.py b/src/fenrirscreenreader/commands/commands/dec_speech_rate.py index f42d4e95..7241a51f 100644 --- a/src/fenrirscreenreader/commands/commands/dec_speech_rate.py +++ b/src/fenrirscreenreader/commands/commands/dec_speech_rate.py @@ -15,7 +15,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('decreases the rate of the speech') + return _('Decreases the rate of the speech') def run(self): value = self.env['runtime']['settingsManager'].getSettingAsFloat('speech', 'rate') diff --git a/src/fenrirscreenreader/commands/commands/dec_speech_volume.py b/src/fenrirscreenreader/commands/commands/dec_speech_volume.py index 5c5f60c5..764856b3 100644 --- a/src/fenrirscreenreader/commands/commands/dec_speech_volume.py +++ b/src/fenrirscreenreader/commands/commands/dec_speech_volume.py @@ -15,7 +15,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('decreases the volume of the speech') + return _('Decreases the volume of the speech') def run(self): value = self.env['runtime']['settingsManager'].getSettingAsFloat('speech', 'volume') diff --git a/src/fenrirscreenreader/commands/commands/exit_review.py b/src/fenrirscreenreader/commands/commands/exit_review.py index 0ac3854b..4a00904e 100644 --- a/src/fenrirscreenreader/commands/commands/exit_review.py +++ b/src/fenrirscreenreader/commands/commands/exit_review.py @@ -18,11 +18,11 @@ class command(): def run(self): if not self.env['runtime']['cursorManager'].isReviewMode(): - self.env['runtime']['outputManager'].presentText(_("Not in review mode"), interrupt=True) + self.env['runtime']['outputManager'].presentText(_("Not in Review Mode"), interrupt=True) return self.env['runtime']['cursorManager'].clearReviewCursor() - self.env['runtime']['outputManager'].presentText(_("leave review mode"), interrupt=True) + self.env['runtime']['outputManager'].presentText(_("Exiting Review Mode"), interrupt=True) def setCallback(self, callback): pass diff --git a/src/fenrirscreenreader/commands/commands/export_clipboard_to_x.py b/src/fenrirscreenreader/commands/commands/export_clipboard_to_x.py index 3b64156c..2b344bf4 100644 --- a/src/fenrirscreenreader/commands/commands/export_clipboard_to_x.py +++ b/src/fenrirscreenreader/commands/commands/export_clipboard_to_x.py @@ -17,7 +17,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('export the current fenrir clipboard to X clipboard') + return _('Export current fenrir clipboard to X or GUI clipboard') def run(self): _thread.start_new_thread(self._threadRun , ()) diff --git a/src/fenrirscreenreader/commands/commands/forward_keypress.py b/src/fenrirscreenreader/commands/commands/forward_keypress.py index 79d0d367..59eb438a 100644 --- a/src/fenrirscreenreader/commands/commands/forward_keypress.py +++ b/src/fenrirscreenreader/commands/commands/forward_keypress.py @@ -14,7 +14,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('sends the following keypress to the terminal') + return _('sends the following keypress to the terminal or application') def run(self): self.env['input']['keyForeward'] = 3 diff --git a/src/fenrirscreenreader/commands/commands/import_clipboard_from_x.py b/src/fenrirscreenreader/commands/commands/import_clipboard_from_x.py index 5c27254e..c7fea60b 100644 --- a/src/fenrirscreenreader/commands/commands/import_clipboard_from_x.py +++ b/src/fenrirscreenreader/commands/commands/import_clipboard_from_x.py @@ -18,7 +18,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _("imports the current X clipboard to Fenrir's clipboard") + return _("imports the graphical clipboard to Fenrir's clipboard") def run(self): _thread.start_new_thread(self._threadRun , ()) diff --git a/src/fenrirscreenreader/commands/commands/inc_speech_pitch.py b/src/fenrirscreenreader/commands/commands/inc_speech_pitch.py index db213648..eaf1e673 100644 --- a/src/fenrirscreenreader/commands/commands/inc_speech_pitch.py +++ b/src/fenrirscreenreader/commands/commands/inc_speech_pitch.py @@ -15,7 +15,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('increases the pitch of the speech') + return _('Increases the pitch of the speech') def run(self): value = self.env['runtime']['settingsManager'].getSettingAsFloat('speech', 'pitch') diff --git a/src/fenrirscreenreader/commands/commands/inc_speech_rate.py b/src/fenrirscreenreader/commands/commands/inc_speech_rate.py index a65666b2..aff3d908 100644 --- a/src/fenrirscreenreader/commands/commands/inc_speech_rate.py +++ b/src/fenrirscreenreader/commands/commands/inc_speech_rate.py @@ -15,7 +15,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('increase the speech rate') + return _('Increase the speech rate') def run(self): value = self.env['runtime']['settingsManager'].getSettingAsFloat('speech', 'rate') diff --git a/src/fenrirscreenreader/commands/commands/inc_speech_volume.py b/src/fenrirscreenreader/commands/commands/inc_speech_volume.py index 490dfc88..e27603e5 100644 --- a/src/fenrirscreenreader/commands/commands/inc_speech_volume.py +++ b/src/fenrirscreenreader/commands/commands/inc_speech_volume.py @@ -15,7 +15,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('increase the speech volume') + return _('Increase the speech volume') def run(self): value = self.env['runtime']['settingsManager'].getSettingAsFloat('speech', 'volume') diff --git a/src/fenrirscreenreader/commands/commands/indent_curr_line.py b/src/fenrirscreenreader/commands/commands/indent_curr_line.py index ece9c6e0..8d1fade5 100644 --- a/src/fenrirscreenreader/commands/commands/indent_curr_line.py +++ b/src/fenrirscreenreader/commands/commands/indent_curr_line.py @@ -15,7 +15,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('shows the indention level for the current line') + return _('Presents the indentation level for the current line') def run(self): # Prefer review cursor over text cursor diff --git a/src/fenrirscreenreader/commands/commands/last_incoming.py b/src/fenrirscreenreader/commands/commands/last_incoming.py index 907144c0..b38e3b29 100644 --- a/src/fenrirscreenreader/commands/commands/last_incoming.py +++ b/src/fenrirscreenreader/commands/commands/last_incoming.py @@ -14,7 +14,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('displays the last received text') + return _('Presents the text which was last received') def run(self): self.env['runtime']['outputManager'].presentText(self.env['screen']['newDelta'], interrupt=True) diff --git a/src/fenrirscreenreader/commands/commands/marked_text.py b/src/fenrirscreenreader/commands/commands/marked_text.py index 63a34861..6c01c0e2 100644 --- a/src/fenrirscreenreader/commands/commands/marked_text.py +++ b/src/fenrirscreenreader/commands/commands/marked_text.py @@ -15,7 +15,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('speaks the currently selected text that will be copied to the clipboard') + return _('Presents the currently selected text that will be copied to the clipboard') def run(self): if not (self.env['commandBuffer']['Marks']['1'] and \ diff --git a/src/fenrirscreenreader/commands/commands/remove_marks.py b/src/fenrirscreenreader/commands/commands/remove_marks.py index 7c351415..abea6633 100644 --- a/src/fenrirscreenreader/commands/commands/remove_marks.py +++ b/src/fenrirscreenreader/commands/commands/remove_marks.py @@ -14,7 +14,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('removes marks from selected text') + return _('Removes marks from selected text') def run(self): self.env['runtime']['cursorManager'].clearMarks() diff --git a/src/fenrirscreenreader/commands/commands/remove_word_from_spell_check.py b/src/fenrirscreenreader/commands/commands/remove_word_from_spell_check.py index 01cf863f..c6b998e2 100644 --- a/src/fenrirscreenreader/commands/commands/remove_word_from_spell_check.py +++ b/src/fenrirscreenreader/commands/commands/remove_word_from_spell_check.py @@ -47,7 +47,7 @@ class command(): currWord = currWord.strip(string.whitespace + '!"#$%&\()*+,-./:;<=ยง>?@[\\]^_{|}~') if not currWord.isspace(): if self.spellChecker.is_removed(currWord): - self.env['runtime']['outputManager'].presentText(_('{0} is already removed from dict').format(currWord,), soundIcon='Cancel', interrupt=True) + self.env['runtime']['outputManager'].presentText(_('{0} is not in the dictionary').format(currWord,), soundIcon='Cancel', interrupt=True) else: self.spellChecker.remove(currWord) self.env['runtime']['outputManager'].presentText(_('{0} removed').format(currWord,), soundIcon='Accept', interrupt=True) diff --git a/src/fenrirscreenreader/commands/commands/review_bottom.py b/src/fenrirscreenreader/commands/commands/review_bottom.py index 5e5271b3..1d2f3c1b 100644 --- a/src/fenrirscreenreader/commands/commands/review_bottom.py +++ b/src/fenrirscreenreader/commands/commands/review_bottom.py @@ -14,7 +14,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('move review to bottom of screen') + return _('Move review to the bottom of the screen') def run(self): self.env['screen']['newCursorReview'] = { 'x': 0, 'y':self.env['screen']['lines'] -1} diff --git a/src/fenrirscreenreader/commands/commands/review_curr_word_phonetic.py b/src/fenrirscreenreader/commands/commands/review_curr_word_phonetic.py index 7321023f..9d9ebd35 100644 --- a/src/fenrirscreenreader/commands/commands/review_curr_word_phonetic.py +++ b/src/fenrirscreenreader/commands/commands/review_curr_word_phonetic.py @@ -16,7 +16,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('phonetically spells the current word and set review to it') + return _('Phonetically spells the current word') def run(self): self.env['runtime']['cursorManager'].enterReviewModeCurrTextCursor() diff --git a/src/fenrirscreenreader/commands/commands/review_down.py b/src/fenrirscreenreader/commands/commands/review_down.py index 58112b43..8bb5e958 100644 --- a/src/fenrirscreenreader/commands/commands/review_down.py +++ b/src/fenrirscreenreader/commands/commands/review_down.py @@ -15,7 +15,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('set review cursor to char below the current char and present it.') + return _('Move review to the character below the current position') def run(self): cursorPos = self.env['runtime']['cursorManager'].getReviewOrTextCursor() diff --git a/src/fenrirscreenreader/commands/commands/review_line_end.py b/src/fenrirscreenreader/commands/commands/review_line_end.py index cc446543..4b3e0349 100644 --- a/src/fenrirscreenreader/commands/commands/review_line_end.py +++ b/src/fenrirscreenreader/commands/commands/review_line_end.py @@ -15,7 +15,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('set review cursor to end of current line and display the content') + return _('Move Review to the end of current line and display the content') def run(self): cursorPos = self.env['runtime']['cursorManager'].getReviewOrTextCursor() diff --git a/src/fenrirscreenreader/commands/commands/review_line_first_char.py b/src/fenrirscreenreader/commands/commands/review_line_first_char.py index 7d18692c..9bcf554d 100644 --- a/src/fenrirscreenreader/commands/commands/review_line_first_char.py +++ b/src/fenrirscreenreader/commands/commands/review_line_first_char.py @@ -16,7 +16,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('set review cursor to end of current line and display the content') + return _('Move Review to the first character on the line') def run(self): cursorPos = self.env['runtime']['cursorManager'].getReviewOrTextCursor() @@ -30,7 +30,7 @@ class command(): char_utils.getCurrentChar(self.env['screen']['newCursorReview']['x'], self.env['screen']['newCursorReview']['y'], self.env['screen']['newContentText']) self.env['runtime']['outputManager'].presentText(currChar ,interrupt=True, ignorePunctuation=True, announceCapital=True, flush=False) - self.env['runtime']['outputManager'].presentText(_("first char in line indent {0}").format(str(len(currLine) - len(currLine.lstrip()))), interrupt=False) + self.env['runtime']['outputManager'].presentText(_("first character in line indent {0}").format(str(len(currLine) - len(currLine.lstrip()))), interrupt=False) def setCallback(self, callback): pass diff --git a/src/fenrirscreenreader/commands/commands/review_line_last_char.py b/src/fenrirscreenreader/commands/commands/review_line_last_char.py index 54854b39..bb1fccbe 100644 --- a/src/fenrirscreenreader/commands/commands/review_line_last_char.py +++ b/src/fenrirscreenreader/commands/commands/review_line_last_char.py @@ -15,7 +15,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('set review cursor to end of current line and display the content') + return _('Move Review to the last character on the line') def run(self): cursorPos = self.env['runtime']['cursorManager'].getReviewOrTextCursor() @@ -24,7 +24,7 @@ class command(): char_utils.getLastCharInLine(self.env['screen']['newCursorReview']['y'], self.env['screen']['newContentText']) self.env['runtime']['outputManager'].presentText(lastChar ,interrupt=True, ignorePunctuation=True, announceCapital=True, flush=False) - self.env['runtime']['outputManager'].presentText(_("last char in line"), interrupt=False) + self.env['runtime']['outputManager'].presentText(_("last character in line"), interrupt=False) def setCallback(self, callback): pass diff --git a/src/fenrirscreenreader/commands/commands/review_next_char.py b/src/fenrirscreenreader/commands/commands/review_next_char.py index 93909310..643199a8 100644 --- a/src/fenrirscreenreader/commands/commands/review_next_char.py +++ b/src/fenrirscreenreader/commands/commands/review_next_char.py @@ -15,7 +15,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('moves review to the next character and presents it') + return _('Moves review to the next character ') def run(self): self.env['runtime']['cursorManager'].enterReviewModeCurrTextCursor() diff --git a/src/fenrirscreenreader/commands/commands/review_next_line.py b/src/fenrirscreenreader/commands/commands/review_next_line.py index 8cf4a4c3..e6977e4b 100644 --- a/src/fenrirscreenreader/commands/commands/review_next_line.py +++ b/src/fenrirscreenreader/commands/commands/review_next_line.py @@ -15,7 +15,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('moves review to the next line and presents it') + return _('moves review to the next line ') def run(self): self.env['screen']['oldCursorReview'] = self.env['screen']['newCursorReview'] diff --git a/src/fenrirscreenreader/commands/commands/review_next_word.py b/src/fenrirscreenreader/commands/commands/review_next_word.py index a37a5e06..ec4c3170 100644 --- a/src/fenrirscreenreader/commands/commands/review_next_word.py +++ b/src/fenrirscreenreader/commands/commands/review_next_word.py @@ -15,7 +15,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('moves review to the next word and presents it') + return _('moves review to the next word ') def run(self): self.env['screen']['oldCursorReview'] = self.env['screen']['newCursorReview'] diff --git a/src/fenrirscreenreader/commands/commands/review_next_word_phonetic.py b/src/fenrirscreenreader/commands/commands/review_next_word_phonetic.py index d558b403..97914ef0 100644 --- a/src/fenrirscreenreader/commands/commands/review_next_word_phonetic.py +++ b/src/fenrirscreenreader/commands/commands/review_next_word_phonetic.py @@ -16,7 +16,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('phonetically spells the current word and set review to it') + return _('Phonetically spells the next word and moves review to it') def run(self): self.env['runtime']['cursorManager'].enterReviewModeCurrTextCursor() diff --git a/src/fenrirscreenreader/commands/commands/review_prev_char.py b/src/fenrirscreenreader/commands/commands/review_prev_char.py index e5f935cf..c49ad47f 100644 --- a/src/fenrirscreenreader/commands/commands/review_prev_char.py +++ b/src/fenrirscreenreader/commands/commands/review_prev_char.py @@ -15,7 +15,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('moves review to the previous character and presents it') + return _('moves review to the previous character ') def run(self): self.env['screen']['oldCursorReview'] = self.env['screen']['newCursorReview'] diff --git a/src/fenrirscreenreader/commands/commands/review_prev_line.py b/src/fenrirscreenreader/commands/commands/review_prev_line.py index 480e4bae..07722e1f 100644 --- a/src/fenrirscreenreader/commands/commands/review_prev_line.py +++ b/src/fenrirscreenreader/commands/commands/review_prev_line.py @@ -15,7 +15,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('moves review to the previous line and presents it') + return _('moves review to the previous line ') def run(self): self.env['runtime']['cursorManager'].enterReviewModeCurrTextCursor() diff --git a/src/fenrirscreenreader/commands/commands/review_prev_word.py b/src/fenrirscreenreader/commands/commands/review_prev_word.py index 10ea680b..e4d97565 100644 --- a/src/fenrirscreenreader/commands/commands/review_prev_word.py +++ b/src/fenrirscreenreader/commands/commands/review_prev_word.py @@ -15,7 +15,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('moves review focus to the previous word and presents it') + return _('moves review focus to the previous word ') def run(self): self.env['runtime']['cursorManager'].enterReviewModeCurrTextCursor() diff --git a/src/fenrirscreenreader/commands/commands/review_prev_word_phonetic.py b/src/fenrirscreenreader/commands/commands/review_prev_word_phonetic.py index 3076e9d3..d8c8883d 100644 --- a/src/fenrirscreenreader/commands/commands/review_prev_word_phonetic.py +++ b/src/fenrirscreenreader/commands/commands/review_prev_word_phonetic.py @@ -16,7 +16,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('phonetically spells the current word and set review to it') + return _('Phonetically spells the previous word and moves review to it') def run(self): self.env['runtime']['cursorManager'].enterReviewModeCurrTextCursor() diff --git a/src/fenrirscreenreader/commands/commands/review_up.py b/src/fenrirscreenreader/commands/commands/review_up.py index 2affc0da..d8f4cbe6 100644 --- a/src/fenrirscreenreader/commands/commands/review_up.py +++ b/src/fenrirscreenreader/commands/commands/review_up.py @@ -15,7 +15,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('set review cursor to the char in the line below and present it') + return _('Move review to the character in the line above the current position') def run(self): cursorPos = self.env['runtime']['cursorManager'].getReviewOrTextCursor() diff --git a/src/fenrirscreenreader/commands/commands/set_bookmark_1.py b/src/fenrirscreenreader/commands/commands/set_bookmark_1.py index 3a1bdcbe..e17a0bd1 100644 --- a/src/fenrirscreenreader/commands/commands/set_bookmark_1.py +++ b/src/fenrirscreenreader/commands/commands/set_bookmark_1.py @@ -19,7 +19,7 @@ class command(): def run(self): if not self.env['commandBuffer']['Marks']['1']: - self.env['runtime']['outputManager'].presentText(_("No Mark found"), interrupt=True) + self.env['runtime']['outputManager'].presentText(_("No mark found"), interrupt=True) return currApp = self.env['runtime']['applicationManager'].getCurrentApplication() self.env['commandBuffer']['bookMarks'][self.ID][currApp] = {} diff --git a/src/fenrirscreenreader/commands/commands/set_bookmark_10.py b/src/fenrirscreenreader/commands/commands/set_bookmark_10.py index 5dfeea05..fa6d1ffa 100644 --- a/src/fenrirscreenreader/commands/commands/set_bookmark_10.py +++ b/src/fenrirscreenreader/commands/commands/set_bookmark_10.py @@ -19,7 +19,7 @@ class command(): def run(self): if not self.env['commandBuffer']['Marks']['1']: - self.env['runtime']['outputManager'].presentText(_("No Mark found"), interrupt=True) + self.env['runtime']['outputManager'].presentText(_("No mark found"), interrupt=True) return currApp = self.env['runtime']['applicationManager'].getCurrentApplication() self.env['commandBuffer']['bookMarks'][self.ID][currApp] = {} diff --git a/src/fenrirscreenreader/commands/commands/set_bookmark_2.py b/src/fenrirscreenreader/commands/commands/set_bookmark_2.py index 9268e21d..99d0ea66 100644 --- a/src/fenrirscreenreader/commands/commands/set_bookmark_2.py +++ b/src/fenrirscreenreader/commands/commands/set_bookmark_2.py @@ -19,7 +19,7 @@ class command(): def run(self): if not self.env['commandBuffer']['Marks']['1']: - self.env['runtime']['outputManager'].presentText(_("No Mark found"), interrupt=True) + self.env['runtime']['outputManager'].presentText(_("No mark found"), interrupt=True) return currApp = self.env['runtime']['applicationManager'].getCurrentApplication() self.env['commandBuffer']['bookMarks'][self.ID][currApp] = {} diff --git a/src/fenrirscreenreader/commands/commands/set_bookmark_3.py b/src/fenrirscreenreader/commands/commands/set_bookmark_3.py index 5231b3ac..043f7b91 100644 --- a/src/fenrirscreenreader/commands/commands/set_bookmark_3.py +++ b/src/fenrirscreenreader/commands/commands/set_bookmark_3.py @@ -19,7 +19,7 @@ class command(): def run(self): if not self.env['commandBuffer']['Marks']['1']: - self.env['runtime']['outputManager'].presentText(_("No Mark found"), interrupt=True) + self.env['runtime']['outputManager'].presentText(_("No mark found"), interrupt=True) return currApp = self.env['runtime']['applicationManager'].getCurrentApplication() self.env['commandBuffer']['bookMarks'][self.ID][currApp] = {} diff --git a/src/fenrirscreenreader/commands/commands/set_bookmark_4.py b/src/fenrirscreenreader/commands/commands/set_bookmark_4.py index 41a2b825..5e2ee9b4 100644 --- a/src/fenrirscreenreader/commands/commands/set_bookmark_4.py +++ b/src/fenrirscreenreader/commands/commands/set_bookmark_4.py @@ -19,7 +19,7 @@ class command(): def run(self): if not self.env['commandBuffer']['Marks']['1']: - self.env['runtime']['outputManager'].presentText(_("No Mark found"), interrupt=True) + self.env['runtime']['outputManager'].presentText(_("No mark found"), interrupt=True) return currApp = self.env['runtime']['applicationManager'].getCurrentApplication() self.env['commandBuffer']['bookMarks'][self.ID][currApp] = {} diff --git a/src/fenrirscreenreader/commands/commands/set_bookmark_5.py b/src/fenrirscreenreader/commands/commands/set_bookmark_5.py index 7d82fcf7..920fa322 100644 --- a/src/fenrirscreenreader/commands/commands/set_bookmark_5.py +++ b/src/fenrirscreenreader/commands/commands/set_bookmark_5.py @@ -19,7 +19,7 @@ class command(): def run(self): if not self.env['commandBuffer']['Marks']['1']: - self.env['runtime']['outputManager'].presentText(_("No Mark found"), interrupt=True) + self.env['runtime']['outputManager'].presentText(_("No mark found"), interrupt=True) return currApp = self.env['runtime']['applicationManager'].getCurrentApplication() self.env['commandBuffer']['bookMarks'][self.ID][currApp] = {} diff --git a/src/fenrirscreenreader/commands/commands/set_bookmark_6.py b/src/fenrirscreenreader/commands/commands/set_bookmark_6.py index 806664f5..4f0c639a 100644 --- a/src/fenrirscreenreader/commands/commands/set_bookmark_6.py +++ b/src/fenrirscreenreader/commands/commands/set_bookmark_6.py @@ -19,7 +19,7 @@ class command(): def run(self): if not self.env['commandBuffer']['Marks']['1']: - self.env['runtime']['outputManager'].presentText(_("No Mark found"), interrupt=True) + self.env['runtime']['outputManager'].presentText(_("No mark found"), interrupt=True) return currApp = self.env['runtime']['applicationManager'].getCurrentApplication() self.env['commandBuffer']['bookMarks'][self.ID][currApp] = {} diff --git a/src/fenrirscreenreader/commands/commands/set_bookmark_7.py b/src/fenrirscreenreader/commands/commands/set_bookmark_7.py index 6f7c73bc..349be691 100644 --- a/src/fenrirscreenreader/commands/commands/set_bookmark_7.py +++ b/src/fenrirscreenreader/commands/commands/set_bookmark_7.py @@ -19,7 +19,7 @@ class command(): def run(self): if not self.env['commandBuffer']['Marks']['1']: - self.env['runtime']['outputManager'].presentText(_("No Mark found"), interrupt=True) + self.env['runtime']['outputManager'].presentText(_("No mark found"), interrupt=True) return currApp = self.env['runtime']['applicationManager'].getCurrentApplication() self.env['commandBuffer']['bookMarks'][self.ID][currApp] = {} diff --git a/src/fenrirscreenreader/commands/commands/set_bookmark_8.py b/src/fenrirscreenreader/commands/commands/set_bookmark_8.py index df203fac..812cf064 100644 --- a/src/fenrirscreenreader/commands/commands/set_bookmark_8.py +++ b/src/fenrirscreenreader/commands/commands/set_bookmark_8.py @@ -19,7 +19,7 @@ class command(): def run(self): if not self.env['commandBuffer']['Marks']['1']: - self.env['runtime']['outputManager'].presentText(_("No Mark found"), interrupt=True) + self.env['runtime']['outputManager'].presentText(_("No mark found"), interrupt=True) return currApp = self.env['runtime']['applicationManager'].getCurrentApplication() self.env['commandBuffer']['bookMarks'][self.ID][currApp] = {} diff --git a/src/fenrirscreenreader/commands/commands/set_bookmark_9.py b/src/fenrirscreenreader/commands/commands/set_bookmark_9.py index 7dec75ea..2e2e55ae 100644 --- a/src/fenrirscreenreader/commands/commands/set_bookmark_9.py +++ b/src/fenrirscreenreader/commands/commands/set_bookmark_9.py @@ -19,7 +19,7 @@ class command(): def run(self): if not self.env['commandBuffer']['Marks']['1']: - self.env['runtime']['outputManager'].presentText(_("No Mark found"), interrupt=True) + self.env['runtime']['outputManager'].presentText(_("No mark found"), interrupt=True) return currApp = self.env['runtime']['applicationManager'].getCurrentApplication() self.env['commandBuffer']['bookMarks'][self.ID][currApp] = {} diff --git a/src/fenrirscreenreader/commands/commands/shut_up.py b/src/fenrirscreenreader/commands/commands/shut_up.py index 8bdaf78d..6d834c3a 100644 --- a/src/fenrirscreenreader/commands/commands/shut_up.py +++ b/src/fenrirscreenreader/commands/commands/shut_up.py @@ -14,7 +14,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('interrupts the current presentation') + return _('Interrupts the current presentation') def run(self): if len(self.env['input']['prevDeepestInput']) > len(self.env['input']['currInput']): return diff --git a/src/fenrirscreenreader/commands/commands/subprocess.py b/src/fenrirscreenreader/commands/commands/subprocess.py index ddb3a952..b96371d0 100644 --- a/src/fenrirscreenreader/commands/commands/subprocess.py +++ b/src/fenrirscreenreader/commands/commands/subprocess.py @@ -21,13 +21,13 @@ class command(): return _('script: {0} fullpath: {1}').format(os.path.basename(self.scriptPath), self.scriptPath) def run(self): if not os.path.exists(self.scriptPath): - self.env['runtime']['outputManager'].presentText(_('scriptfile does not exist'), soundIcon='', interrupt=False) + self.env['runtime']['outputManager'].presentText(_('Script file not found'), soundIcon='', interrupt=False) return if not os.path.isfile(self.scriptPath): - self.env['runtime']['outputManager'].presentText(_('scriptfile is not a file'), soundIcon='', interrupt=False) + self.env['runtime']['outputManager'].presentText(_('Script source is not a valid file'), soundIcon='', interrupt=False) return if not os.access(self.scriptPath, os.X_OK): - self.env['runtime']['outputManager'].presentText(_('scriptfile is not executable'), soundIcon='', interrupt=False) + self.env['runtime']['outputManager'].presentText(_('Script file is not executable'), soundIcon='', interrupt=False) return _thread.start_new_thread(self._threadRun , ()) diff --git a/src/fenrirscreenreader/commands/commands/toggle_auto_time.py b/src/fenrirscreenreader/commands/commands/toggle_auto_time.py index bec62b5d..ac89c84a 100644 --- a/src/fenrirscreenreader/commands/commands/toggle_auto_time.py +++ b/src/fenrirscreenreader/commands/commands/toggle_auto_time.py @@ -13,14 +13,14 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('enables or disables automatic reading of time after an period') + return _('Enables or disables automatic reading of time after specified intervals') def run(self): self.env['runtime']['settingsManager'].setSetting('time', 'enabled', str(not self.env['runtime']['settingsManager'].getSettingAsBool('time', 'enabled'))) if self.env['runtime']['settingsManager'].getSettingAsBool('time', 'enabled'): - self.env['runtime']['outputManager'].presentText(_("autotime enabled"), soundIcon='', interrupt=True) + self.env['runtime']['outputManager'].presentText(_("Automatic time announcement enabled"), soundIcon='', interrupt=True) else: - self.env['runtime']['outputManager'].presentText(_("autotime disabled"), soundIcon='', interrupt=True) + self.env['runtime']['outputManager'].presentText(_("Automatic time announcement disabled"), soundIcon='', interrupt=True) def setCallback(self, callback): pass diff --git a/src/fenrirscreenreader/commands/commands/toggle_braille.py b/src/fenrirscreenreader/commands/commands/toggle_braille.py index 04943655..ed8346d8 100644 --- a/src/fenrirscreenreader/commands/commands/toggle_braille.py +++ b/src/fenrirscreenreader/commands/commands/toggle_braille.py @@ -14,7 +14,7 @@ class command(): def shutdown(self): pass def getDescription(self): - return _('enables and disables output in braille') + return _('Enables and disables Braille output') def run(self): if self.env['runtime']['settingsManager'].getSettingAsBool('braille', 'enabled'): diff --git a/src/fenrirscreenreader/commands/commands/toggle_tutorial_mode.py b/src/fenrirscreenreader/commands/commands/toggle_tutorial_mode.py index f09f70f1..1ac2eb31 100644 --- a/src/fenrirscreenreader/commands/commands/toggle_tutorial_mode.py +++ b/src/fenrirscreenreader/commands/commands/toggle_tutorial_mode.py @@ -16,9 +16,9 @@ class command(): def getDescription(self): self.env['runtime']['helpManager'].toggleTutorialMode() #self.env['runtime']['outputManager'].presentText(, interrupt=True) - return _('You are leaving the tutorial mode. Press that shortcut again to enter the tutorial mode again.') + return _('Exiting tutorial mode. To enter tutorial mode again press Fenrir+f1') def run(self): self.env['runtime']['helpManager'].toggleTutorialMode() - self.env['runtime']['outputManager'].presentText( _('you entered the tutorial mode. In that mode the commands are not executed. but you get a description of what the shortcut does. To leave the tutorial mode, press that shortcut again.'), interrupt=True) + self.env['runtime']['outputManager'].presentText( _('Entering tutorial mode. In this mode commands are described but not executed. You can move through the list of commands with the up and down arrow keys. To Exit tutorial mode press Fenrir+f1.'), interrupt=True) def setCallback(self, callback): pass