cp864.py 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690
  1. """ Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP864.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='cp864',
  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. 0x0025: 0x066a, # ARABIC PERCENT SIGN
  35. 0x0080: 0x00b0, # DEGREE SIGN
  36. 0x0081: 0x00b7, # MIDDLE DOT
  37. 0x0082: 0x2219, # BULLET OPERATOR
  38. 0x0083: 0x221a, # SQUARE ROOT
  39. 0x0084: 0x2592, # MEDIUM SHADE
  40. 0x0085: 0x2500, # FORMS LIGHT HORIZONTAL
  41. 0x0086: 0x2502, # FORMS LIGHT VERTICAL
  42. 0x0087: 0x253c, # FORMS LIGHT VERTICAL AND HORIZONTAL
  43. 0x0088: 0x2524, # FORMS LIGHT VERTICAL AND LEFT
  44. 0x0089: 0x252c, # FORMS LIGHT DOWN AND HORIZONTAL
  45. 0x008a: 0x251c, # FORMS LIGHT VERTICAL AND RIGHT
  46. 0x008b: 0x2534, # FORMS LIGHT UP AND HORIZONTAL
  47. 0x008c: 0x2510, # FORMS LIGHT DOWN AND LEFT
  48. 0x008d: 0x250c, # FORMS LIGHT DOWN AND RIGHT
  49. 0x008e: 0x2514, # FORMS LIGHT UP AND RIGHT
  50. 0x008f: 0x2518, # FORMS LIGHT UP AND LEFT
  51. 0x0090: 0x03b2, # GREEK SMALL BETA
  52. 0x0091: 0x221e, # INFINITY
  53. 0x0092: 0x03c6, # GREEK SMALL PHI
  54. 0x0093: 0x00b1, # PLUS-OR-MINUS SIGN
  55. 0x0094: 0x00bd, # FRACTION 1/2
  56. 0x0095: 0x00bc, # FRACTION 1/4
  57. 0x0096: 0x2248, # ALMOST EQUAL TO
  58. 0x0097: 0x00ab, # LEFT POINTING GUILLEMET
  59. 0x0098: 0x00bb, # RIGHT POINTING GUILLEMET
  60. 0x0099: 0xfef7, # ARABIC LIGATURE LAM WITH ALEF WITH HAMZA ABOVE ISOLATED FORM
  61. 0x009a: 0xfef8, # ARABIC LIGATURE LAM WITH ALEF WITH HAMZA ABOVE FINAL FORM
  62. 0x009b: None, # UNDEFINED
  63. 0x009c: None, # UNDEFINED
  64. 0x009d: 0xfefb, # ARABIC LIGATURE LAM WITH ALEF ISOLATED FORM
  65. 0x009e: 0xfefc, # ARABIC LIGATURE LAM WITH ALEF FINAL FORM
  66. 0x009f: None, # UNDEFINED
  67. 0x00a1: 0x00ad, # SOFT HYPHEN
  68. 0x00a2: 0xfe82, # ARABIC LETTER ALEF WITH MADDA ABOVE FINAL FORM
  69. 0x00a5: 0xfe84, # ARABIC LETTER ALEF WITH HAMZA ABOVE FINAL FORM
  70. 0x00a6: None, # UNDEFINED
  71. 0x00a7: None, # UNDEFINED
  72. 0x00a8: 0xfe8e, # ARABIC LETTER ALEF FINAL FORM
  73. 0x00a9: 0xfe8f, # ARABIC LETTER BEH ISOLATED FORM
  74. 0x00aa: 0xfe95, # ARABIC LETTER TEH ISOLATED FORM
  75. 0x00ab: 0xfe99, # ARABIC LETTER THEH ISOLATED FORM
  76. 0x00ac: 0x060c, # ARABIC COMMA
  77. 0x00ad: 0xfe9d, # ARABIC LETTER JEEM ISOLATED FORM
  78. 0x00ae: 0xfea1, # ARABIC LETTER HAH ISOLATED FORM
  79. 0x00af: 0xfea5, # ARABIC LETTER KHAH ISOLATED FORM
  80. 0x00b0: 0x0660, # ARABIC-INDIC DIGIT ZERO
  81. 0x00b1: 0x0661, # ARABIC-INDIC DIGIT ONE
  82. 0x00b2: 0x0662, # ARABIC-INDIC DIGIT TWO
  83. 0x00b3: 0x0663, # ARABIC-INDIC DIGIT THREE
  84. 0x00b4: 0x0664, # ARABIC-INDIC DIGIT FOUR
  85. 0x00b5: 0x0665, # ARABIC-INDIC DIGIT FIVE
  86. 0x00b6: 0x0666, # ARABIC-INDIC DIGIT SIX
  87. 0x00b7: 0x0667, # ARABIC-INDIC DIGIT SEVEN
  88. 0x00b8: 0x0668, # ARABIC-INDIC DIGIT EIGHT
  89. 0x00b9: 0x0669, # ARABIC-INDIC DIGIT NINE
  90. 0x00ba: 0xfed1, # ARABIC LETTER FEH ISOLATED FORM
  91. 0x00bb: 0x061b, # ARABIC SEMICOLON
  92. 0x00bc: 0xfeb1, # ARABIC LETTER SEEN ISOLATED FORM
  93. 0x00bd: 0xfeb5, # ARABIC LETTER SHEEN ISOLATED FORM
  94. 0x00be: 0xfeb9, # ARABIC LETTER SAD ISOLATED FORM
  95. 0x00bf: 0x061f, # ARABIC QUESTION MARK
  96. 0x00c0: 0x00a2, # CENT SIGN
  97. 0x00c1: 0xfe80, # ARABIC LETTER HAMZA ISOLATED FORM
  98. 0x00c2: 0xfe81, # ARABIC LETTER ALEF WITH MADDA ABOVE ISOLATED FORM
  99. 0x00c3: 0xfe83, # ARABIC LETTER ALEF WITH HAMZA ABOVE ISOLATED FORM
  100. 0x00c4: 0xfe85, # ARABIC LETTER WAW WITH HAMZA ABOVE ISOLATED FORM
  101. 0x00c5: 0xfeca, # ARABIC LETTER AIN FINAL FORM
  102. 0x00c6: 0xfe8b, # ARABIC LETTER YEH WITH HAMZA ABOVE INITIAL FORM
  103. 0x00c7: 0xfe8d, # ARABIC LETTER ALEF ISOLATED FORM
  104. 0x00c8: 0xfe91, # ARABIC LETTER BEH INITIAL FORM
  105. 0x00c9: 0xfe93, # ARABIC LETTER TEH MARBUTA ISOLATED FORM
  106. 0x00ca: 0xfe97, # ARABIC LETTER TEH INITIAL FORM
  107. 0x00cb: 0xfe9b, # ARABIC LETTER THEH INITIAL FORM
  108. 0x00cc: 0xfe9f, # ARABIC LETTER JEEM INITIAL FORM
  109. 0x00cd: 0xfea3, # ARABIC LETTER HAH INITIAL FORM
  110. 0x00ce: 0xfea7, # ARABIC LETTER KHAH INITIAL FORM
  111. 0x00cf: 0xfea9, # ARABIC LETTER DAL ISOLATED FORM
  112. 0x00d0: 0xfeab, # ARABIC LETTER THAL ISOLATED FORM
  113. 0x00d1: 0xfead, # ARABIC LETTER REH ISOLATED FORM
  114. 0x00d2: 0xfeaf, # ARABIC LETTER ZAIN ISOLATED FORM
  115. 0x00d3: 0xfeb3, # ARABIC LETTER SEEN INITIAL FORM
  116. 0x00d4: 0xfeb7, # ARABIC LETTER SHEEN INITIAL FORM
  117. 0x00d5: 0xfebb, # ARABIC LETTER SAD INITIAL FORM
  118. 0x00d6: 0xfebf, # ARABIC LETTER DAD INITIAL FORM
  119. 0x00d7: 0xfec1, # ARABIC LETTER TAH ISOLATED FORM
  120. 0x00d8: 0xfec5, # ARABIC LETTER ZAH ISOLATED FORM
  121. 0x00d9: 0xfecb, # ARABIC LETTER AIN INITIAL FORM
  122. 0x00da: 0xfecf, # ARABIC LETTER GHAIN INITIAL FORM
  123. 0x00db: 0x00a6, # BROKEN VERTICAL BAR
  124. 0x00dc: 0x00ac, # NOT SIGN
  125. 0x00dd: 0x00f7, # DIVISION SIGN
  126. 0x00de: 0x00d7, # MULTIPLICATION SIGN
  127. 0x00df: 0xfec9, # ARABIC LETTER AIN ISOLATED FORM
  128. 0x00e0: 0x0640, # ARABIC TATWEEL
  129. 0x00e1: 0xfed3, # ARABIC LETTER FEH INITIAL FORM
  130. 0x00e2: 0xfed7, # ARABIC LETTER QAF INITIAL FORM
  131. 0x00e3: 0xfedb, # ARABIC LETTER KAF INITIAL FORM
  132. 0x00e4: 0xfedf, # ARABIC LETTER LAM INITIAL FORM
  133. 0x00e5: 0xfee3, # ARABIC LETTER MEEM INITIAL FORM
  134. 0x00e6: 0xfee7, # ARABIC LETTER NOON INITIAL FORM
  135. 0x00e7: 0xfeeb, # ARABIC LETTER HEH INITIAL FORM
  136. 0x00e8: 0xfeed, # ARABIC LETTER WAW ISOLATED FORM
  137. 0x00e9: 0xfeef, # ARABIC LETTER ALEF MAKSURA ISOLATED FORM
  138. 0x00ea: 0xfef3, # ARABIC LETTER YEH INITIAL FORM
  139. 0x00eb: 0xfebd, # ARABIC LETTER DAD ISOLATED FORM
  140. 0x00ec: 0xfecc, # ARABIC LETTER AIN MEDIAL FORM
  141. 0x00ed: 0xfece, # ARABIC LETTER GHAIN FINAL FORM
  142. 0x00ee: 0xfecd, # ARABIC LETTER GHAIN ISOLATED FORM
  143. 0x00ef: 0xfee1, # ARABIC LETTER MEEM ISOLATED FORM
  144. 0x00f0: 0xfe7d, # ARABIC SHADDA MEDIAL FORM
  145. 0x00f1: 0x0651, # ARABIC SHADDAH
  146. 0x00f2: 0xfee5, # ARABIC LETTER NOON ISOLATED FORM
  147. 0x00f3: 0xfee9, # ARABIC LETTER HEH ISOLATED FORM
  148. 0x00f4: 0xfeec, # ARABIC LETTER HEH MEDIAL FORM
  149. 0x00f5: 0xfef0, # ARABIC LETTER ALEF MAKSURA FINAL FORM
  150. 0x00f6: 0xfef2, # ARABIC LETTER YEH FINAL FORM
  151. 0x00f7: 0xfed0, # ARABIC LETTER GHAIN MEDIAL FORM
  152. 0x00f8: 0xfed5, # ARABIC LETTER QAF ISOLATED FORM
  153. 0x00f9: 0xfef5, # ARABIC LIGATURE LAM WITH ALEF WITH MADDA ABOVE ISOLATED FORM
  154. 0x00fa: 0xfef6, # ARABIC LIGATURE LAM WITH ALEF WITH MADDA ABOVE FINAL FORM
  155. 0x00fb: 0xfedd, # ARABIC LETTER LAM ISOLATED FORM
  156. 0x00fc: 0xfed9, # ARABIC LETTER KAF ISOLATED FORM
  157. 0x00fd: 0xfef1, # ARABIC LETTER YEH ISOLATED FORM
  158. 0x00fe: 0x25a0, # BLACK SQUARE
  159. 0x00ff: None, # UNDEFINED
  160. })
  161. ### Decoding Table
  162. decoding_table = (
  163. '\x00' # 0x0000 -> NULL
  164. '\x01' # 0x0001 -> START OF HEADING
  165. '\x02' # 0x0002 -> START OF TEXT
  166. '\x03' # 0x0003 -> END OF TEXT
  167. '\x04' # 0x0004 -> END OF TRANSMISSION
  168. '\x05' # 0x0005 -> ENQUIRY
  169. '\x06' # 0x0006 -> ACKNOWLEDGE
  170. '\x07' # 0x0007 -> BELL
  171. '\x08' # 0x0008 -> BACKSPACE
  172. '\t' # 0x0009 -> HORIZONTAL TABULATION
  173. '\n' # 0x000a -> LINE FEED
  174. '\x0b' # 0x000b -> VERTICAL TABULATION
  175. '\x0c' # 0x000c -> FORM FEED
  176. '\r' # 0x000d -> CARRIAGE RETURN
  177. '\x0e' # 0x000e -> SHIFT OUT
  178. '\x0f' # 0x000f -> SHIFT IN
  179. '\x10' # 0x0010 -> DATA LINK ESCAPE
  180. '\x11' # 0x0011 -> DEVICE CONTROL ONE
  181. '\x12' # 0x0012 -> DEVICE CONTROL TWO
  182. '\x13' # 0x0013 -> DEVICE CONTROL THREE
  183. '\x14' # 0x0014 -> DEVICE CONTROL FOUR
  184. '\x15' # 0x0015 -> NEGATIVE ACKNOWLEDGE
  185. '\x16' # 0x0016 -> SYNCHRONOUS IDLE
  186. '\x17' # 0x0017 -> END OF TRANSMISSION BLOCK
  187. '\x18' # 0x0018 -> CANCEL
  188. '\x19' # 0x0019 -> END OF MEDIUM
  189. '\x1a' # 0x001a -> SUBSTITUTE
  190. '\x1b' # 0x001b -> ESCAPE
  191. '\x1c' # 0x001c -> FILE SEPARATOR
  192. '\x1d' # 0x001d -> GROUP SEPARATOR
  193. '\x1e' # 0x001e -> RECORD SEPARATOR
  194. '\x1f' # 0x001f -> UNIT SEPARATOR
  195. ' ' # 0x0020 -> SPACE
  196. '!' # 0x0021 -> EXCLAMATION MARK
  197. '"' # 0x0022 -> QUOTATION MARK
  198. '#' # 0x0023 -> NUMBER SIGN
  199. '$' # 0x0024 -> DOLLAR SIGN
  200. '\u066a' # 0x0025 -> ARABIC PERCENT SIGN
  201. '&' # 0x0026 -> AMPERSAND
  202. "'" # 0x0027 -> APOSTROPHE
  203. '(' # 0x0028 -> LEFT PARENTHESIS
  204. ')' # 0x0029 -> RIGHT PARENTHESIS
  205. '*' # 0x002a -> ASTERISK
  206. '+' # 0x002b -> PLUS SIGN
  207. ',' # 0x002c -> COMMA
  208. '-' # 0x002d -> HYPHEN-MINUS
  209. '.' # 0x002e -> FULL STOP
  210. '/' # 0x002f -> SOLIDUS
  211. '0' # 0x0030 -> DIGIT ZERO
  212. '1' # 0x0031 -> DIGIT ONE
  213. '2' # 0x0032 -> DIGIT TWO
  214. '3' # 0x0033 -> DIGIT THREE
  215. '4' # 0x0034 -> DIGIT FOUR
  216. '5' # 0x0035 -> DIGIT FIVE
  217. '6' # 0x0036 -> DIGIT SIX
  218. '7' # 0x0037 -> DIGIT SEVEN
  219. '8' # 0x0038 -> DIGIT EIGHT
  220. '9' # 0x0039 -> DIGIT NINE
  221. ':' # 0x003a -> COLON
  222. ';' # 0x003b -> SEMICOLON
  223. '<' # 0x003c -> LESS-THAN SIGN
  224. '=' # 0x003d -> EQUALS SIGN
  225. '>' # 0x003e -> GREATER-THAN SIGN
  226. '?' # 0x003f -> QUESTION MARK
  227. '@' # 0x0040 -> COMMERCIAL AT
  228. 'A' # 0x0041 -> LATIN CAPITAL LETTER A
  229. 'B' # 0x0042 -> LATIN CAPITAL LETTER B
  230. 'C' # 0x0043 -> LATIN CAPITAL LETTER C
  231. 'D' # 0x0044 -> LATIN CAPITAL LETTER D
  232. 'E' # 0x0045 -> LATIN CAPITAL LETTER E
  233. 'F' # 0x0046 -> LATIN CAPITAL LETTER F
  234. 'G' # 0x0047 -> LATIN CAPITAL LETTER G
  235. 'H' # 0x0048 -> LATIN CAPITAL LETTER H
  236. 'I' # 0x0049 -> LATIN CAPITAL LETTER I
  237. 'J' # 0x004a -> LATIN CAPITAL LETTER J
  238. 'K' # 0x004b -> LATIN CAPITAL LETTER K
  239. 'L' # 0x004c -> LATIN CAPITAL LETTER L
  240. 'M' # 0x004d -> LATIN CAPITAL LETTER M
  241. 'N' # 0x004e -> LATIN CAPITAL LETTER N
  242. 'O' # 0x004f -> LATIN CAPITAL LETTER O
  243. 'P' # 0x0050 -> LATIN CAPITAL LETTER P
  244. 'Q' # 0x0051 -> LATIN CAPITAL LETTER Q
  245. 'R' # 0x0052 -> LATIN CAPITAL LETTER R
  246. 'S' # 0x0053 -> LATIN CAPITAL LETTER S
  247. 'T' # 0x0054 -> LATIN CAPITAL LETTER T
  248. 'U' # 0x0055 -> LATIN CAPITAL LETTER U
  249. 'V' # 0x0056 -> LATIN CAPITAL LETTER V
  250. 'W' # 0x0057 -> LATIN CAPITAL LETTER W
  251. 'X' # 0x0058 -> LATIN CAPITAL LETTER X
  252. 'Y' # 0x0059 -> LATIN CAPITAL LETTER Y
  253. 'Z' # 0x005a -> LATIN CAPITAL LETTER Z
  254. '[' # 0x005b -> LEFT SQUARE BRACKET
  255. '\\' # 0x005c -> REVERSE SOLIDUS
  256. ']' # 0x005d -> RIGHT SQUARE BRACKET
  257. '^' # 0x005e -> CIRCUMFLEX ACCENT
  258. '_' # 0x005f -> LOW LINE
  259. '`' # 0x0060 -> GRAVE ACCENT
  260. 'a' # 0x0061 -> LATIN SMALL LETTER A
  261. 'b' # 0x0062 -> LATIN SMALL LETTER B
  262. 'c' # 0x0063 -> LATIN SMALL LETTER C
  263. 'd' # 0x0064 -> LATIN SMALL LETTER D
  264. 'e' # 0x0065 -> LATIN SMALL LETTER E
  265. 'f' # 0x0066 -> LATIN SMALL LETTER F
  266. 'g' # 0x0067 -> LATIN SMALL LETTER G
  267. 'h' # 0x0068 -> LATIN SMALL LETTER H
  268. 'i' # 0x0069 -> LATIN SMALL LETTER I
  269. 'j' # 0x006a -> LATIN SMALL LETTER J
  270. 'k' # 0x006b -> LATIN SMALL LETTER K
  271. 'l' # 0x006c -> LATIN SMALL LETTER L
  272. 'm' # 0x006d -> LATIN SMALL LETTER M
  273. 'n' # 0x006e -> LATIN SMALL LETTER N
  274. 'o' # 0x006f -> LATIN SMALL LETTER O
  275. 'p' # 0x0070 -> LATIN SMALL LETTER P
  276. 'q' # 0x0071 -> LATIN SMALL LETTER Q
  277. 'r' # 0x0072 -> LATIN SMALL LETTER R
  278. 's' # 0x0073 -> LATIN SMALL LETTER S
  279. 't' # 0x0074 -> LATIN SMALL LETTER T
  280. 'u' # 0x0075 -> LATIN SMALL LETTER U
  281. 'v' # 0x0076 -> LATIN SMALL LETTER V
  282. 'w' # 0x0077 -> LATIN SMALL LETTER W
  283. 'x' # 0x0078 -> LATIN SMALL LETTER X
  284. 'y' # 0x0079 -> LATIN SMALL LETTER Y
  285. 'z' # 0x007a -> LATIN SMALL LETTER Z
  286. '{' # 0x007b -> LEFT CURLY BRACKET
  287. '|' # 0x007c -> VERTICAL LINE
  288. '}' # 0x007d -> RIGHT CURLY BRACKET
  289. '~' # 0x007e -> TILDE
  290. '\x7f' # 0x007f -> DELETE
  291. '\xb0' # 0x0080 -> DEGREE SIGN
  292. '\xb7' # 0x0081 -> MIDDLE DOT
  293. '\u2219' # 0x0082 -> BULLET OPERATOR
  294. '\u221a' # 0x0083 -> SQUARE ROOT
  295. '\u2592' # 0x0084 -> MEDIUM SHADE
  296. '\u2500' # 0x0085 -> FORMS LIGHT HORIZONTAL
  297. '\u2502' # 0x0086 -> FORMS LIGHT VERTICAL
  298. '\u253c' # 0x0087 -> FORMS LIGHT VERTICAL AND HORIZONTAL
  299. '\u2524' # 0x0088 -> FORMS LIGHT VERTICAL AND LEFT
  300. '\u252c' # 0x0089 -> FORMS LIGHT DOWN AND HORIZONTAL
  301. '\u251c' # 0x008a -> FORMS LIGHT VERTICAL AND RIGHT
  302. '\u2534' # 0x008b -> FORMS LIGHT UP AND HORIZONTAL
  303. '\u2510' # 0x008c -> FORMS LIGHT DOWN AND LEFT
  304. '\u250c' # 0x008d -> FORMS LIGHT DOWN AND RIGHT
  305. '\u2514' # 0x008e -> FORMS LIGHT UP AND RIGHT
  306. '\u2518' # 0x008f -> FORMS LIGHT UP AND LEFT
  307. '\u03b2' # 0x0090 -> GREEK SMALL BETA
  308. '\u221e' # 0x0091 -> INFINITY
  309. '\u03c6' # 0x0092 -> GREEK SMALL PHI
  310. '\xb1' # 0x0093 -> PLUS-OR-MINUS SIGN
  311. '\xbd' # 0x0094 -> FRACTION 1/2
  312. '\xbc' # 0x0095 -> FRACTION 1/4
  313. '\u2248' # 0x0096 -> ALMOST EQUAL TO
  314. '\xab' # 0x0097 -> LEFT POINTING GUILLEMET
  315. '\xbb' # 0x0098 -> RIGHT POINTING GUILLEMET
  316. '\ufef7' # 0x0099 -> ARABIC LIGATURE LAM WITH ALEF WITH HAMZA ABOVE ISOLATED FORM
  317. '\ufef8' # 0x009a -> ARABIC LIGATURE LAM WITH ALEF WITH HAMZA ABOVE FINAL FORM
  318. '\ufffe' # 0x009b -> UNDEFINED
  319. '\ufffe' # 0x009c -> UNDEFINED
  320. '\ufefb' # 0x009d -> ARABIC LIGATURE LAM WITH ALEF ISOLATED FORM
  321. '\ufefc' # 0x009e -> ARABIC LIGATURE LAM WITH ALEF FINAL FORM
  322. '\ufffe' # 0x009f -> UNDEFINED
  323. '\xa0' # 0x00a0 -> NON-BREAKING SPACE
  324. '\xad' # 0x00a1 -> SOFT HYPHEN
  325. '\ufe82' # 0x00a2 -> ARABIC LETTER ALEF WITH MADDA ABOVE FINAL FORM
  326. '\xa3' # 0x00a3 -> POUND SIGN
  327. '\xa4' # 0x00a4 -> CURRENCY SIGN
  328. '\ufe84' # 0x00a5 -> ARABIC LETTER ALEF WITH HAMZA ABOVE FINAL FORM
  329. '\ufffe' # 0x00a6 -> UNDEFINED
  330. '\ufffe' # 0x00a7 -> UNDEFINED
  331. '\ufe8e' # 0x00a8 -> ARABIC LETTER ALEF FINAL FORM
  332. '\ufe8f' # 0x00a9 -> ARABIC LETTER BEH ISOLATED FORM
  333. '\ufe95' # 0x00aa -> ARABIC LETTER TEH ISOLATED FORM
  334. '\ufe99' # 0x00ab -> ARABIC LETTER THEH ISOLATED FORM
  335. '\u060c' # 0x00ac -> ARABIC COMMA
  336. '\ufe9d' # 0x00ad -> ARABIC LETTER JEEM ISOLATED FORM
  337. '\ufea1' # 0x00ae -> ARABIC LETTER HAH ISOLATED FORM
  338. '\ufea5' # 0x00af -> ARABIC LETTER KHAH ISOLATED FORM
  339. '\u0660' # 0x00b0 -> ARABIC-INDIC DIGIT ZERO
  340. '\u0661' # 0x00b1 -> ARABIC-INDIC DIGIT ONE
  341. '\u0662' # 0x00b2 -> ARABIC-INDIC DIGIT TWO
  342. '\u0663' # 0x00b3 -> ARABIC-INDIC DIGIT THREE
  343. '\u0664' # 0x00b4 -> ARABIC-INDIC DIGIT FOUR
  344. '\u0665' # 0x00b5 -> ARABIC-INDIC DIGIT FIVE
  345. '\u0666' # 0x00b6 -> ARABIC-INDIC DIGIT SIX
  346. '\u0667' # 0x00b7 -> ARABIC-INDIC DIGIT SEVEN
  347. '\u0668' # 0x00b8 -> ARABIC-INDIC DIGIT EIGHT
  348. '\u0669' # 0x00b9 -> ARABIC-INDIC DIGIT NINE
  349. '\ufed1' # 0x00ba -> ARABIC LETTER FEH ISOLATED FORM
  350. '\u061b' # 0x00bb -> ARABIC SEMICOLON
  351. '\ufeb1' # 0x00bc -> ARABIC LETTER SEEN ISOLATED FORM
  352. '\ufeb5' # 0x00bd -> ARABIC LETTER SHEEN ISOLATED FORM
  353. '\ufeb9' # 0x00be -> ARABIC LETTER SAD ISOLATED FORM
  354. '\u061f' # 0x00bf -> ARABIC QUESTION MARK
  355. '\xa2' # 0x00c0 -> CENT SIGN
  356. '\ufe80' # 0x00c1 -> ARABIC LETTER HAMZA ISOLATED FORM
  357. '\ufe81' # 0x00c2 -> ARABIC LETTER ALEF WITH MADDA ABOVE ISOLATED FORM
  358. '\ufe83' # 0x00c3 -> ARABIC LETTER ALEF WITH HAMZA ABOVE ISOLATED FORM
  359. '\ufe85' # 0x00c4 -> ARABIC LETTER WAW WITH HAMZA ABOVE ISOLATED FORM
  360. '\ufeca' # 0x00c5 -> ARABIC LETTER AIN FINAL FORM
  361. '\ufe8b' # 0x00c6 -> ARABIC LETTER YEH WITH HAMZA ABOVE INITIAL FORM
  362. '\ufe8d' # 0x00c7 -> ARABIC LETTER ALEF ISOLATED FORM
  363. '\ufe91' # 0x00c8 -> ARABIC LETTER BEH INITIAL FORM
  364. '\ufe93' # 0x00c9 -> ARABIC LETTER TEH MARBUTA ISOLATED FORM
  365. '\ufe97' # 0x00ca -> ARABIC LETTER TEH INITIAL FORM
  366. '\ufe9b' # 0x00cb -> ARABIC LETTER THEH INITIAL FORM
  367. '\ufe9f' # 0x00cc -> ARABIC LETTER JEEM INITIAL FORM
  368. '\ufea3' # 0x00cd -> ARABIC LETTER HAH INITIAL FORM
  369. '\ufea7' # 0x00ce -> ARABIC LETTER KHAH INITIAL FORM
  370. '\ufea9' # 0x00cf -> ARABIC LETTER DAL ISOLATED FORM
  371. '\ufeab' # 0x00d0 -> ARABIC LETTER THAL ISOLATED FORM
  372. '\ufead' # 0x00d1 -> ARABIC LETTER REH ISOLATED FORM
  373. '\ufeaf' # 0x00d2 -> ARABIC LETTER ZAIN ISOLATED FORM
  374. '\ufeb3' # 0x00d3 -> ARABIC LETTER SEEN INITIAL FORM
  375. '\ufeb7' # 0x00d4 -> ARABIC LETTER SHEEN INITIAL FORM
  376. '\ufebb' # 0x00d5 -> ARABIC LETTER SAD INITIAL FORM
  377. '\ufebf' # 0x00d6 -> ARABIC LETTER DAD INITIAL FORM
  378. '\ufec1' # 0x00d7 -> ARABIC LETTER TAH ISOLATED FORM
  379. '\ufec5' # 0x00d8 -> ARABIC LETTER ZAH ISOLATED FORM
  380. '\ufecb' # 0x00d9 -> ARABIC LETTER AIN INITIAL FORM
  381. '\ufecf' # 0x00da -> ARABIC LETTER GHAIN INITIAL FORM
  382. '\xa6' # 0x00db -> BROKEN VERTICAL BAR
  383. '\xac' # 0x00dc -> NOT SIGN
  384. '\xf7' # 0x00dd -> DIVISION SIGN
  385. '\xd7' # 0x00de -> MULTIPLICATION SIGN
  386. '\ufec9' # 0x00df -> ARABIC LETTER AIN ISOLATED FORM
  387. '\u0640' # 0x00e0 -> ARABIC TATWEEL
  388. '\ufed3' # 0x00e1 -> ARABIC LETTER FEH INITIAL FORM
  389. '\ufed7' # 0x00e2 -> ARABIC LETTER QAF INITIAL FORM
  390. '\ufedb' # 0x00e3 -> ARABIC LETTER KAF INITIAL FORM
  391. '\ufedf' # 0x00e4 -> ARABIC LETTER LAM INITIAL FORM
  392. '\ufee3' # 0x00e5 -> ARABIC LETTER MEEM INITIAL FORM
  393. '\ufee7' # 0x00e6 -> ARABIC LETTER NOON INITIAL FORM
  394. '\ufeeb' # 0x00e7 -> ARABIC LETTER HEH INITIAL FORM
  395. '\ufeed' # 0x00e8 -> ARABIC LETTER WAW ISOLATED FORM
  396. '\ufeef' # 0x00e9 -> ARABIC LETTER ALEF MAKSURA ISOLATED FORM
  397. '\ufef3' # 0x00ea -> ARABIC LETTER YEH INITIAL FORM
  398. '\ufebd' # 0x00eb -> ARABIC LETTER DAD ISOLATED FORM
  399. '\ufecc' # 0x00ec -> ARABIC LETTER AIN MEDIAL FORM
  400. '\ufece' # 0x00ed -> ARABIC LETTER GHAIN FINAL FORM
  401. '\ufecd' # 0x00ee -> ARABIC LETTER GHAIN ISOLATED FORM
  402. '\ufee1' # 0x00ef -> ARABIC LETTER MEEM ISOLATED FORM
  403. '\ufe7d' # 0x00f0 -> ARABIC SHADDA MEDIAL FORM
  404. '\u0651' # 0x00f1 -> ARABIC SHADDAH
  405. '\ufee5' # 0x00f2 -> ARABIC LETTER NOON ISOLATED FORM
  406. '\ufee9' # 0x00f3 -> ARABIC LETTER HEH ISOLATED FORM
  407. '\ufeec' # 0x00f4 -> ARABIC LETTER HEH MEDIAL FORM
  408. '\ufef0' # 0x00f5 -> ARABIC LETTER ALEF MAKSURA FINAL FORM
  409. '\ufef2' # 0x00f6 -> ARABIC LETTER YEH FINAL FORM
  410. '\ufed0' # 0x00f7 -> ARABIC LETTER GHAIN MEDIAL FORM
  411. '\ufed5' # 0x00f8 -> ARABIC LETTER QAF ISOLATED FORM
  412. '\ufef5' # 0x00f9 -> ARABIC LIGATURE LAM WITH ALEF WITH MADDA ABOVE ISOLATED FORM
  413. '\ufef6' # 0x00fa -> ARABIC LIGATURE LAM WITH ALEF WITH MADDA ABOVE FINAL FORM
  414. '\ufedd' # 0x00fb -> ARABIC LETTER LAM ISOLATED FORM
  415. '\ufed9' # 0x00fc -> ARABIC LETTER KAF ISOLATED FORM
  416. '\ufef1' # 0x00fd -> ARABIC LETTER YEH ISOLATED FORM
  417. '\u25a0' # 0x00fe -> BLACK SQUARE
  418. '\ufffe' # 0x00ff -> UNDEFINED
  419. )
  420. ### Encoding Map
  421. encoding_map = {
  422. 0x0000: 0x0000, # NULL
  423. 0x0001: 0x0001, # START OF HEADING
  424. 0x0002: 0x0002, # START OF TEXT
  425. 0x0003: 0x0003, # END OF TEXT
  426. 0x0004: 0x0004, # END OF TRANSMISSION
  427. 0x0005: 0x0005, # ENQUIRY
  428. 0x0006: 0x0006, # ACKNOWLEDGE
  429. 0x0007: 0x0007, # BELL
  430. 0x0008: 0x0008, # BACKSPACE
  431. 0x0009: 0x0009, # HORIZONTAL TABULATION
  432. 0x000a: 0x000a, # LINE FEED
  433. 0x000b: 0x000b, # VERTICAL TABULATION
  434. 0x000c: 0x000c, # FORM FEED
  435. 0x000d: 0x000d, # CARRIAGE RETURN
  436. 0x000e: 0x000e, # SHIFT OUT
  437. 0x000f: 0x000f, # SHIFT IN
  438. 0x0010: 0x0010, # DATA LINK ESCAPE
  439. 0x0011: 0x0011, # DEVICE CONTROL ONE
  440. 0x0012: 0x0012, # DEVICE CONTROL TWO
  441. 0x0013: 0x0013, # DEVICE CONTROL THREE
  442. 0x0014: 0x0014, # DEVICE CONTROL FOUR
  443. 0x0015: 0x0015, # NEGATIVE ACKNOWLEDGE
  444. 0x0016: 0x0016, # SYNCHRONOUS IDLE
  445. 0x0017: 0x0017, # END OF TRANSMISSION BLOCK
  446. 0x0018: 0x0018, # CANCEL
  447. 0x0019: 0x0019, # END OF MEDIUM
  448. 0x001a: 0x001a, # SUBSTITUTE
  449. 0x001b: 0x001b, # ESCAPE
  450. 0x001c: 0x001c, # FILE SEPARATOR
  451. 0x001d: 0x001d, # GROUP SEPARATOR
  452. 0x001e: 0x001e, # RECORD SEPARATOR
  453. 0x001f: 0x001f, # UNIT SEPARATOR
  454. 0x0020: 0x0020, # SPACE
  455. 0x0021: 0x0021, # EXCLAMATION MARK
  456. 0x0022: 0x0022, # QUOTATION MARK
  457. 0x0023: 0x0023, # NUMBER SIGN
  458. 0x0024: 0x0024, # DOLLAR SIGN
  459. 0x0026: 0x0026, # AMPERSAND
  460. 0x0027: 0x0027, # APOSTROPHE
  461. 0x0028: 0x0028, # LEFT PARENTHESIS
  462. 0x0029: 0x0029, # RIGHT PARENTHESIS
  463. 0x002a: 0x002a, # ASTERISK
  464. 0x002b: 0x002b, # PLUS SIGN
  465. 0x002c: 0x002c, # COMMA
  466. 0x002d: 0x002d, # HYPHEN-MINUS
  467. 0x002e: 0x002e, # FULL STOP
  468. 0x002f: 0x002f, # SOLIDUS
  469. 0x0030: 0x0030, # DIGIT ZERO
  470. 0x0031: 0x0031, # DIGIT ONE
  471. 0x0032: 0x0032, # DIGIT TWO
  472. 0x0033: 0x0033, # DIGIT THREE
  473. 0x0034: 0x0034, # DIGIT FOUR
  474. 0x0035: 0x0035, # DIGIT FIVE
  475. 0x0036: 0x0036, # DIGIT SIX
  476. 0x0037: 0x0037, # DIGIT SEVEN
  477. 0x0038: 0x0038, # DIGIT EIGHT
  478. 0x0039: 0x0039, # DIGIT NINE
  479. 0x003a: 0x003a, # COLON
  480. 0x003b: 0x003b, # SEMICOLON
  481. 0x003c: 0x003c, # LESS-THAN SIGN
  482. 0x003d: 0x003d, # EQUALS SIGN
  483. 0x003e: 0x003e, # GREATER-THAN SIGN
  484. 0x003f: 0x003f, # QUESTION MARK
  485. 0x0040: 0x0040, # COMMERCIAL AT
  486. 0x0041: 0x0041, # LATIN CAPITAL LETTER A
  487. 0x0042: 0x0042, # LATIN CAPITAL LETTER B
  488. 0x0043: 0x0043, # LATIN CAPITAL LETTER C
  489. 0x0044: 0x0044, # LATIN CAPITAL LETTER D
  490. 0x0045: 0x0045, # LATIN CAPITAL LETTER E
  491. 0x0046: 0x0046, # LATIN CAPITAL LETTER F
  492. 0x0047: 0x0047, # LATIN CAPITAL LETTER G
  493. 0x0048: 0x0048, # LATIN CAPITAL LETTER H
  494. 0x0049: 0x0049, # LATIN CAPITAL LETTER I
  495. 0x004a: 0x004a, # LATIN CAPITAL LETTER J
  496. 0x004b: 0x004b, # LATIN CAPITAL LETTER K
  497. 0x004c: 0x004c, # LATIN CAPITAL LETTER L
  498. 0x004d: 0x004d, # LATIN CAPITAL LETTER M
  499. 0x004e: 0x004e, # LATIN CAPITAL LETTER N
  500. 0x004f: 0x004f, # LATIN CAPITAL LETTER O
  501. 0x0050: 0x0050, # LATIN CAPITAL LETTER P
  502. 0x0051: 0x0051, # LATIN CAPITAL LETTER Q
  503. 0x0052: 0x0052, # LATIN CAPITAL LETTER R
  504. 0x0053: 0x0053, # LATIN CAPITAL LETTER S
  505. 0x0054: 0x0054, # LATIN CAPITAL LETTER T
  506. 0x0055: 0x0055, # LATIN CAPITAL LETTER U
  507. 0x0056: 0x0056, # LATIN CAPITAL LETTER V
  508. 0x0057: 0x0057, # LATIN CAPITAL LETTER W
  509. 0x0058: 0x0058, # LATIN CAPITAL LETTER X
  510. 0x0059: 0x0059, # LATIN CAPITAL LETTER Y
  511. 0x005a: 0x005a, # LATIN CAPITAL LETTER Z
  512. 0x005b: 0x005b, # LEFT SQUARE BRACKET
  513. 0x005c: 0x005c, # REVERSE SOLIDUS
  514. 0x005d: 0x005d, # RIGHT SQUARE BRACKET
  515. 0x005e: 0x005e, # CIRCUMFLEX ACCENT
  516. 0x005f: 0x005f, # LOW LINE
  517. 0x0060: 0x0060, # GRAVE ACCENT
  518. 0x0061: 0x0061, # LATIN SMALL LETTER A
  519. 0x0062: 0x0062, # LATIN SMALL LETTER B
  520. 0x0063: 0x0063, # LATIN SMALL LETTER C
  521. 0x0064: 0x0064, # LATIN SMALL LETTER D
  522. 0x0065: 0x0065, # LATIN SMALL LETTER E
  523. 0x0066: 0x0066, # LATIN SMALL LETTER F
  524. 0x0067: 0x0067, # LATIN SMALL LETTER G
  525. 0x0068: 0x0068, # LATIN SMALL LETTER H
  526. 0x0069: 0x0069, # LATIN SMALL LETTER I
  527. 0x006a: 0x006a, # LATIN SMALL LETTER J
  528. 0x006b: 0x006b, # LATIN SMALL LETTER K
  529. 0x006c: 0x006c, # LATIN SMALL LETTER L
  530. 0x006d: 0x006d, # LATIN SMALL LETTER M
  531. 0x006e: 0x006e, # LATIN SMALL LETTER N
  532. 0x006f: 0x006f, # LATIN SMALL LETTER O
  533. 0x0070: 0x0070, # LATIN SMALL LETTER P
  534. 0x0071: 0x0071, # LATIN SMALL LETTER Q
  535. 0x0072: 0x0072, # LATIN SMALL LETTER R
  536. 0x0073: 0x0073, # LATIN SMALL LETTER S
  537. 0x0074: 0x0074, # LATIN SMALL LETTER T
  538. 0x0075: 0x0075, # LATIN SMALL LETTER U
  539. 0x0076: 0x0076, # LATIN SMALL LETTER V
  540. 0x0077: 0x0077, # LATIN SMALL LETTER W
  541. 0x0078: 0x0078, # LATIN SMALL LETTER X
  542. 0x0079: 0x0079, # LATIN SMALL LETTER Y
  543. 0x007a: 0x007a, # LATIN SMALL LETTER Z
  544. 0x007b: 0x007b, # LEFT CURLY BRACKET
  545. 0x007c: 0x007c, # VERTICAL LINE
  546. 0x007d: 0x007d, # RIGHT CURLY BRACKET
  547. 0x007e: 0x007e, # TILDE
  548. 0x007f: 0x007f, # DELETE
  549. 0x00a0: 0x00a0, # NON-BREAKING SPACE
  550. 0x00a2: 0x00c0, # CENT SIGN
  551. 0x00a3: 0x00a3, # POUND SIGN
  552. 0x00a4: 0x00a4, # CURRENCY SIGN
  553. 0x00a6: 0x00db, # BROKEN VERTICAL BAR
  554. 0x00ab: 0x0097, # LEFT POINTING GUILLEMET
  555. 0x00ac: 0x00dc, # NOT SIGN
  556. 0x00ad: 0x00a1, # SOFT HYPHEN
  557. 0x00b0: 0x0080, # DEGREE SIGN
  558. 0x00b1: 0x0093, # PLUS-OR-MINUS SIGN
  559. 0x00b7: 0x0081, # MIDDLE DOT
  560. 0x00bb: 0x0098, # RIGHT POINTING GUILLEMET
  561. 0x00bc: 0x0095, # FRACTION 1/4
  562. 0x00bd: 0x0094, # FRACTION 1/2
  563. 0x00d7: 0x00de, # MULTIPLICATION SIGN
  564. 0x00f7: 0x00dd, # DIVISION SIGN
  565. 0x03b2: 0x0090, # GREEK SMALL BETA
  566. 0x03c6: 0x0092, # GREEK SMALL PHI
  567. 0x060c: 0x00ac, # ARABIC COMMA
  568. 0x061b: 0x00bb, # ARABIC SEMICOLON
  569. 0x061f: 0x00bf, # ARABIC QUESTION MARK
  570. 0x0640: 0x00e0, # ARABIC TATWEEL
  571. 0x0651: 0x00f1, # ARABIC SHADDAH
  572. 0x0660: 0x00b0, # ARABIC-INDIC DIGIT ZERO
  573. 0x0661: 0x00b1, # ARABIC-INDIC DIGIT ONE
  574. 0x0662: 0x00b2, # ARABIC-INDIC DIGIT TWO
  575. 0x0663: 0x00b3, # ARABIC-INDIC DIGIT THREE
  576. 0x0664: 0x00b4, # ARABIC-INDIC DIGIT FOUR
  577. 0x0665: 0x00b5, # ARABIC-INDIC DIGIT FIVE
  578. 0x0666: 0x00b6, # ARABIC-INDIC DIGIT SIX
  579. 0x0667: 0x00b7, # ARABIC-INDIC DIGIT SEVEN
  580. 0x0668: 0x00b8, # ARABIC-INDIC DIGIT EIGHT
  581. 0x0669: 0x00b9, # ARABIC-INDIC DIGIT NINE
  582. 0x066a: 0x0025, # ARABIC PERCENT SIGN
  583. 0x2219: 0x0082, # BULLET OPERATOR
  584. 0x221a: 0x0083, # SQUARE ROOT
  585. 0x221e: 0x0091, # INFINITY
  586. 0x2248: 0x0096, # ALMOST EQUAL TO
  587. 0x2500: 0x0085, # FORMS LIGHT HORIZONTAL
  588. 0x2502: 0x0086, # FORMS LIGHT VERTICAL
  589. 0x250c: 0x008d, # FORMS LIGHT DOWN AND RIGHT
  590. 0x2510: 0x008c, # FORMS LIGHT DOWN AND LEFT
  591. 0x2514: 0x008e, # FORMS LIGHT UP AND RIGHT
  592. 0x2518: 0x008f, # FORMS LIGHT UP AND LEFT
  593. 0x251c: 0x008a, # FORMS LIGHT VERTICAL AND RIGHT
  594. 0x2524: 0x0088, # FORMS LIGHT VERTICAL AND LEFT
  595. 0x252c: 0x0089, # FORMS LIGHT DOWN AND HORIZONTAL
  596. 0x2534: 0x008b, # FORMS LIGHT UP AND HORIZONTAL
  597. 0x253c: 0x0087, # FORMS LIGHT VERTICAL AND HORIZONTAL
  598. 0x2592: 0x0084, # MEDIUM SHADE
  599. 0x25a0: 0x00fe, # BLACK SQUARE
  600. 0xfe7d: 0x00f0, # ARABIC SHADDA MEDIAL FORM
  601. 0xfe80: 0x00c1, # ARABIC LETTER HAMZA ISOLATED FORM
  602. 0xfe81: 0x00c2, # ARABIC LETTER ALEF WITH MADDA ABOVE ISOLATED FORM
  603. 0xfe82: 0x00a2, # ARABIC LETTER ALEF WITH MADDA ABOVE FINAL FORM
  604. 0xfe83: 0x00c3, # ARABIC LETTER ALEF WITH HAMZA ABOVE ISOLATED FORM
  605. 0xfe84: 0x00a5, # ARABIC LETTER ALEF WITH HAMZA ABOVE FINAL FORM
  606. 0xfe85: 0x00c4, # ARABIC LETTER WAW WITH HAMZA ABOVE ISOLATED FORM
  607. 0xfe8b: 0x00c6, # ARABIC LETTER YEH WITH HAMZA ABOVE INITIAL FORM
  608. 0xfe8d: 0x00c7, # ARABIC LETTER ALEF ISOLATED FORM
  609. 0xfe8e: 0x00a8, # ARABIC LETTER ALEF FINAL FORM
  610. 0xfe8f: 0x00a9, # ARABIC LETTER BEH ISOLATED FORM
  611. 0xfe91: 0x00c8, # ARABIC LETTER BEH INITIAL FORM
  612. 0xfe93: 0x00c9, # ARABIC LETTER TEH MARBUTA ISOLATED FORM
  613. 0xfe95: 0x00aa, # ARABIC LETTER TEH ISOLATED FORM
  614. 0xfe97: 0x00ca, # ARABIC LETTER TEH INITIAL FORM
  615. 0xfe99: 0x00ab, # ARABIC LETTER THEH ISOLATED FORM
  616. 0xfe9b: 0x00cb, # ARABIC LETTER THEH INITIAL FORM
  617. 0xfe9d: 0x00ad, # ARABIC LETTER JEEM ISOLATED FORM
  618. 0xfe9f: 0x00cc, # ARABIC LETTER JEEM INITIAL FORM
  619. 0xfea1: 0x00ae, # ARABIC LETTER HAH ISOLATED FORM
  620. 0xfea3: 0x00cd, # ARABIC LETTER HAH INITIAL FORM
  621. 0xfea5: 0x00af, # ARABIC LETTER KHAH ISOLATED FORM
  622. 0xfea7: 0x00ce, # ARABIC LETTER KHAH INITIAL FORM
  623. 0xfea9: 0x00cf, # ARABIC LETTER DAL ISOLATED FORM
  624. 0xfeab: 0x00d0, # ARABIC LETTER THAL ISOLATED FORM
  625. 0xfead: 0x00d1, # ARABIC LETTER REH ISOLATED FORM
  626. 0xfeaf: 0x00d2, # ARABIC LETTER ZAIN ISOLATED FORM
  627. 0xfeb1: 0x00bc, # ARABIC LETTER SEEN ISOLATED FORM
  628. 0xfeb3: 0x00d3, # ARABIC LETTER SEEN INITIAL FORM
  629. 0xfeb5: 0x00bd, # ARABIC LETTER SHEEN ISOLATED FORM
  630. 0xfeb7: 0x00d4, # ARABIC LETTER SHEEN INITIAL FORM
  631. 0xfeb9: 0x00be, # ARABIC LETTER SAD ISOLATED FORM
  632. 0xfebb: 0x00d5, # ARABIC LETTER SAD INITIAL FORM
  633. 0xfebd: 0x00eb, # ARABIC LETTER DAD ISOLATED FORM
  634. 0xfebf: 0x00d6, # ARABIC LETTER DAD INITIAL FORM
  635. 0xfec1: 0x00d7, # ARABIC LETTER TAH ISOLATED FORM
  636. 0xfec5: 0x00d8, # ARABIC LETTER ZAH ISOLATED FORM
  637. 0xfec9: 0x00df, # ARABIC LETTER AIN ISOLATED FORM
  638. 0xfeca: 0x00c5, # ARABIC LETTER AIN FINAL FORM
  639. 0xfecb: 0x00d9, # ARABIC LETTER AIN INITIAL FORM
  640. 0xfecc: 0x00ec, # ARABIC LETTER AIN MEDIAL FORM
  641. 0xfecd: 0x00ee, # ARABIC LETTER GHAIN ISOLATED FORM
  642. 0xfece: 0x00ed, # ARABIC LETTER GHAIN FINAL FORM
  643. 0xfecf: 0x00da, # ARABIC LETTER GHAIN INITIAL FORM
  644. 0xfed0: 0x00f7, # ARABIC LETTER GHAIN MEDIAL FORM
  645. 0xfed1: 0x00ba, # ARABIC LETTER FEH ISOLATED FORM
  646. 0xfed3: 0x00e1, # ARABIC LETTER FEH INITIAL FORM
  647. 0xfed5: 0x00f8, # ARABIC LETTER QAF ISOLATED FORM
  648. 0xfed7: 0x00e2, # ARABIC LETTER QAF INITIAL FORM
  649. 0xfed9: 0x00fc, # ARABIC LETTER KAF ISOLATED FORM
  650. 0xfedb: 0x00e3, # ARABIC LETTER KAF INITIAL FORM
  651. 0xfedd: 0x00fb, # ARABIC LETTER LAM ISOLATED FORM
  652. 0xfedf: 0x00e4, # ARABIC LETTER LAM INITIAL FORM
  653. 0xfee1: 0x00ef, # ARABIC LETTER MEEM ISOLATED FORM
  654. 0xfee3: 0x00e5, # ARABIC LETTER MEEM INITIAL FORM
  655. 0xfee5: 0x00f2, # ARABIC LETTER NOON ISOLATED FORM
  656. 0xfee7: 0x00e6, # ARABIC LETTER NOON INITIAL FORM
  657. 0xfee9: 0x00f3, # ARABIC LETTER HEH ISOLATED FORM
  658. 0xfeeb: 0x00e7, # ARABIC LETTER HEH INITIAL FORM
  659. 0xfeec: 0x00f4, # ARABIC LETTER HEH MEDIAL FORM
  660. 0xfeed: 0x00e8, # ARABIC LETTER WAW ISOLATED FORM
  661. 0xfeef: 0x00e9, # ARABIC LETTER ALEF MAKSURA ISOLATED FORM
  662. 0xfef0: 0x00f5, # ARABIC LETTER ALEF MAKSURA FINAL FORM
  663. 0xfef1: 0x00fd, # ARABIC LETTER YEH ISOLATED FORM
  664. 0xfef2: 0x00f6, # ARABIC LETTER YEH FINAL FORM
  665. 0xfef3: 0x00ea, # ARABIC LETTER YEH INITIAL FORM
  666. 0xfef5: 0x00f9, # ARABIC LIGATURE LAM WITH ALEF WITH MADDA ABOVE ISOLATED FORM
  667. 0xfef6: 0x00fa, # ARABIC LIGATURE LAM WITH ALEF WITH MADDA ABOVE FINAL FORM
  668. 0xfef7: 0x0099, # ARABIC LIGATURE LAM WITH ALEF WITH HAMZA ABOVE ISOLATED FORM
  669. 0xfef8: 0x009a, # ARABIC LIGATURE LAM WITH ALEF WITH HAMZA ABOVE FINAL FORM
  670. 0xfefb: 0x009d, # ARABIC LIGATURE LAM WITH ALEF ISOLATED FORM
  671. 0xfefc: 0x009e, # ARABIC LIGATURE LAM WITH ALEF FINAL FORM
  672. }