mac_arabic.py 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698
  1. """ Python Character Mapping Codec generated from 'VENDORS/APPLE/ARABIC.TXT' with gencodec.py.
  2. """#"
  3. import codecs
  4. ### Codec APIs
  5. class Codec(codecs.Codec):
  6. def encode(self,input,errors='strict'):
  7. return codecs.charmap_encode(input,errors,encoding_map)
  8. def decode(self,input,errors='strict'):
  9. return codecs.charmap_decode(input,errors,decoding_table)
  10. class IncrementalEncoder(codecs.IncrementalEncoder):
  11. def encode(self, input, final=False):
  12. return codecs.charmap_encode(input,self.errors,encoding_map)[0]
  13. class IncrementalDecoder(codecs.IncrementalDecoder):
  14. def decode(self, input, final=False):
  15. return codecs.charmap_decode(input,self.errors,decoding_table)[0]
  16. class StreamWriter(Codec,codecs.StreamWriter):
  17. pass
  18. class StreamReader(Codec,codecs.StreamReader):
  19. pass
  20. ### encodings module API
  21. def getregentry():
  22. return codecs.CodecInfo(
  23. name='mac-arabic',
  24. encode=Codec().encode,
  25. decode=Codec().decode,
  26. incrementalencoder=IncrementalEncoder,
  27. incrementaldecoder=IncrementalDecoder,
  28. streamreader=StreamReader,
  29. streamwriter=StreamWriter,
  30. )
  31. ### Decoding Map
  32. decoding_map = codecs.make_identity_dict(range(256))
  33. decoding_map.update({
  34. 0x0080: 0x00c4, # LATIN CAPITAL LETTER A WITH DIAERESIS
  35. 0x0081: 0x00a0, # NO-BREAK SPACE, right-left
  36. 0x0082: 0x00c7, # LATIN CAPITAL LETTER C WITH CEDILLA
  37. 0x0083: 0x00c9, # LATIN CAPITAL LETTER E WITH ACUTE
  38. 0x0084: 0x00d1, # LATIN CAPITAL LETTER N WITH TILDE
  39. 0x0085: 0x00d6, # LATIN CAPITAL LETTER O WITH DIAERESIS
  40. 0x0086: 0x00dc, # LATIN CAPITAL LETTER U WITH DIAERESIS
  41. 0x0087: 0x00e1, # LATIN SMALL LETTER A WITH ACUTE
  42. 0x0088: 0x00e0, # LATIN SMALL LETTER A WITH GRAVE
  43. 0x0089: 0x00e2, # LATIN SMALL LETTER A WITH CIRCUMFLEX
  44. 0x008a: 0x00e4, # LATIN SMALL LETTER A WITH DIAERESIS
  45. 0x008b: 0x06ba, # ARABIC LETTER NOON GHUNNA
  46. 0x008c: 0x00ab, # LEFT-POINTING DOUBLE ANGLE QUOTATION MARK, right-left
  47. 0x008d: 0x00e7, # LATIN SMALL LETTER C WITH CEDILLA
  48. 0x008e: 0x00e9, # LATIN SMALL LETTER E WITH ACUTE
  49. 0x008f: 0x00e8, # LATIN SMALL LETTER E WITH GRAVE
  50. 0x0090: 0x00ea, # LATIN SMALL LETTER E WITH CIRCUMFLEX
  51. 0x0091: 0x00eb, # LATIN SMALL LETTER E WITH DIAERESIS
  52. 0x0092: 0x00ed, # LATIN SMALL LETTER I WITH ACUTE
  53. 0x0093: 0x2026, # HORIZONTAL ELLIPSIS, right-left
  54. 0x0094: 0x00ee, # LATIN SMALL LETTER I WITH CIRCUMFLEX
  55. 0x0095: 0x00ef, # LATIN SMALL LETTER I WITH DIAERESIS
  56. 0x0096: 0x00f1, # LATIN SMALL LETTER N WITH TILDE
  57. 0x0097: 0x00f3, # LATIN SMALL LETTER O WITH ACUTE
  58. 0x0098: 0x00bb, # RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK, right-left
  59. 0x0099: 0x00f4, # LATIN SMALL LETTER O WITH CIRCUMFLEX
  60. 0x009a: 0x00f6, # LATIN SMALL LETTER O WITH DIAERESIS
  61. 0x009b: 0x00f7, # DIVISION SIGN, right-left
  62. 0x009c: 0x00fa, # LATIN SMALL LETTER U WITH ACUTE
  63. 0x009d: 0x00f9, # LATIN SMALL LETTER U WITH GRAVE
  64. 0x009e: 0x00fb, # LATIN SMALL LETTER U WITH CIRCUMFLEX
  65. 0x009f: 0x00fc, # LATIN SMALL LETTER U WITH DIAERESIS
  66. 0x00a0: 0x0020, # SPACE, right-left
  67. 0x00a1: 0x0021, # EXCLAMATION MARK, right-left
  68. 0x00a2: 0x0022, # QUOTATION MARK, right-left
  69. 0x00a3: 0x0023, # NUMBER SIGN, right-left
  70. 0x00a4: 0x0024, # DOLLAR SIGN, right-left
  71. 0x00a5: 0x066a, # ARABIC PERCENT SIGN
  72. 0x00a6: 0x0026, # AMPERSAND, right-left
  73. 0x00a7: 0x0027, # APOSTROPHE, right-left
  74. 0x00a8: 0x0028, # LEFT PARENTHESIS, right-left
  75. 0x00a9: 0x0029, # RIGHT PARENTHESIS, right-left
  76. 0x00aa: 0x002a, # ASTERISK, right-left
  77. 0x00ab: 0x002b, # PLUS SIGN, right-left
  78. 0x00ac: 0x060c, # ARABIC COMMA
  79. 0x00ad: 0x002d, # HYPHEN-MINUS, right-left
  80. 0x00ae: 0x002e, # FULL STOP, right-left
  81. 0x00af: 0x002f, # SOLIDUS, right-left
  82. 0x00b0: 0x0660, # ARABIC-INDIC DIGIT ZERO, right-left (need override)
  83. 0x00b1: 0x0661, # ARABIC-INDIC DIGIT ONE, right-left (need override)
  84. 0x00b2: 0x0662, # ARABIC-INDIC DIGIT TWO, right-left (need override)
  85. 0x00b3: 0x0663, # ARABIC-INDIC DIGIT THREE, right-left (need override)
  86. 0x00b4: 0x0664, # ARABIC-INDIC DIGIT FOUR, right-left (need override)
  87. 0x00b5: 0x0665, # ARABIC-INDIC DIGIT FIVE, right-left (need override)
  88. 0x00b6: 0x0666, # ARABIC-INDIC DIGIT SIX, right-left (need override)
  89. 0x00b7: 0x0667, # ARABIC-INDIC DIGIT SEVEN, right-left (need override)
  90. 0x00b8: 0x0668, # ARABIC-INDIC DIGIT EIGHT, right-left (need override)
  91. 0x00b9: 0x0669, # ARABIC-INDIC DIGIT NINE, right-left (need override)
  92. 0x00ba: 0x003a, # COLON, right-left
  93. 0x00bb: 0x061b, # ARABIC SEMICOLON
  94. 0x00bc: 0x003c, # LESS-THAN SIGN, right-left
  95. 0x00bd: 0x003d, # EQUALS SIGN, right-left
  96. 0x00be: 0x003e, # GREATER-THAN SIGN, right-left
  97. 0x00bf: 0x061f, # ARABIC QUESTION MARK
  98. 0x00c0: 0x274a, # EIGHT TEARDROP-SPOKED PROPELLER ASTERISK, right-left
  99. 0x00c1: 0x0621, # ARABIC LETTER HAMZA
  100. 0x00c2: 0x0622, # ARABIC LETTER ALEF WITH MADDA ABOVE
  101. 0x00c3: 0x0623, # ARABIC LETTER ALEF WITH HAMZA ABOVE
  102. 0x00c4: 0x0624, # ARABIC LETTER WAW WITH HAMZA ABOVE
  103. 0x00c5: 0x0625, # ARABIC LETTER ALEF WITH HAMZA BELOW
  104. 0x00c6: 0x0626, # ARABIC LETTER YEH WITH HAMZA ABOVE
  105. 0x00c7: 0x0627, # ARABIC LETTER ALEF
  106. 0x00c8: 0x0628, # ARABIC LETTER BEH
  107. 0x00c9: 0x0629, # ARABIC LETTER TEH MARBUTA
  108. 0x00ca: 0x062a, # ARABIC LETTER TEH
  109. 0x00cb: 0x062b, # ARABIC LETTER THEH
  110. 0x00cc: 0x062c, # ARABIC LETTER JEEM
  111. 0x00cd: 0x062d, # ARABIC LETTER HAH
  112. 0x00ce: 0x062e, # ARABIC LETTER KHAH
  113. 0x00cf: 0x062f, # ARABIC LETTER DAL
  114. 0x00d0: 0x0630, # ARABIC LETTER THAL
  115. 0x00d1: 0x0631, # ARABIC LETTER REH
  116. 0x00d2: 0x0632, # ARABIC LETTER ZAIN
  117. 0x00d3: 0x0633, # ARABIC LETTER SEEN
  118. 0x00d4: 0x0634, # ARABIC LETTER SHEEN
  119. 0x00d5: 0x0635, # ARABIC LETTER SAD
  120. 0x00d6: 0x0636, # ARABIC LETTER DAD
  121. 0x00d7: 0x0637, # ARABIC LETTER TAH
  122. 0x00d8: 0x0638, # ARABIC LETTER ZAH
  123. 0x00d9: 0x0639, # ARABIC LETTER AIN
  124. 0x00da: 0x063a, # ARABIC LETTER GHAIN
  125. 0x00db: 0x005b, # LEFT SQUARE BRACKET, right-left
  126. 0x00dc: 0x005c, # REVERSE SOLIDUS, right-left
  127. 0x00dd: 0x005d, # RIGHT SQUARE BRACKET, right-left
  128. 0x00de: 0x005e, # CIRCUMFLEX ACCENT, right-left
  129. 0x00df: 0x005f, # LOW LINE, right-left
  130. 0x00e0: 0x0640, # ARABIC TATWEEL
  131. 0x00e1: 0x0641, # ARABIC LETTER FEH
  132. 0x00e2: 0x0642, # ARABIC LETTER QAF
  133. 0x00e3: 0x0643, # ARABIC LETTER KAF
  134. 0x00e4: 0x0644, # ARABIC LETTER LAM
  135. 0x00e5: 0x0645, # ARABIC LETTER MEEM
  136. 0x00e6: 0x0646, # ARABIC LETTER NOON
  137. 0x00e7: 0x0647, # ARABIC LETTER HEH
  138. 0x00e8: 0x0648, # ARABIC LETTER WAW
  139. 0x00e9: 0x0649, # ARABIC LETTER ALEF MAKSURA
  140. 0x00ea: 0x064a, # ARABIC LETTER YEH
  141. 0x00eb: 0x064b, # ARABIC FATHATAN
  142. 0x00ec: 0x064c, # ARABIC DAMMATAN
  143. 0x00ed: 0x064d, # ARABIC KASRATAN
  144. 0x00ee: 0x064e, # ARABIC FATHA
  145. 0x00ef: 0x064f, # ARABIC DAMMA
  146. 0x00f0: 0x0650, # ARABIC KASRA
  147. 0x00f1: 0x0651, # ARABIC SHADDA
  148. 0x00f2: 0x0652, # ARABIC SUKUN
  149. 0x00f3: 0x067e, # ARABIC LETTER PEH
  150. 0x00f4: 0x0679, # ARABIC LETTER TTEH
  151. 0x00f5: 0x0686, # ARABIC LETTER TCHEH
  152. 0x00f6: 0x06d5, # ARABIC LETTER AE
  153. 0x00f7: 0x06a4, # ARABIC LETTER VEH
  154. 0x00f8: 0x06af, # ARABIC LETTER GAF
  155. 0x00f9: 0x0688, # ARABIC LETTER DDAL
  156. 0x00fa: 0x0691, # ARABIC LETTER RREH
  157. 0x00fb: 0x007b, # LEFT CURLY BRACKET, right-left
  158. 0x00fc: 0x007c, # VERTICAL LINE, right-left
  159. 0x00fd: 0x007d, # RIGHT CURLY BRACKET, right-left
  160. 0x00fe: 0x0698, # ARABIC LETTER JEH
  161. 0x00ff: 0x06d2, # ARABIC LETTER YEH BARREE
  162. })
  163. ### Decoding Table
  164. decoding_table = (
  165. '\x00' # 0x0000 -> CONTROL CHARACTER
  166. '\x01' # 0x0001 -> CONTROL CHARACTER
  167. '\x02' # 0x0002 -> CONTROL CHARACTER
  168. '\x03' # 0x0003 -> CONTROL CHARACTER
  169. '\x04' # 0x0004 -> CONTROL CHARACTER
  170. '\x05' # 0x0005 -> CONTROL CHARACTER
  171. '\x06' # 0x0006 -> CONTROL CHARACTER
  172. '\x07' # 0x0007 -> CONTROL CHARACTER
  173. '\x08' # 0x0008 -> CONTROL CHARACTER
  174. '\t' # 0x0009 -> CONTROL CHARACTER
  175. '\n' # 0x000a -> CONTROL CHARACTER
  176. '\x0b' # 0x000b -> CONTROL CHARACTER
  177. '\x0c' # 0x000c -> CONTROL CHARACTER
  178. '\r' # 0x000d -> CONTROL CHARACTER
  179. '\x0e' # 0x000e -> CONTROL CHARACTER
  180. '\x0f' # 0x000f -> CONTROL CHARACTER
  181. '\x10' # 0x0010 -> CONTROL CHARACTER
  182. '\x11' # 0x0011 -> CONTROL CHARACTER
  183. '\x12' # 0x0012 -> CONTROL CHARACTER
  184. '\x13' # 0x0013 -> CONTROL CHARACTER
  185. '\x14' # 0x0014 -> CONTROL CHARACTER
  186. '\x15' # 0x0015 -> CONTROL CHARACTER
  187. '\x16' # 0x0016 -> CONTROL CHARACTER
  188. '\x17' # 0x0017 -> CONTROL CHARACTER
  189. '\x18' # 0x0018 -> CONTROL CHARACTER
  190. '\x19' # 0x0019 -> CONTROL CHARACTER
  191. '\x1a' # 0x001a -> CONTROL CHARACTER
  192. '\x1b' # 0x001b -> CONTROL CHARACTER
  193. '\x1c' # 0x001c -> CONTROL CHARACTER
  194. '\x1d' # 0x001d -> CONTROL CHARACTER
  195. '\x1e' # 0x001e -> CONTROL CHARACTER
  196. '\x1f' # 0x001f -> CONTROL CHARACTER
  197. ' ' # 0x0020 -> SPACE, left-right
  198. '!' # 0x0021 -> EXCLAMATION MARK, left-right
  199. '"' # 0x0022 -> QUOTATION MARK, left-right
  200. '#' # 0x0023 -> NUMBER SIGN, left-right
  201. '$' # 0x0024 -> DOLLAR SIGN, left-right
  202. '%' # 0x0025 -> PERCENT SIGN, left-right
  203. '&' # 0x0026 -> AMPERSAND, left-right
  204. "'" # 0x0027 -> APOSTROPHE, left-right
  205. '(' # 0x0028 -> LEFT PARENTHESIS, left-right
  206. ')' # 0x0029 -> RIGHT PARENTHESIS, left-right
  207. '*' # 0x002a -> ASTERISK, left-right
  208. '+' # 0x002b -> PLUS SIGN, left-right
  209. ',' # 0x002c -> COMMA, left-right; in Arabic-script context, displayed as 0x066C ARABIC THOUSANDS SEPARATOR
  210. '-' # 0x002d -> HYPHEN-MINUS, left-right
  211. '.' # 0x002e -> FULL STOP, left-right; in Arabic-script context, displayed as 0x066B ARABIC DECIMAL SEPARATOR
  212. '/' # 0x002f -> SOLIDUS, left-right
  213. '0' # 0x0030 -> DIGIT ZERO; in Arabic-script context, displayed as 0x0660 ARABIC-INDIC DIGIT ZERO
  214. '1' # 0x0031 -> DIGIT ONE; in Arabic-script context, displayed as 0x0661 ARABIC-INDIC DIGIT ONE
  215. '2' # 0x0032 -> DIGIT TWO; in Arabic-script context, displayed as 0x0662 ARABIC-INDIC DIGIT TWO
  216. '3' # 0x0033 -> DIGIT THREE; in Arabic-script context, displayed as 0x0663 ARABIC-INDIC DIGIT THREE
  217. '4' # 0x0034 -> DIGIT FOUR; in Arabic-script context, displayed as 0x0664 ARABIC-INDIC DIGIT FOUR
  218. '5' # 0x0035 -> DIGIT FIVE; in Arabic-script context, displayed as 0x0665 ARABIC-INDIC DIGIT FIVE
  219. '6' # 0x0036 -> DIGIT SIX; in Arabic-script context, displayed as 0x0666 ARABIC-INDIC DIGIT SIX
  220. '7' # 0x0037 -> DIGIT SEVEN; in Arabic-script context, displayed as 0x0667 ARABIC-INDIC DIGIT SEVEN
  221. '8' # 0x0038 -> DIGIT EIGHT; in Arabic-script context, displayed as 0x0668 ARABIC-INDIC DIGIT EIGHT
  222. '9' # 0x0039 -> DIGIT NINE; in Arabic-script context, displayed as 0x0669 ARABIC-INDIC DIGIT NINE
  223. ':' # 0x003a -> COLON, left-right
  224. ';' # 0x003b -> SEMICOLON, left-right
  225. '<' # 0x003c -> LESS-THAN SIGN, left-right
  226. '=' # 0x003d -> EQUALS SIGN, left-right
  227. '>' # 0x003e -> GREATER-THAN SIGN, left-right
  228. '?' # 0x003f -> QUESTION MARK, left-right
  229. '@' # 0x0040 -> COMMERCIAL AT
  230. 'A' # 0x0041 -> LATIN CAPITAL LETTER A
  231. 'B' # 0x0042 -> LATIN CAPITAL LETTER B
  232. 'C' # 0x0043 -> LATIN CAPITAL LETTER C
  233. 'D' # 0x0044 -> LATIN CAPITAL LETTER D
  234. 'E' # 0x0045 -> LATIN CAPITAL LETTER E
  235. 'F' # 0x0046 -> LATIN CAPITAL LETTER F
  236. 'G' # 0x0047 -> LATIN CAPITAL LETTER G
  237. 'H' # 0x0048 -> LATIN CAPITAL LETTER H
  238. 'I' # 0x0049 -> LATIN CAPITAL LETTER I
  239. 'J' # 0x004a -> LATIN CAPITAL LETTER J
  240. 'K' # 0x004b -> LATIN CAPITAL LETTER K
  241. 'L' # 0x004c -> LATIN CAPITAL LETTER L
  242. 'M' # 0x004d -> LATIN CAPITAL LETTER M
  243. 'N' # 0x004e -> LATIN CAPITAL LETTER N
  244. 'O' # 0x004f -> LATIN CAPITAL LETTER O
  245. 'P' # 0x0050 -> LATIN CAPITAL LETTER P
  246. 'Q' # 0x0051 -> LATIN CAPITAL LETTER Q
  247. 'R' # 0x0052 -> LATIN CAPITAL LETTER R
  248. 'S' # 0x0053 -> LATIN CAPITAL LETTER S
  249. 'T' # 0x0054 -> LATIN CAPITAL LETTER T
  250. 'U' # 0x0055 -> LATIN CAPITAL LETTER U
  251. 'V' # 0x0056 -> LATIN CAPITAL LETTER V
  252. 'W' # 0x0057 -> LATIN CAPITAL LETTER W
  253. 'X' # 0x0058 -> LATIN CAPITAL LETTER X
  254. 'Y' # 0x0059 -> LATIN CAPITAL LETTER Y
  255. 'Z' # 0x005a -> LATIN CAPITAL LETTER Z
  256. '[' # 0x005b -> LEFT SQUARE BRACKET, left-right
  257. '\\' # 0x005c -> REVERSE SOLIDUS, left-right
  258. ']' # 0x005d -> RIGHT SQUARE BRACKET, left-right
  259. '^' # 0x005e -> CIRCUMFLEX ACCENT, left-right
  260. '_' # 0x005f -> LOW LINE, left-right
  261. '`' # 0x0060 -> GRAVE ACCENT
  262. 'a' # 0x0061 -> LATIN SMALL LETTER A
  263. 'b' # 0x0062 -> LATIN SMALL LETTER B
  264. 'c' # 0x0063 -> LATIN SMALL LETTER C
  265. 'd' # 0x0064 -> LATIN SMALL LETTER D
  266. 'e' # 0x0065 -> LATIN SMALL LETTER E
  267. 'f' # 0x0066 -> LATIN SMALL LETTER F
  268. 'g' # 0x0067 -> LATIN SMALL LETTER G
  269. 'h' # 0x0068 -> LATIN SMALL LETTER H
  270. 'i' # 0x0069 -> LATIN SMALL LETTER I
  271. 'j' # 0x006a -> LATIN SMALL LETTER J
  272. 'k' # 0x006b -> LATIN SMALL LETTER K
  273. 'l' # 0x006c -> LATIN SMALL LETTER L
  274. 'm' # 0x006d -> LATIN SMALL LETTER M
  275. 'n' # 0x006e -> LATIN SMALL LETTER N
  276. 'o' # 0x006f -> LATIN SMALL LETTER O
  277. 'p' # 0x0070 -> LATIN SMALL LETTER P
  278. 'q' # 0x0071 -> LATIN SMALL LETTER Q
  279. 'r' # 0x0072 -> LATIN SMALL LETTER R
  280. 's' # 0x0073 -> LATIN SMALL LETTER S
  281. 't' # 0x0074 -> LATIN SMALL LETTER T
  282. 'u' # 0x0075 -> LATIN SMALL LETTER U
  283. 'v' # 0x0076 -> LATIN SMALL LETTER V
  284. 'w' # 0x0077 -> LATIN SMALL LETTER W
  285. 'x' # 0x0078 -> LATIN SMALL LETTER X
  286. 'y' # 0x0079 -> LATIN SMALL LETTER Y
  287. 'z' # 0x007a -> LATIN SMALL LETTER Z
  288. '{' # 0x007b -> LEFT CURLY BRACKET, left-right
  289. '|' # 0x007c -> VERTICAL LINE, left-right
  290. '}' # 0x007d -> RIGHT CURLY BRACKET, left-right
  291. '~' # 0x007e -> TILDE
  292. '\x7f' # 0x007f -> CONTROL CHARACTER
  293. '\xc4' # 0x0080 -> LATIN CAPITAL LETTER A WITH DIAERESIS
  294. '\xa0' # 0x0081 -> NO-BREAK SPACE, right-left
  295. '\xc7' # 0x0082 -> LATIN CAPITAL LETTER C WITH CEDILLA
  296. '\xc9' # 0x0083 -> LATIN CAPITAL LETTER E WITH ACUTE
  297. '\xd1' # 0x0084 -> LATIN CAPITAL LETTER N WITH TILDE
  298. '\xd6' # 0x0085 -> LATIN CAPITAL LETTER O WITH DIAERESIS
  299. '\xdc' # 0x0086 -> LATIN CAPITAL LETTER U WITH DIAERESIS
  300. '\xe1' # 0x0087 -> LATIN SMALL LETTER A WITH ACUTE
  301. '\xe0' # 0x0088 -> LATIN SMALL LETTER A WITH GRAVE
  302. '\xe2' # 0x0089 -> LATIN SMALL LETTER A WITH CIRCUMFLEX
  303. '\xe4' # 0x008a -> LATIN SMALL LETTER A WITH DIAERESIS
  304. '\u06ba' # 0x008b -> ARABIC LETTER NOON GHUNNA
  305. '\xab' # 0x008c -> LEFT-POINTING DOUBLE ANGLE QUOTATION MARK, right-left
  306. '\xe7' # 0x008d -> LATIN SMALL LETTER C WITH CEDILLA
  307. '\xe9' # 0x008e -> LATIN SMALL LETTER E WITH ACUTE
  308. '\xe8' # 0x008f -> LATIN SMALL LETTER E WITH GRAVE
  309. '\xea' # 0x0090 -> LATIN SMALL LETTER E WITH CIRCUMFLEX
  310. '\xeb' # 0x0091 -> LATIN SMALL LETTER E WITH DIAERESIS
  311. '\xed' # 0x0092 -> LATIN SMALL LETTER I WITH ACUTE
  312. '\u2026' # 0x0093 -> HORIZONTAL ELLIPSIS, right-left
  313. '\xee' # 0x0094 -> LATIN SMALL LETTER I WITH CIRCUMFLEX
  314. '\xef' # 0x0095 -> LATIN SMALL LETTER I WITH DIAERESIS
  315. '\xf1' # 0x0096 -> LATIN SMALL LETTER N WITH TILDE
  316. '\xf3' # 0x0097 -> LATIN SMALL LETTER O WITH ACUTE
  317. '\xbb' # 0x0098 -> RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK, right-left
  318. '\xf4' # 0x0099 -> LATIN SMALL LETTER O WITH CIRCUMFLEX
  319. '\xf6' # 0x009a -> LATIN SMALL LETTER O WITH DIAERESIS
  320. '\xf7' # 0x009b -> DIVISION SIGN, right-left
  321. '\xfa' # 0x009c -> LATIN SMALL LETTER U WITH ACUTE
  322. '\xf9' # 0x009d -> LATIN SMALL LETTER U WITH GRAVE
  323. '\xfb' # 0x009e -> LATIN SMALL LETTER U WITH CIRCUMFLEX
  324. '\xfc' # 0x009f -> LATIN SMALL LETTER U WITH DIAERESIS
  325. ' ' # 0x00a0 -> SPACE, right-left
  326. '!' # 0x00a1 -> EXCLAMATION MARK, right-left
  327. '"' # 0x00a2 -> QUOTATION MARK, right-left
  328. '#' # 0x00a3 -> NUMBER SIGN, right-left
  329. '$' # 0x00a4 -> DOLLAR SIGN, right-left
  330. '\u066a' # 0x00a5 -> ARABIC PERCENT SIGN
  331. '&' # 0x00a6 -> AMPERSAND, right-left
  332. "'" # 0x00a7 -> APOSTROPHE, right-left
  333. '(' # 0x00a8 -> LEFT PARENTHESIS, right-left
  334. ')' # 0x00a9 -> RIGHT PARENTHESIS, right-left
  335. '*' # 0x00aa -> ASTERISK, right-left
  336. '+' # 0x00ab -> PLUS SIGN, right-left
  337. '\u060c' # 0x00ac -> ARABIC COMMA
  338. '-' # 0x00ad -> HYPHEN-MINUS, right-left
  339. '.' # 0x00ae -> FULL STOP, right-left
  340. '/' # 0x00af -> SOLIDUS, right-left
  341. '\u0660' # 0x00b0 -> ARABIC-INDIC DIGIT ZERO, right-left (need override)
  342. '\u0661' # 0x00b1 -> ARABIC-INDIC DIGIT ONE, right-left (need override)
  343. '\u0662' # 0x00b2 -> ARABIC-INDIC DIGIT TWO, right-left (need override)
  344. '\u0663' # 0x00b3 -> ARABIC-INDIC DIGIT THREE, right-left (need override)
  345. '\u0664' # 0x00b4 -> ARABIC-INDIC DIGIT FOUR, right-left (need override)
  346. '\u0665' # 0x00b5 -> ARABIC-INDIC DIGIT FIVE, right-left (need override)
  347. '\u0666' # 0x00b6 -> ARABIC-INDIC DIGIT SIX, right-left (need override)
  348. '\u0667' # 0x00b7 -> ARABIC-INDIC DIGIT SEVEN, right-left (need override)
  349. '\u0668' # 0x00b8 -> ARABIC-INDIC DIGIT EIGHT, right-left (need override)
  350. '\u0669' # 0x00b9 -> ARABIC-INDIC DIGIT NINE, right-left (need override)
  351. ':' # 0x00ba -> COLON, right-left
  352. '\u061b' # 0x00bb -> ARABIC SEMICOLON
  353. '<' # 0x00bc -> LESS-THAN SIGN, right-left
  354. '=' # 0x00bd -> EQUALS SIGN, right-left
  355. '>' # 0x00be -> GREATER-THAN SIGN, right-left
  356. '\u061f' # 0x00bf -> ARABIC QUESTION MARK
  357. '\u274a' # 0x00c0 -> EIGHT TEARDROP-SPOKED PROPELLER ASTERISK, right-left
  358. '\u0621' # 0x00c1 -> ARABIC LETTER HAMZA
  359. '\u0622' # 0x00c2 -> ARABIC LETTER ALEF WITH MADDA ABOVE
  360. '\u0623' # 0x00c3 -> ARABIC LETTER ALEF WITH HAMZA ABOVE
  361. '\u0624' # 0x00c4 -> ARABIC LETTER WAW WITH HAMZA ABOVE
  362. '\u0625' # 0x00c5 -> ARABIC LETTER ALEF WITH HAMZA BELOW
  363. '\u0626' # 0x00c6 -> ARABIC LETTER YEH WITH HAMZA ABOVE
  364. '\u0627' # 0x00c7 -> ARABIC LETTER ALEF
  365. '\u0628' # 0x00c8 -> ARABIC LETTER BEH
  366. '\u0629' # 0x00c9 -> ARABIC LETTER TEH MARBUTA
  367. '\u062a' # 0x00ca -> ARABIC LETTER TEH
  368. '\u062b' # 0x00cb -> ARABIC LETTER THEH
  369. '\u062c' # 0x00cc -> ARABIC LETTER JEEM
  370. '\u062d' # 0x00cd -> ARABIC LETTER HAH
  371. '\u062e' # 0x00ce -> ARABIC LETTER KHAH
  372. '\u062f' # 0x00cf -> ARABIC LETTER DAL
  373. '\u0630' # 0x00d0 -> ARABIC LETTER THAL
  374. '\u0631' # 0x00d1 -> ARABIC LETTER REH
  375. '\u0632' # 0x00d2 -> ARABIC LETTER ZAIN
  376. '\u0633' # 0x00d3 -> ARABIC LETTER SEEN
  377. '\u0634' # 0x00d4 -> ARABIC LETTER SHEEN
  378. '\u0635' # 0x00d5 -> ARABIC LETTER SAD
  379. '\u0636' # 0x00d6 -> ARABIC LETTER DAD
  380. '\u0637' # 0x00d7 -> ARABIC LETTER TAH
  381. '\u0638' # 0x00d8 -> ARABIC LETTER ZAH
  382. '\u0639' # 0x00d9 -> ARABIC LETTER AIN
  383. '\u063a' # 0x00da -> ARABIC LETTER GHAIN
  384. '[' # 0x00db -> LEFT SQUARE BRACKET, right-left
  385. '\\' # 0x00dc -> REVERSE SOLIDUS, right-left
  386. ']' # 0x00dd -> RIGHT SQUARE BRACKET, right-left
  387. '^' # 0x00de -> CIRCUMFLEX ACCENT, right-left
  388. '_' # 0x00df -> LOW LINE, right-left
  389. '\u0640' # 0x00e0 -> ARABIC TATWEEL
  390. '\u0641' # 0x00e1 -> ARABIC LETTER FEH
  391. '\u0642' # 0x00e2 -> ARABIC LETTER QAF
  392. '\u0643' # 0x00e3 -> ARABIC LETTER KAF
  393. '\u0644' # 0x00e4 -> ARABIC LETTER LAM
  394. '\u0645' # 0x00e5 -> ARABIC LETTER MEEM
  395. '\u0646' # 0x00e6 -> ARABIC LETTER NOON
  396. '\u0647' # 0x00e7 -> ARABIC LETTER HEH
  397. '\u0648' # 0x00e8 -> ARABIC LETTER WAW
  398. '\u0649' # 0x00e9 -> ARABIC LETTER ALEF MAKSURA
  399. '\u064a' # 0x00ea -> ARABIC LETTER YEH
  400. '\u064b' # 0x00eb -> ARABIC FATHATAN
  401. '\u064c' # 0x00ec -> ARABIC DAMMATAN
  402. '\u064d' # 0x00ed -> ARABIC KASRATAN
  403. '\u064e' # 0x00ee -> ARABIC FATHA
  404. '\u064f' # 0x00ef -> ARABIC DAMMA
  405. '\u0650' # 0x00f0 -> ARABIC KASRA
  406. '\u0651' # 0x00f1 -> ARABIC SHADDA
  407. '\u0652' # 0x00f2 -> ARABIC SUKUN
  408. '\u067e' # 0x00f3 -> ARABIC LETTER PEH
  409. '\u0679' # 0x00f4 -> ARABIC LETTER TTEH
  410. '\u0686' # 0x00f5 -> ARABIC LETTER TCHEH
  411. '\u06d5' # 0x00f6 -> ARABIC LETTER AE
  412. '\u06a4' # 0x00f7 -> ARABIC LETTER VEH
  413. '\u06af' # 0x00f8 -> ARABIC LETTER GAF
  414. '\u0688' # 0x00f9 -> ARABIC LETTER DDAL
  415. '\u0691' # 0x00fa -> ARABIC LETTER RREH
  416. '{' # 0x00fb -> LEFT CURLY BRACKET, right-left
  417. '|' # 0x00fc -> VERTICAL LINE, right-left
  418. '}' # 0x00fd -> RIGHT CURLY BRACKET, right-left
  419. '\u0698' # 0x00fe -> ARABIC LETTER JEH
  420. '\u06d2' # 0x00ff -> ARABIC LETTER YEH BARREE
  421. )
  422. ### Encoding Map
  423. encoding_map = {
  424. 0x0000: 0x0000, # CONTROL CHARACTER
  425. 0x0001: 0x0001, # CONTROL CHARACTER
  426. 0x0002: 0x0002, # CONTROL CHARACTER
  427. 0x0003: 0x0003, # CONTROL CHARACTER
  428. 0x0004: 0x0004, # CONTROL CHARACTER
  429. 0x0005: 0x0005, # CONTROL CHARACTER
  430. 0x0006: 0x0006, # CONTROL CHARACTER
  431. 0x0007: 0x0007, # CONTROL CHARACTER
  432. 0x0008: 0x0008, # CONTROL CHARACTER
  433. 0x0009: 0x0009, # CONTROL CHARACTER
  434. 0x000a: 0x000a, # CONTROL CHARACTER
  435. 0x000b: 0x000b, # CONTROL CHARACTER
  436. 0x000c: 0x000c, # CONTROL CHARACTER
  437. 0x000d: 0x000d, # CONTROL CHARACTER
  438. 0x000e: 0x000e, # CONTROL CHARACTER
  439. 0x000f: 0x000f, # CONTROL CHARACTER
  440. 0x0010: 0x0010, # CONTROL CHARACTER
  441. 0x0011: 0x0011, # CONTROL CHARACTER
  442. 0x0012: 0x0012, # CONTROL CHARACTER
  443. 0x0013: 0x0013, # CONTROL CHARACTER
  444. 0x0014: 0x0014, # CONTROL CHARACTER
  445. 0x0015: 0x0015, # CONTROL CHARACTER
  446. 0x0016: 0x0016, # CONTROL CHARACTER
  447. 0x0017: 0x0017, # CONTROL CHARACTER
  448. 0x0018: 0x0018, # CONTROL CHARACTER
  449. 0x0019: 0x0019, # CONTROL CHARACTER
  450. 0x001a: 0x001a, # CONTROL CHARACTER
  451. 0x001b: 0x001b, # CONTROL CHARACTER
  452. 0x001c: 0x001c, # CONTROL CHARACTER
  453. 0x001d: 0x001d, # CONTROL CHARACTER
  454. 0x001e: 0x001e, # CONTROL CHARACTER
  455. 0x001f: 0x001f, # CONTROL CHARACTER
  456. 0x0020: 0x0020, # SPACE, left-right
  457. 0x0020: 0x00a0, # SPACE, right-left
  458. 0x0021: 0x0021, # EXCLAMATION MARK, left-right
  459. 0x0021: 0x00a1, # EXCLAMATION MARK, right-left
  460. 0x0022: 0x0022, # QUOTATION MARK, left-right
  461. 0x0022: 0x00a2, # QUOTATION MARK, right-left
  462. 0x0023: 0x0023, # NUMBER SIGN, left-right
  463. 0x0023: 0x00a3, # NUMBER SIGN, right-left
  464. 0x0024: 0x0024, # DOLLAR SIGN, left-right
  465. 0x0024: 0x00a4, # DOLLAR SIGN, right-left
  466. 0x0025: 0x0025, # PERCENT SIGN, left-right
  467. 0x0026: 0x0026, # AMPERSAND, left-right
  468. 0x0026: 0x00a6, # AMPERSAND, right-left
  469. 0x0027: 0x0027, # APOSTROPHE, left-right
  470. 0x0027: 0x00a7, # APOSTROPHE, right-left
  471. 0x0028: 0x0028, # LEFT PARENTHESIS, left-right
  472. 0x0028: 0x00a8, # LEFT PARENTHESIS, right-left
  473. 0x0029: 0x0029, # RIGHT PARENTHESIS, left-right
  474. 0x0029: 0x00a9, # RIGHT PARENTHESIS, right-left
  475. 0x002a: 0x002a, # ASTERISK, left-right
  476. 0x002a: 0x00aa, # ASTERISK, right-left
  477. 0x002b: 0x002b, # PLUS SIGN, left-right
  478. 0x002b: 0x00ab, # PLUS SIGN, right-left
  479. 0x002c: 0x002c, # COMMA, left-right; in Arabic-script context, displayed as 0x066C ARABIC THOUSANDS SEPARATOR
  480. 0x002d: 0x002d, # HYPHEN-MINUS, left-right
  481. 0x002d: 0x00ad, # HYPHEN-MINUS, right-left
  482. 0x002e: 0x002e, # FULL STOP, left-right; in Arabic-script context, displayed as 0x066B ARABIC DECIMAL SEPARATOR
  483. 0x002e: 0x00ae, # FULL STOP, right-left
  484. 0x002f: 0x002f, # SOLIDUS, left-right
  485. 0x002f: 0x00af, # SOLIDUS, right-left
  486. 0x0030: 0x0030, # DIGIT ZERO; in Arabic-script context, displayed as 0x0660 ARABIC-INDIC DIGIT ZERO
  487. 0x0031: 0x0031, # DIGIT ONE; in Arabic-script context, displayed as 0x0661 ARABIC-INDIC DIGIT ONE
  488. 0x0032: 0x0032, # DIGIT TWO; in Arabic-script context, displayed as 0x0662 ARABIC-INDIC DIGIT TWO
  489. 0x0033: 0x0033, # DIGIT THREE; in Arabic-script context, displayed as 0x0663 ARABIC-INDIC DIGIT THREE
  490. 0x0034: 0x0034, # DIGIT FOUR; in Arabic-script context, displayed as 0x0664 ARABIC-INDIC DIGIT FOUR
  491. 0x0035: 0x0035, # DIGIT FIVE; in Arabic-script context, displayed as 0x0665 ARABIC-INDIC DIGIT FIVE
  492. 0x0036: 0x0036, # DIGIT SIX; in Arabic-script context, displayed as 0x0666 ARABIC-INDIC DIGIT SIX
  493. 0x0037: 0x0037, # DIGIT SEVEN; in Arabic-script context, displayed as 0x0667 ARABIC-INDIC DIGIT SEVEN
  494. 0x0038: 0x0038, # DIGIT EIGHT; in Arabic-script context, displayed as 0x0668 ARABIC-INDIC DIGIT EIGHT
  495. 0x0039: 0x0039, # DIGIT NINE; in Arabic-script context, displayed as 0x0669 ARABIC-INDIC DIGIT NINE
  496. 0x003a: 0x003a, # COLON, left-right
  497. 0x003a: 0x00ba, # COLON, right-left
  498. 0x003b: 0x003b, # SEMICOLON, left-right
  499. 0x003c: 0x003c, # LESS-THAN SIGN, left-right
  500. 0x003c: 0x00bc, # LESS-THAN SIGN, right-left
  501. 0x003d: 0x003d, # EQUALS SIGN, left-right
  502. 0x003d: 0x00bd, # EQUALS SIGN, right-left
  503. 0x003e: 0x003e, # GREATER-THAN SIGN, left-right
  504. 0x003e: 0x00be, # GREATER-THAN SIGN, right-left
  505. 0x003f: 0x003f, # QUESTION MARK, left-right
  506. 0x0040: 0x0040, # COMMERCIAL AT
  507. 0x0041: 0x0041, # LATIN CAPITAL LETTER A
  508. 0x0042: 0x0042, # LATIN CAPITAL LETTER B
  509. 0x0043: 0x0043, # LATIN CAPITAL LETTER C
  510. 0x0044: 0x0044, # LATIN CAPITAL LETTER D
  511. 0x0045: 0x0045, # LATIN CAPITAL LETTER E
  512. 0x0046: 0x0046, # LATIN CAPITAL LETTER F
  513. 0x0047: 0x0047, # LATIN CAPITAL LETTER G
  514. 0x0048: 0x0048, # LATIN CAPITAL LETTER H
  515. 0x0049: 0x0049, # LATIN CAPITAL LETTER I
  516. 0x004a: 0x004a, # LATIN CAPITAL LETTER J
  517. 0x004b: 0x004b, # LATIN CAPITAL LETTER K
  518. 0x004c: 0x004c, # LATIN CAPITAL LETTER L
  519. 0x004d: 0x004d, # LATIN CAPITAL LETTER M
  520. 0x004e: 0x004e, # LATIN CAPITAL LETTER N
  521. 0x004f: 0x004f, # LATIN CAPITAL LETTER O
  522. 0x0050: 0x0050, # LATIN CAPITAL LETTER P
  523. 0x0051: 0x0051, # LATIN CAPITAL LETTER Q
  524. 0x0052: 0x0052, # LATIN CAPITAL LETTER R
  525. 0x0053: 0x0053, # LATIN CAPITAL LETTER S
  526. 0x0054: 0x0054, # LATIN CAPITAL LETTER T
  527. 0x0055: 0x0055, # LATIN CAPITAL LETTER U
  528. 0x0056: 0x0056, # LATIN CAPITAL LETTER V
  529. 0x0057: 0x0057, # LATIN CAPITAL LETTER W
  530. 0x0058: 0x0058, # LATIN CAPITAL LETTER X
  531. 0x0059: 0x0059, # LATIN CAPITAL LETTER Y
  532. 0x005a: 0x005a, # LATIN CAPITAL LETTER Z
  533. 0x005b: 0x005b, # LEFT SQUARE BRACKET, left-right
  534. 0x005b: 0x00db, # LEFT SQUARE BRACKET, right-left
  535. 0x005c: 0x005c, # REVERSE SOLIDUS, left-right
  536. 0x005c: 0x00dc, # REVERSE SOLIDUS, right-left
  537. 0x005d: 0x005d, # RIGHT SQUARE BRACKET, left-right
  538. 0x005d: 0x00dd, # RIGHT SQUARE BRACKET, right-left
  539. 0x005e: 0x005e, # CIRCUMFLEX ACCENT, left-right
  540. 0x005e: 0x00de, # CIRCUMFLEX ACCENT, right-left
  541. 0x005f: 0x005f, # LOW LINE, left-right
  542. 0x005f: 0x00df, # LOW LINE, right-left
  543. 0x0060: 0x0060, # GRAVE ACCENT
  544. 0x0061: 0x0061, # LATIN SMALL LETTER A
  545. 0x0062: 0x0062, # LATIN SMALL LETTER B
  546. 0x0063: 0x0063, # LATIN SMALL LETTER C
  547. 0x0064: 0x0064, # LATIN SMALL LETTER D
  548. 0x0065: 0x0065, # LATIN SMALL LETTER E
  549. 0x0066: 0x0066, # LATIN SMALL LETTER F
  550. 0x0067: 0x0067, # LATIN SMALL LETTER G
  551. 0x0068: 0x0068, # LATIN SMALL LETTER H
  552. 0x0069: 0x0069, # LATIN SMALL LETTER I
  553. 0x006a: 0x006a, # LATIN SMALL LETTER J
  554. 0x006b: 0x006b, # LATIN SMALL LETTER K
  555. 0x006c: 0x006c, # LATIN SMALL LETTER L
  556. 0x006d: 0x006d, # LATIN SMALL LETTER M
  557. 0x006e: 0x006e, # LATIN SMALL LETTER N
  558. 0x006f: 0x006f, # LATIN SMALL LETTER O
  559. 0x0070: 0x0070, # LATIN SMALL LETTER P
  560. 0x0071: 0x0071, # LATIN SMALL LETTER Q
  561. 0x0072: 0x0072, # LATIN SMALL LETTER R
  562. 0x0073: 0x0073, # LATIN SMALL LETTER S
  563. 0x0074: 0x0074, # LATIN SMALL LETTER T
  564. 0x0075: 0x0075, # LATIN SMALL LETTER U
  565. 0x0076: 0x0076, # LATIN SMALL LETTER V
  566. 0x0077: 0x0077, # LATIN SMALL LETTER W
  567. 0x0078: 0x0078, # LATIN SMALL LETTER X
  568. 0x0079: 0x0079, # LATIN SMALL LETTER Y
  569. 0x007a: 0x007a, # LATIN SMALL LETTER Z
  570. 0x007b: 0x007b, # LEFT CURLY BRACKET, left-right
  571. 0x007b: 0x00fb, # LEFT CURLY BRACKET, right-left
  572. 0x007c: 0x007c, # VERTICAL LINE, left-right
  573. 0x007c: 0x00fc, # VERTICAL LINE, right-left
  574. 0x007d: 0x007d, # RIGHT CURLY BRACKET, left-right
  575. 0x007d: 0x00fd, # RIGHT CURLY BRACKET, right-left
  576. 0x007e: 0x007e, # TILDE
  577. 0x007f: 0x007f, # CONTROL CHARACTER
  578. 0x00a0: 0x0081, # NO-BREAK SPACE, right-left
  579. 0x00ab: 0x008c, # LEFT-POINTING DOUBLE ANGLE QUOTATION MARK, right-left
  580. 0x00bb: 0x0098, # RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK, right-left
  581. 0x00c4: 0x0080, # LATIN CAPITAL LETTER A WITH DIAERESIS
  582. 0x00c7: 0x0082, # LATIN CAPITAL LETTER C WITH CEDILLA
  583. 0x00c9: 0x0083, # LATIN CAPITAL LETTER E WITH ACUTE
  584. 0x00d1: 0x0084, # LATIN CAPITAL LETTER N WITH TILDE
  585. 0x00d6: 0x0085, # LATIN CAPITAL LETTER O WITH DIAERESIS
  586. 0x00dc: 0x0086, # LATIN CAPITAL LETTER U WITH DIAERESIS
  587. 0x00e0: 0x0088, # LATIN SMALL LETTER A WITH GRAVE
  588. 0x00e1: 0x0087, # LATIN SMALL LETTER A WITH ACUTE
  589. 0x00e2: 0x0089, # LATIN SMALL LETTER A WITH CIRCUMFLEX
  590. 0x00e4: 0x008a, # LATIN SMALL LETTER A WITH DIAERESIS
  591. 0x00e7: 0x008d, # LATIN SMALL LETTER C WITH CEDILLA
  592. 0x00e8: 0x008f, # LATIN SMALL LETTER E WITH GRAVE
  593. 0x00e9: 0x008e, # LATIN SMALL LETTER E WITH ACUTE
  594. 0x00ea: 0x0090, # LATIN SMALL LETTER E WITH CIRCUMFLEX
  595. 0x00eb: 0x0091, # LATIN SMALL LETTER E WITH DIAERESIS
  596. 0x00ed: 0x0092, # LATIN SMALL LETTER I WITH ACUTE
  597. 0x00ee: 0x0094, # LATIN SMALL LETTER I WITH CIRCUMFLEX
  598. 0x00ef: 0x0095, # LATIN SMALL LETTER I WITH DIAERESIS
  599. 0x00f1: 0x0096, # LATIN SMALL LETTER N WITH TILDE
  600. 0x00f3: 0x0097, # LATIN SMALL LETTER O WITH ACUTE
  601. 0x00f4: 0x0099, # LATIN SMALL LETTER O WITH CIRCUMFLEX
  602. 0x00f6: 0x009a, # LATIN SMALL LETTER O WITH DIAERESIS
  603. 0x00f7: 0x009b, # DIVISION SIGN, right-left
  604. 0x00f9: 0x009d, # LATIN SMALL LETTER U WITH GRAVE
  605. 0x00fa: 0x009c, # LATIN SMALL LETTER U WITH ACUTE
  606. 0x00fb: 0x009e, # LATIN SMALL LETTER U WITH CIRCUMFLEX
  607. 0x00fc: 0x009f, # LATIN SMALL LETTER U WITH DIAERESIS
  608. 0x060c: 0x00ac, # ARABIC COMMA
  609. 0x061b: 0x00bb, # ARABIC SEMICOLON
  610. 0x061f: 0x00bf, # ARABIC QUESTION MARK
  611. 0x0621: 0x00c1, # ARABIC LETTER HAMZA
  612. 0x0622: 0x00c2, # ARABIC LETTER ALEF WITH MADDA ABOVE
  613. 0x0623: 0x00c3, # ARABIC LETTER ALEF WITH HAMZA ABOVE
  614. 0x0624: 0x00c4, # ARABIC LETTER WAW WITH HAMZA ABOVE
  615. 0x0625: 0x00c5, # ARABIC LETTER ALEF WITH HAMZA BELOW
  616. 0x0626: 0x00c6, # ARABIC LETTER YEH WITH HAMZA ABOVE
  617. 0x0627: 0x00c7, # ARABIC LETTER ALEF
  618. 0x0628: 0x00c8, # ARABIC LETTER BEH
  619. 0x0629: 0x00c9, # ARABIC LETTER TEH MARBUTA
  620. 0x062a: 0x00ca, # ARABIC LETTER TEH
  621. 0x062b: 0x00cb, # ARABIC LETTER THEH
  622. 0x062c: 0x00cc, # ARABIC LETTER JEEM
  623. 0x062d: 0x00cd, # ARABIC LETTER HAH
  624. 0x062e: 0x00ce, # ARABIC LETTER KHAH
  625. 0x062f: 0x00cf, # ARABIC LETTER DAL
  626. 0x0630: 0x00d0, # ARABIC LETTER THAL
  627. 0x0631: 0x00d1, # ARABIC LETTER REH
  628. 0x0632: 0x00d2, # ARABIC LETTER ZAIN
  629. 0x0633: 0x00d3, # ARABIC LETTER SEEN
  630. 0x0634: 0x00d4, # ARABIC LETTER SHEEN
  631. 0x0635: 0x00d5, # ARABIC LETTER SAD
  632. 0x0636: 0x00d6, # ARABIC LETTER DAD
  633. 0x0637: 0x00d7, # ARABIC LETTER TAH
  634. 0x0638: 0x00d8, # ARABIC LETTER ZAH
  635. 0x0639: 0x00d9, # ARABIC LETTER AIN
  636. 0x063a: 0x00da, # ARABIC LETTER GHAIN
  637. 0x0640: 0x00e0, # ARABIC TATWEEL
  638. 0x0641: 0x00e1, # ARABIC LETTER FEH
  639. 0x0642: 0x00e2, # ARABIC LETTER QAF
  640. 0x0643: 0x00e3, # ARABIC LETTER KAF
  641. 0x0644: 0x00e4, # ARABIC LETTER LAM
  642. 0x0645: 0x00e5, # ARABIC LETTER MEEM
  643. 0x0646: 0x00e6, # ARABIC LETTER NOON
  644. 0x0647: 0x00e7, # ARABIC LETTER HEH
  645. 0x0648: 0x00e8, # ARABIC LETTER WAW
  646. 0x0649: 0x00e9, # ARABIC LETTER ALEF MAKSURA
  647. 0x064a: 0x00ea, # ARABIC LETTER YEH
  648. 0x064b: 0x00eb, # ARABIC FATHATAN
  649. 0x064c: 0x00ec, # ARABIC DAMMATAN
  650. 0x064d: 0x00ed, # ARABIC KASRATAN
  651. 0x064e: 0x00ee, # ARABIC FATHA
  652. 0x064f: 0x00ef, # ARABIC DAMMA
  653. 0x0650: 0x00f0, # ARABIC KASRA
  654. 0x0651: 0x00f1, # ARABIC SHADDA
  655. 0x0652: 0x00f2, # ARABIC SUKUN
  656. 0x0660: 0x00b0, # ARABIC-INDIC DIGIT ZERO, right-left (need override)
  657. 0x0661: 0x00b1, # ARABIC-INDIC DIGIT ONE, right-left (need override)
  658. 0x0662: 0x00b2, # ARABIC-INDIC DIGIT TWO, right-left (need override)
  659. 0x0663: 0x00b3, # ARABIC-INDIC DIGIT THREE, right-left (need override)
  660. 0x0664: 0x00b4, # ARABIC-INDIC DIGIT FOUR, right-left (need override)
  661. 0x0665: 0x00b5, # ARABIC-INDIC DIGIT FIVE, right-left (need override)
  662. 0x0666: 0x00b6, # ARABIC-INDIC DIGIT SIX, right-left (need override)
  663. 0x0667: 0x00b7, # ARABIC-INDIC DIGIT SEVEN, right-left (need override)
  664. 0x0668: 0x00b8, # ARABIC-INDIC DIGIT EIGHT, right-left (need override)
  665. 0x0669: 0x00b9, # ARABIC-INDIC DIGIT NINE, right-left (need override)
  666. 0x066a: 0x00a5, # ARABIC PERCENT SIGN
  667. 0x0679: 0x00f4, # ARABIC LETTER TTEH
  668. 0x067e: 0x00f3, # ARABIC LETTER PEH
  669. 0x0686: 0x00f5, # ARABIC LETTER TCHEH
  670. 0x0688: 0x00f9, # ARABIC LETTER DDAL
  671. 0x0691: 0x00fa, # ARABIC LETTER RREH
  672. 0x0698: 0x00fe, # ARABIC LETTER JEH
  673. 0x06a4: 0x00f7, # ARABIC LETTER VEH
  674. 0x06af: 0x00f8, # ARABIC LETTER GAF
  675. 0x06ba: 0x008b, # ARABIC LETTER NOON GHUNNA
  676. 0x06d2: 0x00ff, # ARABIC LETTER YEH BARREE
  677. 0x06d5: 0x00f6, # ARABIC LETTER AE
  678. 0x2026: 0x0093, # HORIZONTAL ELLIPSIS, right-left
  679. 0x274a: 0x00c0, # EIGHT TEARDROP-SPOKED PROPELLER ASTERISK, right-left
  680. }