[orca] Fix for bug 626032 - substitutions from the pronunciation dictionary are not being applied when perf
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix for bug 626032 - substitutions from the pronunciation dictionary are not being applied when perf
- Date: Tue, 7 Aug 2012 14:38:41 +0000 (UTC)
commit bf73251dba974529d4badef7ef13c2d972420a2e
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 f8a77f8..821c0c3 100644
--- a/src/orca/speechdispatcherfactory.py
+++ b/src/orca/speechdispatcherfactory.py
@@ -312,6 +312,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]