blob: 204954b98570cb45152f274e8a7696aaf015fa7d [file] [log] [blame]
Marc-André Lemburg3c72ded2005-10-24 12:07:49 +00001""" Python Character Mapping Codec generated from 'MAPPINGS/ISO8859/8859-15.TXT' with gencodec.py.
Guido van Rossum0229bf62000-03-10 23:17:24 +00002
3"""#"
4
5import codecs
6
7### Codec APIs
8
9class Codec(codecs.Codec):
10
11 def encode(self,input,errors='strict'):
12
13 return codecs.charmap_encode(input,errors,encoding_map)
Tim Peters469cdad2002-08-08 20:19:19 +000014
Guido van Rossum0229bf62000-03-10 23:17:24 +000015 def decode(self,input,errors='strict'):
16
Marc-André Lemburga1129f42005-10-21 13:49:12 +000017 return codecs.charmap_decode(input,errors,decoding_table)
18
Guido van Rossum0229bf62000-03-10 23:17:24 +000019class StreamWriter(Codec,codecs.StreamWriter):
20 pass
Tim Peters469cdad2002-08-08 20:19:19 +000021
Guido van Rossum0229bf62000-03-10 23:17:24 +000022class StreamReader(Codec,codecs.StreamReader):
23 pass
24
25### encodings module API
26
27def getregentry():
28
29 return (Codec().encode,Codec().decode,StreamReader,StreamWriter)
30
Guido van Rossum0229bf62000-03-10 23:17:24 +000031
Marc-André Lemburga1129f42005-10-21 13:49:12 +000032### Decoding Table
33
34decoding_table = (
Marc-André Lemburg3c72ded2005-10-24 12:07:49 +000035 u'\x00' # 0x00 -> NULL
36 u'\x01' # 0x01 -> START OF HEADING
37 u'\x02' # 0x02 -> START OF TEXT
38 u'\x03' # 0x03 -> END OF TEXT
39 u'\x04' # 0x04 -> END OF TRANSMISSION
40 u'\x05' # 0x05 -> ENQUIRY
41 u'\x06' # 0x06 -> ACKNOWLEDGE
42 u'\x07' # 0x07 -> BELL
43 u'\x08' # 0x08 -> BACKSPACE
44 u'\t' # 0x09 -> HORIZONTAL TABULATION
Marc-André Lemburgd9cf5932005-10-24 12:14:59 +000045 u'\n' # 0x0A -> LINE FEED
46 u'\x0b' # 0x0B -> VERTICAL TABULATION
47 u'\x0c' # 0x0C -> FORM FEED
48 u'\r' # 0x0D -> CARRIAGE RETURN
49 u'\x0e' # 0x0E -> SHIFT OUT
50 u'\x0f' # 0x0F -> SHIFT IN
Marc-André Lemburg3c72ded2005-10-24 12:07:49 +000051 u'\x10' # 0x10 -> DATA LINK ESCAPE
52 u'\x11' # 0x11 -> DEVICE CONTROL ONE
53 u'\x12' # 0x12 -> DEVICE CONTROL TWO
54 u'\x13' # 0x13 -> DEVICE CONTROL THREE
55 u'\x14' # 0x14 -> DEVICE CONTROL FOUR
56 u'\x15' # 0x15 -> NEGATIVE ACKNOWLEDGE
57 u'\x16' # 0x16 -> SYNCHRONOUS IDLE
58 u'\x17' # 0x17 -> END OF TRANSMISSION BLOCK
59 u'\x18' # 0x18 -> CANCEL
60 u'\x19' # 0x19 -> END OF MEDIUM
Marc-André Lemburgd9cf5932005-10-24 12:14:59 +000061 u'\x1a' # 0x1A -> SUBSTITUTE
62 u'\x1b' # 0x1B -> ESCAPE
63 u'\x1c' # 0x1C -> FILE SEPARATOR
64 u'\x1d' # 0x1D -> GROUP SEPARATOR
65 u'\x1e' # 0x1E -> RECORD SEPARATOR
66 u'\x1f' # 0x1F -> UNIT SEPARATOR
Marc-André Lemburg3c72ded2005-10-24 12:07:49 +000067 u' ' # 0x20 -> SPACE
68 u'!' # 0x21 -> EXCLAMATION MARK
69 u'"' # 0x22 -> QUOTATION MARK
70 u'#' # 0x23 -> NUMBER SIGN
71 u'$' # 0x24 -> DOLLAR SIGN
72 u'%' # 0x25 -> PERCENT SIGN
73 u'&' # 0x26 -> AMPERSAND
74 u"'" # 0x27 -> APOSTROPHE
75 u'(' # 0x28 -> LEFT PARENTHESIS
76 u')' # 0x29 -> RIGHT PARENTHESIS
Marc-André Lemburgd9cf5932005-10-24 12:14:59 +000077 u'*' # 0x2A -> ASTERISK
78 u'+' # 0x2B -> PLUS SIGN
79 u',' # 0x2C -> COMMA
80 u'-' # 0x2D -> HYPHEN-MINUS
81 u'.' # 0x2E -> FULL STOP
82 u'/' # 0x2F -> SOLIDUS
Marc-André Lemburg3c72ded2005-10-24 12:07:49 +000083 u'0' # 0x30 -> DIGIT ZERO
84 u'1' # 0x31 -> DIGIT ONE
85 u'2' # 0x32 -> DIGIT TWO
86 u'3' # 0x33 -> DIGIT THREE
87 u'4' # 0x34 -> DIGIT FOUR
88 u'5' # 0x35 -> DIGIT FIVE
89 u'6' # 0x36 -> DIGIT SIX
90 u'7' # 0x37 -> DIGIT SEVEN
91 u'8' # 0x38 -> DIGIT EIGHT
92 u'9' # 0x39 -> DIGIT NINE
Marc-André Lemburgd9cf5932005-10-24 12:14:59 +000093 u':' # 0x3A -> COLON
94 u';' # 0x3B -> SEMICOLON
95 u'<' # 0x3C -> LESS-THAN SIGN
96 u'=' # 0x3D -> EQUALS SIGN
97 u'>' # 0x3E -> GREATER-THAN SIGN
98 u'?' # 0x3F -> QUESTION MARK
Marc-André Lemburg3c72ded2005-10-24 12:07:49 +000099 u'@' # 0x40 -> COMMERCIAL AT
100 u'A' # 0x41 -> LATIN CAPITAL LETTER A
101 u'B' # 0x42 -> LATIN CAPITAL LETTER B
102 u'C' # 0x43 -> LATIN CAPITAL LETTER C
103 u'D' # 0x44 -> LATIN CAPITAL LETTER D
104 u'E' # 0x45 -> LATIN CAPITAL LETTER E
105 u'F' # 0x46 -> LATIN CAPITAL LETTER F
106 u'G' # 0x47 -> LATIN CAPITAL LETTER G
107 u'H' # 0x48 -> LATIN CAPITAL LETTER H
108 u'I' # 0x49 -> LATIN CAPITAL LETTER I
Marc-André Lemburgd9cf5932005-10-24 12:14:59 +0000109 u'J' # 0x4A -> LATIN CAPITAL LETTER J
110 u'K' # 0x4B -> LATIN CAPITAL LETTER K
111 u'L' # 0x4C -> LATIN CAPITAL LETTER L
112 u'M' # 0x4D -> LATIN CAPITAL LETTER M
113 u'N' # 0x4E -> LATIN CAPITAL LETTER N
114 u'O' # 0x4F -> LATIN CAPITAL LETTER O
Marc-André Lemburg3c72ded2005-10-24 12:07:49 +0000115 u'P' # 0x50 -> LATIN CAPITAL LETTER P
116 u'Q' # 0x51 -> LATIN CAPITAL LETTER Q
117 u'R' # 0x52 -> LATIN CAPITAL LETTER R
118 u'S' # 0x53 -> LATIN CAPITAL LETTER S
119 u'T' # 0x54 -> LATIN CAPITAL LETTER T
120 u'U' # 0x55 -> LATIN CAPITAL LETTER U
121 u'V' # 0x56 -> LATIN CAPITAL LETTER V
122 u'W' # 0x57 -> LATIN CAPITAL LETTER W
123 u'X' # 0x58 -> LATIN CAPITAL LETTER X
124 u'Y' # 0x59 -> LATIN CAPITAL LETTER Y
Marc-André Lemburgd9cf5932005-10-24 12:14:59 +0000125 u'Z' # 0x5A -> LATIN CAPITAL LETTER Z
126 u'[' # 0x5B -> LEFT SQUARE BRACKET
127 u'\\' # 0x5C -> REVERSE SOLIDUS
128 u']' # 0x5D -> RIGHT SQUARE BRACKET
129 u'^' # 0x5E -> CIRCUMFLEX ACCENT
130 u'_' # 0x5F -> LOW LINE
Marc-André Lemburg3c72ded2005-10-24 12:07:49 +0000131 u'`' # 0x60 -> GRAVE ACCENT
132 u'a' # 0x61 -> LATIN SMALL LETTER A
133 u'b' # 0x62 -> LATIN SMALL LETTER B
134 u'c' # 0x63 -> LATIN SMALL LETTER C
135 u'd' # 0x64 -> LATIN SMALL LETTER D
136 u'e' # 0x65 -> LATIN SMALL LETTER E
137 u'f' # 0x66 -> LATIN SMALL LETTER F
138 u'g' # 0x67 -> LATIN SMALL LETTER G
139 u'h' # 0x68 -> LATIN SMALL LETTER H
140 u'i' # 0x69 -> LATIN SMALL LETTER I
Marc-André Lemburgd9cf5932005-10-24 12:14:59 +0000141 u'j' # 0x6A -> LATIN SMALL LETTER J
142 u'k' # 0x6B -> LATIN SMALL LETTER K
143 u'l' # 0x6C -> LATIN SMALL LETTER L
144 u'm' # 0x6D -> LATIN SMALL LETTER M
145 u'n' # 0x6E -> LATIN SMALL LETTER N
146 u'o' # 0x6F -> LATIN SMALL LETTER O
Marc-André Lemburg3c72ded2005-10-24 12:07:49 +0000147 u'p' # 0x70 -> LATIN SMALL LETTER P
148 u'q' # 0x71 -> LATIN SMALL LETTER Q
149 u'r' # 0x72 -> LATIN SMALL LETTER R
150 u's' # 0x73 -> LATIN SMALL LETTER S
151 u't' # 0x74 -> LATIN SMALL LETTER T
152 u'u' # 0x75 -> LATIN SMALL LETTER U
153 u'v' # 0x76 -> LATIN SMALL LETTER V
154 u'w' # 0x77 -> LATIN SMALL LETTER W
155 u'x' # 0x78 -> LATIN SMALL LETTER X
156 u'y' # 0x79 -> LATIN SMALL LETTER Y
Marc-André Lemburgd9cf5932005-10-24 12:14:59 +0000157 u'z' # 0x7A -> LATIN SMALL LETTER Z
158 u'{' # 0x7B -> LEFT CURLY BRACKET
159 u'|' # 0x7C -> VERTICAL LINE
160 u'}' # 0x7D -> RIGHT CURLY BRACKET
161 u'~' # 0x7E -> TILDE
162 u'\x7f' # 0x7F -> DELETE
Marc-André Lemburg3c72ded2005-10-24 12:07:49 +0000163 u'\x80' # 0x80 -> <control>
164 u'\x81' # 0x81 -> <control>
165 u'\x82' # 0x82 -> <control>
166 u'\x83' # 0x83 -> <control>
167 u'\x84' # 0x84 -> <control>
168 u'\x85' # 0x85 -> <control>
169 u'\x86' # 0x86 -> <control>
170 u'\x87' # 0x87 -> <control>
171 u'\x88' # 0x88 -> <control>
172 u'\x89' # 0x89 -> <control>
Marc-André Lemburgd9cf5932005-10-24 12:14:59 +0000173 u'\x8a' # 0x8A -> <control>
174 u'\x8b' # 0x8B -> <control>
175 u'\x8c' # 0x8C -> <control>
176 u'\x8d' # 0x8D -> <control>
177 u'\x8e' # 0x8E -> <control>
178 u'\x8f' # 0x8F -> <control>
Marc-André Lemburg3c72ded2005-10-24 12:07:49 +0000179 u'\x90' # 0x90 -> <control>
180 u'\x91' # 0x91 -> <control>
181 u'\x92' # 0x92 -> <control>
182 u'\x93' # 0x93 -> <control>
183 u'\x94' # 0x94 -> <control>
184 u'\x95' # 0x95 -> <control>
185 u'\x96' # 0x96 -> <control>
186 u'\x97' # 0x97 -> <control>
187 u'\x98' # 0x98 -> <control>
188 u'\x99' # 0x99 -> <control>
Marc-André Lemburgd9cf5932005-10-24 12:14:59 +0000189 u'\x9a' # 0x9A -> <control>
190 u'\x9b' # 0x9B -> <control>
191 u'\x9c' # 0x9C -> <control>
192 u'\x9d' # 0x9D -> <control>
193 u'\x9e' # 0x9E -> <control>
194 u'\x9f' # 0x9F -> <control>
195 u'\xa0' # 0xA0 -> NO-BREAK SPACE
196 u'\xa1' # 0xA1 -> INVERTED EXCLAMATION MARK
197 u'\xa2' # 0xA2 -> CENT SIGN
198 u'\xa3' # 0xA3 -> POUND SIGN
199 u'\u20ac' # 0xA4 -> EURO SIGN
200 u'\xa5' # 0xA5 -> YEN SIGN
201 u'\u0160' # 0xA6 -> LATIN CAPITAL LETTER S WITH CARON
202 u'\xa7' # 0xA7 -> SECTION SIGN
203 u'\u0161' # 0xA8 -> LATIN SMALL LETTER S WITH CARON
204 u'\xa9' # 0xA9 -> COPYRIGHT SIGN
205 u'\xaa' # 0xAA -> FEMININE ORDINAL INDICATOR
206 u'\xab' # 0xAB -> LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
207 u'\xac' # 0xAC -> NOT SIGN
208 u'\xad' # 0xAD -> SOFT HYPHEN
209 u'\xae' # 0xAE -> REGISTERED SIGN
210 u'\xaf' # 0xAF -> MACRON
211 u'\xb0' # 0xB0 -> DEGREE SIGN
212 u'\xb1' # 0xB1 -> PLUS-MINUS SIGN
213 u'\xb2' # 0xB2 -> SUPERSCRIPT TWO
214 u'\xb3' # 0xB3 -> SUPERSCRIPT THREE
215 u'\u017d' # 0xB4 -> LATIN CAPITAL LETTER Z WITH CARON
216 u'\xb5' # 0xB5 -> MICRO SIGN
217 u'\xb6' # 0xB6 -> PILCROW SIGN
218 u'\xb7' # 0xB7 -> MIDDLE DOT
219 u'\u017e' # 0xB8 -> LATIN SMALL LETTER Z WITH CARON
220 u'\xb9' # 0xB9 -> SUPERSCRIPT ONE
221 u'\xba' # 0xBA -> MASCULINE ORDINAL INDICATOR
222 u'\xbb' # 0xBB -> RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
223 u'\u0152' # 0xBC -> LATIN CAPITAL LIGATURE OE
224 u'\u0153' # 0xBD -> LATIN SMALL LIGATURE OE
225 u'\u0178' # 0xBE -> LATIN CAPITAL LETTER Y WITH DIAERESIS
226 u'\xbf' # 0xBF -> INVERTED QUESTION MARK
227 u'\xc0' # 0xC0 -> LATIN CAPITAL LETTER A WITH GRAVE
228 u'\xc1' # 0xC1 -> LATIN CAPITAL LETTER A WITH ACUTE
229 u'\xc2' # 0xC2 -> LATIN CAPITAL LETTER A WITH CIRCUMFLEX
230 u'\xc3' # 0xC3 -> LATIN CAPITAL LETTER A WITH TILDE
231 u'\xc4' # 0xC4 -> LATIN CAPITAL LETTER A WITH DIAERESIS
232 u'\xc5' # 0xC5 -> LATIN CAPITAL LETTER A WITH RING ABOVE
233 u'\xc6' # 0xC6 -> LATIN CAPITAL LETTER AE
234 u'\xc7' # 0xC7 -> LATIN CAPITAL LETTER C WITH CEDILLA
235 u'\xc8' # 0xC8 -> LATIN CAPITAL LETTER E WITH GRAVE
236 u'\xc9' # 0xC9 -> LATIN CAPITAL LETTER E WITH ACUTE
237 u'\xca' # 0xCA -> LATIN CAPITAL LETTER E WITH CIRCUMFLEX
238 u'\xcb' # 0xCB -> LATIN CAPITAL LETTER E WITH DIAERESIS
239 u'\xcc' # 0xCC -> LATIN CAPITAL LETTER I WITH GRAVE
240 u'\xcd' # 0xCD -> LATIN CAPITAL LETTER I WITH ACUTE
241 u'\xce' # 0xCE -> LATIN CAPITAL LETTER I WITH CIRCUMFLEX
242 u'\xcf' # 0xCF -> LATIN CAPITAL LETTER I WITH DIAERESIS
243 u'\xd0' # 0xD0 -> LATIN CAPITAL LETTER ETH
244 u'\xd1' # 0xD1 -> LATIN CAPITAL LETTER N WITH TILDE
245 u'\xd2' # 0xD2 -> LATIN CAPITAL LETTER O WITH GRAVE
246 u'\xd3' # 0xD3 -> LATIN CAPITAL LETTER O WITH ACUTE
247 u'\xd4' # 0xD4 -> LATIN CAPITAL LETTER O WITH CIRCUMFLEX
248 u'\xd5' # 0xD5 -> LATIN CAPITAL LETTER O WITH TILDE
249 u'\xd6' # 0xD6 -> LATIN CAPITAL LETTER O WITH DIAERESIS
250 u'\xd7' # 0xD7 -> MULTIPLICATION SIGN
251 u'\xd8' # 0xD8 -> LATIN CAPITAL LETTER O WITH STROKE
252 u'\xd9' # 0xD9 -> LATIN CAPITAL LETTER U WITH GRAVE
253 u'\xda' # 0xDA -> LATIN CAPITAL LETTER U WITH ACUTE
254 u'\xdb' # 0xDB -> LATIN CAPITAL LETTER U WITH CIRCUMFLEX
255 u'\xdc' # 0xDC -> LATIN CAPITAL LETTER U WITH DIAERESIS
256 u'\xdd' # 0xDD -> LATIN CAPITAL LETTER Y WITH ACUTE
257 u'\xde' # 0xDE -> LATIN CAPITAL LETTER THORN
258 u'\xdf' # 0xDF -> LATIN SMALL LETTER SHARP S
259 u'\xe0' # 0xE0 -> LATIN SMALL LETTER A WITH GRAVE
260 u'\xe1' # 0xE1 -> LATIN SMALL LETTER A WITH ACUTE
261 u'\xe2' # 0xE2 -> LATIN SMALL LETTER A WITH CIRCUMFLEX
262 u'\xe3' # 0xE3 -> LATIN SMALL LETTER A WITH TILDE
263 u'\xe4' # 0xE4 -> LATIN SMALL LETTER A WITH DIAERESIS
264 u'\xe5' # 0xE5 -> LATIN SMALL LETTER A WITH RING ABOVE
265 u'\xe6' # 0xE6 -> LATIN SMALL LETTER AE
266 u'\xe7' # 0xE7 -> LATIN SMALL LETTER C WITH CEDILLA
267 u'\xe8' # 0xE8 -> LATIN SMALL LETTER E WITH GRAVE
268 u'\xe9' # 0xE9 -> LATIN SMALL LETTER E WITH ACUTE
269 u'\xea' # 0xEA -> LATIN SMALL LETTER E WITH CIRCUMFLEX
270 u'\xeb' # 0xEB -> LATIN SMALL LETTER E WITH DIAERESIS
271 u'\xec' # 0xEC -> LATIN SMALL LETTER I WITH GRAVE
272 u'\xed' # 0xED -> LATIN SMALL LETTER I WITH ACUTE
273 u'\xee' # 0xEE -> LATIN SMALL LETTER I WITH CIRCUMFLEX
274 u'\xef' # 0xEF -> LATIN SMALL LETTER I WITH DIAERESIS
275 u'\xf0' # 0xF0 -> LATIN SMALL LETTER ETH
276 u'\xf1' # 0xF1 -> LATIN SMALL LETTER N WITH TILDE
277 u'\xf2' # 0xF2 -> LATIN SMALL LETTER O WITH GRAVE
278 u'\xf3' # 0xF3 -> LATIN SMALL LETTER O WITH ACUTE
279 u'\xf4' # 0xF4 -> LATIN SMALL LETTER O WITH CIRCUMFLEX
280 u'\xf5' # 0xF5 -> LATIN SMALL LETTER O WITH TILDE
281 u'\xf6' # 0xF6 -> LATIN SMALL LETTER O WITH DIAERESIS
282 u'\xf7' # 0xF7 -> DIVISION SIGN
283 u'\xf8' # 0xF8 -> LATIN SMALL LETTER O WITH STROKE
284 u'\xf9' # 0xF9 -> LATIN SMALL LETTER U WITH GRAVE
285 u'\xfa' # 0xFA -> LATIN SMALL LETTER U WITH ACUTE
286 u'\xfb' # 0xFB -> LATIN SMALL LETTER U WITH CIRCUMFLEX
287 u'\xfc' # 0xFC -> LATIN SMALL LETTER U WITH DIAERESIS
288 u'\xfd' # 0xFD -> LATIN SMALL LETTER Y WITH ACUTE
289 u'\xfe' # 0xFE -> LATIN SMALL LETTER THORN
290 u'\xff' # 0xFF -> LATIN SMALL LETTER Y WITH DIAERESIS
Marc-André Lemburga1129f42005-10-21 13:49:12 +0000291)
292
Guido van Rossum0229bf62000-03-10 23:17:24 +0000293### Encoding Map
294
Marc-André Lemburga1129f42005-10-21 13:49:12 +0000295encoding_map = {
Marc-André Lemburg3c72ded2005-10-24 12:07:49 +0000296 0x0000: 0x00, # NULL
297 0x0001: 0x01, # START OF HEADING
298 0x0002: 0x02, # START OF TEXT
299 0x0003: 0x03, # END OF TEXT
300 0x0004: 0x04, # END OF TRANSMISSION
301 0x0005: 0x05, # ENQUIRY
302 0x0006: 0x06, # ACKNOWLEDGE
303 0x0007: 0x07, # BELL
304 0x0008: 0x08, # BACKSPACE
305 0x0009: 0x09, # HORIZONTAL TABULATION
Marc-André Lemburgd9cf5932005-10-24 12:14:59 +0000306 0x000A: 0x0A, # LINE FEED
307 0x000B: 0x0B, # VERTICAL TABULATION
308 0x000C: 0x0C, # FORM FEED
309 0x000D: 0x0D, # CARRIAGE RETURN
310 0x000E: 0x0E, # SHIFT OUT
311 0x000F: 0x0F, # SHIFT IN
Marc-André Lemburg3c72ded2005-10-24 12:07:49 +0000312 0x0010: 0x10, # DATA LINK ESCAPE
313 0x0011: 0x11, # DEVICE CONTROL ONE
314 0x0012: 0x12, # DEVICE CONTROL TWO
315 0x0013: 0x13, # DEVICE CONTROL THREE
316 0x0014: 0x14, # DEVICE CONTROL FOUR
317 0x0015: 0x15, # NEGATIVE ACKNOWLEDGE
318 0x0016: 0x16, # SYNCHRONOUS IDLE
319 0x0017: 0x17, # END OF TRANSMISSION BLOCK
320 0x0018: 0x18, # CANCEL
321 0x0019: 0x19, # END OF MEDIUM
Marc-André Lemburgd9cf5932005-10-24 12:14:59 +0000322 0x001A: 0x1A, # SUBSTITUTE
323 0x001B: 0x1B, # ESCAPE
324 0x001C: 0x1C, # FILE SEPARATOR
325 0x001D: 0x1D, # GROUP SEPARATOR
326 0x001E: 0x1E, # RECORD SEPARATOR
327 0x001F: 0x1F, # UNIT SEPARATOR
Marc-André Lemburg3c72ded2005-10-24 12:07:49 +0000328 0x0020: 0x20, # SPACE
329 0x0021: 0x21, # EXCLAMATION MARK
330 0x0022: 0x22, # QUOTATION MARK
331 0x0023: 0x23, # NUMBER SIGN
332 0x0024: 0x24, # DOLLAR SIGN
333 0x0025: 0x25, # PERCENT SIGN
334 0x0026: 0x26, # AMPERSAND
335 0x0027: 0x27, # APOSTROPHE
336 0x0028: 0x28, # LEFT PARENTHESIS
337 0x0029: 0x29, # RIGHT PARENTHESIS
Marc-André Lemburgd9cf5932005-10-24 12:14:59 +0000338 0x002A: 0x2A, # ASTERISK
339 0x002B: 0x2B, # PLUS SIGN
340 0x002C: 0x2C, # COMMA
341 0x002D: 0x2D, # HYPHEN-MINUS
342 0x002E: 0x2E, # FULL STOP
343 0x002F: 0x2F, # SOLIDUS
Marc-André Lemburg3c72ded2005-10-24 12:07:49 +0000344 0x0030: 0x30, # DIGIT ZERO
345 0x0031: 0x31, # DIGIT ONE
346 0x0032: 0x32, # DIGIT TWO
347 0x0033: 0x33, # DIGIT THREE
348 0x0034: 0x34, # DIGIT FOUR
349 0x0035: 0x35, # DIGIT FIVE
350 0x0036: 0x36, # DIGIT SIX
351 0x0037: 0x37, # DIGIT SEVEN
352 0x0038: 0x38, # DIGIT EIGHT
353 0x0039: 0x39, # DIGIT NINE
Marc-André Lemburgd9cf5932005-10-24 12:14:59 +0000354 0x003A: 0x3A, # COLON
355 0x003B: 0x3B, # SEMICOLON
356 0x003C: 0x3C, # LESS-THAN SIGN
357 0x003D: 0x3D, # EQUALS SIGN
358 0x003E: 0x3E, # GREATER-THAN SIGN
359 0x003F: 0x3F, # QUESTION MARK
Marc-André Lemburg3c72ded2005-10-24 12:07:49 +0000360 0x0040: 0x40, # COMMERCIAL AT
361 0x0041: 0x41, # LATIN CAPITAL LETTER A
362 0x0042: 0x42, # LATIN CAPITAL LETTER B
363 0x0043: 0x43, # LATIN CAPITAL LETTER C
364 0x0044: 0x44, # LATIN CAPITAL LETTER D
365 0x0045: 0x45, # LATIN CAPITAL LETTER E
366 0x0046: 0x46, # LATIN CAPITAL LETTER F
367 0x0047: 0x47, # LATIN CAPITAL LETTER G
368 0x0048: 0x48, # LATIN CAPITAL LETTER H
369 0x0049: 0x49, # LATIN CAPITAL LETTER I
Marc-André Lemburgd9cf5932005-10-24 12:14:59 +0000370 0x004A: 0x4A, # LATIN CAPITAL LETTER J
371 0x004B: 0x4B, # LATIN CAPITAL LETTER K
372 0x004C: 0x4C, # LATIN CAPITAL LETTER L
373 0x004D: 0x4D, # LATIN CAPITAL LETTER M
374 0x004E: 0x4E, # LATIN CAPITAL LETTER N
375 0x004F: 0x4F, # LATIN CAPITAL LETTER O
Marc-André Lemburg3c72ded2005-10-24 12:07:49 +0000376 0x0050: 0x50, # LATIN CAPITAL LETTER P
377 0x0051: 0x51, # LATIN CAPITAL LETTER Q
378 0x0052: 0x52, # LATIN CAPITAL LETTER R
379 0x0053: 0x53, # LATIN CAPITAL LETTER S
380 0x0054: 0x54, # LATIN CAPITAL LETTER T
381 0x0055: 0x55, # LATIN CAPITAL LETTER U
382 0x0056: 0x56, # LATIN CAPITAL LETTER V
383 0x0057: 0x57, # LATIN CAPITAL LETTER W
384 0x0058: 0x58, # LATIN CAPITAL LETTER X
385 0x0059: 0x59, # LATIN CAPITAL LETTER Y
Marc-André Lemburgd9cf5932005-10-24 12:14:59 +0000386 0x005A: 0x5A, # LATIN CAPITAL LETTER Z
387 0x005B: 0x5B, # LEFT SQUARE BRACKET
388 0x005C: 0x5C, # REVERSE SOLIDUS
389 0x005D: 0x5D, # RIGHT SQUARE BRACKET
390 0x005E: 0x5E, # CIRCUMFLEX ACCENT
391 0x005F: 0x5F, # LOW LINE
Marc-André Lemburg3c72ded2005-10-24 12:07:49 +0000392 0x0060: 0x60, # GRAVE ACCENT
393 0x0061: 0x61, # LATIN SMALL LETTER A
394 0x0062: 0x62, # LATIN SMALL LETTER B
395 0x0063: 0x63, # LATIN SMALL LETTER C
396 0x0064: 0x64, # LATIN SMALL LETTER D
397 0x0065: 0x65, # LATIN SMALL LETTER E
398 0x0066: 0x66, # LATIN SMALL LETTER F
399 0x0067: 0x67, # LATIN SMALL LETTER G
400 0x0068: 0x68, # LATIN SMALL LETTER H
401 0x0069: 0x69, # LATIN SMALL LETTER I
Marc-André Lemburgd9cf5932005-10-24 12:14:59 +0000402 0x006A: 0x6A, # LATIN SMALL LETTER J
403 0x006B: 0x6B, # LATIN SMALL LETTER K
404 0x006C: 0x6C, # LATIN SMALL LETTER L
405 0x006D: 0x6D, # LATIN SMALL LETTER M
406 0x006E: 0x6E, # LATIN SMALL LETTER N
407 0x006F: 0x6F, # LATIN SMALL LETTER O
Marc-André Lemburg3c72ded2005-10-24 12:07:49 +0000408 0x0070: 0x70, # LATIN SMALL LETTER P
409 0x0071: 0x71, # LATIN SMALL LETTER Q
410 0x0072: 0x72, # LATIN SMALL LETTER R
411 0x0073: 0x73, # LATIN SMALL LETTER S
412 0x0074: 0x74, # LATIN SMALL LETTER T
413 0x0075: 0x75, # LATIN SMALL LETTER U
414 0x0076: 0x76, # LATIN SMALL LETTER V
415 0x0077: 0x77, # LATIN SMALL LETTER W
416 0x0078: 0x78, # LATIN SMALL LETTER X
417 0x0079: 0x79, # LATIN SMALL LETTER Y
Marc-André Lemburgd9cf5932005-10-24 12:14:59 +0000418 0x007A: 0x7A, # LATIN SMALL LETTER Z
419 0x007B: 0x7B, # LEFT CURLY BRACKET
420 0x007C: 0x7C, # VERTICAL LINE
421 0x007D: 0x7D, # RIGHT CURLY BRACKET
422 0x007E: 0x7E, # TILDE
423 0x007F: 0x7F, # DELETE
Marc-André Lemburg3c72ded2005-10-24 12:07:49 +0000424 0x0080: 0x80, # <control>
425 0x0081: 0x81, # <control>
426 0x0082: 0x82, # <control>
427 0x0083: 0x83, # <control>
428 0x0084: 0x84, # <control>
429 0x0085: 0x85, # <control>
430 0x0086: 0x86, # <control>
431 0x0087: 0x87, # <control>
432 0x0088: 0x88, # <control>
433 0x0089: 0x89, # <control>
Marc-André Lemburgd9cf5932005-10-24 12:14:59 +0000434 0x008A: 0x8A, # <control>
435 0x008B: 0x8B, # <control>
436 0x008C: 0x8C, # <control>
437 0x008D: 0x8D, # <control>
438 0x008E: 0x8E, # <control>
439 0x008F: 0x8F, # <control>
Marc-André Lemburg3c72ded2005-10-24 12:07:49 +0000440 0x0090: 0x90, # <control>
441 0x0091: 0x91, # <control>
442 0x0092: 0x92, # <control>
443 0x0093: 0x93, # <control>
444 0x0094: 0x94, # <control>
445 0x0095: 0x95, # <control>
446 0x0096: 0x96, # <control>
447 0x0097: 0x97, # <control>
448 0x0098: 0x98, # <control>
449 0x0099: 0x99, # <control>
Marc-André Lemburgd9cf5932005-10-24 12:14:59 +0000450 0x009A: 0x9A, # <control>
451 0x009B: 0x9B, # <control>
452 0x009C: 0x9C, # <control>
453 0x009D: 0x9D, # <control>
454 0x009E: 0x9E, # <control>
455 0x009F: 0x9F, # <control>
456 0x00A0: 0xA0, # NO-BREAK SPACE
457 0x00A1: 0xA1, # INVERTED EXCLAMATION MARK
458 0x00A2: 0xA2, # CENT SIGN
459 0x00A3: 0xA3, # POUND SIGN
460 0x00A5: 0xA5, # YEN SIGN
461 0x00A7: 0xA7, # SECTION SIGN
462 0x00A9: 0xA9, # COPYRIGHT SIGN
463 0x00AA: 0xAA, # FEMININE ORDINAL INDICATOR
464 0x00AB: 0xAB, # LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
465 0x00AC: 0xAC, # NOT SIGN
466 0x00AD: 0xAD, # SOFT HYPHEN
467 0x00AE: 0xAE, # REGISTERED SIGN
468 0x00AF: 0xAF, # MACRON
469 0x00B0: 0xB0, # DEGREE SIGN
470 0x00B1: 0xB1, # PLUS-MINUS SIGN
471 0x00B2: 0xB2, # SUPERSCRIPT TWO
472 0x00B3: 0xB3, # SUPERSCRIPT THREE
473 0x00B5: 0xB5, # MICRO SIGN
474 0x00B6: 0xB6, # PILCROW SIGN
475 0x00B7: 0xB7, # MIDDLE DOT
476 0x00B9: 0xB9, # SUPERSCRIPT ONE
477 0x00BA: 0xBA, # MASCULINE ORDINAL INDICATOR
478 0x00BB: 0xBB, # RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
479 0x00BF: 0xBF, # INVERTED QUESTION MARK
480 0x00C0: 0xC0, # LATIN CAPITAL LETTER A WITH GRAVE
481 0x00C1: 0xC1, # LATIN CAPITAL LETTER A WITH ACUTE
482 0x00C2: 0xC2, # LATIN CAPITAL LETTER A WITH CIRCUMFLEX
483 0x00C3: 0xC3, # LATIN CAPITAL LETTER A WITH TILDE
484 0x00C4: 0xC4, # LATIN CAPITAL LETTER A WITH DIAERESIS
485 0x00C5: 0xC5, # LATIN CAPITAL LETTER A WITH RING ABOVE
486 0x00C6: 0xC6, # LATIN CAPITAL LETTER AE
487 0x00C7: 0xC7, # LATIN CAPITAL LETTER C WITH CEDILLA
488 0x00C8: 0xC8, # LATIN CAPITAL LETTER E WITH GRAVE
489 0x00C9: 0xC9, # LATIN CAPITAL LETTER E WITH ACUTE
490 0x00CA: 0xCA, # LATIN CAPITAL LETTER E WITH CIRCUMFLEX
491 0x00CB: 0xCB, # LATIN CAPITAL LETTER E WITH DIAERESIS
492 0x00CC: 0xCC, # LATIN CAPITAL LETTER I WITH GRAVE
493 0x00CD: 0xCD, # LATIN CAPITAL LETTER I WITH ACUTE
494 0x00CE: 0xCE, # LATIN CAPITAL LETTER I WITH CIRCUMFLEX
495 0x00CF: 0xCF, # LATIN CAPITAL LETTER I WITH DIAERESIS
496 0x00D0: 0xD0, # LATIN CAPITAL LETTER ETH
497 0x00D1: 0xD1, # LATIN CAPITAL LETTER N WITH TILDE
498 0x00D2: 0xD2, # LATIN CAPITAL LETTER O WITH GRAVE
499 0x00D3: 0xD3, # LATIN CAPITAL LETTER O WITH ACUTE
500 0x00D4: 0xD4, # LATIN CAPITAL LETTER O WITH CIRCUMFLEX
501 0x00D5: 0xD5, # LATIN CAPITAL LETTER O WITH TILDE
502 0x00D6: 0xD6, # LATIN CAPITAL LETTER O WITH DIAERESIS
503 0x00D7: 0xD7, # MULTIPLICATION SIGN
504 0x00D8: 0xD8, # LATIN CAPITAL LETTER O WITH STROKE
505 0x00D9: 0xD9, # LATIN CAPITAL LETTER U WITH GRAVE
506 0x00DA: 0xDA, # LATIN CAPITAL LETTER U WITH ACUTE
507 0x00DB: 0xDB, # LATIN CAPITAL LETTER U WITH CIRCUMFLEX
508 0x00DC: 0xDC, # LATIN CAPITAL LETTER U WITH DIAERESIS
509 0x00DD: 0xDD, # LATIN CAPITAL LETTER Y WITH ACUTE
510 0x00DE: 0xDE, # LATIN CAPITAL LETTER THORN
511 0x00DF: 0xDF, # LATIN SMALL LETTER SHARP S
512 0x00E0: 0xE0, # LATIN SMALL LETTER A WITH GRAVE
513 0x00E1: 0xE1, # LATIN SMALL LETTER A WITH ACUTE
514 0x00E2: 0xE2, # LATIN SMALL LETTER A WITH CIRCUMFLEX
515 0x00E3: 0xE3, # LATIN SMALL LETTER A WITH TILDE
516 0x00E4: 0xE4, # LATIN SMALL LETTER A WITH DIAERESIS
517 0x00E5: 0xE5, # LATIN SMALL LETTER A WITH RING ABOVE
518 0x00E6: 0xE6, # LATIN SMALL LETTER AE
519 0x00E7: 0xE7, # LATIN SMALL LETTER C WITH CEDILLA
520 0x00E8: 0xE8, # LATIN SMALL LETTER E WITH GRAVE
521 0x00E9: 0xE9, # LATIN SMALL LETTER E WITH ACUTE
522 0x00EA: 0xEA, # LATIN SMALL LETTER E WITH CIRCUMFLEX
523 0x00EB: 0xEB, # LATIN SMALL LETTER E WITH DIAERESIS
524 0x00EC: 0xEC, # LATIN SMALL LETTER I WITH GRAVE
525 0x00ED: 0xED, # LATIN SMALL LETTER I WITH ACUTE
526 0x00EE: 0xEE, # LATIN SMALL LETTER I WITH CIRCUMFLEX
527 0x00EF: 0xEF, # LATIN SMALL LETTER I WITH DIAERESIS
528 0x00F0: 0xF0, # LATIN SMALL LETTER ETH
529 0x00F1: 0xF1, # LATIN SMALL LETTER N WITH TILDE
530 0x00F2: 0xF2, # LATIN SMALL LETTER O WITH GRAVE
531 0x00F3: 0xF3, # LATIN SMALL LETTER O WITH ACUTE
532 0x00F4: 0xF4, # LATIN SMALL LETTER O WITH CIRCUMFLEX
533 0x00F5: 0xF5, # LATIN SMALL LETTER O WITH TILDE
534 0x00F6: 0xF6, # LATIN SMALL LETTER O WITH DIAERESIS
535 0x00F7: 0xF7, # DIVISION SIGN
536 0x00F8: 0xF8, # LATIN SMALL LETTER O WITH STROKE
537 0x00F9: 0xF9, # LATIN SMALL LETTER U WITH GRAVE
538 0x00FA: 0xFA, # LATIN SMALL LETTER U WITH ACUTE
539 0x00FB: 0xFB, # LATIN SMALL LETTER U WITH CIRCUMFLEX
540 0x00FC: 0xFC, # LATIN SMALL LETTER U WITH DIAERESIS
541 0x00FD: 0xFD, # LATIN SMALL LETTER Y WITH ACUTE
542 0x00FE: 0xFE, # LATIN SMALL LETTER THORN
543 0x00FF: 0xFF, # LATIN SMALL LETTER Y WITH DIAERESIS
544 0x0152: 0xBC, # LATIN CAPITAL LIGATURE OE
545 0x0153: 0xBD, # LATIN SMALL LIGATURE OE
546 0x0160: 0xA6, # LATIN CAPITAL LETTER S WITH CARON
547 0x0161: 0xA8, # LATIN SMALL LETTER S WITH CARON
548 0x0178: 0xBE, # LATIN CAPITAL LETTER Y WITH DIAERESIS
549 0x017D: 0xB4, # LATIN CAPITAL LETTER Z WITH CARON
550 0x017E: 0xB8, # LATIN SMALL LETTER Z WITH CARON
551 0x20AC: 0xA4, # EURO SIGN
552}
553