[orca] Fix for bug #627691 - When I say all a webpage content and Orca attempts to speak an image descripti



commit e6eaa9ad344bca69fd4f194c92f5c0123bbe8a28
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Tue Aug 24 15:07:02 2010 -0400

    Fix for bug #627691 - When I say all a webpage content and Orca attempts to speak an image description, the say all operation is terminated
    
    Specifically checks that the text is not an instance of an
    ACSS.

 src/orca/speechdispatcherfactory.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/speechdispatcherfactory.py b/src/orca/speechdispatcherfactory.py
index 06a0995..2a75dff 100644
--- a/src/orca/speechdispatcherfactory.py
+++ b/src/orca/speechdispatcherfactory.py
@@ -310,6 +310,8 @@ class SpeechServer(speechserver.SpeechServer):
         return newText.encode("UTF-8")
 
     def _speak(self, text, acss, **kwargs):
+        if isinstance(text, ACSS):
+            text = ''
         text = self.__addVerbalizedPunctuation(text)
         # Replace no break space characters with plain spaces since some
         # synthesizers cannot handle them.  See bug #591734.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]