orca r4614 - in trunk: . src/orca



Author: wwalker
Date: Sat Feb 28 02:23:48 2009
New Revision: 4614
URL: http://svn.gnome.org/viewvc/orca?rev=4614&view=rev

Log:
Work on bug #573303 - Support text attribute and spelling error notification in FF.  Limit the speaking of font names to just the first family listed.


Modified:
   trunk/ChangeLog
   trunk/src/orca/default.py

Modified: trunk/src/orca/default.py
==============================================================================
--- trunk/src/orca/default.py	(original)
+++ trunk/src/orca/default.py	Sat Feb 28 02:23:48 2009
@@ -4417,6 +4417,12 @@
                                             "%s %s pixels",
                                             float(value[0])) % \
                                             (localizedKey, value[0])
+                    elif key == "family-name":
+                        # In Gecko, we get a huge list and we just want the
+                        # first one.  See:
+                        # http://www.w3.org/TR/CSS2/fonts.html#font-family-prop
+                        #
+                        line = attribute.split(",")[0].strip().strip('"')
 
                     line = line or (localizedKey + " " + localizedValue)
                     speech.speak(line)



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