]> git.proxmox.com Git - mirror_edk2.git/blame - AppPkg/Applications/Python/Python-2.7.10/Lib/encodings/iso8859_2.py
EmbeddedPkg: Extend NvVarStoreFormattedLib LIBRARY_CLASS
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.10 / Lib / encodings / iso8859_2.py
CommitLineData
3257aa99
DM
1""" Python Character Mapping Codec iso8859_2 generated from 'MAPPINGS/ISO8859/8859-2.TXT' with gencodec.py.\r
2\r
3"""#"\r
4\r
5import codecs\r
6\r
7### Codec APIs\r
8\r
9class Codec(codecs.Codec):\r
10\r
11 def encode(self,input,errors='strict'):\r
12 return codecs.charmap_encode(input,errors,encoding_table)\r
13\r
14 def decode(self,input,errors='strict'):\r
15 return codecs.charmap_decode(input,errors,decoding_table)\r
16\r
17class IncrementalEncoder(codecs.IncrementalEncoder):\r
18 def encode(self, input, final=False):\r
19 return codecs.charmap_encode(input,self.errors,encoding_table)[0]\r
20\r
21class IncrementalDecoder(codecs.IncrementalDecoder):\r
22 def decode(self, input, final=False):\r
23 return codecs.charmap_decode(input,self.errors,decoding_table)[0]\r
24\r
25class StreamWriter(Codec,codecs.StreamWriter):\r
26 pass\r
27\r
28class StreamReader(Codec,codecs.StreamReader):\r
29 pass\r
30\r
31### encodings module API\r
32\r
33def getregentry():\r
34 return codecs.CodecInfo(\r
35 name='iso8859-2',\r
36 encode=Codec().encode,\r
37 decode=Codec().decode,\r
38 incrementalencoder=IncrementalEncoder,\r
39 incrementaldecoder=IncrementalDecoder,\r
40 streamreader=StreamReader,\r
41 streamwriter=StreamWriter,\r
42 )\r
43\r
44\r
45### Decoding Table\r
46\r
47decoding_table = (\r
48 u'\x00' # 0x00 -> NULL\r
49 u'\x01' # 0x01 -> START OF HEADING\r
50 u'\x02' # 0x02 -> START OF TEXT\r
51 u'\x03' # 0x03 -> END OF TEXT\r
52 u'\x04' # 0x04 -> END OF TRANSMISSION\r
53 u'\x05' # 0x05 -> ENQUIRY\r
54 u'\x06' # 0x06 -> ACKNOWLEDGE\r
55 u'\x07' # 0x07 -> BELL\r
56 u'\x08' # 0x08 -> BACKSPACE\r
57 u'\t' # 0x09 -> HORIZONTAL TABULATION\r
58 u'\n' # 0x0A -> LINE FEED\r
59 u'\x0b' # 0x0B -> VERTICAL TABULATION\r
60 u'\x0c' # 0x0C -> FORM FEED\r
61 u'\r' # 0x0D -> CARRIAGE RETURN\r
62 u'\x0e' # 0x0E -> SHIFT OUT\r
63 u'\x0f' # 0x0F -> SHIFT IN\r
64 u'\x10' # 0x10 -> DATA LINK ESCAPE\r
65 u'\x11' # 0x11 -> DEVICE CONTROL ONE\r
66 u'\x12' # 0x12 -> DEVICE CONTROL TWO\r
67 u'\x13' # 0x13 -> DEVICE CONTROL THREE\r
68 u'\x14' # 0x14 -> DEVICE CONTROL FOUR\r
69 u'\x15' # 0x15 -> NEGATIVE ACKNOWLEDGE\r
70 u'\x16' # 0x16 -> SYNCHRONOUS IDLE\r
71 u'\x17' # 0x17 -> END OF TRANSMISSION BLOCK\r
72 u'\x18' # 0x18 -> CANCEL\r
73 u'\x19' # 0x19 -> END OF MEDIUM\r
74 u'\x1a' # 0x1A -> SUBSTITUTE\r
75 u'\x1b' # 0x1B -> ESCAPE\r
76 u'\x1c' # 0x1C -> FILE SEPARATOR\r
77 u'\x1d' # 0x1D -> GROUP SEPARATOR\r
78 u'\x1e' # 0x1E -> RECORD SEPARATOR\r
79 u'\x1f' # 0x1F -> UNIT SEPARATOR\r
80 u' ' # 0x20 -> SPACE\r
81 u'!' # 0x21 -> EXCLAMATION MARK\r
82 u'"' # 0x22 -> QUOTATION MARK\r
83 u'#' # 0x23 -> NUMBER SIGN\r
84 u'$' # 0x24 -> DOLLAR SIGN\r
85 u'%' # 0x25 -> PERCENT SIGN\r
86 u'&' # 0x26 -> AMPERSAND\r
87 u"'" # 0x27 -> APOSTROPHE\r
88 u'(' # 0x28 -> LEFT PARENTHESIS\r
89 u')' # 0x29 -> RIGHT PARENTHESIS\r
90 u'*' # 0x2A -> ASTERISK\r
91 u'+' # 0x2B -> PLUS SIGN\r
92 u',' # 0x2C -> COMMA\r
93 u'-' # 0x2D -> HYPHEN-MINUS\r
94 u'.' # 0x2E -> FULL STOP\r
95 u'/' # 0x2F -> SOLIDUS\r
96 u'0' # 0x30 -> DIGIT ZERO\r
97 u'1' # 0x31 -> DIGIT ONE\r
98 u'2' # 0x32 -> DIGIT TWO\r
99 u'3' # 0x33 -> DIGIT THREE\r
100 u'4' # 0x34 -> DIGIT FOUR\r
101 u'5' # 0x35 -> DIGIT FIVE\r
102 u'6' # 0x36 -> DIGIT SIX\r
103 u'7' # 0x37 -> DIGIT SEVEN\r
104 u'8' # 0x38 -> DIGIT EIGHT\r
105 u'9' # 0x39 -> DIGIT NINE\r
106 u':' # 0x3A -> COLON\r
107 u';' # 0x3B -> SEMICOLON\r
108 u'<' # 0x3C -> LESS-THAN SIGN\r
109 u'=' # 0x3D -> EQUALS SIGN\r
110 u'>' # 0x3E -> GREATER-THAN SIGN\r
111 u'?' # 0x3F -> QUESTION MARK\r
112 u'@' # 0x40 -> COMMERCIAL AT\r
113 u'A' # 0x41 -> LATIN CAPITAL LETTER A\r
114 u'B' # 0x42 -> LATIN CAPITAL LETTER B\r
115 u'C' # 0x43 -> LATIN CAPITAL LETTER C\r
116 u'D' # 0x44 -> LATIN CAPITAL LETTER D\r
117 u'E' # 0x45 -> LATIN CAPITAL LETTER E\r
118 u'F' # 0x46 -> LATIN CAPITAL LETTER F\r
119 u'G' # 0x47 -> LATIN CAPITAL LETTER G\r
120 u'H' # 0x48 -> LATIN CAPITAL LETTER H\r
121 u'I' # 0x49 -> LATIN CAPITAL LETTER I\r
122 u'J' # 0x4A -> LATIN CAPITAL LETTER J\r
123 u'K' # 0x4B -> LATIN CAPITAL LETTER K\r
124 u'L' # 0x4C -> LATIN CAPITAL LETTER L\r
125 u'M' # 0x4D -> LATIN CAPITAL LETTER M\r
126 u'N' # 0x4E -> LATIN CAPITAL LETTER N\r
127 u'O' # 0x4F -> LATIN CAPITAL LETTER O\r
128 u'P' # 0x50 -> LATIN CAPITAL LETTER P\r
129 u'Q' # 0x51 -> LATIN CAPITAL LETTER Q\r
130 u'R' # 0x52 -> LATIN CAPITAL LETTER R\r
131 u'S' # 0x53 -> LATIN CAPITAL LETTER S\r
132 u'T' # 0x54 -> LATIN CAPITAL LETTER T\r
133 u'U' # 0x55 -> LATIN CAPITAL LETTER U\r
134 u'V' # 0x56 -> LATIN CAPITAL LETTER V\r
135 u'W' # 0x57 -> LATIN CAPITAL LETTER W\r
136 u'X' # 0x58 -> LATIN CAPITAL LETTER X\r
137 u'Y' # 0x59 -> LATIN CAPITAL LETTER Y\r
138 u'Z' # 0x5A -> LATIN CAPITAL LETTER Z\r
139 u'[' # 0x5B -> LEFT SQUARE BRACKET\r
140 u'\\' # 0x5C -> REVERSE SOLIDUS\r
141 u']' # 0x5D -> RIGHT SQUARE BRACKET\r
142 u'^' # 0x5E -> CIRCUMFLEX ACCENT\r
143 u'_' # 0x5F -> LOW LINE\r
144 u'`' # 0x60 -> GRAVE ACCENT\r
145 u'a' # 0x61 -> LATIN SMALL LETTER A\r
146 u'b' # 0x62 -> LATIN SMALL LETTER B\r
147 u'c' # 0x63 -> LATIN SMALL LETTER C\r
148 u'd' # 0x64 -> LATIN SMALL LETTER D\r
149 u'e' # 0x65 -> LATIN SMALL LETTER E\r
150 u'f' # 0x66 -> LATIN SMALL LETTER F\r
151 u'g' # 0x67 -> LATIN SMALL LETTER G\r
152 u'h' # 0x68 -> LATIN SMALL LETTER H\r
153 u'i' # 0x69 -> LATIN SMALL LETTER I\r
154 u'j' # 0x6A -> LATIN SMALL LETTER J\r
155 u'k' # 0x6B -> LATIN SMALL LETTER K\r
156 u'l' # 0x6C -> LATIN SMALL LETTER L\r
157 u'm' # 0x6D -> LATIN SMALL LETTER M\r
158 u'n' # 0x6E -> LATIN SMALL LETTER N\r
159 u'o' # 0x6F -> LATIN SMALL LETTER O\r
160 u'p' # 0x70 -> LATIN SMALL LETTER P\r
161 u'q' # 0x71 -> LATIN SMALL LETTER Q\r
162 u'r' # 0x72 -> LATIN SMALL LETTER R\r
163 u's' # 0x73 -> LATIN SMALL LETTER S\r
164 u't' # 0x74 -> LATIN SMALL LETTER T\r
165 u'u' # 0x75 -> LATIN SMALL LETTER U\r
166 u'v' # 0x76 -> LATIN SMALL LETTER V\r
167 u'w' # 0x77 -> LATIN SMALL LETTER W\r
168 u'x' # 0x78 -> LATIN SMALL LETTER X\r
169 u'y' # 0x79 -> LATIN SMALL LETTER Y\r
170 u'z' # 0x7A -> LATIN SMALL LETTER Z\r
171 u'{' # 0x7B -> LEFT CURLY BRACKET\r
172 u'|' # 0x7C -> VERTICAL LINE\r
173 u'}' # 0x7D -> RIGHT CURLY BRACKET\r
174 u'~' # 0x7E -> TILDE\r
175 u'\x7f' # 0x7F -> DELETE\r
176 u'\x80' # 0x80 -> <control>\r
177 u'\x81' # 0x81 -> <control>\r
178 u'\x82' # 0x82 -> <control>\r
179 u'\x83' # 0x83 -> <control>\r
180 u'\x84' # 0x84 -> <control>\r
181 u'\x85' # 0x85 -> <control>\r
182 u'\x86' # 0x86 -> <control>\r
183 u'\x87' # 0x87 -> <control>\r
184 u'\x88' # 0x88 -> <control>\r
185 u'\x89' # 0x89 -> <control>\r
186 u'\x8a' # 0x8A -> <control>\r
187 u'\x8b' # 0x8B -> <control>\r
188 u'\x8c' # 0x8C -> <control>\r
189 u'\x8d' # 0x8D -> <control>\r
190 u'\x8e' # 0x8E -> <control>\r
191 u'\x8f' # 0x8F -> <control>\r
192 u'\x90' # 0x90 -> <control>\r
193 u'\x91' # 0x91 -> <control>\r
194 u'\x92' # 0x92 -> <control>\r
195 u'\x93' # 0x93 -> <control>\r
196 u'\x94' # 0x94 -> <control>\r
197 u'\x95' # 0x95 -> <control>\r
198 u'\x96' # 0x96 -> <control>\r
199 u'\x97' # 0x97 -> <control>\r
200 u'\x98' # 0x98 -> <control>\r
201 u'\x99' # 0x99 -> <control>\r
202 u'\x9a' # 0x9A -> <control>\r
203 u'\x9b' # 0x9B -> <control>\r
204 u'\x9c' # 0x9C -> <control>\r
205 u'\x9d' # 0x9D -> <control>\r
206 u'\x9e' # 0x9E -> <control>\r
207 u'\x9f' # 0x9F -> <control>\r
208 u'\xa0' # 0xA0 -> NO-BREAK SPACE\r
209 u'\u0104' # 0xA1 -> LATIN CAPITAL LETTER A WITH OGONEK\r
210 u'\u02d8' # 0xA2 -> BREVE\r
211 u'\u0141' # 0xA3 -> LATIN CAPITAL LETTER L WITH STROKE\r
212 u'\xa4' # 0xA4 -> CURRENCY SIGN\r
213 u'\u013d' # 0xA5 -> LATIN CAPITAL LETTER L WITH CARON\r
214 u'\u015a' # 0xA6 -> LATIN CAPITAL LETTER S WITH ACUTE\r
215 u'\xa7' # 0xA7 -> SECTION SIGN\r
216 u'\xa8' # 0xA8 -> DIAERESIS\r
217 u'\u0160' # 0xA9 -> LATIN CAPITAL LETTER S WITH CARON\r
218 u'\u015e' # 0xAA -> LATIN CAPITAL LETTER S WITH CEDILLA\r
219 u'\u0164' # 0xAB -> LATIN CAPITAL LETTER T WITH CARON\r
220 u'\u0179' # 0xAC -> LATIN CAPITAL LETTER Z WITH ACUTE\r
221 u'\xad' # 0xAD -> SOFT HYPHEN\r
222 u'\u017d' # 0xAE -> LATIN CAPITAL LETTER Z WITH CARON\r
223 u'\u017b' # 0xAF -> LATIN CAPITAL LETTER Z WITH DOT ABOVE\r
224 u'\xb0' # 0xB0 -> DEGREE SIGN\r
225 u'\u0105' # 0xB1 -> LATIN SMALL LETTER A WITH OGONEK\r
226 u'\u02db' # 0xB2 -> OGONEK\r
227 u'\u0142' # 0xB3 -> LATIN SMALL LETTER L WITH STROKE\r
228 u'\xb4' # 0xB4 -> ACUTE ACCENT\r
229 u'\u013e' # 0xB5 -> LATIN SMALL LETTER L WITH CARON\r
230 u'\u015b' # 0xB6 -> LATIN SMALL LETTER S WITH ACUTE\r
231 u'\u02c7' # 0xB7 -> CARON\r
232 u'\xb8' # 0xB8 -> CEDILLA\r
233 u'\u0161' # 0xB9 -> LATIN SMALL LETTER S WITH CARON\r
234 u'\u015f' # 0xBA -> LATIN SMALL LETTER S WITH CEDILLA\r
235 u'\u0165' # 0xBB -> LATIN SMALL LETTER T WITH CARON\r
236 u'\u017a' # 0xBC -> LATIN SMALL LETTER Z WITH ACUTE\r
237 u'\u02dd' # 0xBD -> DOUBLE ACUTE ACCENT\r
238 u'\u017e' # 0xBE -> LATIN SMALL LETTER Z WITH CARON\r
239 u'\u017c' # 0xBF -> LATIN SMALL LETTER Z WITH DOT ABOVE\r
240 u'\u0154' # 0xC0 -> LATIN CAPITAL LETTER R WITH ACUTE\r
241 u'\xc1' # 0xC1 -> LATIN CAPITAL LETTER A WITH ACUTE\r
242 u'\xc2' # 0xC2 -> LATIN CAPITAL LETTER A WITH CIRCUMFLEX\r
243 u'\u0102' # 0xC3 -> LATIN CAPITAL LETTER A WITH BREVE\r
244 u'\xc4' # 0xC4 -> LATIN CAPITAL LETTER A WITH DIAERESIS\r
245 u'\u0139' # 0xC5 -> LATIN CAPITAL LETTER L WITH ACUTE\r
246 u'\u0106' # 0xC6 -> LATIN CAPITAL LETTER C WITH ACUTE\r
247 u'\xc7' # 0xC7 -> LATIN CAPITAL LETTER C WITH CEDILLA\r
248 u'\u010c' # 0xC8 -> LATIN CAPITAL LETTER C WITH CARON\r
249 u'\xc9' # 0xC9 -> LATIN CAPITAL LETTER E WITH ACUTE\r
250 u'\u0118' # 0xCA -> LATIN CAPITAL LETTER E WITH OGONEK\r
251 u'\xcb' # 0xCB -> LATIN CAPITAL LETTER E WITH DIAERESIS\r
252 u'\u011a' # 0xCC -> LATIN CAPITAL LETTER E WITH CARON\r
253 u'\xcd' # 0xCD -> LATIN CAPITAL LETTER I WITH ACUTE\r
254 u'\xce' # 0xCE -> LATIN CAPITAL LETTER I WITH CIRCUMFLEX\r
255 u'\u010e' # 0xCF -> LATIN CAPITAL LETTER D WITH CARON\r
256 u'\u0110' # 0xD0 -> LATIN CAPITAL LETTER D WITH STROKE\r
257 u'\u0143' # 0xD1 -> LATIN CAPITAL LETTER N WITH ACUTE\r
258 u'\u0147' # 0xD2 -> LATIN CAPITAL LETTER N WITH CARON\r
259 u'\xd3' # 0xD3 -> LATIN CAPITAL LETTER O WITH ACUTE\r
260 u'\xd4' # 0xD4 -> LATIN CAPITAL LETTER O WITH CIRCUMFLEX\r
261 u'\u0150' # 0xD5 -> LATIN CAPITAL LETTER O WITH DOUBLE ACUTE\r
262 u'\xd6' # 0xD6 -> LATIN CAPITAL LETTER O WITH DIAERESIS\r
263 u'\xd7' # 0xD7 -> MULTIPLICATION SIGN\r
264 u'\u0158' # 0xD8 -> LATIN CAPITAL LETTER R WITH CARON\r
265 u'\u016e' # 0xD9 -> LATIN CAPITAL LETTER U WITH RING ABOVE\r
266 u'\xda' # 0xDA -> LATIN CAPITAL LETTER U WITH ACUTE\r
267 u'\u0170' # 0xDB -> LATIN CAPITAL LETTER U WITH DOUBLE ACUTE\r
268 u'\xdc' # 0xDC -> LATIN CAPITAL LETTER U WITH DIAERESIS\r
269 u'\xdd' # 0xDD -> LATIN CAPITAL LETTER Y WITH ACUTE\r
270 u'\u0162' # 0xDE -> LATIN CAPITAL LETTER T WITH CEDILLA\r
271 u'\xdf' # 0xDF -> LATIN SMALL LETTER SHARP S\r
272 u'\u0155' # 0xE0 -> LATIN SMALL LETTER R WITH ACUTE\r
273 u'\xe1' # 0xE1 -> LATIN SMALL LETTER A WITH ACUTE\r
274 u'\xe2' # 0xE2 -> LATIN SMALL LETTER A WITH CIRCUMFLEX\r
275 u'\u0103' # 0xE3 -> LATIN SMALL LETTER A WITH BREVE\r
276 u'\xe4' # 0xE4 -> LATIN SMALL LETTER A WITH DIAERESIS\r
277 u'\u013a' # 0xE5 -> LATIN SMALL LETTER L WITH ACUTE\r
278 u'\u0107' # 0xE6 -> LATIN SMALL LETTER C WITH ACUTE\r
279 u'\xe7' # 0xE7 -> LATIN SMALL LETTER C WITH CEDILLA\r
280 u'\u010d' # 0xE8 -> LATIN SMALL LETTER C WITH CARON\r
281 u'\xe9' # 0xE9 -> LATIN SMALL LETTER E WITH ACUTE\r
282 u'\u0119' # 0xEA -> LATIN SMALL LETTER E WITH OGONEK\r
283 u'\xeb' # 0xEB -> LATIN SMALL LETTER E WITH DIAERESIS\r
284 u'\u011b' # 0xEC -> LATIN SMALL LETTER E WITH CARON\r
285 u'\xed' # 0xED -> LATIN SMALL LETTER I WITH ACUTE\r
286 u'\xee' # 0xEE -> LATIN SMALL LETTER I WITH CIRCUMFLEX\r
287 u'\u010f' # 0xEF -> LATIN SMALL LETTER D WITH CARON\r
288 u'\u0111' # 0xF0 -> LATIN SMALL LETTER D WITH STROKE\r
289 u'\u0144' # 0xF1 -> LATIN SMALL LETTER N WITH ACUTE\r
290 u'\u0148' # 0xF2 -> LATIN SMALL LETTER N WITH CARON\r
291 u'\xf3' # 0xF3 -> LATIN SMALL LETTER O WITH ACUTE\r
292 u'\xf4' # 0xF4 -> LATIN SMALL LETTER O WITH CIRCUMFLEX\r
293 u'\u0151' # 0xF5 -> LATIN SMALL LETTER O WITH DOUBLE ACUTE\r
294 u'\xf6' # 0xF6 -> LATIN SMALL LETTER O WITH DIAERESIS\r
295 u'\xf7' # 0xF7 -> DIVISION SIGN\r
296 u'\u0159' # 0xF8 -> LATIN SMALL LETTER R WITH CARON\r
297 u'\u016f' # 0xF9 -> LATIN SMALL LETTER U WITH RING ABOVE\r
298 u'\xfa' # 0xFA -> LATIN SMALL LETTER U WITH ACUTE\r
299 u'\u0171' # 0xFB -> LATIN SMALL LETTER U WITH DOUBLE ACUTE\r
300 u'\xfc' # 0xFC -> LATIN SMALL LETTER U WITH DIAERESIS\r
301 u'\xfd' # 0xFD -> LATIN SMALL LETTER Y WITH ACUTE\r
302 u'\u0163' # 0xFE -> LATIN SMALL LETTER T WITH CEDILLA\r
303 u'\u02d9' # 0xFF -> DOT ABOVE\r
304)\r
305\r
306### Encoding table\r
307encoding_table=codecs.charmap_build(decoding_table)\r