[orca/570658] Only use uppercase voice if the word is longer than 1 character
- From: William Walker <wwalker src gnome org>
- To: svn-commits-list gnome org
- Subject: [orca/570658] Only use uppercase voice if the word is longer than 1 character
- Date: Wed, 20 May 2009 16:20:02 -0400 (EDT)
commit a7942598eb75780e108ac4abfce4ea736fad248c
Author: Willie Walker <william walker sun com>
Date: Wed May 20 16:15:02 2009 -0400
Only use uppercase voice if the word is longer than 1 character
---
src/orca/scripts/toolkits/Gecko/script.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 0f26757..6ea5ee9 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -5342,7 +5342,8 @@ class Script(default.Script):
"""Returns the ACSS to speak anything for the given obj."""
if obj.getRole() == pyatspi.ROLE_LINK:
acss = self.voices[settings.HYPERLINK_VOICE]
- elif string and string.isupper() and string.strip().isalpha():
+ elif string and string.isupper() \
+ and string.strip().isalpha() and len(string.strip()) > 1:
acss = self.voices[settings.UPPERCASE_VOICE]
else:
acss = self.voices[settings.DEFAULT_VOICE]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]