cp857.py 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694
  1. """ Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP857.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='cp857',
  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: 0x00c7, # LATIN CAPITAL LETTER C WITH CEDILLA
  35. 0x0081: 0x00fc, # LATIN SMALL LETTER U WITH DIAERESIS
  36. 0x0082: 0x00e9, # LATIN SMALL LETTER E WITH ACUTE
  37. 0x0083: 0x00e2, # LATIN SMALL LETTER A WITH CIRCUMFLEX
  38. 0x0084: 0x00e4, # LATIN SMALL LETTER A WITH DIAERESIS
  39. 0x0085: 0x00e0, # LATIN SMALL LETTER A WITH GRAVE
  40. 0x0086: 0x00e5, # LATIN SMALL LETTER A WITH RING ABOVE
  41. 0x0087: 0x00e7, # LATIN SMALL LETTER C WITH CEDILLA
  42. 0x0088: 0x00ea, # LATIN SMALL LETTER E WITH CIRCUMFLEX
  43. 0x0089: 0x00eb, # LATIN SMALL LETTER E WITH DIAERESIS
  44. 0x008a: 0x00e8, # LATIN SMALL LETTER E WITH GRAVE
  45. 0x008b: 0x00ef, # LATIN SMALL LETTER I WITH DIAERESIS
  46. 0x008c: 0x00ee, # LATIN SMALL LETTER I WITH CIRCUMFLEX
  47. 0x008d: 0x0131, # LATIN SMALL LETTER DOTLESS I
  48. 0x008e: 0x00c4, # LATIN CAPITAL LETTER A WITH DIAERESIS
  49. 0x008f: 0x00c5, # LATIN CAPITAL LETTER A WITH RING ABOVE
  50. 0x0090: 0x00c9, # LATIN CAPITAL LETTER E WITH ACUTE
  51. 0x0091: 0x00e6, # LATIN SMALL LIGATURE AE
  52. 0x0092: 0x00c6, # LATIN CAPITAL LIGATURE AE
  53. 0x0093: 0x00f4, # LATIN SMALL LETTER O WITH CIRCUMFLEX
  54. 0x0094: 0x00f6, # LATIN SMALL LETTER O WITH DIAERESIS
  55. 0x0095: 0x00f2, # LATIN SMALL LETTER O WITH GRAVE
  56. 0x0096: 0x00fb, # LATIN SMALL LETTER U WITH CIRCUMFLEX
  57. 0x0097: 0x00f9, # LATIN SMALL LETTER U WITH GRAVE
  58. 0x0098: 0x0130, # LATIN CAPITAL LETTER I WITH DOT ABOVE
  59. 0x0099: 0x00d6, # LATIN CAPITAL LETTER O WITH DIAERESIS
  60. 0x009a: 0x00dc, # LATIN CAPITAL LETTER U WITH DIAERESIS
  61. 0x009b: 0x00f8, # LATIN SMALL LETTER O WITH STROKE
  62. 0x009c: 0x00a3, # POUND SIGN
  63. 0x009d: 0x00d8, # LATIN CAPITAL LETTER O WITH STROKE
  64. 0x009e: 0x015e, # LATIN CAPITAL LETTER S WITH CEDILLA
  65. 0x009f: 0x015f, # LATIN SMALL LETTER S WITH CEDILLA
  66. 0x00a0: 0x00e1, # LATIN SMALL LETTER A WITH ACUTE
  67. 0x00a1: 0x00ed, # LATIN SMALL LETTER I WITH ACUTE
  68. 0x00a2: 0x00f3, # LATIN SMALL LETTER O WITH ACUTE
  69. 0x00a3: 0x00fa, # LATIN SMALL LETTER U WITH ACUTE
  70. 0x00a4: 0x00f1, # LATIN SMALL LETTER N WITH TILDE
  71. 0x00a5: 0x00d1, # LATIN CAPITAL LETTER N WITH TILDE
  72. 0x00a6: 0x011e, # LATIN CAPITAL LETTER G WITH BREVE
  73. 0x00a7: 0x011f, # LATIN SMALL LETTER G WITH BREVE
  74. 0x00a8: 0x00bf, # INVERTED QUESTION MARK
  75. 0x00a9: 0x00ae, # REGISTERED SIGN
  76. 0x00aa: 0x00ac, # NOT SIGN
  77. 0x00ab: 0x00bd, # VULGAR FRACTION ONE HALF
  78. 0x00ac: 0x00bc, # VULGAR FRACTION ONE QUARTER
  79. 0x00ad: 0x00a1, # INVERTED EXCLAMATION MARK
  80. 0x00ae: 0x00ab, # LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
  81. 0x00af: 0x00bb, # RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
  82. 0x00b0: 0x2591, # LIGHT SHADE
  83. 0x00b1: 0x2592, # MEDIUM SHADE
  84. 0x00b2: 0x2593, # DARK SHADE
  85. 0x00b3: 0x2502, # BOX DRAWINGS LIGHT VERTICAL
  86. 0x00b4: 0x2524, # BOX DRAWINGS LIGHT VERTICAL AND LEFT
  87. 0x00b5: 0x00c1, # LATIN CAPITAL LETTER A WITH ACUTE
  88. 0x00b6: 0x00c2, # LATIN CAPITAL LETTER A WITH CIRCUMFLEX
  89. 0x00b7: 0x00c0, # LATIN CAPITAL LETTER A WITH GRAVE
  90. 0x00b8: 0x00a9, # COPYRIGHT SIGN
  91. 0x00b9: 0x2563, # BOX DRAWINGS DOUBLE VERTICAL AND LEFT
  92. 0x00ba: 0x2551, # BOX DRAWINGS DOUBLE VERTICAL
  93. 0x00bb: 0x2557, # BOX DRAWINGS DOUBLE DOWN AND LEFT
  94. 0x00bc: 0x255d, # BOX DRAWINGS DOUBLE UP AND LEFT
  95. 0x00bd: 0x00a2, # CENT SIGN
  96. 0x00be: 0x00a5, # YEN SIGN
  97. 0x00bf: 0x2510, # BOX DRAWINGS LIGHT DOWN AND LEFT
  98. 0x00c0: 0x2514, # BOX DRAWINGS LIGHT UP AND RIGHT
  99. 0x00c1: 0x2534, # BOX DRAWINGS LIGHT UP AND HORIZONTAL
  100. 0x00c2: 0x252c, # BOX DRAWINGS LIGHT DOWN AND HORIZONTAL
  101. 0x00c3: 0x251c, # BOX DRAWINGS LIGHT VERTICAL AND RIGHT
  102. 0x00c4: 0x2500, # BOX DRAWINGS LIGHT HORIZONTAL
  103. 0x00c5: 0x253c, # BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL
  104. 0x00c6: 0x00e3, # LATIN SMALL LETTER A WITH TILDE
  105. 0x00c7: 0x00c3, # LATIN CAPITAL LETTER A WITH TILDE
  106. 0x00c8: 0x255a, # BOX DRAWINGS DOUBLE UP AND RIGHT
  107. 0x00c9: 0x2554, # BOX DRAWINGS DOUBLE DOWN AND RIGHT
  108. 0x00ca: 0x2569, # BOX DRAWINGS DOUBLE UP AND HORIZONTAL
  109. 0x00cb: 0x2566, # BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL
  110. 0x00cc: 0x2560, # BOX DRAWINGS DOUBLE VERTICAL AND RIGHT
  111. 0x00cd: 0x2550, # BOX DRAWINGS DOUBLE HORIZONTAL
  112. 0x00ce: 0x256c, # BOX DRAWINGS DOUBLE VERTICAL AND HORIZONTAL
  113. 0x00cf: 0x00a4, # CURRENCY SIGN
  114. 0x00d0: 0x00ba, # MASCULINE ORDINAL INDICATOR
  115. 0x00d1: 0x00aa, # FEMININE ORDINAL INDICATOR
  116. 0x00d2: 0x00ca, # LATIN CAPITAL LETTER E WITH CIRCUMFLEX
  117. 0x00d3: 0x00cb, # LATIN CAPITAL LETTER E WITH DIAERESIS
  118. 0x00d4: 0x00c8, # LATIN CAPITAL LETTER E WITH GRAVE
  119. 0x00d5: None, # UNDEFINED
  120. 0x00d6: 0x00cd, # LATIN CAPITAL LETTER I WITH ACUTE
  121. 0x00d7: 0x00ce, # LATIN CAPITAL LETTER I WITH CIRCUMFLEX
  122. 0x00d8: 0x00cf, # LATIN CAPITAL LETTER I WITH DIAERESIS
  123. 0x00d9: 0x2518, # BOX DRAWINGS LIGHT UP AND LEFT
  124. 0x00da: 0x250c, # BOX DRAWINGS LIGHT DOWN AND RIGHT
  125. 0x00db: 0x2588, # FULL BLOCK
  126. 0x00dc: 0x2584, # LOWER HALF BLOCK
  127. 0x00dd: 0x00a6, # BROKEN BAR
  128. 0x00de: 0x00cc, # LATIN CAPITAL LETTER I WITH GRAVE
  129. 0x00df: 0x2580, # UPPER HALF BLOCK
  130. 0x00e0: 0x00d3, # LATIN CAPITAL LETTER O WITH ACUTE
  131. 0x00e1: 0x00df, # LATIN SMALL LETTER SHARP S
  132. 0x00e2: 0x00d4, # LATIN CAPITAL LETTER O WITH CIRCUMFLEX
  133. 0x00e3: 0x00d2, # LATIN CAPITAL LETTER O WITH GRAVE
  134. 0x00e4: 0x00f5, # LATIN SMALL LETTER O WITH TILDE
  135. 0x00e5: 0x00d5, # LATIN CAPITAL LETTER O WITH TILDE
  136. 0x00e6: 0x00b5, # MICRO SIGN
  137. 0x00e7: None, # UNDEFINED
  138. 0x00e8: 0x00d7, # MULTIPLICATION SIGN
  139. 0x00e9: 0x00da, # LATIN CAPITAL LETTER U WITH ACUTE
  140. 0x00ea: 0x00db, # LATIN CAPITAL LETTER U WITH CIRCUMFLEX
  141. 0x00eb: 0x00d9, # LATIN CAPITAL LETTER U WITH GRAVE
  142. 0x00ed: 0x00ff, # LATIN SMALL LETTER Y WITH DIAERESIS
  143. 0x00ee: 0x00af, # MACRON
  144. 0x00ef: 0x00b4, # ACUTE ACCENT
  145. 0x00f0: 0x00ad, # SOFT HYPHEN
  146. 0x00f1: 0x00b1, # PLUS-MINUS SIGN
  147. 0x00f2: None, # UNDEFINED
  148. 0x00f3: 0x00be, # VULGAR FRACTION THREE QUARTERS
  149. 0x00f4: 0x00b6, # PILCROW SIGN
  150. 0x00f5: 0x00a7, # SECTION SIGN
  151. 0x00f6: 0x00f7, # DIVISION SIGN
  152. 0x00f7: 0x00b8, # CEDILLA
  153. 0x00f8: 0x00b0, # DEGREE SIGN
  154. 0x00f9: 0x00a8, # DIAERESIS
  155. 0x00fa: 0x00b7, # MIDDLE DOT
  156. 0x00fb: 0x00b9, # SUPERSCRIPT ONE
  157. 0x00fc: 0x00b3, # SUPERSCRIPT THREE
  158. 0x00fd: 0x00b2, # SUPERSCRIPT TWO
  159. 0x00fe: 0x25a0, # BLACK SQUARE
  160. 0x00ff: 0x00a0, # NO-BREAK SPACE
  161. })
  162. ### Decoding Table
  163. decoding_table = (
  164. '\x00' # 0x0000 -> NULL
  165. '\x01' # 0x0001 -> START OF HEADING
  166. '\x02' # 0x0002 -> START OF TEXT
  167. '\x03' # 0x0003 -> END OF TEXT
  168. '\x04' # 0x0004 -> END OF TRANSMISSION
  169. '\x05' # 0x0005 -> ENQUIRY
  170. '\x06' # 0x0006 -> ACKNOWLEDGE
  171. '\x07' # 0x0007 -> BELL
  172. '\x08' # 0x0008 -> BACKSPACE
  173. '\t' # 0x0009 -> HORIZONTAL TABULATION
  174. '\n' # 0x000a -> LINE FEED
  175. '\x0b' # 0x000b -> VERTICAL TABULATION
  176. '\x0c' # 0x000c -> FORM FEED
  177. '\r' # 0x000d -> CARRIAGE RETURN
  178. '\x0e' # 0x000e -> SHIFT OUT
  179. '\x0f' # 0x000f -> SHIFT IN
  180. '\x10' # 0x0010 -> DATA LINK ESCAPE
  181. '\x11' # 0x0011 -> DEVICE CONTROL ONE
  182. '\x12' # 0x0012 -> DEVICE CONTROL TWO
  183. '\x13' # 0x0013 -> DEVICE CONTROL THREE
  184. '\x14' # 0x0014 -> DEVICE CONTROL FOUR
  185. '\x15' # 0x0015 -> NEGATIVE ACKNOWLEDGE
  186. '\x16' # 0x0016 -> SYNCHRONOUS IDLE
  187. '\x17' # 0x0017 -> END OF TRANSMISSION BLOCK
  188. '\x18' # 0x0018 -> CANCEL
  189. '\x19' # 0x0019 -> END OF MEDIUM
  190. '\x1a' # 0x001a -> SUBSTITUTE
  191. '\x1b' # 0x001b -> ESCAPE
  192. '\x1c' # 0x001c -> FILE SEPARATOR
  193. '\x1d' # 0x001d -> GROUP SEPARATOR
  194. '\x1e' # 0x001e -> RECORD SEPARATOR
  195. '\x1f' # 0x001f -> UNIT SEPARATOR
  196. ' ' # 0x0020 -> SPACE
  197. '!' # 0x0021 -> EXCLAMATION MARK
  198. '"' # 0x0022 -> QUOTATION MARK
  199. '#' # 0x0023 -> NUMBER SIGN
  200. '$' # 0x0024 -> DOLLAR SIGN
  201. '%' # 0x0025 -> PERCENT SIGN
  202. '&' # 0x0026 -> AMPERSAND
  203. "'" # 0x0027 -> APOSTROPHE
  204. '(' # 0x0028 -> LEFT PARENTHESIS
  205. ')' # 0x0029 -> RIGHT PARENTHESIS
  206. '*' # 0x002a -> ASTERISK
  207. '+' # 0x002b -> PLUS SIGN
  208. ',' # 0x002c -> COMMA
  209. '-' # 0x002d -> HYPHEN-MINUS
  210. '.' # 0x002e -> FULL STOP
  211. '/' # 0x002f -> SOLIDUS
  212. '0' # 0x0030 -> DIGIT ZERO
  213. '1' # 0x0031 -> DIGIT ONE
  214. '2' # 0x0032 -> DIGIT TWO
  215. '3' # 0x0033 -> DIGIT THREE
  216. '4' # 0x0034 -> DIGIT FOUR
  217. '5' # 0x0035 -> DIGIT FIVE
  218. '6' # 0x0036 -> DIGIT SIX
  219. '7' # 0x0037 -> DIGIT SEVEN
  220. '8' # 0x0038 -> DIGIT EIGHT
  221. '9' # 0x0039 -> DIGIT NINE
  222. ':' # 0x003a -> COLON
  223. ';' # 0x003b -> SEMICOLON
  224. '<' # 0x003c -> LESS-THAN SIGN
  225. '=' # 0x003d -> EQUALS SIGN
  226. '>' # 0x003e -> GREATER-THAN SIGN
  227. '?' # 0x003f -> QUESTION MARK
  228. '@' # 0x0040 -> COMMERCIAL AT
  229. 'A' # 0x0041 -> LATIN CAPITAL LETTER A
  230. 'B' # 0x0042 -> LATIN CAPITAL LETTER B
  231. 'C' # 0x0043 -> LATIN CAPITAL LETTER C
  232. 'D' # 0x0044 -> LATIN CAPITAL LETTER D
  233. 'E' # 0x0045 -> LATIN CAPITAL LETTER E
  234. 'F' # 0x0046 -> LATIN CAPITAL LETTER F
  235. 'G' # 0x0047 -> LATIN CAPITAL LETTER G
  236. 'H' # 0x0048 -> LATIN CAPITAL LETTER H
  237. 'I' # 0x0049 -> LATIN CAPITAL LETTER I
  238. 'J' # 0x004a -> LATIN CAPITAL LETTER J
  239. 'K' # 0x004b -> LATIN CAPITAL LETTER K
  240. 'L' # 0x004c -> LATIN CAPITAL LETTER L
  241. 'M' # 0x004d -> LATIN CAPITAL LETTER M
  242. 'N' # 0x004e -> LATIN CAPITAL LETTER N
  243. 'O' # 0x004f -> LATIN CAPITAL LETTER O
  244. 'P' # 0x0050 -> LATIN CAPITAL LETTER P
  245. 'Q' # 0x0051 -> LATIN CAPITAL LETTER Q
  246. 'R' # 0x0052 -> LATIN CAPITAL LETTER R
  247. 'S' # 0x0053 -> LATIN CAPITAL LETTER S
  248. 'T' # 0x0054 -> LATIN CAPITAL LETTER T
  249. 'U' # 0x0055 -> LATIN CAPITAL LETTER U
  250. 'V' # 0x0056 -> LATIN CAPITAL LETTER V
  251. 'W' # 0x0057 -> LATIN CAPITAL LETTER W
  252. 'X' # 0x0058 -> LATIN CAPITAL LETTER X
  253. 'Y' # 0x0059 -> LATIN CAPITAL LETTER Y
  254. 'Z' # 0x005a -> LATIN CAPITAL LETTER Z
  255. '[' # 0x005b -> LEFT SQUARE BRACKET
  256. '\\' # 0x005c -> REVERSE SOLIDUS
  257. ']' # 0x005d -> RIGHT SQUARE BRACKET
  258. '^' # 0x005e -> CIRCUMFLEX ACCENT
  259. '_' # 0x005f -> LOW LINE
  260. '`' # 0x0060 -> GRAVE ACCENT
  261. 'a' # 0x0061 -> LATIN SMALL LETTER A
  262. 'b' # 0x0062 -> LATIN SMALL LETTER B
  263. 'c' # 0x0063 -> LATIN SMALL LETTER C
  264. 'd' # 0x0064 -> LATIN SMALL LETTER D
  265. 'e' # 0x0065 -> LATIN SMALL LETTER E
  266. 'f' # 0x0066 -> LATIN SMALL LETTER F
  267. 'g' # 0x0067 -> LATIN SMALL LETTER G
  268. 'h' # 0x0068 -> LATIN SMALL LETTER H
  269. 'i' # 0x0069 -> LATIN SMALL LETTER I
  270. 'j' # 0x006a -> LATIN SMALL LETTER J
  271. 'k' # 0x006b -> LATIN SMALL LETTER K
  272. 'l' # 0x006c -> LATIN SMALL LETTER L
  273. 'm' # 0x006d -> LATIN SMALL LETTER M
  274. 'n' # 0x006e -> LATIN SMALL LETTER N
  275. 'o' # 0x006f -> LATIN SMALL LETTER O
  276. 'p' # 0x0070 -> LATIN SMALL LETTER P
  277. 'q' # 0x0071 -> LATIN SMALL LETTER Q
  278. 'r' # 0x0072 -> LATIN SMALL LETTER R
  279. 's' # 0x0073 -> LATIN SMALL LETTER S
  280. 't' # 0x0074 -> LATIN SMALL LETTER T
  281. 'u' # 0x0075 -> LATIN SMALL LETTER U
  282. 'v' # 0x0076 -> LATIN SMALL LETTER V
  283. 'w' # 0x0077 -> LATIN SMALL LETTER W
  284. 'x' # 0x0078 -> LATIN SMALL LETTER X
  285. 'y' # 0x0079 -> LATIN SMALL LETTER Y
  286. 'z' # 0x007a -> LATIN SMALL LETTER Z
  287. '{' # 0x007b -> LEFT CURLY BRACKET
  288. '|' # 0x007c -> VERTICAL LINE
  289. '}' # 0x007d -> RIGHT CURLY BRACKET
  290. '~' # 0x007e -> TILDE
  291. '\x7f' # 0x007f -> DELETE
  292. '\xc7' # 0x0080 -> LATIN CAPITAL LETTER C WITH CEDILLA
  293. '\xfc' # 0x0081 -> LATIN SMALL LETTER U WITH DIAERESIS
  294. '\xe9' # 0x0082 -> LATIN SMALL LETTER E WITH ACUTE
  295. '\xe2' # 0x0083 -> LATIN SMALL LETTER A WITH CIRCUMFLEX
  296. '\xe4' # 0x0084 -> LATIN SMALL LETTER A WITH DIAERESIS
  297. '\xe0' # 0x0085 -> LATIN SMALL LETTER A WITH GRAVE
  298. '\xe5' # 0x0086 -> LATIN SMALL LETTER A WITH RING ABOVE
  299. '\xe7' # 0x0087 -> LATIN SMALL LETTER C WITH CEDILLA
  300. '\xea' # 0x0088 -> LATIN SMALL LETTER E WITH CIRCUMFLEX
  301. '\xeb' # 0x0089 -> LATIN SMALL LETTER E WITH DIAERESIS
  302. '\xe8' # 0x008a -> LATIN SMALL LETTER E WITH GRAVE
  303. '\xef' # 0x008b -> LATIN SMALL LETTER I WITH DIAERESIS
  304. '\xee' # 0x008c -> LATIN SMALL LETTER I WITH CIRCUMFLEX
  305. '\u0131' # 0x008d -> LATIN SMALL LETTER DOTLESS I
  306. '\xc4' # 0x008e -> LATIN CAPITAL LETTER A WITH DIAERESIS
  307. '\xc5' # 0x008f -> LATIN CAPITAL LETTER A WITH RING ABOVE
  308. '\xc9' # 0x0090 -> LATIN CAPITAL LETTER E WITH ACUTE
  309. '\xe6' # 0x0091 -> LATIN SMALL LIGATURE AE
  310. '\xc6' # 0x0092 -> LATIN CAPITAL LIGATURE AE
  311. '\xf4' # 0x0093 -> LATIN SMALL LETTER O WITH CIRCUMFLEX
  312. '\xf6' # 0x0094 -> LATIN SMALL LETTER O WITH DIAERESIS
  313. '\xf2' # 0x0095 -> LATIN SMALL LETTER O WITH GRAVE
  314. '\xfb' # 0x0096 -> LATIN SMALL LETTER U WITH CIRCUMFLEX
  315. '\xf9' # 0x0097 -> LATIN SMALL LETTER U WITH GRAVE
  316. '\u0130' # 0x0098 -> LATIN CAPITAL LETTER I WITH DOT ABOVE
  317. '\xd6' # 0x0099 -> LATIN CAPITAL LETTER O WITH DIAERESIS
  318. '\xdc' # 0x009a -> LATIN CAPITAL LETTER U WITH DIAERESIS
  319. '\xf8' # 0x009b -> LATIN SMALL LETTER O WITH STROKE
  320. '\xa3' # 0x009c -> POUND SIGN
  321. '\xd8' # 0x009d -> LATIN CAPITAL LETTER O WITH STROKE
  322. '\u015e' # 0x009e -> LATIN CAPITAL LETTER S WITH CEDILLA
  323. '\u015f' # 0x009f -> LATIN SMALL LETTER S WITH CEDILLA
  324. '\xe1' # 0x00a0 -> LATIN SMALL LETTER A WITH ACUTE
  325. '\xed' # 0x00a1 -> LATIN SMALL LETTER I WITH ACUTE
  326. '\xf3' # 0x00a2 -> LATIN SMALL LETTER O WITH ACUTE
  327. '\xfa' # 0x00a3 -> LATIN SMALL LETTER U WITH ACUTE
  328. '\xf1' # 0x00a4 -> LATIN SMALL LETTER N WITH TILDE
  329. '\xd1' # 0x00a5 -> LATIN CAPITAL LETTER N WITH TILDE
  330. '\u011e' # 0x00a6 -> LATIN CAPITAL LETTER G WITH BREVE
  331. '\u011f' # 0x00a7 -> LATIN SMALL LETTER G WITH BREVE
  332. '\xbf' # 0x00a8 -> INVERTED QUESTION MARK
  333. '\xae' # 0x00a9 -> REGISTERED SIGN
  334. '\xac' # 0x00aa -> NOT SIGN
  335. '\xbd' # 0x00ab -> VULGAR FRACTION ONE HALF
  336. '\xbc' # 0x00ac -> VULGAR FRACTION ONE QUARTER
  337. '\xa1' # 0x00ad -> INVERTED EXCLAMATION MARK
  338. '\xab' # 0x00ae -> LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
  339. '\xbb' # 0x00af -> RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
  340. '\u2591' # 0x00b0 -> LIGHT SHADE
  341. '\u2592' # 0x00b1 -> MEDIUM SHADE
  342. '\u2593' # 0x00b2 -> DARK SHADE
  343. '\u2502' # 0x00b3 -> BOX DRAWINGS LIGHT VERTICAL
  344. '\u2524' # 0x00b4 -> BOX DRAWINGS LIGHT VERTICAL AND LEFT
  345. '\xc1' # 0x00b5 -> LATIN CAPITAL LETTER A WITH ACUTE
  346. '\xc2' # 0x00b6 -> LATIN CAPITAL LETTER A WITH CIRCUMFLEX
  347. '\xc0' # 0x00b7 -> LATIN CAPITAL LETTER A WITH GRAVE
  348. '\xa9' # 0x00b8 -> COPYRIGHT SIGN
  349. '\u2563' # 0x00b9 -> BOX DRAWINGS DOUBLE VERTICAL AND LEFT
  350. '\u2551' # 0x00ba -> BOX DRAWINGS DOUBLE VERTICAL
  351. '\u2557' # 0x00bb -> BOX DRAWINGS DOUBLE DOWN AND LEFT
  352. '\u255d' # 0x00bc -> BOX DRAWINGS DOUBLE UP AND LEFT
  353. '\xa2' # 0x00bd -> CENT SIGN
  354. '\xa5' # 0x00be -> YEN SIGN
  355. '\u2510' # 0x00bf -> BOX DRAWINGS LIGHT DOWN AND LEFT
  356. '\u2514' # 0x00c0 -> BOX DRAWINGS LIGHT UP AND RIGHT
  357. '\u2534' # 0x00c1 -> BOX DRAWINGS LIGHT UP AND HORIZONTAL
  358. '\u252c' # 0x00c2 -> BOX DRAWINGS LIGHT DOWN AND HORIZONTAL
  359. '\u251c' # 0x00c3 -> BOX DRAWINGS LIGHT VERTICAL AND RIGHT
  360. '\u2500' # 0x00c4 -> BOX DRAWINGS LIGHT HORIZONTAL
  361. '\u253c' # 0x00c5 -> BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL
  362. '\xe3' # 0x00c6 -> LATIN SMALL LETTER A WITH TILDE
  363. '\xc3' # 0x00c7 -> LATIN CAPITAL LETTER A WITH TILDE
  364. '\u255a' # 0x00c8 -> BOX DRAWINGS DOUBLE UP AND RIGHT
  365. '\u2554' # 0x00c9 -> BOX DRAWINGS DOUBLE DOWN AND RIGHT
  366. '\u2569' # 0x00ca -> BOX DRAWINGS DOUBLE UP AND HORIZONTAL
  367. '\u2566' # 0x00cb -> BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL
  368. '\u2560' # 0x00cc -> BOX DRAWINGS DOUBLE VERTICAL AND RIGHT
  369. '\u2550' # 0x00cd -> BOX DRAWINGS DOUBLE HORIZONTAL
  370. '\u256c' # 0x00ce -> BOX DRAWINGS DOUBLE VERTICAL AND HORIZONTAL
  371. '\xa4' # 0x00cf -> CURRENCY SIGN
  372. '\xba' # 0x00d0 -> MASCULINE ORDINAL INDICATOR
  373. '\xaa' # 0x00d1 -> FEMININE ORDINAL INDICATOR
  374. '\xca' # 0x00d2 -> LATIN CAPITAL LETTER E WITH CIRCUMFLEX
  375. '\xcb' # 0x00d3 -> LATIN CAPITAL LETTER E WITH DIAERESIS
  376. '\xc8' # 0x00d4 -> LATIN CAPITAL LETTER E WITH GRAVE
  377. '\ufffe' # 0x00d5 -> UNDEFINED
  378. '\xcd' # 0x00d6 -> LATIN CAPITAL LETTER I WITH ACUTE
  379. '\xce' # 0x00d7 -> LATIN CAPITAL LETTER I WITH CIRCUMFLEX
  380. '\xcf' # 0x00d8 -> LATIN CAPITAL LETTER I WITH DIAERESIS
  381. '\u2518' # 0x00d9 -> BOX DRAWINGS LIGHT UP AND LEFT
  382. '\u250c' # 0x00da -> BOX DRAWINGS LIGHT DOWN AND RIGHT
  383. '\u2588' # 0x00db -> FULL BLOCK
  384. '\u2584' # 0x00dc -> LOWER HALF BLOCK
  385. '\xa6' # 0x00dd -> BROKEN BAR
  386. '\xcc' # 0x00de -> LATIN CAPITAL LETTER I WITH GRAVE
  387. '\u2580' # 0x00df -> UPPER HALF BLOCK
  388. '\xd3' # 0x00e0 -> LATIN CAPITAL LETTER O WITH ACUTE
  389. '\xdf' # 0x00e1 -> LATIN SMALL LETTER SHARP S
  390. '\xd4' # 0x00e2 -> LATIN CAPITAL LETTER O WITH CIRCUMFLEX
  391. '\xd2' # 0x00e3 -> LATIN CAPITAL LETTER O WITH GRAVE
  392. '\xf5' # 0x00e4 -> LATIN SMALL LETTER O WITH TILDE
  393. '\xd5' # 0x00e5 -> LATIN CAPITAL LETTER O WITH TILDE
  394. '\xb5' # 0x00e6 -> MICRO SIGN
  395. '\ufffe' # 0x00e7 -> UNDEFINED
  396. '\xd7' # 0x00e8 -> MULTIPLICATION SIGN
  397. '\xda' # 0x00e9 -> LATIN CAPITAL LETTER U WITH ACUTE
  398. '\xdb' # 0x00ea -> LATIN CAPITAL LETTER U WITH CIRCUMFLEX
  399. '\xd9' # 0x00eb -> LATIN CAPITAL LETTER U WITH GRAVE
  400. '\xec' # 0x00ec -> LATIN SMALL LETTER I WITH GRAVE
  401. '\xff' # 0x00ed -> LATIN SMALL LETTER Y WITH DIAERESIS
  402. '\xaf' # 0x00ee -> MACRON
  403. '\xb4' # 0x00ef -> ACUTE ACCENT
  404. '\xad' # 0x00f0 -> SOFT HYPHEN
  405. '\xb1' # 0x00f1 -> PLUS-MINUS SIGN
  406. '\ufffe' # 0x00f2 -> UNDEFINED
  407. '\xbe' # 0x00f3 -> VULGAR FRACTION THREE QUARTERS
  408. '\xb6' # 0x00f4 -> PILCROW SIGN
  409. '\xa7' # 0x00f5 -> SECTION SIGN
  410. '\xf7' # 0x00f6 -> DIVISION SIGN
  411. '\xb8' # 0x00f7 -> CEDILLA
  412. '\xb0' # 0x00f8 -> DEGREE SIGN
  413. '\xa8' # 0x00f9 -> DIAERESIS
  414. '\xb7' # 0x00fa -> MIDDLE DOT
  415. '\xb9' # 0x00fb -> SUPERSCRIPT ONE
  416. '\xb3' # 0x00fc -> SUPERSCRIPT THREE
  417. '\xb2' # 0x00fd -> SUPERSCRIPT TWO
  418. '\u25a0' # 0x00fe -> BLACK SQUARE
  419. '\xa0' # 0x00ff -> NO-BREAK SPACE
  420. )
  421. ### Encoding Map
  422. encoding_map = {
  423. 0x0000: 0x0000, # NULL
  424. 0x0001: 0x0001, # START OF HEADING
  425. 0x0002: 0x0002, # START OF TEXT
  426. 0x0003: 0x0003, # END OF TEXT
  427. 0x0004: 0x0004, # END OF TRANSMISSION
  428. 0x0005: 0x0005, # ENQUIRY
  429. 0x0006: 0x0006, # ACKNOWLEDGE
  430. 0x0007: 0x0007, # BELL
  431. 0x0008: 0x0008, # BACKSPACE
  432. 0x0009: 0x0009, # HORIZONTAL TABULATION
  433. 0x000a: 0x000a, # LINE FEED
  434. 0x000b: 0x000b, # VERTICAL TABULATION
  435. 0x000c: 0x000c, # FORM FEED
  436. 0x000d: 0x000d, # CARRIAGE RETURN
  437. 0x000e: 0x000e, # SHIFT OUT
  438. 0x000f: 0x000f, # SHIFT IN
  439. 0x0010: 0x0010, # DATA LINK ESCAPE
  440. 0x0011: 0x0011, # DEVICE CONTROL ONE
  441. 0x0012: 0x0012, # DEVICE CONTROL TWO
  442. 0x0013: 0x0013, # DEVICE CONTROL THREE
  443. 0x0014: 0x0014, # DEVICE CONTROL FOUR
  444. 0x0015: 0x0015, # NEGATIVE ACKNOWLEDGE
  445. 0x0016: 0x0016, # SYNCHRONOUS IDLE
  446. 0x0017: 0x0017, # END OF TRANSMISSION BLOCK
  447. 0x0018: 0x0018, # CANCEL
  448. 0x0019: 0x0019, # END OF MEDIUM
  449. 0x001a: 0x001a, # SUBSTITUTE
  450. 0x001b: 0x001b, # ESCAPE
  451. 0x001c: 0x001c, # FILE SEPARATOR
  452. 0x001d: 0x001d, # GROUP SEPARATOR
  453. 0x001e: 0x001e, # RECORD SEPARATOR
  454. 0x001f: 0x001f, # UNIT SEPARATOR
  455. 0x0020: 0x0020, # SPACE
  456. 0x0021: 0x0021, # EXCLAMATION MARK
  457. 0x0022: 0x0022, # QUOTATION MARK
  458. 0x0023: 0x0023, # NUMBER SIGN
  459. 0x0024: 0x0024, # DOLLAR SIGN
  460. 0x0025: 0x0025, # PERCENT SIGN
  461. 0x0026: 0x0026, # AMPERSAND
  462. 0x0027: 0x0027, # APOSTROPHE
  463. 0x0028: 0x0028, # LEFT PARENTHESIS
  464. 0x0029: 0x0029, # RIGHT PARENTHESIS
  465. 0x002a: 0x002a, # ASTERISK
  466. 0x002b: 0x002b, # PLUS SIGN
  467. 0x002c: 0x002c, # COMMA
  468. 0x002d: 0x002d, # HYPHEN-MINUS
  469. 0x002e: 0x002e, # FULL STOP
  470. 0x002f: 0x002f, # SOLIDUS
  471. 0x0030: 0x0030, # DIGIT ZERO
  472. 0x0031: 0x0031, # DIGIT ONE
  473. 0x0032: 0x0032, # DIGIT TWO
  474. 0x0033: 0x0033, # DIGIT THREE
  475. 0x0034: 0x0034, # DIGIT FOUR
  476. 0x0035: 0x0035, # DIGIT FIVE
  477. 0x0036: 0x0036, # DIGIT SIX
  478. 0x0037: 0x0037, # DIGIT SEVEN
  479. 0x0038: 0x0038, # DIGIT EIGHT
  480. 0x0039: 0x0039, # DIGIT NINE
  481. 0x003a: 0x003a, # COLON
  482. 0x003b: 0x003b, # SEMICOLON
  483. 0x003c: 0x003c, # LESS-THAN SIGN
  484. 0x003d: 0x003d, # EQUALS SIGN
  485. 0x003e: 0x003e, # GREATER-THAN SIGN
  486. 0x003f: 0x003f, # QUESTION MARK
  487. 0x0040: 0x0040, # COMMERCIAL AT
  488. 0x0041: 0x0041, # LATIN CAPITAL LETTER A
  489. 0x0042: 0x0042, # LATIN CAPITAL LETTER B
  490. 0x0043: 0x0043, # LATIN CAPITAL LETTER C
  491. 0x0044: 0x0044, # LATIN CAPITAL LETTER D
  492. 0x0045: 0x0045, # LATIN CAPITAL LETTER E
  493. 0x0046: 0x0046, # LATIN CAPITAL LETTER F
  494. 0x0047: 0x0047, # LATIN CAPITAL LETTER G
  495. 0x0048: 0x0048, # LATIN CAPITAL LETTER H
  496. 0x0049: 0x0049, # LATIN CAPITAL LETTER I
  497. 0x004a: 0x004a, # LATIN CAPITAL LETTER J
  498. 0x004b: 0x004b, # LATIN CAPITAL LETTER K
  499. 0x004c: 0x004c, # LATIN CAPITAL LETTER L
  500. 0x004d: 0x004d, # LATIN CAPITAL LETTER M
  501. 0x004e: 0x004e, # LATIN CAPITAL LETTER N
  502. 0x004f: 0x004f, # LATIN CAPITAL LETTER O
  503. 0x0050: 0x0050, # LATIN CAPITAL LETTER P
  504. 0x0051: 0x0051, # LATIN CAPITAL LETTER Q
  505. 0x0052: 0x0052, # LATIN CAPITAL LETTER R
  506. 0x0053: 0x0053, # LATIN CAPITAL LETTER S
  507. 0x0054: 0x0054, # LATIN CAPITAL LETTER T
  508. 0x0055: 0x0055, # LATIN CAPITAL LETTER U
  509. 0x0056: 0x0056, # LATIN CAPITAL LETTER V
  510. 0x0057: 0x0057, # LATIN CAPITAL LETTER W
  511. 0x0058: 0x0058, # LATIN CAPITAL LETTER X
  512. 0x0059: 0x0059, # LATIN CAPITAL LETTER Y
  513. 0x005a: 0x005a, # LATIN CAPITAL LETTER Z
  514. 0x005b: 0x005b, # LEFT SQUARE BRACKET
  515. 0x005c: 0x005c, # REVERSE SOLIDUS
  516. 0x005d: 0x005d, # RIGHT SQUARE BRACKET
  517. 0x005e: 0x005e, # CIRCUMFLEX ACCENT
  518. 0x005f: 0x005f, # LOW LINE
  519. 0x0060: 0x0060, # GRAVE ACCENT
  520. 0x0061: 0x0061, # LATIN SMALL LETTER A
  521. 0x0062: 0x0062, # LATIN SMALL LETTER B
  522. 0x0063: 0x0063, # LATIN SMALL LETTER C
  523. 0x0064: 0x0064, # LATIN SMALL LETTER D
  524. 0x0065: 0x0065, # LATIN SMALL LETTER E
  525. 0x0066: 0x0066, # LATIN SMALL LETTER F
  526. 0x0067: 0x0067, # LATIN SMALL LETTER G
  527. 0x0068: 0x0068, # LATIN SMALL LETTER H
  528. 0x0069: 0x0069, # LATIN SMALL LETTER I
  529. 0x006a: 0x006a, # LATIN SMALL LETTER J
  530. 0x006b: 0x006b, # LATIN SMALL LETTER K
  531. 0x006c: 0x006c, # LATIN SMALL LETTER L
  532. 0x006d: 0x006d, # LATIN SMALL LETTER M
  533. 0x006e: 0x006e, # LATIN SMALL LETTER N
  534. 0x006f: 0x006f, # LATIN SMALL LETTER O
  535. 0x0070: 0x0070, # LATIN SMALL LETTER P
  536. 0x0071: 0x0071, # LATIN SMALL LETTER Q
  537. 0x0072: 0x0072, # LATIN SMALL LETTER R
  538. 0x0073: 0x0073, # LATIN SMALL LETTER S
  539. 0x0074: 0x0074, # LATIN SMALL LETTER T
  540. 0x0075: 0x0075, # LATIN SMALL LETTER U
  541. 0x0076: 0x0076, # LATIN SMALL LETTER V
  542. 0x0077: 0x0077, # LATIN SMALL LETTER W
  543. 0x0078: 0x0078, # LATIN SMALL LETTER X
  544. 0x0079: 0x0079, # LATIN SMALL LETTER Y
  545. 0x007a: 0x007a, # LATIN SMALL LETTER Z
  546. 0x007b: 0x007b, # LEFT CURLY BRACKET
  547. 0x007c: 0x007c, # VERTICAL LINE
  548. 0x007d: 0x007d, # RIGHT CURLY BRACKET
  549. 0x007e: 0x007e, # TILDE
  550. 0x007f: 0x007f, # DELETE
  551. 0x00a0: 0x00ff, # NO-BREAK SPACE
  552. 0x00a1: 0x00ad, # INVERTED EXCLAMATION MARK
  553. 0x00a2: 0x00bd, # CENT SIGN
  554. 0x00a3: 0x009c, # POUND SIGN
  555. 0x00a4: 0x00cf, # CURRENCY SIGN
  556. 0x00a5: 0x00be, # YEN SIGN
  557. 0x00a6: 0x00dd, # BROKEN BAR
  558. 0x00a7: 0x00f5, # SECTION SIGN
  559. 0x00a8: 0x00f9, # DIAERESIS
  560. 0x00a9: 0x00b8, # COPYRIGHT SIGN
  561. 0x00aa: 0x00d1, # FEMININE ORDINAL INDICATOR
  562. 0x00ab: 0x00ae, # LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
  563. 0x00ac: 0x00aa, # NOT SIGN
  564. 0x00ad: 0x00f0, # SOFT HYPHEN
  565. 0x00ae: 0x00a9, # REGISTERED SIGN
  566. 0x00af: 0x00ee, # MACRON
  567. 0x00b0: 0x00f8, # DEGREE SIGN
  568. 0x00b1: 0x00f1, # PLUS-MINUS SIGN
  569. 0x00b2: 0x00fd, # SUPERSCRIPT TWO
  570. 0x00b3: 0x00fc, # SUPERSCRIPT THREE
  571. 0x00b4: 0x00ef, # ACUTE ACCENT
  572. 0x00b5: 0x00e6, # MICRO SIGN
  573. 0x00b6: 0x00f4, # PILCROW SIGN
  574. 0x00b7: 0x00fa, # MIDDLE DOT
  575. 0x00b8: 0x00f7, # CEDILLA
  576. 0x00b9: 0x00fb, # SUPERSCRIPT ONE
  577. 0x00ba: 0x00d0, # MASCULINE ORDINAL INDICATOR
  578. 0x00bb: 0x00af, # RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
  579. 0x00bc: 0x00ac, # VULGAR FRACTION ONE QUARTER
  580. 0x00bd: 0x00ab, # VULGAR FRACTION ONE HALF
  581. 0x00be: 0x00f3, # VULGAR FRACTION THREE QUARTERS
  582. 0x00bf: 0x00a8, # INVERTED QUESTION MARK
  583. 0x00c0: 0x00b7, # LATIN CAPITAL LETTER A WITH GRAVE
  584. 0x00c1: 0x00b5, # LATIN CAPITAL LETTER A WITH ACUTE
  585. 0x00c2: 0x00b6, # LATIN CAPITAL LETTER A WITH CIRCUMFLEX
  586. 0x00c3: 0x00c7, # LATIN CAPITAL LETTER A WITH TILDE
  587. 0x00c4: 0x008e, # LATIN CAPITAL LETTER A WITH DIAERESIS
  588. 0x00c5: 0x008f, # LATIN CAPITAL LETTER A WITH RING ABOVE
  589. 0x00c6: 0x0092, # LATIN CAPITAL LIGATURE AE
  590. 0x00c7: 0x0080, # LATIN CAPITAL LETTER C WITH CEDILLA
  591. 0x00c8: 0x00d4, # LATIN CAPITAL LETTER E WITH GRAVE
  592. 0x00c9: 0x0090, # LATIN CAPITAL LETTER E WITH ACUTE
  593. 0x00ca: 0x00d2, # LATIN CAPITAL LETTER E WITH CIRCUMFLEX
  594. 0x00cb: 0x00d3, # LATIN CAPITAL LETTER E WITH DIAERESIS
  595. 0x00cc: 0x00de, # LATIN CAPITAL LETTER I WITH GRAVE
  596. 0x00cd: 0x00d6, # LATIN CAPITAL LETTER I WITH ACUTE
  597. 0x00ce: 0x00d7, # LATIN CAPITAL LETTER I WITH CIRCUMFLEX
  598. 0x00cf: 0x00d8, # LATIN CAPITAL LETTER I WITH DIAERESIS
  599. 0x00d1: 0x00a5, # LATIN CAPITAL LETTER N WITH TILDE
  600. 0x00d2: 0x00e3, # LATIN CAPITAL LETTER O WITH GRAVE
  601. 0x00d3: 0x00e0, # LATIN CAPITAL LETTER O WITH ACUTE
  602. 0x00d4: 0x00e2, # LATIN CAPITAL LETTER O WITH CIRCUMFLEX
  603. 0x00d5: 0x00e5, # LATIN CAPITAL LETTER O WITH TILDE
  604. 0x00d6: 0x0099, # LATIN CAPITAL LETTER O WITH DIAERESIS
  605. 0x00d7: 0x00e8, # MULTIPLICATION SIGN
  606. 0x00d8: 0x009d, # LATIN CAPITAL LETTER O WITH STROKE
  607. 0x00d9: 0x00eb, # LATIN CAPITAL LETTER U WITH GRAVE
  608. 0x00da: 0x00e9, # LATIN CAPITAL LETTER U WITH ACUTE
  609. 0x00db: 0x00ea, # LATIN CAPITAL LETTER U WITH CIRCUMFLEX
  610. 0x00dc: 0x009a, # LATIN CAPITAL LETTER U WITH DIAERESIS
  611. 0x00df: 0x00e1, # LATIN SMALL LETTER SHARP S
  612. 0x00e0: 0x0085, # LATIN SMALL LETTER A WITH GRAVE
  613. 0x00e1: 0x00a0, # LATIN SMALL LETTER A WITH ACUTE
  614. 0x00e2: 0x0083, # LATIN SMALL LETTER A WITH CIRCUMFLEX
  615. 0x00e3: 0x00c6, # LATIN SMALL LETTER A WITH TILDE
  616. 0x00e4: 0x0084, # LATIN SMALL LETTER A WITH DIAERESIS
  617. 0x00e5: 0x0086, # LATIN SMALL LETTER A WITH RING ABOVE
  618. 0x00e6: 0x0091, # LATIN SMALL LIGATURE AE
  619. 0x00e7: 0x0087, # LATIN SMALL LETTER C WITH CEDILLA
  620. 0x00e8: 0x008a, # LATIN SMALL LETTER E WITH GRAVE
  621. 0x00e9: 0x0082, # LATIN SMALL LETTER E WITH ACUTE
  622. 0x00ea: 0x0088, # LATIN SMALL LETTER E WITH CIRCUMFLEX
  623. 0x00eb: 0x0089, # LATIN SMALL LETTER E WITH DIAERESIS
  624. 0x00ec: 0x00ec, # LATIN SMALL LETTER I WITH GRAVE
  625. 0x00ed: 0x00a1, # LATIN SMALL LETTER I WITH ACUTE
  626. 0x00ee: 0x008c, # LATIN SMALL LETTER I WITH CIRCUMFLEX
  627. 0x00ef: 0x008b, # LATIN SMALL LETTER I WITH DIAERESIS
  628. 0x00f1: 0x00a4, # LATIN SMALL LETTER N WITH TILDE
  629. 0x00f2: 0x0095, # LATIN SMALL LETTER O WITH GRAVE
  630. 0x00f3: 0x00a2, # LATIN SMALL LETTER O WITH ACUTE
  631. 0x00f4: 0x0093, # LATIN SMALL LETTER O WITH CIRCUMFLEX
  632. 0x00f5: 0x00e4, # LATIN SMALL LETTER O WITH TILDE
  633. 0x00f6: 0x0094, # LATIN SMALL LETTER O WITH DIAERESIS
  634. 0x00f7: 0x00f6, # DIVISION SIGN
  635. 0x00f8: 0x009b, # LATIN SMALL LETTER O WITH STROKE
  636. 0x00f9: 0x0097, # LATIN SMALL LETTER U WITH GRAVE
  637. 0x00fa: 0x00a3, # LATIN SMALL LETTER U WITH ACUTE
  638. 0x00fb: 0x0096, # LATIN SMALL LETTER U WITH CIRCUMFLEX
  639. 0x00fc: 0x0081, # LATIN SMALL LETTER U WITH DIAERESIS
  640. 0x00ff: 0x00ed, # LATIN SMALL LETTER Y WITH DIAERESIS
  641. 0x011e: 0x00a6, # LATIN CAPITAL LETTER G WITH BREVE
  642. 0x011f: 0x00a7, # LATIN SMALL LETTER G WITH BREVE
  643. 0x0130: 0x0098, # LATIN CAPITAL LETTER I WITH DOT ABOVE
  644. 0x0131: 0x008d, # LATIN SMALL LETTER DOTLESS I
  645. 0x015e: 0x009e, # LATIN CAPITAL LETTER S WITH CEDILLA
  646. 0x015f: 0x009f, # LATIN SMALL LETTER S WITH CEDILLA
  647. 0x2500: 0x00c4, # BOX DRAWINGS LIGHT HORIZONTAL
  648. 0x2502: 0x00b3, # BOX DRAWINGS LIGHT VERTICAL
  649. 0x250c: 0x00da, # BOX DRAWINGS LIGHT DOWN AND RIGHT
  650. 0x2510: 0x00bf, # BOX DRAWINGS LIGHT DOWN AND LEFT
  651. 0x2514: 0x00c0, # BOX DRAWINGS LIGHT UP AND RIGHT
  652. 0x2518: 0x00d9, # BOX DRAWINGS LIGHT UP AND LEFT
  653. 0x251c: 0x00c3, # BOX DRAWINGS LIGHT VERTICAL AND RIGHT
  654. 0x2524: 0x00b4, # BOX DRAWINGS LIGHT VERTICAL AND LEFT
  655. 0x252c: 0x00c2, # BOX DRAWINGS LIGHT DOWN AND HORIZONTAL
  656. 0x2534: 0x00c1, # BOX DRAWINGS LIGHT UP AND HORIZONTAL
  657. 0x253c: 0x00c5, # BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL
  658. 0x2550: 0x00cd, # BOX DRAWINGS DOUBLE HORIZONTAL
  659. 0x2551: 0x00ba, # BOX DRAWINGS DOUBLE VERTICAL
  660. 0x2554: 0x00c9, # BOX DRAWINGS DOUBLE DOWN AND RIGHT
  661. 0x2557: 0x00bb, # BOX DRAWINGS DOUBLE DOWN AND LEFT
  662. 0x255a: 0x00c8, # BOX DRAWINGS DOUBLE UP AND RIGHT
  663. 0x255d: 0x00bc, # BOX DRAWINGS DOUBLE UP AND LEFT
  664. 0x2560: 0x00cc, # BOX DRAWINGS DOUBLE VERTICAL AND RIGHT
  665. 0x2563: 0x00b9, # BOX DRAWINGS DOUBLE VERTICAL AND LEFT
  666. 0x2566: 0x00cb, # BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL
  667. 0x2569: 0x00ca, # BOX DRAWINGS DOUBLE UP AND HORIZONTAL
  668. 0x256c: 0x00ce, # BOX DRAWINGS DOUBLE VERTICAL AND HORIZONTAL
  669. 0x2580: 0x00df, # UPPER HALF BLOCK
  670. 0x2584: 0x00dc, # LOWER HALF BLOCK
  671. 0x2588: 0x00db, # FULL BLOCK
  672. 0x2591: 0x00b0, # LIGHT SHADE
  673. 0x2592: 0x00b1, # MEDIUM SHADE
  674. 0x2593: 0x00b2, # DARK SHADE
  675. 0x25a0: 0x00fe, # BLACK SQUARE
  676. }