[orca/570658-whereami] Back out change to not use uppercase for strings of length 1



commit 6d66503289a1a8d0490d0f2a3a42ad1182541bef
Author: Willie Walker <william walker sun com>
Date:   Sat Jun 6 07:04:18 2009 -0400

    Back out change to not use uppercase for strings of length 1
    
    This was an ill-conceived plot to eliminate uppercase speaking
    of single letter words, such as 'I' 'A' etc.
---
 src/orca/scripts/toolkits/Gecko/script.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 65b2f9b..8a8f5b0 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -5353,8 +5353,7 @@ 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() and len(string.strip()) > 1:
+        elif string and string.isupper() and string.strip().isalpha():
             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]