[orca/gnome-3-6] Fix for bug 626032 - substitutions from the pronunciation dictionary are not being applied when perf



commit 80ea68c387961a4960b6e9a3587ded4b21c2baa5
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Aug 7 16:37:55 2012 +0200

    Fix for bug 626032 - substitutions from the pronunciation dictionary are not being applied when performing say all

 src/orca/speechdispatcherfactory.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/speechdispatcherfactory.py b/src/orca/speechdispatcherfactory.py
index a7f0d9d..dd9cf43 100644
--- a/src/orca/speechdispatcherfactory.py
+++ b/src/orca/speechdispatcherfactory.py
@@ -333,6 +333,10 @@ class SpeechServer(speechserver.SpeechServer):
         if isinstance(text, ACSS):
             text = ''
         text = self.__addVerbalizedPunctuation(text)
+        if orca_state.activeScript and orca_state.usePronunciationDictionary:
+            text = orca_state.activeScript.\
+                utilities.adjustForPronunciation(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]