diff options
author | Mindy Pereira <mindyp@google.com> | 2011-12-06 13:28:15 -0800 |
---|---|---|
committer | Mindy Pereira <mindyp@google.com> | 2011-12-06 14:20:09 -0800 |
commit | 88a84db210d5e3ad5ea8c1f75c55c3175afcf46c (patch) | |
tree | 24dd1f77765995fab373bd4fdfa2f069bf24911d /res | |
parent | c0c011f0503af651769d686aad7bf2927e0242b1 (diff) | |
download | android_packages_apps_ExactCalculator-88a84db210d5e3ad5ea8c1f75c55c3175afcf46c.tar.gz android_packages_apps_ExactCalculator-88a84db210d5e3ad5ea8c1f75c55c3175afcf46c.tar.bz2 android_packages_apps_ExactCalculator-88a84db210d5e3ad5ea8c1f75c55c3175afcf46c.zip |
Make the Calculator edit text field speak the correctly mathematical content.
Previously: 7x9 would be read as "7EX9" when you really want
"7 multiplied by 9"
Change-Id: I6fd3c1e3d0a40ca8700c10227edbdb445dbb7743
Diffstat (limited to 'res')
-rw-r--r-- | res/values/strings.xml | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml index 297a244..958a6c4 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -114,4 +114,68 @@ <string name="eDesc">Euler\'s number</string> <string name="piDesc">pi</string> <string name="equalDesc">equals</string> + + <!--Content descriptions for accessibility used as keys when determining which mathematical + concept description to speak when accessibility features are enabled. Order of the array is + important. --> + <string-array name="operators" translatable="false"> + <item>(</item> + <item>)</item> + <item>!</item> + <item>ln</item> + <item>log</item> + <item>\u221a</item> + <item>\u00f7</item> + <item>\u00d7</item> + <item>+</item> + <item>\u2212</item> + <item>.</item> + <item>^</item> + <item>tan</item> + <item>sin</item> + <item>cos</item> + <item>\u03c0</item> + <item>=</item> + </string-array> + + <!--Content descriptions for accessibility. These strings will be read aloud to users who + are using the calculator with accessibility features enabled and hover over the edit text + field. These should reflect the mathematical concept instead of a direct representation of + what is shown in the text field. Order of the array is important.--> + <string-array name="operatorDescs"> + <!-- Description for mathematical ( [CHAR LIMIT=200]--> + <item>left parenthesis</item> + <!-- Description for mathematical ) [CHAR LIMIT=200]--> + <item>right parenthesis</item> + <!-- Description for mathematical ! (factorial) function [CHAR LIMIT=200]--> + <item>factorial</item> + <!-- Description for mathematical ln [CHAR LIMIT=200]--> + <item>natural logarithm</item> + <!-- Description for mathematical log [CHAR LIMIT=200]--> + <item>logarithm</item> + <!-- Description for mathematical square root [CHAR LIMIT=200]--> + <item>square root</item> + <!-- Description for mathematical / [CHAR LIMIT=200]--> + <item>divided by</item> + <!-- Description for mathematical x [CHAR LIMIT=200]--> + <item>multiplied by</item> + <!-- Description for mathematical + [CHAR LIMIT=200]--> + <item>plus</item> + <!-- Description for mathematical - [CHAR LIMIT=200]--> + <item>minus</item> + <!-- Description for mathematical . [CHAR LIMIT=200]--> + <item>point</item> + <!-- Description for mathematical ^ [CHAR LIMIT=200]--> + <item>power</item> + <!-- Description for mathematical TAN [CHAR LIMIT=200]--> + <item>tangent</item> + <!-- Description for mathematical SIN [CHAR LIMIT=200]--> + <item>sine</item> + <!-- Description for mathematical COS [CHAR LIMIT=200]--> + <item>cosine</item> + <!-- Description for mathematical PI [CHAR LIMIT=200]--> + <item>pi</item> + <!-- Description for mathematical = [CHAR LIMIT=200]--> + <item>equals</item> + </string-array> </resources> |