commit 56ff587b246abeaa7907413a2fa0e5a95333c4a3
Author: Rudolf Weeber <rudolf.weeber@gmx.de>
Date:   Fri May 7 15:59:13 2010 +0200

    Add unbound keybinding for toggling whether punctuations are spoken or not

diff --git a/src/orca/default.py b/src/orca/default.py
index 965676f..d8c7bd5 100644
--- a/src/orca/default.py
+++ b/src/orca/default.py
@@ -855,6 +855,12 @@ class Script(script.Script):
                 # the speaking of indentation and justification.
                 #
                 _("Toggles the speaking of indentation and justification."))
+        self.inputEventHandlers["toggleSpeakingPunctuationsHandler"] = \
+	    input_event.InputEventHandler(
+	        Script.toggleSpeakingPunctuations,
+		# Translators: Orca allows users to decide, wether all, some or
+		# no punctuations are to be spoken.
+		_("toggles the speaking of punctuations."))
 
         self.inputEventHandlers["listAppsHandler"] = \
             input_event.InputEventHandler(
@@ -2058,6 +2064,14 @@ class Script(script.Script):
                 settings.NO_MODIFIER_MASK,
                 self.inputEventHandlers[ \
                   "toggleSpeakingIndentationJustificationHandler"]))
+        
+	keyBindings.add(
+            keybindings.KeyBinding(
+                "",
+                settings.defaultModifierMask,
+                settings.NO_MODIFIER_MASK,
+                self.inputEventHandlers[ \
+                  "toggleSpeakingPunctuationsHandler"]))
 
         try:
             keyBindings = settings.overrideKeyBindings(self, keyBindings)
@@ -4487,6 +4501,28 @@ class Script(script.Script):
         speech.speak(line)
 
         return True
+    
+    
+    def toggleSpeakingPunctuations(self, inputEvent=None):
+        """Toggles the speaking of punctuations."""
+
+        if settings.verbalizePunctuationStyle <3:
+	  settings.verbalizePunctuationStyle = settings.verbalizePunctuationStyle +1
+	else:
+	  settings.verbalizePunctuationStyle=0
+
+        if settings.verbalizePunctuationStyle == 0:
+	   line = _("All punctuations will be spoken")
+        if settings.verbalizePunctuationStyle == 1:
+	   line = _("Most punctuations will be spoken.")
+        if settings.verbalizePunctuationStyle == 2:
+	   line = _("Some punctuations will be spoken.")
+        if settings.verbalizePunctuationStyle == 3:
+	   line = _("Punctuations will not be spoken.")
+
+	speech.speak(line)
+
+        return True
 
     def toggleTableCellReadMode(self, inputEvent=None):
         """Toggles an indicator for whether we should just read the current
