• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1"""Python Character Mapping Codec cp720 generated on Windows:
2Vista 6.0.6002 SP2 Multiprocessor Free with the command:
3  python Tools/unicode/genwincodec.py 720
4"""#"
5
6
7import codecs
8
9### Codec APIs
10
11class Codec(codecs.Codec):
12
13    def encode(self,input,errors='strict'):
14        return codecs.charmap_encode(input,errors,encoding_table)
15
16    def decode(self,input,errors='strict'):
17        return codecs.charmap_decode(input,errors,decoding_table)
18
19class IncrementalEncoder(codecs.IncrementalEncoder):
20    def encode(self, input, final=False):
21        return codecs.charmap_encode(input,self.errors,encoding_table)[0]
22
23class IncrementalDecoder(codecs.IncrementalDecoder):
24    def decode(self, input, final=False):
25        return codecs.charmap_decode(input,self.errors,decoding_table)[0]
26
27class StreamWriter(Codec,codecs.StreamWriter):
28    pass
29
30class StreamReader(Codec,codecs.StreamReader):
31    pass
32
33### encodings module API
34
35def getregentry():
36    return codecs.CodecInfo(
37        name='cp720',
38        encode=Codec().encode,
39        decode=Codec().decode,
40        incrementalencoder=IncrementalEncoder,
41        incrementaldecoder=IncrementalDecoder,
42        streamreader=StreamReader,
43        streamwriter=StreamWriter,
44    )
45
46
47### Decoding Table
48
49decoding_table = (
50    u'\x00'     #  0x00 -> CONTROL CHARACTER
51    u'\x01'     #  0x01 -> CONTROL CHARACTER
52    u'\x02'     #  0x02 -> CONTROL CHARACTER
53    u'\x03'     #  0x03 -> CONTROL CHARACTER
54    u'\x04'     #  0x04 -> CONTROL CHARACTER
55    u'\x05'     #  0x05 -> CONTROL CHARACTER
56    u'\x06'     #  0x06 -> CONTROL CHARACTER
57    u'\x07'     #  0x07 -> CONTROL CHARACTER
58    u'\x08'     #  0x08 -> CONTROL CHARACTER
59    u'\t'       #  0x09 -> CONTROL CHARACTER
60    u'\n'       #  0x0A -> CONTROL CHARACTER
61    u'\x0b'     #  0x0B -> CONTROL CHARACTER
62    u'\x0c'     #  0x0C -> CONTROL CHARACTER
63    u'\r'       #  0x0D -> CONTROL CHARACTER
64    u'\x0e'     #  0x0E -> CONTROL CHARACTER
65    u'\x0f'     #  0x0F -> CONTROL CHARACTER
66    u'\x10'     #  0x10 -> CONTROL CHARACTER
67    u'\x11'     #  0x11 -> CONTROL CHARACTER
68    u'\x12'     #  0x12 -> CONTROL CHARACTER
69    u'\x13'     #  0x13 -> CONTROL CHARACTER
70    u'\x14'     #  0x14 -> CONTROL CHARACTER
71    u'\x15'     #  0x15 -> CONTROL CHARACTER
72    u'\x16'     #  0x16 -> CONTROL CHARACTER
73    u'\x17'     #  0x17 -> CONTROL CHARACTER
74    u'\x18'     #  0x18 -> CONTROL CHARACTER
75    u'\x19'     #  0x19 -> CONTROL CHARACTER
76    u'\x1a'     #  0x1A -> CONTROL CHARACTER
77    u'\x1b'     #  0x1B -> CONTROL CHARACTER
78    u'\x1c'     #  0x1C -> CONTROL CHARACTER
79    u'\x1d'     #  0x1D -> CONTROL CHARACTER
80    u'\x1e'     #  0x1E -> CONTROL CHARACTER
81    u'\x1f'     #  0x1F -> CONTROL CHARACTER
82    u' '        #  0x20 -> SPACE
83    u'!'        #  0x21 -> EXCLAMATION MARK
84    u'"'        #  0x22 -> QUOTATION MARK
85    u'#'        #  0x23 -> NUMBER SIGN
86    u'$'        #  0x24 -> DOLLAR SIGN
87    u'%'        #  0x25 -> PERCENT SIGN
88    u'&'        #  0x26 -> AMPERSAND
89    u"'"        #  0x27 -> APOSTROPHE
90    u'('        #  0x28 -> LEFT PARENTHESIS
91    u')'        #  0x29 -> RIGHT PARENTHESIS
92    u'*'        #  0x2A -> ASTERISK
93    u'+'        #  0x2B -> PLUS SIGN
94    u','        #  0x2C -> COMMA
95    u'-'        #  0x2D -> HYPHEN-MINUS
96    u'.'        #  0x2E -> FULL STOP
97    u'/'        #  0x2F -> SOLIDUS
98    u'0'        #  0x30 -> DIGIT ZERO
99    u'1'        #  0x31 -> DIGIT ONE
100    u'2'        #  0x32 -> DIGIT TWO
101    u'3'        #  0x33 -> DIGIT THREE
102    u'4'        #  0x34 -> DIGIT FOUR
103    u'5'        #  0x35 -> DIGIT FIVE
104    u'6'        #  0x36 -> DIGIT SIX
105    u'7'        #  0x37 -> DIGIT SEVEN
106    u'8'        #  0x38 -> DIGIT EIGHT
107    u'9'        #  0x39 -> DIGIT NINE
108    u':'        #  0x3A -> COLON
109    u';'        #  0x3B -> SEMICOLON
110    u'<'        #  0x3C -> LESS-THAN SIGN
111    u'='        #  0x3D -> EQUALS SIGN
112    u'>'        #  0x3E -> GREATER-THAN SIGN
113    u'?'        #  0x3F -> QUESTION MARK
114    u'@'        #  0x40 -> COMMERCIAL AT
115    u'A'        #  0x41 -> LATIN CAPITAL LETTER A
116    u'B'        #  0x42 -> LATIN CAPITAL LETTER B
117    u'C'        #  0x43 -> LATIN CAPITAL LETTER C
118    u'D'        #  0x44 -> LATIN CAPITAL LETTER D
119    u'E'        #  0x45 -> LATIN CAPITAL LETTER E
120    u'F'        #  0x46 -> LATIN CAPITAL LETTER F
121    u'G'        #  0x47 -> LATIN CAPITAL LETTER G
122    u'H'        #  0x48 -> LATIN CAPITAL LETTER H
123    u'I'        #  0x49 -> LATIN CAPITAL LETTER I
124    u'J'        #  0x4A -> LATIN CAPITAL LETTER J
125    u'K'        #  0x4B -> LATIN CAPITAL LETTER K
126    u'L'        #  0x4C -> LATIN CAPITAL LETTER L
127    u'M'        #  0x4D -> LATIN CAPITAL LETTER M
128    u'N'        #  0x4E -> LATIN CAPITAL LETTER N
129    u'O'        #  0x4F -> LATIN CAPITAL LETTER O
130    u'P'        #  0x50 -> LATIN CAPITAL LETTER P
131    u'Q'        #  0x51 -> LATIN CAPITAL LETTER Q
132    u'R'        #  0x52 -> LATIN CAPITAL LETTER R
133    u'S'        #  0x53 -> LATIN CAPITAL LETTER S
134    u'T'        #  0x54 -> LATIN CAPITAL LETTER T
135    u'U'        #  0x55 -> LATIN CAPITAL LETTER U
136    u'V'        #  0x56 -> LATIN CAPITAL LETTER V
137    u'W'        #  0x57 -> LATIN CAPITAL LETTER W
138    u'X'        #  0x58 -> LATIN CAPITAL LETTER X
139    u'Y'        #  0x59 -> LATIN CAPITAL LETTER Y
140    u'Z'        #  0x5A -> LATIN CAPITAL LETTER Z
141    u'['        #  0x5B -> LEFT SQUARE BRACKET
142    u'\\'       #  0x5C -> REVERSE SOLIDUS
143    u']'        #  0x5D -> RIGHT SQUARE BRACKET
144    u'^'        #  0x5E -> CIRCUMFLEX ACCENT
145    u'_'        #  0x5F -> LOW LINE
146    u'`'        #  0x60 -> GRAVE ACCENT
147    u'a'        #  0x61 -> LATIN SMALL LETTER A
148    u'b'        #  0x62 -> LATIN SMALL LETTER B
149    u'c'        #  0x63 -> LATIN SMALL LETTER C
150    u'd'        #  0x64 -> LATIN SMALL LETTER D
151    u'e'        #  0x65 -> LATIN SMALL LETTER E
152    u'f'        #  0x66 -> LATIN SMALL LETTER F
153    u'g'        #  0x67 -> LATIN SMALL LETTER G
154    u'h'        #  0x68 -> LATIN SMALL LETTER H
155    u'i'        #  0x69 -> LATIN SMALL LETTER I
156    u'j'        #  0x6A -> LATIN SMALL LETTER J
157    u'k'        #  0x6B -> LATIN SMALL LETTER K
158    u'l'        #  0x6C -> LATIN SMALL LETTER L
159    u'm'        #  0x6D -> LATIN SMALL LETTER M
160    u'n'        #  0x6E -> LATIN SMALL LETTER N
161    u'o'        #  0x6F -> LATIN SMALL LETTER O
162    u'p'        #  0x70 -> LATIN SMALL LETTER P
163    u'q'        #  0x71 -> LATIN SMALL LETTER Q
164    u'r'        #  0x72 -> LATIN SMALL LETTER R
165    u's'        #  0x73 -> LATIN SMALL LETTER S
166    u't'        #  0x74 -> LATIN SMALL LETTER T
167    u'u'        #  0x75 -> LATIN SMALL LETTER U
168    u'v'        #  0x76 -> LATIN SMALL LETTER V
169    u'w'        #  0x77 -> LATIN SMALL LETTER W
170    u'x'        #  0x78 -> LATIN SMALL LETTER X
171    u'y'        #  0x79 -> LATIN SMALL LETTER Y
172    u'z'        #  0x7A -> LATIN SMALL LETTER Z
173    u'{'        #  0x7B -> LEFT CURLY BRACKET
174    u'|'        #  0x7C -> VERTICAL LINE
175    u'}'        #  0x7D -> RIGHT CURLY BRACKET
176    u'~'        #  0x7E -> TILDE
177    u'\x7f'     #  0x7F -> CONTROL CHARACTER
178    u'\x80'
179    u'\x81'
180    u'\xe9'     #  0x82 -> LATIN SMALL LETTER E WITH ACUTE
181    u'\xe2'     #  0x83 -> LATIN SMALL LETTER A WITH CIRCUMFLEX
182    u'\x84'
183    u'\xe0'     #  0x85 -> LATIN SMALL LETTER A WITH GRAVE
184    u'\x86'
185    u'\xe7'     #  0x87 -> LATIN SMALL LETTER C WITH CEDILLA
186    u'\xea'     #  0x88 -> LATIN SMALL LETTER E WITH CIRCUMFLEX
187    u'\xeb'     #  0x89 -> LATIN SMALL LETTER E WITH DIAERESIS
188    u'\xe8'     #  0x8A -> LATIN SMALL LETTER E WITH GRAVE
189    u'\xef'     #  0x8B -> LATIN SMALL LETTER I WITH DIAERESIS
190    u'\xee'     #  0x8C -> LATIN SMALL LETTER I WITH CIRCUMFLEX
191    u'\x8d'
192    u'\x8e'
193    u'\x8f'
194    u'\x90'
195    u'\u0651'   #  0x91 -> ARABIC SHADDA
196    u'\u0652'   #  0x92 -> ARABIC SUKUN
197    u'\xf4'     #  0x93 -> LATIN SMALL LETTER O WITH CIRCUMFLEX
198    u'\xa4'     #  0x94 -> CURRENCY SIGN
199    u'\u0640'   #  0x95 -> ARABIC TATWEEL
200    u'\xfb'     #  0x96 -> LATIN SMALL LETTER U WITH CIRCUMFLEX
201    u'\xf9'     #  0x97 -> LATIN SMALL LETTER U WITH GRAVE
202    u'\u0621'   #  0x98 -> ARABIC LETTER HAMZA
203    u'\u0622'   #  0x99 -> ARABIC LETTER ALEF WITH MADDA ABOVE
204    u'\u0623'   #  0x9A -> ARABIC LETTER ALEF WITH HAMZA ABOVE
205    u'\u0624'   #  0x9B -> ARABIC LETTER WAW WITH HAMZA ABOVE
206    u'\xa3'     #  0x9C -> POUND SIGN
207    u'\u0625'   #  0x9D -> ARABIC LETTER ALEF WITH HAMZA BELOW
208    u'\u0626'   #  0x9E -> ARABIC LETTER YEH WITH HAMZA ABOVE
209    u'\u0627'   #  0x9F -> ARABIC LETTER ALEF
210    u'\u0628'   #  0xA0 -> ARABIC LETTER BEH
211    u'\u0629'   #  0xA1 -> ARABIC LETTER TEH MARBUTA
212    u'\u062a'   #  0xA2 -> ARABIC LETTER TEH
213    u'\u062b'   #  0xA3 -> ARABIC LETTER THEH
214    u'\u062c'   #  0xA4 -> ARABIC LETTER JEEM
215    u'\u062d'   #  0xA5 -> ARABIC LETTER HAH
216    u'\u062e'   #  0xA6 -> ARABIC LETTER KHAH
217    u'\u062f'   #  0xA7 -> ARABIC LETTER DAL
218    u'\u0630'   #  0xA8 -> ARABIC LETTER THAL
219    u'\u0631'   #  0xA9 -> ARABIC LETTER REH
220    u'\u0632'   #  0xAA -> ARABIC LETTER ZAIN
221    u'\u0633'   #  0xAB -> ARABIC LETTER SEEN
222    u'\u0634'   #  0xAC -> ARABIC LETTER SHEEN
223    u'\u0635'   #  0xAD -> ARABIC LETTER SAD
224    u'\xab'     #  0xAE -> LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
225    u'\xbb'     #  0xAF -> RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
226    u'\u2591'   #  0xB0 -> LIGHT SHADE
227    u'\u2592'   #  0xB1 -> MEDIUM SHADE
228    u'\u2593'   #  0xB2 -> DARK SHADE
229    u'\u2502'   #  0xB3 -> BOX DRAWINGS LIGHT VERTICAL
230    u'\u2524'   #  0xB4 -> BOX DRAWINGS LIGHT VERTICAL AND LEFT
231    u'\u2561'   #  0xB5 -> BOX DRAWINGS VERTICAL SINGLE AND LEFT DOUBLE
232    u'\u2562'   #  0xB6 -> BOX DRAWINGS VERTICAL DOUBLE AND LEFT SINGLE
233    u'\u2556'   #  0xB7 -> BOX DRAWINGS DOWN DOUBLE AND LEFT SINGLE
234    u'\u2555'   #  0xB8 -> BOX DRAWINGS DOWN SINGLE AND LEFT DOUBLE
235    u'\u2563'   #  0xB9 -> BOX DRAWINGS DOUBLE VERTICAL AND LEFT
236    u'\u2551'   #  0xBA -> BOX DRAWINGS DOUBLE VERTICAL
237    u'\u2557'   #  0xBB -> BOX DRAWINGS DOUBLE DOWN AND LEFT
238    u'\u255d'   #  0xBC -> BOX DRAWINGS DOUBLE UP AND LEFT
239    u'\u255c'   #  0xBD -> BOX DRAWINGS UP DOUBLE AND LEFT SINGLE
240    u'\u255b'   #  0xBE -> BOX DRAWINGS UP SINGLE AND LEFT DOUBLE
241    u'\u2510'   #  0xBF -> BOX DRAWINGS LIGHT DOWN AND LEFT
242    u'\u2514'   #  0xC0 -> BOX DRAWINGS LIGHT UP AND RIGHT
243    u'\u2534'   #  0xC1 -> BOX DRAWINGS LIGHT UP AND HORIZONTAL
244    u'\u252c'   #  0xC2 -> BOX DRAWINGS LIGHT DOWN AND HORIZONTAL
245    u'\u251c'   #  0xC3 -> BOX DRAWINGS LIGHT VERTICAL AND RIGHT
246    u'\u2500'   #  0xC4 -> BOX DRAWINGS LIGHT HORIZONTAL
247    u'\u253c'   #  0xC5 -> BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL
248    u'\u255e'   #  0xC6 -> BOX DRAWINGS VERTICAL SINGLE AND RIGHT DOUBLE
249    u'\u255f'   #  0xC7 -> BOX DRAWINGS VERTICAL DOUBLE AND RIGHT SINGLE
250    u'\u255a'   #  0xC8 -> BOX DRAWINGS DOUBLE UP AND RIGHT
251    u'\u2554'   #  0xC9 -> BOX DRAWINGS DOUBLE DOWN AND RIGHT
252    u'\u2569'   #  0xCA -> BOX DRAWINGS DOUBLE UP AND HORIZONTAL
253    u'\u2566'   #  0xCB -> BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL
254    u'\u2560'   #  0xCC -> BOX DRAWINGS DOUBLE VERTICAL AND RIGHT
255    u'\u2550'   #  0xCD -> BOX DRAWINGS DOUBLE HORIZONTAL
256    u'\u256c'   #  0xCE -> BOX DRAWINGS DOUBLE VERTICAL AND HORIZONTAL
257    u'\u2567'   #  0xCF -> BOX DRAWINGS UP SINGLE AND HORIZONTAL DOUBLE
258    u'\u2568'   #  0xD0 -> BOX DRAWINGS UP DOUBLE AND HORIZONTAL SINGLE
259    u'\u2564'   #  0xD1 -> BOX DRAWINGS DOWN SINGLE AND HORIZONTAL DOUBLE
260    u'\u2565'   #  0xD2 -> BOX DRAWINGS DOWN DOUBLE AND HORIZONTAL SINGLE
261    u'\u2559'   #  0xD3 -> BOX DRAWINGS UP DOUBLE AND RIGHT SINGLE
262    u'\u2558'   #  0xD4 -> BOX DRAWINGS UP SINGLE AND RIGHT DOUBLE
263    u'\u2552'   #  0xD5 -> BOX DRAWINGS DOWN SINGLE AND RIGHT DOUBLE
264    u'\u2553'   #  0xD6 -> BOX DRAWINGS DOWN DOUBLE AND RIGHT SINGLE
265    u'\u256b'   #  0xD7 -> BOX DRAWINGS VERTICAL DOUBLE AND HORIZONTAL SINGLE
266    u'\u256a'   #  0xD8 -> BOX DRAWINGS VERTICAL SINGLE AND HORIZONTAL DOUBLE
267    u'\u2518'   #  0xD9 -> BOX DRAWINGS LIGHT UP AND LEFT
268    u'\u250c'   #  0xDA -> BOX DRAWINGS LIGHT DOWN AND RIGHT
269    u'\u2588'   #  0xDB -> FULL BLOCK
270    u'\u2584'   #  0xDC -> LOWER HALF BLOCK
271    u'\u258c'   #  0xDD -> LEFT HALF BLOCK
272    u'\u2590'   #  0xDE -> RIGHT HALF BLOCK
273    u'\u2580'   #  0xDF -> UPPER HALF BLOCK
274    u'\u0636'   #  0xE0 -> ARABIC LETTER DAD
275    u'\u0637'   #  0xE1 -> ARABIC LETTER TAH
276    u'\u0638'   #  0xE2 -> ARABIC LETTER ZAH
277    u'\u0639'   #  0xE3 -> ARABIC LETTER AIN
278    u'\u063a'   #  0xE4 -> ARABIC LETTER GHAIN
279    u'\u0641'   #  0xE5 -> ARABIC LETTER FEH
280    u'\xb5'     #  0xE6 -> MICRO SIGN
281    u'\u0642'   #  0xE7 -> ARABIC LETTER QAF
282    u'\u0643'   #  0xE8 -> ARABIC LETTER KAF
283    u'\u0644'   #  0xE9 -> ARABIC LETTER LAM
284    u'\u0645'   #  0xEA -> ARABIC LETTER MEEM
285    u'\u0646'   #  0xEB -> ARABIC LETTER NOON
286    u'\u0647'   #  0xEC -> ARABIC LETTER HEH
287    u'\u0648'   #  0xED -> ARABIC LETTER WAW
288    u'\u0649'   #  0xEE -> ARABIC LETTER ALEF MAKSURA
289    u'\u064a'   #  0xEF -> ARABIC LETTER YEH
290    u'\u2261'   #  0xF0 -> IDENTICAL TO
291    u'\u064b'   #  0xF1 -> ARABIC FATHATAN
292    u'\u064c'   #  0xF2 -> ARABIC DAMMATAN
293    u'\u064d'   #  0xF3 -> ARABIC KASRATAN
294    u'\u064e'   #  0xF4 -> ARABIC FATHA
295    u'\u064f'   #  0xF5 -> ARABIC DAMMA
296    u'\u0650'   #  0xF6 -> ARABIC KASRA
297    u'\u2248'   #  0xF7 -> ALMOST EQUAL TO
298    u'\xb0'     #  0xF8 -> DEGREE SIGN
299    u'\u2219'   #  0xF9 -> BULLET OPERATOR
300    u'\xb7'     #  0xFA -> MIDDLE DOT
301    u'\u221a'   #  0xFB -> SQUARE ROOT
302    u'\u207f'   #  0xFC -> SUPERSCRIPT LATIN SMALL LETTER N
303    u'\xb2'     #  0xFD -> SUPERSCRIPT TWO
304    u'\u25a0'   #  0xFE -> BLACK SQUARE
305    u'\xa0'     #  0xFF -> NO-BREAK SPACE
306)
307
308### Encoding table
309encoding_table=codecs.charmap_build(decoding_table)
310