[nvda-addons] Re: commit/googleSpeechRecognition: norrumar: Changed cycleLang script gesture: NVDA+y, in consistence with NVDA+p to cycle punctuation. Useful to switch between languages without saving the set one as default.

  • From: derek riemer <driemer.riemer@xxxxxxxxx>
  • To: nvda-addons@xxxxxxxxxxxxx
  • Date: Sun, 04 Aug 2013 22:31:05 -0600

How long until I can try this addon? It sounds cool.

Subscribe to my new mailing list for blind people to discuss technology.
//www.freelists.org/list/at-discuss4vi
On 8/4/2013 22:26, commits-noreply@xxxxxxxxxxxxx wrote:
1 new commit in googleSpeechRecognition:

https://bitbucket.org/nvdaaddonteam/googlespeechrecognition/commits/68b79d91291a/
Changeset:   68b79d91291a
Branch:      master
User:        norrumar
Date:        2013-08-05 06:25:52
Summary:     Changed cycleLang script gesture: NVDA+y, in consistence with 
NVDA+p to cycle punctuation. Useful to switch between languages without saving 
the set one as default.

Affected #:  1 file

diff --git a/addon/globalPlugins/googleSpeechRecognition/__init__.py 
b/addon/globalPlugins/googleSpeechRecognition/__init__.py
index 1b456b5..edefbc5 100644
--- a/addon/globalPlugins/googleSpeechRecognition/__init__.py
+++ b/addon/globalPlugins/googleSpeechRecognition/__init__.py
@@ -86,8 +86,11 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):
                if result == wx.ID_OK:
                        #tones.beep(500,300)
                #dlg.Destroy()
+                       selectedLang = langslist[lst[dlg.GetSelection()]]
+                       if self.myLang.__eq__(selectedLang):
+                               return
                        global lng
-                       lng = langslist[lst[dlg.GetSelection()]]
+                       lng = selectedLang
                        self.myLang = Ring(langslist.values(), lng)
                        conf["Language settings"]["lang"] = lng
                        try:
@@ -121,5 +124,5 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):
        __gestures = {
                "kb:NVDA+shift+g": "record",
                "kb:NVDA+control+shift+g": "accept",
-               "kb:control+NVDA+l": "cycleLang",
+               "kb:NVDA+y": "cycleLang",
        }

Repository URL: https://bitbucket.org/nvdaaddonteam/googlespeechrecognition/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
----------------------------------------------------------------

NVDA add-ons Central: A list for discussing NVDA add-ons

To post a message, send an email to nvda-addons@xxxxxxxxxxxxx.

To unsubscribe, send an email with the subject line of "unsubscribe" (without 
quotes) to nvda-addons-request@xxxxxxxxxxxxx.

If you have questions for list moderators, please send a message to 
nvda-addons-moderators@xxxxxxxxxxxxx.

Community addons can be found here: http://addons.nvda-project.org

----------------------------------------------------------------

NVDA add-ons Central: A list for discussing NVDA add-ons

To post a message, send an email to nvda-addons@xxxxxxxxxxxxx.

To unsubscribe, send an email with the subject line of "unsubscribe" (without 
quotes) to nvda-addons-request@xxxxxxxxxxxxx.

If you have questions for list moderators, please send a message to 
nvda-addons-moderators@xxxxxxxxxxxxx.

Community addons can be found here: http://addons.nvda-project.org

Other related posts: