[orca] Fix for bgo#625729 - Orca does not present superscripted and subscripted numbers in gcalctool
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix for bgo#625729 - Orca does not present superscripted and subscripted numbers in gcalctool
- Date: Sat, 31 Jul 2010 23:12:00 +0000 (UTC)
commit fb3d2926294d3f4d4378a38b339965bacf55cc48
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Sat Jul 31 19:05:14 2010 -0400
Fix for bgo#625729 - Orca does not present superscripted and subscripted numbers in gcalctool
Note that this solves the problem for gnome-speech. Additional work will
be required to get this working in speech dispatcher and opentts. See
bug 620109.
src/orca/chnames.py | 112 ++++++++++++++++++++++++++++++++++++++
src/orca/punctuation_settings.py | 68 ++++++++++++++++++++++--
2 files changed, 176 insertions(+), 4 deletions(-)
---
diff --git a/src/orca/chnames.py b/src/orca/chnames.py
index 69c07c1..e23cdfd 100644
--- a/src/orca/chnames.py
+++ b/src/orca/chnames.py
@@ -728,6 +728,118 @@ chnames[u'\u2717'] = _("x-shaped bullet")
#
chnames[u'\u2794'] = _("right-pointing arrow")
+# Translators: this is the spoken word for the character 'â?°' (U+2070)
+#
+chnames[u'\u2070'] = _("superscript 0")
+
+# Translators: this is the spoken word for the character 'â?´' (U+2074)
+#
+chnames[u'\u2074'] = _("superscript 4")
+
+# Translators: this is the spoken word for the character 'â?µ' (U+2075)
+#
+chnames[u'\u2075'] = _("superscript 5")
+
+# Translators: this is the spoken word for the character 'â?¶' (U+2076)
+#
+chnames[u'\u2076'] = _("superscript 6")
+
+# Translators: this is the spoken word for the character 'â?·' (U+2077)
+#
+chnames[u'\u2077'] = _("superscript 7")
+
+# Translators: this is the spoken word for the character 'â?¸' (U+2078)
+#
+chnames[u'\u2078'] = _("superscript 8")
+
+# Translators: this is the spoken word for the character 'â?¹' (U+2079)
+#
+chnames[u'\u2079'] = _("superscript 9")
+
+# Translators: this is the spoken word for the character 'â?º' (U+207a)
+#
+chnames[u'\u207a'] = _("superscript plus")
+
+# Translators: this is the spoken word for the character 'â?»' (U+207b)
+#
+chnames[u'\u207b'] = _("superscript minus")
+
+# Translators: this is the spoken word for the character 'â?¼' (U+207c)
+#
+chnames[u'\u207c'] = _("superscript equals")
+
+# Translators: this is the spoken word for the character 'â?½' (U+207d)
+#
+chnames[u'\u207d'] = _("superscript left paren")
+
+# Translators: this is the spoken word for the character 'â?¾' (U+207e)
+#
+chnames[u'\u207e'] = _("superscript right paren")
+
+# Translators: this is the spoken word for the character 'â?¿' (U+207f)
+#
+chnames[u'\u207f'] = _("superscript n")
+
+# Translators: this is the spoken word for the character 'â??' (U+2080)
+#
+chnames[u'\u2080'] = _("subscript 0")
+
+# Translators: this is the spoken word for the character 'â??' (U+2081)
+#
+chnames[u'\u2081'] = _("subscript 1")
+
+# Translators: this is the spoken word for the character 'â??' (U+2082)
+#
+chnames[u'\u2082'] = _("subscript 2")
+
+# Translators: this is the spoken word for the character 'â??' (U+2083)
+#
+chnames[u'\u2083'] = _("subscript 3")
+
+# Translators: this is the spoken word for the character 'â??' (U+2084)
+#
+chnames[u'\u2084'] = _("subscript 4")
+
+# Translators: this is the spoken word for the character 'â??' (U+2085)
+#
+chnames[u'\u2085'] = _("subscript 5")
+
+# Translators: this is the spoken word for the character 'â??' (U+2086)
+#
+chnames[u'\u2086'] = _("subscript 6")
+
+# Translators: this is the spoken word for the character 'â??' (U+2087)
+#
+chnames[u'\u2087'] = _("subscript 7")
+
+# Translators: this is the spoken word for the character 'â??' (U+2088)
+#
+chnames[u'\u2088'] = _("subscript 8")
+
+# Translators: this is the spoken word for the character 'â??' (U+2089)
+#
+chnames[u'\u2089'] = _("subscript 9")
+
+# Translators: this is the spoken word for the character 'â??' (U+208a)
+#
+chnames[u'\u208a'] = _("subscript plus")
+
+# Translators: this is the spoken word for the character 'â??' (U+208b)
+#
+chnames[u'\u208b'] = _("subscript minus")
+
+# Translators: this is the spoken word for the character 'â??' (U+208c)
+#
+chnames[u'\u208c'] = _("subscript equals")
+
+# Translators: this is the spoken word for the character 'â??' (U+208d)
+#
+chnames[u'\u208d'] = _("subscript left paren")
+
+# Translators: this is the spoken word for the character 'â??' (U+208e)
+#
+chnames[u'\u208e'] = _("subscript right paren")
+
# Translators: this is the spoken word for the character 'â?¢' (U+27a2)
# This symbol is included here because it can be used as a bullet in an
# OOo list. The goal is to inform the user of the appearance of the bullet
diff --git a/src/orca/punctuation_settings.py b/src/orca/punctuation_settings.py
index 65f8fc6..469313c 100644
--- a/src/orca/punctuation_settings.py
+++ b/src/orca/punctuation_settings.py
@@ -96,8 +96,6 @@ not_sign = u'\u00ac'
registered = u'\u00ae'
degree = u'\u00b0'
plus_minus = u'\u00b1'
-superscript2 = u'\u00b2'
-superscript3 = u'\u00b3'
right_double_angle = u'\u00bb'
one_quarter = u'\u00bc'
one_half = u'\u00bd'
@@ -128,6 +126,38 @@ gt_or_equal = u'\u2265'
square_root = u'\u221a'
cube_root = u'\u221b'
+superscript_zero = u'\u2070'
+superscript1 = u'\u00b9'
+superscript2 = u'\u00b2'
+superscript3 = u'\u00b3'
+superscript4 = u'\u2074'
+superscript5 = u'\u2075'
+superscript6 = u'\u2076'
+superscript7 = u'\u2077'
+superscript8 = u'\u2078'
+superscript9 = u'\u2079'
+superscript_plus = u'\u207a'
+superscript_minus = u'\u207b'
+superscript_equals = u'\u207c'
+superscript_left_paren = u'\u207d'
+superscript_right_paren = u'\u207e'
+superscriptn = u'\u207f'
+subscript_zero = u'\u2080'
+subscript1 = u'\u2081'
+subscript2 = u'\u2082'
+subscript3 = u'\u2083'
+subscript4 = u'\u2084'
+subscript5 = u'\u2085'
+subscript6 = u'\u2086'
+subscript7 = u'\u2087'
+subscript8 = u'\u2088'
+subscript9 = u'\u2089'
+subscript_plus = u'\u208a'
+subscript_minus = u'\u208b'
+subscript_equals = u'\u208c'
+subscript_left_paren = u'\u208d'
+subscript_right_paren = u'\u208e'
+
# punctuation is a dictionary where the keys represent a unicode
# character and the values are a list of two elements where the
# first represents the punctuation style and the second represents
@@ -225,8 +255,38 @@ punctuation[SO_black_diamond] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
punctuation[one_quarter] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
punctuation[one_half] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
punctuation[three_quarters] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
-punctuation[superscript3] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
-punctuation[superscript2] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+
+punctuation[superscript_zero] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[superscript1] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[superscript2] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[superscript3] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[superscript4] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[superscript5] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[superscript6] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[superscript7] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[superscript8] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[superscript9] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[superscript_plus] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[superscript_minus] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[superscript_equals] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[superscript_left_paren] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[superscript_right_paren] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[superscriptn] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[subscript_zero] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[subscript1] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[subscript2] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[subscript3] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[subscript4] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[subscript5] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[subscript6] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[subscript7] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[subscript8] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[subscript9] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[subscript_plus] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[subscript_minus] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[subscript_equals] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[subscript_left_paren] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
+punctuation[subscript_right_paren] = [ LEVEL_NONE, PUNCTUATION_REPLACE ]
def getPunctuationInfo(character):
"""Given a punctuation character, return the value
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]