1 |
|
# Orca |
2 |
|
# |
3 |
|
# Copyright 2004-2006 Sun Microsystems Inc. |
4 |
|
# |
5 |
|
# This library is free software; you can redistribute it and/or |
6 |
|
# modify it under the terms of the GNU Library General Public |
7 |
|
# License as published by the Free Software Foundation; either |
8 |
|
# version 2 of the License, or (at your option) any later version. |
9 |
|
# |
10 |
|
# This library is distributed in the hope that it will be useful, |
11 |
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 |
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 |
|
# Library General Public License for more details. |
14 |
|
# |
15 |
|
# You should have received a copy of the GNU Library General Public |
16 |
|
# License along with this library; if not, write to the |
17 |
|
# Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 |
|
# Boston, MA 02111-1307, USA. |
19 |
|
|
20 |
|
"""Provides getCharacterName that maps punctuation marks and other |
21 |
1 |
individual characters into localized words.""" |
22 |
|
|
23 |
1 |
__id__ = "$Id: chnames.py 2433 2007-05-29 15:08:39Z richb $" |
24 |
1 |
__version__ = "$Revision: 2433 $" |
25 |
1 |
__date__ = "$Date: 2007-05-29 11:08:39 -0400 (Tue, 29 May 2007) $" |
26 |
1 |
__copyright__ = "Copyright (c) 2005-2006 Sun Microsystems Inc." |
27 |
1 |
__license__ = "LGPL" |
28 |
|
|
29 |
1 |
from orca_i18n import _ # for gettext support |
30 |
|
|
31 |
|
# chnames is a dictionary where the keys represent a unicode character |
32 |
|
# and the values represent the common term used for the character. |
33 |
|
# |
34 |
1 |
chnames = {} |
35 |
|
|
36 |
|
# Translators: this is the spoken word for the space character |
37 |
|
# |
38 |
1 |
chnames[" "] = _("space") |
39 |
|
|
40 |
|
# Translators: this is the spoken word for the newline character |
41 |
|
# |
42 |
1 |
chnames["\n"] = _("newline") |
43 |
|
|
44 |
|
# Translators: this is the spoken word for the tab character |
45 |
|
# |
46 |
1 |
chnames["\t"] = _("tab") |
47 |
|
|
48 |
|
# Translators: this is the spoken word for the character '!' (U+0021) |
49 |
|
# |
50 |
1 |
chnames["!"] = _("exclaim") |
51 |
|
|
52 |
|
# Translators: this is the spoken word for the character '"' (U+0022) |
53 |
|
# |
54 |
1 |
chnames["\""] = _("quote") |
55 |
|
|
56 |
|
# Translators: this is the spoken word for the character '#' (U+0023) |
57 |
|
# |
58 |
1 |
chnames["#"] = _("number") |
59 |
|
|
60 |
|
# Translators: this is the spoken word for the character '$' (U+0024) |
61 |
|
# |
62 |
1 |
chnames["$"] = _("dollar") |
63 |
|
|
64 |
|
# Translators: this is the spoken word for the character '%' (U+0025) |
65 |
|
# |
66 |
1 |
chnames["%"] = _("percent") |
67 |
|
|
68 |
|
# Translators: this is the spoken word for the character '&' (U+0026) |
69 |
|
# |
70 |
1 |
chnames["&"] = _("and") |
71 |
|
|
72 |
|
# Translators: this is the spoken word for the character ''' (U+0027) |
73 |
|
# |
74 |
1 |
chnames["'"] = _("apostrophe") |
75 |
|
|
76 |
|
# Translators: this is the spoken word for the character '(' (U+0028) |
77 |
|
# |
78 |
1 |
chnames["("] = _("left paren") |
79 |
|
|
80 |
|
# Translators: this is the spoken word for the character ')' (U+0029) |
81 |
|
# |
82 |
1 |
chnames[")"] = _("right paren") |
83 |
|
|
84 |
|
# Translators: this is the spoken word for the character '*' (U+002a) |
85 |
|
# |
86 |
1 |
chnames["*"] = _("star") |
87 |
|
|
88 |
|
# Translators: this is the spoken word for the character '+' (U+002b) |
89 |
|
# |
90 |
1 |
chnames["+"] = _("plus") |
91 |
|
|
92 |
|
# Translators: this is the spoken word for the character ',' (U+002c) |
93 |
|
# |
94 |
1 |
chnames[","] = _("comma") |
95 |
|
|
96 |
|
# Translators: this is the spoken word for the character '-' (U+002d) |
97 |
|
# |
98 |
1 |
chnames["-"] = _("dash") |
99 |
|
|
100 |
|
# Translators: this is the spoken word for the character '.' (U+002e) |
101 |
|
# |
102 |
1 |
chnames["."] = _("dot") |
103 |
|
|
104 |
|
# Translators: this is the spoken word for the character '/' (U+002f) |
105 |
|
# |
106 |
1 |
chnames["/"] = _("slash") |
107 |
|
|
108 |
|
# Translators: this is the spoken word for the character ':' (U+003a) |
109 |
|
# |
110 |
1 |
chnames[":"] = _("colon") |
111 |
|
|
112 |
|
# Translators: this is the spoken word for the character ';' (U+003b) |
113 |
|
# |
114 |
1 |
chnames[";"] = _("semicolon") |
115 |
|
|
116 |
|
# Translators: this is the spoken word for the character '< ' (U+003c) |
117 |
|
# |
118 |
1 |
chnames["<"] = _("less") |
119 |
|
|
120 |
|
# Translators: this is the spoken word for the character '=' (U+003d) |
121 |
|
# |
122 |
1 |
chnames["="] = _("equals") |
123 |
|
|
124 |
|
# Translators: this is the spoken word for the character '> ' (U+003e) |
125 |
|
# |
126 |
1 |
chnames[">"] = _("greater") |
127 |
|
|
128 |
|
# Translators: this is the spoken word for the character '?' (U+003f) |
129 |
|
# |
130 |
1 |
chnames["?"] = _("question") |
131 |
|
|
132 |
|
# Translators: this is the spoken word for the character '@' (U+0040) |
133 |
|
# |
134 |
1 |
chnames["@"] = _("at") |
135 |
|
|
136 |
|
# Translators: this is the spoken word for the character '[' (U+005b) |
137 |
|
# |
138 |
1 |
chnames["["] = _("left bracket") |
139 |
|
|
140 |
|
# Translators: this is the spoken word for the character '\' (U+005c) |
141 |
|
# |
142 |
1 |
chnames["\\"] = _("backslash") |
143 |
|
|
144 |
|
# Translators: this is the spoken word for the character ']' (U+005d) |
145 |
|
# |
146 |
1 |
chnames["]"] = _("right bracket") |
147 |
|
|
148 |
|
# Translators: this is the spoken word for the character '^' (U+005e) |
149 |
|
# |
150 |
1 |
chnames["^"] = _("caret") |
151 |
|
|
152 |
|
# Translators: this is the spoken word for the character '_' (U+005f) |
153 |
|
# |
154 |
1 |
chnames["_"] = _("underline") |
155 |
|
|
156 |
|
# Translators: this is the spoken word for the character '`' (U+0060) |
157 |
|
# |
158 |
1 |
chnames["`"] = _("grave") |
159 |
|
|
160 |
|
# Translators: this is the spoken word for the character '{' (U+007b) |
161 |
|
# |
162 |
1 |
chnames["{"] = _("left brace") |
163 |
|
|
164 |
|
# Translators: this is the spoken word for the character '|' (U+007c) |
165 |
|
# |
166 |
1 |
chnames["|"] = _("vertical bar") |
167 |
|
|
168 |
|
# Translators: this is the spoken word for the character '}' (U+007d) |
169 |
|
# |
170 |
1 |
chnames["}"] = _("right brace") |
171 |
|
|
172 |
|
# Translators: this is the spoken word for the character '~' (U+007e) |
173 |
|
# |
174 |
1 |
chnames["~"] = _("tilde") |
175 |
|
|
176 |
|
# Translators: this is the spoken word for the character '¡' (U+00a1) |
177 |
|
# |
178 |
1 |
chnames[u'\u00a1'] = _("inverted exclamation point") |
179 |
|
|
180 |
|
# Translators: this is the spoken word for the character '¢' (U+00a2) |
181 |
|
# |
182 |
1 |
chnames[u'\u00a2'] = _("cents") |
183 |
|
|
184 |
|
# Translators: this is the spoken word for the character '£' (U+00a3) |
185 |
|
# |
186 |
1 |
chnames[u'\u00a3'] = _("pounds") |
187 |
|
|
188 |
|
# Translators: this is the spoken word for the character '¤' (U+00a4) |
189 |
|
# |
190 |
1 |
chnames[u'\u00a4'] = _("currency sign") |
191 |
|
|
192 |
|
# Translators: this is the spoken word for the character '¥' (U+00a5) |
193 |
|
# |
194 |
1 |
chnames[u'\u00a5'] = _("yen") |
195 |
|
|
196 |
|
# Translators: this is the spoken word for the character '¦' (U+00a6) |
197 |
|
# |
198 |
1 |
chnames[u'\u00a6'] = _("broken bar") |
199 |
|
|
200 |
|
# Translators: this is the spoken word for the character '§' (U+00a7) |
201 |
|
# |
202 |
1 |
chnames[u'\u00a7'] = _("section") |
203 |
|
|
204 |
|
# Translators: this is the spoken word for the character '¨' (U+00a8) |
205 |
|
# |
206 |
1 |
chnames[u'\u00a8'] = _("umlaut") |
207 |
|
|
208 |
|
# Translators: this is the spoken word for the character '©' (U+00a9) |
209 |
|
# |
210 |
1 |
chnames[u'\u00a9'] = _("copyright") |
211 |
|
|
212 |
|
# Translators: this is the spoken word for the character 'ª' (U+00aa) |
213 |
|
# |
214 |
1 |
chnames[u'\u00aa'] = _("superscript a") |
215 |
|
|
216 |
|
# Translators: this is the spoken word for the character '«' (U+00ab) |
217 |
|
# |
218 |
1 |
chnames[u'\u00ab'] = _("left double angle bracket") |
219 |
|
|
220 |
|
# Translators: this is the spoken word for the character '¬' (U+00ac) |
221 |
|
# |
222 |
1 |
chnames[u'\u00ac'] = _("logical not") |
223 |
|
|
224 |
|
# Translators: this is the spoken word for the character '' (U+00ad) |
225 |
|
# |
226 |
1 |
chnames[u'\u00ad'] = _("soft hyphen") |
227 |
|
|
228 |
|
# Translators: this is the spoken word for the character '®' (U+00ae) |
229 |
|
# |
230 |
1 |
chnames[u'\u00ae'] = _("registered") |
231 |
|
|
232 |
|
# Translators: this is the spoken word for the character '¯' (U+00af) |
233 |
|
# |
234 |
1 |
chnames[u'\u00af'] = _("macron") |
235 |
|
|
236 |
|
# Translators: this is the spoken word for the character '°' (U+00b0) |
237 |
|
# |
238 |
1 |
chnames[u'\u00b0'] = _("degrees") |
239 |
|
|
240 |
|
# Translators: this is the spoken word for the character '±' (U+00b1) |
241 |
|
# |
242 |
1 |
chnames[u'\u00b1'] = _("plus or minus") |
243 |
|
|
244 |
|
# Translators: this is the spoken word for the character '²' (U+00b2) |
245 |
|
# |
246 |
1 |
chnames[u'\u00b2'] = _("superscript 2") |
247 |
|
|
248 |
|
# Translators: this is the spoken word for the character '³' (U+00b3) |
249 |
|
# |
250 |
1 |
chnames[u'\u00b3'] = _("superscript 3") |
251 |
|
|
252 |
|
# Translators: this is the spoken word for the character '´' (U+00b4) |
253 |
|
# |
254 |
1 |
chnames[u'\u00b4'] = _("acute accent") |
255 |
|
|
256 |
|
# Translators: this is the spoken word for the character 'µ' (U+00b5) |
257 |
|
# |
258 |
1 |
chnames[u'\u00b5'] = _("mu") |
259 |
|
|
260 |
|
# Translators: this is the spoken word for the character '¶' (U+00b6) |
261 |
|
# |
262 |
1 |
chnames[u'\u00b6'] = _("paragraph marker") |
263 |
|
|
264 |
|
# Translators: this is the spoken word for the character '·' (U+00b7) |
265 |
|
# |
266 |
1 |
chnames[u'\u00b7'] = _("middle dot") |
267 |
|
|
268 |
|
# Translators: this is the spoken word for the character '¸' (U+00b8) |
269 |
|
# |
270 |
1 |
chnames[u'\u00b8'] = _("cedilla") |
271 |
|
|
272 |
|
# Translators: this is the spoken word for the character '¹' (U+00b9) |
273 |
|
# |
274 |
1 |
chnames[u'\u00b9'] = _("superscript 1") |
275 |
|
|
276 |
|
# Translators: this is the spoken word for the character 'º' (U+00ba) |
277 |
|
# |
278 |
1 |
chnames[u'\u00ba'] = _("degrees") |
279 |
|
|
280 |
|
# Translators: this is the spoken word for the character '»' (U+00bb) |
281 |
|
# |
282 |
1 |
chnames[u'\u00bb'] = _("right double angle bracket") |
283 |
|
|
284 |
|
# Translators: this is the spoken word for the character '¼' (U+00bc) |
285 |
|
# |
286 |
1 |
chnames[u'\u00bc'] = _("one fourth") |
287 |
|
|
288 |
|
# Translators: this is the spoken word for the character '½' (U+00bd) |
289 |
|
# |
290 |
1 |
chnames[u'\u00bd'] = _("one half") |
291 |
|
|
292 |
|
# Translators: this is the spoken word for the character '¾' (U+00be) |
293 |
|
# |
294 |
1 |
chnames[u'\u00be'] = _("three fourths") |
295 |
|
|
296 |
|
# Translators: this is the spoken word for the character '¿' (U+00bf) |
297 |
|
# |
298 |
1 |
chnames[u'\u00bf'] = _("inverted question mark") |
299 |
|
|
300 |
|
# Translators: this is the spoken word for the character 'á' (U+00e1) |
301 |
|
# |
302 |
1 |
chnames[u'\u00e1'] = _("a acute") |
303 |
|
|
304 |
|
# Translators: this is the spoken word for the character 'À' (U+00c0) |
305 |
|
# |
306 |
1 |
chnames[u'\u00c0'] = _("A GRAVE") |
307 |
|
|
308 |
|
# Translators: this is the spoken word for the character 'Á' (U+00c1) |
309 |
|
# |
310 |
1 |
chnames[u'\u00c1'] = _("A ACUTE") |
311 |
|
|
312 |
|
# Translators: this is the spoken word for the character 'Â' (U+00c2) |
313 |
|
# |
314 |
1 |
chnames[u'\u00c2'] = _("A CIRCUMFLEX") |
315 |
|
|
316 |
|
# Translators: this is the spoken word for the character 'Ã' (U+00c3) |
317 |
|
# |
318 |
1 |
chnames[u'\u00c3'] = _("A TILDE") |
319 |
|
|
320 |
|
# Translators: this is the spoken word for the character 'Ä' (U+00c4) |
321 |
|
# |
322 |
1 |
chnames[u'\u00c4'] = _("A UMLAUT") |
323 |
|
|
324 |
|
# Translators: this is the spoken word for the character 'Å' (U+00c5) |
325 |
|
# |
326 |
1 |
chnames[u'\u00c5'] = _("A RING") |
327 |
|
|
328 |
|
# Translators: this is the spoken word for the character 'Æ' (U+00c6) |
329 |
|
# |
330 |
1 |
chnames[u'\u00c6'] = _("A E") |
331 |
|
|
332 |
|
# Translators: this is the spoken word for the character 'Ç' (U+00c7) |
333 |
|
# |
334 |
1 |
chnames[u'\u00c7'] = _("C CEDILLA") |
335 |
|
|
336 |
|
# Translators: this is the spoken word for the character 'È' (U+00c8) |
337 |
|
# |
338 |
1 |
chnames[u'\u00c8'] = _("E GRAVE") |
339 |
|
|
340 |
|
# Translators: this is the spoken word for the character 'É' (U+00c9) |
341 |
|
# |
342 |
1 |
chnames[u'\u00c9'] = _("E ACUTE") |
343 |
|
|
344 |
|
# Translators: this is the spoken word for the character 'Ê' (U+00ca) |
345 |
|
# |
346 |
1 |
chnames[u'\u00ca'] = _("E CIRCUMFLEX") |
347 |
|
|
348 |
|
# Translators: this is the spoken word for the character 'Ë' (U+00cb) |
349 |
|
# |
350 |
1 |
chnames[u'\u00cb'] = _("E UMLAUT") |
351 |
|
|
352 |
|
# Translators: this is the spoken word for the character 'Ì' (U+00cc) |
353 |
|
# |
354 |
1 |
chnames[u'\u00cc'] = _("I GRAVE") |
355 |
|
|
356 |
|
# Translators: this is the spoken word for the character 'Í' (U+00cd) |
357 |
|
# |
358 |
1 |
chnames[u'\u00cd'] = _("I ACUTE") |
359 |
|
|
360 |
|
# Translators: this is the spoken word for the character 'Î' (U+00ce) |
361 |
|
# |
362 |
1 |
chnames[u'\u00ce'] = _("I CIRCUMFLEX") |
363 |
|
|
364 |
|
# Translators: this is the spoken word for the character 'Ï' (U+00cf) |
365 |
|
# |
366 |
1 |
chnames[u'\u00cf'] = _("I UMLAUT") |
367 |
|
|
368 |
|
# Translators: this is the spoken word for the character 'Ð' (U+00d0) |
369 |
|
# |
370 |
1 |
chnames[u'\u00d0'] = _("ETH") |
371 |
|
|
372 |
|
# Translators: this is the spoken word for the character 'Ñ' (U+00d1) |
373 |
|
# |
374 |
1 |
chnames[u'\u00d1'] = _("N TILDE") |
375 |
|
|
376 |
|
# Translators: this is the spoken word for the character 'Ò' (U+00d2) |
377 |
|
# |
378 |
1 |
chnames[u'\u00d2'] = _("O GRAVE") |
379 |
|
|
380 |
|
# Translators: this is the spoken word for the character 'Ó' (U+00d3) |
381 |
|
# |
382 |
1 |
chnames[u'\u00d3'] = _("O ACUTE") |
383 |
|
|
384 |
|
# Translators: this is the spoken word for the character 'Ô' (U+00d4) |
385 |
|
# |
386 |
1 |
chnames[u'\u00d4'] = _("O CIRCUMFLEX") |
387 |
|
|
388 |
|
# Translators: this is the spoken word for the character 'Õ' (U+00d5) |
389 |
|
# |
390 |
1 |
chnames[u'\u00d5'] = _("O TILDE") |
391 |
|
|
392 |
|
# Translators: this is the spoken word for the character 'Ö' (U+00d6) |
393 |
|
# |
394 |
1 |
chnames[u'\u00d6'] = _("O UMLAUT") |
395 |
|
|
396 |
|
# Translators: this is the spoken word for the character '×' (U+00d7) |
397 |
|
# |
398 |
1 |
chnames[u'\u00d7'] = _("times") |
399 |
|
|
400 |
|
# Translators: this is the spoken word for the character 'Ø' (U+00d8) |
401 |
|
# |
402 |
1 |
chnames[u'\u00d8'] = _("O STROKE") |
403 |
|
|
404 |
|
# Translators: this is the spoken word for the character 'Ù' (U+00d9) |
405 |
|
# |
406 |
1 |
chnames[u'\u00d9'] = _("U GRAVE") |
407 |
|
|
408 |
|
# Translators: this is the spoken word for the character 'Ú' (U+00da) |
409 |
|
# |
410 |
1 |
chnames[u'\u00da'] = _("U ACUTE") |
411 |
|
|
412 |
|
# Translators: this is the spoken word for the character 'Û' (U+00db) |
413 |
|
# |
414 |
1 |
chnames[u'\u00db'] = _("U CIRCUMFLEX") |
415 |
|
|
416 |
|
# Translators: this is the spoken word for the character 'Ü' (U+00dc) |
417 |
|
# |
418 |
1 |
chnames[u'\u00dc'] = _("U UMLAUT") |
419 |
|
|
420 |
|
# Translators: this is the spoken word for the character 'Ý' (U+00dd) |
421 |
|
# |
422 |
1 |
chnames[u'\u00dd'] = _("Y ACUTE") |
423 |
|
|
424 |
|
# Translators: this is the spoken word for the character 'Þ' (U+00de) |
425 |
|
# |
426 |
1 |
chnames[u'\u00de'] = _("THORN") |
427 |
|
|
428 |
|
# Translators: this is the spoken word for the character 'ß' (U+00df) |
429 |
|
# |
430 |
1 |
chnames[u'\u00df'] = _("s sharp") |
431 |
|
|
432 |
|
# Translators: this is the spoken word for the character 'à' (U+00e0) |
433 |
|
# |
434 |
1 |
chnames[u'\u00e0'] = _("a grave") |
435 |
|
|
436 |
|
# Translators: this is the spoken word for the character 'â' (U+00e2) |
437 |
|
# |
438 |
1 |
chnames[u'\u00e2'] = _("a circumflex") |
439 |
|
|
440 |
|
# Translators: this is the spoken word for the character 'ã' (U+00e3) |
441 |
|
# |
442 |
1 |
chnames[u'\u00e3'] = _("a tilde") |
443 |
|
|
444 |
|
# Translators: this is the spoken word for the character 'ä' (U+00e4) |
445 |
|
# |
446 |
1 |
chnames[u'\u00e4'] = _("a umlaut") |
447 |
|
|
448 |
|
# Translators: this is the spoken word for the character 'å' (U+00e5) |
449 |
|
# |
450 |
1 |
chnames[u'\u00e5'] = _("a ring") |
451 |
|
|
452 |
|
# Translators: this is the spoken word for the character 'æ' (U+00e6) |
453 |
|
# |
454 |
1 |
chnames[u'\u00e6'] = _("a e") |
455 |
|
|
456 |
|
# Translators: this is the spoken word for the character 'ç' (U+00e7) |
457 |
|
# |
458 |
1 |
chnames[u'\u00e7'] = _("c cedilla") |
459 |
|
|
460 |
|
# Translators: this is the spoken word for the character 'è' (U+00e8) |
461 |
|
# |
462 |
1 |
chnames[u'\u00e8'] = _("e grave") |
463 |
|
|
464 |
|
# Translators: this is the spoken word for the character 'é' (U+00e9) |
465 |
|
# |
466 |
1 |
chnames[u'\u00e9'] = _("e acute") |
467 |
|
|
468 |
|
# Translators: this is the spoken word for the character 'ê' (U+00ea) |
469 |
|
# |
470 |
1 |
chnames[u'\u00ea'] = _("e circumflex") |
471 |
|
|
472 |
|
# Translators: this is the spoken word for the character 'ë' (U+00eb) |
473 |
|
# |
474 |
1 |
chnames[u'\u00eb'] = _("e umlaut") |
475 |
|
|
476 |
|
# Translators: this is the spoken word for the character 'ì' (U+00ec) |
477 |
|
# |
478 |
1 |
chnames[u'\u00ec'] = _("i grave") |
479 |
|
|
480 |
|
# Translators: this is the spoken word for the character 'í' (U+00ed) |
481 |
|
# |
482 |
1 |
chnames[u'\u00ed'] = _("i acute") |
483 |
|
|
484 |
|
# Translators: this is the spoken word for the character 'î' (U+00ee) |
485 |
|
# |
486 |
1 |
chnames[u'\u00ee'] = _("i circumflex") |
487 |
|
|
488 |
|
# Translators: this is the spoken word for the character 'ï' (U+00ef) |
489 |
|
# |
490 |
1 |
chnames[u'\u00ef'] = _("i umlaut") |
491 |
|
|
492 |
|
# Translators: this is the spoken word for the character 'ð' (U+00f0) |
493 |
|
# |
494 |
1 |
chnames[u'\u00f0'] = _("eth") |
495 |
|
|
496 |
|
# Translators: this is the spoken word for the character 'ñ' (U+00f1) |
497 |
|
# |
498 |
1 |
chnames[u'\u00f1'] = _("n tilde") |
499 |
|
|
500 |
|
# Translators: this is the spoken word for the character 'ò' (U+00f2) |
501 |
|
# |
502 |
1 |
chnames[u'\u00f2'] = _("o grave") |
503 |
|
|
504 |
|
# Translators: this is the spoken word for the character 'ó' (U+00f3) |
505 |
|
# |
506 |
1 |
chnames[u'\u00f3'] = _("o acute") |
507 |
|
|
508 |
|
# Translators: this is the spoken word for the character 'ô' (U+00f4) |
509 |
|
# |
510 |
1 |
chnames[u'\u00f4'] = _("o circumflex") |
511 |
|
|
512 |
|
# Translators: this is the spoken word for the character 'õ' (U+00f5) |
513 |
|
# |
514 |
1 |
chnames[u'\u00f5'] = _("o tilde") |
515 |
|
|
516 |
|
# Translators: this is the spoken word for the character 'ö' (U+00f6) |
517 |
|
# |
518 |
1 |
chnames[u'\u00f6'] = _("o umlaut") |
519 |
|
|
520 |
|
# Translators: this is the spoken word for the character '÷' (U+00f7) |
521 |
|
# |
522 |
1 |
chnames[u'\u00f7'] = _("divided by") |
523 |
|
|
524 |
|
# Translators: this is the spoken word for the character 'ø' (U+00f8) |
525 |
|
# |
526 |
1 |
chnames[u'\u00f8'] = _("o stroke") |
527 |
|
|
528 |
|
# Translators: this is the spoken word for the character 'þ' (U+00fe) |
529 |
|
# |
530 |
1 |
chnames[u'\u00fe'] = _("thorn") |
531 |
|
|
532 |
|
# Translators: this is the spoken word for the character 'ú' (U+00fa) |
533 |
|
# |
534 |
1 |
chnames[u'\u00fa'] = _("u acute") |
535 |
|
|
536 |
|
# Translators: this is the spoken word for the character 'ù' (U+00f9) |
537 |
|
# |
538 |
1 |
chnames[u'\u00f9'] = _("u grave") |
539 |
|
|
540 |
|
# Translators: this is the spoken word for the character 'û' (U+00fb) |
541 |
|
# |
542 |
1 |
chnames[u'\u00fb'] = _("u circumflex") |
543 |
|
|
544 |
|
# Translators: this is the spoken word for the character 'ü' (U+00fc) |
545 |
|
# |
546 |
1 |
chnames[u'\u00fc'] = _("u umlaut") |
547 |
|
|
548 |
|
# Translators: this is the spoken word for the character 'ý' (U+00fd) |
549 |
|
# |
550 |
1 |
chnames[u'\u00fd'] = _("y acute") |
551 |
|
|
552 |
|
# Translators: this is the spoken word for the character 'ÿ' (U+00ff) |
553 |
|
# |
554 |
1 |
chnames[u'\u00ff'] = _("y umlaut") |
555 |
|
|
556 |
|
# Translators: this is the spoken word for the character 'Ÿ' (U+0178) |
557 |
|
# |
558 |
1 |
chnames[u'\u0178'] = _("Y UMLAUT") |
559 |
|
|
560 |
|
# Translators: this is the spoken word for the character 'ƒ' (U+0192) |
561 |
|
# |
562 |
1 |
chnames[u'\u0192'] = _("florin") |
563 |
|
|
564 |
|
# Translators: this is the spoken word for the character '–' (U+2013) |
565 |
|
# |
566 |
1 |
chnames[u'\u2013'] = _("en dash") |
567 |
|
|
568 |
|
# Translators: this is the spoken word for the left single quote: ‘ |
569 |
|
# (U+2018) |
570 |
|
# |
571 |
1 |
chnames[u'\u2018'] = _("left single quote") |
572 |
|
|
573 |
|
# Translators: this is the spoken word for the right single quote: ’ |
574 |
|
# (U+2019) |
575 |
|
# |
576 |
1 |
chnames[u'\u2019'] = _("right single quote") |
577 |
|
|
578 |
|
# Translators: this is the spoken word for the character '“' (U+201c) |
579 |
|
# |
580 |
1 |
chnames[u'\u201c'] = _("left double quote") |
581 |
|
|
582 |
|
# Translators: this is the spoken word for the character '”' (U+201d) |
583 |
|
# |
584 |
1 |
chnames[u'\u201d'] = _("right double quote") |
585 |
|
|
586 |
|
# Translators: this is the spoken word for the character '†' (U+2020) |
587 |
|
# |
588 |
1 |
chnames[u'\u2020'] = _("dagger") |
589 |
|
|
590 |
|
# Translators: this is the spoken word for the character '‡' (U+2021) |
591 |
|
# |
592 |
1 |
chnames[u'\u2021'] = _("double dagger") |
593 |
|
|
594 |
|
# Translators: this is the spoken word for the character '•' (U+2022) |
595 |
|
# |
596 |
1 |
chnames[u'\u2022'] = _("bullet") |
597 |
|
|
598 |
|
# Translators: this is the spoken word for the character '‣' (U+2023) |
599 |
|
# |
600 |
1 |
chnames[u'\u2023'] = _("triangular bullet") |
601 |
|
|
602 |
|
# Translators: this is the spoken word for the character '‰' (U+2030) |
603 |
|
# |
604 |
1 |
chnames[u'\u2030'] = _("per mille") |
605 |
|
|
606 |
|
# Translators: this is the spoken word for the character '′' (U+2032) |
607 |
|
# |
608 |
1 |
chnames[u'\u2032'] = _("prime") |
609 |
|
|
610 |
|
# Translators: this is the spoken word for the character '″' (U+2033) |
611 |
|
# |
612 |
1 |
chnames[u'\u2033'] = _("double prime") |
613 |
|
|
614 |
|
# Translators: this is the spoken word for the character '⁃' (U+2043) |
615 |
|
# |
616 |
1 |
chnames[u'\u2043'] = _("hyphen bullet") |
617 |
|
|
618 |
|
# Translators: this is the spoken word for the character '€' (U+20ac) |
619 |
|
# |
620 |
1 |
chnames[u'\u20ac'] = _("euro") |
621 |
|
|
622 |
|
# Translators: this is the spoken word for the character '™' (U+2122) |
623 |
|
# |
624 |
1 |
chnames[u'\u2122'] = _("trademark") |
625 |
|
|
626 |
|
# Translators: this is the spoken word for the character '≈' (U+2248) |
627 |
|
# |
628 |
1 |
chnames[u'\u2248'] = _("almost equal to") |
629 |
|
|
630 |
|
# Translators: this is the spoken word for the character '≠' (U+2260) |
631 |
|
# |
632 |
1 |
chnames[u'\u2260'] = _("not equal to") |
633 |
|
|
634 |
|
# Translators: this is the spoken word for the character '≤' (U+2264) |
635 |
|
# |
636 |
1 |
chnames[u'\u2264'] = _("less than or equal to") |
637 |
|
|
638 |
|
# Translators: this is the spoken word for the character '≥' (U+2265) |
639 |
|
# |
640 |
1 |
chnames[u'\u2265'] = _("greater than or equal to") |
641 |
|
|
642 |
|
# Translators: this is the spoken word for the character '√' (U+221a) |
643 |
|
# |
644 |
1 |
chnames[u'\u221a'] = _("square root") |
645 |
|
|
646 |
|
# Translators: this is the spoken word for the character '∛' (U+221b) |
647 |
|
# |
648 |
1 |
chnames[u'\u221b'] = _("cube root") |
649 |
|
|
650 |
|
# Translators: this is the spoken word for the character '∞' (U+221e) |
651 |
|
# |
652 |
1 |
chnames[u'\u221e'] = _("infinity") |
653 |
|
|
654 |
|
# Translators: this is the spoken word for the character '■' (U+25a0) |
655 |
|
# It can be used as a bullet in a list. |
656 |
|
# |
657 |
1 |
chnames[u'\u25a0'] = _("black square") |
658 |
|
|
659 |
|
# Translators: this is the spoken word for the character '□' (U+25a1) |
660 |
|
# It can be used as a bullet in a list. |
661 |
|
# |
662 |
1 |
chnames[u'\u25a1'] = _("white square") |
663 |
|
|
664 |
|
# Translators: this is the spoken word for the character '◆' (U+25c6) |
665 |
|
# It can be used as a bullet in a list. |
666 |
|
# |
667 |
1 |
chnames[u'\u25c6'] = _("black diamond") |
668 |
|
|
669 |
|
# Translators: this is the spoken word for the character '○' (U+25cb) |
670 |
|
# It can be used as a bullet in a list. |
671 |
|
# |
672 |
1 |
chnames[u'\u25cb'] = _("white circle") |
673 |
|
|
674 |
|
# Translators: this is the spoken word for the character '●' (U+25cf) |
675 |
|
# It can be used as a bullet in a list. |
676 |
|
# |
677 |
1 |
chnames[u'\u25cf'] = _("black circle") |
678 |
|
|
679 |
|
# Translators: this is the spoken word for the character '◦' (U+25e6) |
680 |
|
# |
681 |
1 |
chnames[u'\u25e6'] = _("white bullet") |
682 |
|
|
683 |
|
# Translators: this is the spoken word for the character '✓' (U+2713) |
684 |
|
# It can be used as a bullet in a list. |
685 |
|
# |
686 |
1 |
chnames[u'\u2713'] = _("check mark") |
687 |
|
|
688 |
|
# Translators: this is the spoken word for the character '✔' (U+2714) |
689 |
|
# It can be used as a bullet in a list. |
690 |
|
# |
691 |
1 |
chnames[u'\u2714'] = _("heavy check mark") |
692 |
|
|
693 |
|
# Translators: this is the spoken word for the character 'x' (U+2717) |
694 |
|
# This symbol is included here because it can be used as a bullet in |
695 |
|
# an OOo list. The goal is to inform the user of the appearance of |
696 |
|
# the bullet, while making it clear that it is a bullet and not simply |
697 |
|
# the typed letter 'x'. "Ballot x" might confuse the user. Hence the |
698 |
|
# use of "x-shaped bullet". |
699 |
|
# |
700 |
1 |
chnames[u'\u2717'] = _("x-shaped bullet") |
701 |
|
|
702 |
|
# Translators: this is the spoken word for the character '➔' (U+2794) |
703 |
|
# This symbol is included here because it can be used as a bullet in |
704 |
|
# an OOo list. The goal is to inform the user of the appearance of |
705 |
|
# the bullet without too much verbiage, hence simply "right-pointing arrow". |
706 |
|
# |
707 |
1 |
chnames[u'\u2974'] = _("right-pointing arrow") |
708 |
|
|
709 |
|
# Translators: this is the spoken word for the character '➢' (U+27a2) |
710 |
|
# This symbol is included here because it can be used as a bullet in an |
711 |
|
# OOo list. The goal is to inform the user of the appearance of the bullet |
712 |
|
# without too much verbiage, hence simply "right-pointing arrowhead". |
713 |
|
# |
714 |
1 |
chnames[u'\u27a2'] = _("right-pointing arrowhead") |
715 |
|
|
716 |
|
# Translators: StarOffice/OOo includes private-use unicode character U+E00A |
717 |
|
# as a bullet which looks like the black square: ■ (U+25A0). Therefore, |
718 |
|
# please use the same translation for this character. |
719 |
|
# |
720 |
1 |
chnames[u'\ue00a'] = _("black square") |
721 |
|
|
722 |
|
# Translators: StarOffice/OOo includes private-use unicode character U+E00C |
723 |
|
# as a bullet which looks like the black diamond: ◆ (U+25C6). Therefore, |
724 |
|
# please use the same translation for this character. |
725 |
|
# |
726 |
1 |
chnames[u'\ue00c'] = _("black diamond") |
727 |
|
|
728 |
1 |
def getCharacterName(character): |
729 |
|
"""Given a character, return its name as people might refer to it |
730 |
|
in ordinary conversation. |
731 |
|
|
732 |
|
Arguments: |
733 |
|
- character: the character to get the name for |
734 |
|
|
735 |
|
Returns a string representing the name for the character |
736 |
|
""" |
737 |
|
|
738 |
13 |
if not isinstance(character, unicode): |
739 |
13 |
character = character.decode("UTF-8") |
740 |
|
|
741 |
13 |
try: |
742 |
13 |
return chnames[character] |
743 |
9 |
except: |
744 |
9 |
return character |