ZTWHHH commited on
Commit
1a0a5d9
·
verified ·
1 Parent(s): 9581e1c

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. parrot/lib/python3.10/concurrent/__init__.py +1 -0
  2. parrot/lib/python3.10/concurrent/futures/__pycache__/__init__.cpython-310.pyc +0 -0
  3. parrot/lib/python3.10/concurrent/futures/__pycache__/thread.cpython-310.pyc +0 -0
  4. parrot/lib/python3.10/encodings/ascii.py +50 -0
  5. parrot/lib/python3.10/encodings/charmap.py +69 -0
  6. parrot/lib/python3.10/encodings/cp037.py +307 -0
  7. parrot/lib/python3.10/encodings/cp1253.py +307 -0
  8. parrot/lib/python3.10/encodings/cp1257.py +307 -0
  9. parrot/lib/python3.10/encodings/cp850.py +698 -0
  10. parrot/lib/python3.10/encodings/cp855.py +698 -0
  11. parrot/lib/python3.10/encodings/cp862.py +698 -0
  12. parrot/lib/python3.10/encodings/cp874.py +307 -0
  13. parrot/lib/python3.10/encodings/cp950.py +39 -0
  14. parrot/lib/python3.10/encodings/euc_jisx0213.py +39 -0
  15. parrot/lib/python3.10/encodings/euc_jp.py +39 -0
  16. parrot/lib/python3.10/encodings/euc_kr.py +39 -0
  17. parrot/lib/python3.10/encodings/gb2312.py +39 -0
  18. parrot/lib/python3.10/encodings/iso2022_jp.py +39 -0
  19. parrot/lib/python3.10/encodings/iso2022_jp_1.py +39 -0
  20. parrot/lib/python3.10/encodings/iso2022_jp_3.py +39 -0
  21. parrot/lib/python3.10/encodings/iso8859_11.py +307 -0
  22. parrot/lib/python3.10/encodings/iso8859_15.py +307 -0
  23. parrot/lib/python3.10/encodings/iso8859_16.py +307 -0
  24. parrot/lib/python3.10/encodings/iso8859_2.py +307 -0
  25. parrot/lib/python3.10/encodings/iso8859_9.py +307 -0
  26. parrot/lib/python3.10/encodings/koi8_t.py +308 -0
  27. parrot/lib/python3.10/encodings/koi8_u.py +307 -0
  28. parrot/lib/python3.10/encodings/mac_arabic.py +698 -0
  29. parrot/lib/python3.10/encodings/mac_croatian.py +307 -0
  30. parrot/lib/python3.10/encodings/mac_greek.py +307 -0
  31. parrot/lib/python3.10/encodings/mac_romanian.py +307 -0
  32. parrot/lib/python3.10/encodings/punycode.py +237 -0
  33. parrot/lib/python3.10/encodings/raw_unicode_escape.py +46 -0
  34. parrot/lib/python3.10/encodings/shift_jis_2004.py +39 -0
  35. parrot/lib/python3.10/encodings/undefined.py +49 -0
  36. parrot/lib/python3.10/encodings/utf_16.py +155 -0
  37. parrot/lib/python3.10/encodings/utf_16_le.py +42 -0
  38. parrot/lib/python3.10/encodings/utf_7.py +38 -0
  39. parrot/lib/python3.10/encodings/uu_codec.py +103 -0
  40. parrot/lib/python3.10/encodings/zlib_codec.py +77 -0
  41. parrot/lib/python3.10/idlelib/ChangeLog +1591 -0
  42. parrot/lib/python3.10/idlelib/NEWS2x.txt +660 -0
  43. parrot/lib/python3.10/idlelib/__pycache__/__init__.cpython-310.pyc +0 -0
  44. parrot/lib/python3.10/idlelib/__pycache__/autocomplete_w.cpython-310.pyc +0 -0
  45. parrot/lib/python3.10/idlelib/__pycache__/debugobj.cpython-310.pyc +0 -0
  46. parrot/lib/python3.10/idlelib/__pycache__/history.cpython-310.pyc +0 -0
  47. parrot/lib/python3.10/idlelib/__pycache__/idle.cpython-310.pyc +0 -0
  48. parrot/lib/python3.10/idlelib/__pycache__/pathbrowser.cpython-310.pyc +0 -0
  49. parrot/lib/python3.10/idlelib/__pycache__/pyparse.cpython-310.pyc +0 -0
  50. parrot/lib/python3.10/idlelib/__pycache__/searchbase.cpython-310.pyc +0 -0
parrot/lib/python3.10/concurrent/__init__.py ADDED
@@ -0,0 +1 @@
 
 
1
+ # This directory is a Python package.
parrot/lib/python3.10/concurrent/futures/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (1.36 kB). View file
 
parrot/lib/python3.10/concurrent/futures/__pycache__/thread.cpython-310.pyc ADDED
Binary file (6.22 kB). View file
 
parrot/lib/python3.10/encodings/ascii.py ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python 'ascii' Codec
2
+
3
+
4
+ Written by Marc-Andre Lemburg (mal@lemburg.com).
5
+
6
+ (c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
7
+
8
+ """
9
+ import codecs
10
+
11
+ ### Codec APIs
12
+
13
+ class Codec(codecs.Codec):
14
+
15
+ # Note: Binding these as C functions will result in the class not
16
+ # converting them to methods. This is intended.
17
+ encode = codecs.ascii_encode
18
+ decode = codecs.ascii_decode
19
+
20
+ class IncrementalEncoder(codecs.IncrementalEncoder):
21
+ def encode(self, input, final=False):
22
+ return codecs.ascii_encode(input, self.errors)[0]
23
+
24
+ class IncrementalDecoder(codecs.IncrementalDecoder):
25
+ def decode(self, input, final=False):
26
+ return codecs.ascii_decode(input, self.errors)[0]
27
+
28
+ class StreamWriter(Codec,codecs.StreamWriter):
29
+ pass
30
+
31
+ class StreamReader(Codec,codecs.StreamReader):
32
+ pass
33
+
34
+ class StreamConverter(StreamWriter,StreamReader):
35
+
36
+ encode = codecs.ascii_decode
37
+ decode = codecs.ascii_encode
38
+
39
+ ### encodings module API
40
+
41
+ def getregentry():
42
+ return codecs.CodecInfo(
43
+ name='ascii',
44
+ encode=Codec.encode,
45
+ decode=Codec.decode,
46
+ incrementalencoder=IncrementalEncoder,
47
+ incrementaldecoder=IncrementalDecoder,
48
+ streamwriter=StreamWriter,
49
+ streamreader=StreamReader,
50
+ )
parrot/lib/python3.10/encodings/charmap.py ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Generic Python Character Mapping Codec.
2
+
3
+ Use this codec directly rather than through the automatic
4
+ conversion mechanisms supplied by unicode() and .encode().
5
+
6
+
7
+ Written by Marc-Andre Lemburg (mal@lemburg.com).
8
+
9
+ (c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
10
+
11
+ """#"
12
+
13
+ import codecs
14
+
15
+ ### Codec APIs
16
+
17
+ class Codec(codecs.Codec):
18
+
19
+ # Note: Binding these as C functions will result in the class not
20
+ # converting them to methods. This is intended.
21
+ encode = codecs.charmap_encode
22
+ decode = codecs.charmap_decode
23
+
24
+ class IncrementalEncoder(codecs.IncrementalEncoder):
25
+ def __init__(self, errors='strict', mapping=None):
26
+ codecs.IncrementalEncoder.__init__(self, errors)
27
+ self.mapping = mapping
28
+
29
+ def encode(self, input, final=False):
30
+ return codecs.charmap_encode(input, self.errors, self.mapping)[0]
31
+
32
+ class IncrementalDecoder(codecs.IncrementalDecoder):
33
+ def __init__(self, errors='strict', mapping=None):
34
+ codecs.IncrementalDecoder.__init__(self, errors)
35
+ self.mapping = mapping
36
+
37
+ def decode(self, input, final=False):
38
+ return codecs.charmap_decode(input, self.errors, self.mapping)[0]
39
+
40
+ class StreamWriter(Codec,codecs.StreamWriter):
41
+
42
+ def __init__(self,stream,errors='strict',mapping=None):
43
+ codecs.StreamWriter.__init__(self,stream,errors)
44
+ self.mapping = mapping
45
+
46
+ def encode(self,input,errors='strict'):
47
+ return Codec.encode(input,errors,self.mapping)
48
+
49
+ class StreamReader(Codec,codecs.StreamReader):
50
+
51
+ def __init__(self,stream,errors='strict',mapping=None):
52
+ codecs.StreamReader.__init__(self,stream,errors)
53
+ self.mapping = mapping
54
+
55
+ def decode(self,input,errors='strict'):
56
+ return Codec.decode(input,errors,self.mapping)
57
+
58
+ ### encodings module API
59
+
60
+ def getregentry():
61
+ return codecs.CodecInfo(
62
+ name='charmap',
63
+ encode=Codec.encode,
64
+ decode=Codec.decode,
65
+ incrementalencoder=IncrementalEncoder,
66
+ incrementaldecoder=IncrementalDecoder,
67
+ streamwriter=StreamWriter,
68
+ streamreader=StreamReader,
69
+ )
parrot/lib/python3.10/encodings/cp037.py ADDED
@@ -0,0 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python Character Mapping Codec cp037 generated from 'MAPPINGS/VENDORS/MICSFT/EBCDIC/CP037.TXT' with gencodec.py.
2
+
3
+ """#"
4
+
5
+ import codecs
6
+
7
+ ### Codec APIs
8
+
9
+ class Codec(codecs.Codec):
10
+
11
+ def encode(self,input,errors='strict'):
12
+ return codecs.charmap_encode(input,errors,encoding_table)
13
+
14
+ def decode(self,input,errors='strict'):
15
+ return codecs.charmap_decode(input,errors,decoding_table)
16
+
17
+ class IncrementalEncoder(codecs.IncrementalEncoder):
18
+ def encode(self, input, final=False):
19
+ return codecs.charmap_encode(input,self.errors,encoding_table)[0]
20
+
21
+ class IncrementalDecoder(codecs.IncrementalDecoder):
22
+ def decode(self, input, final=False):
23
+ return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
+
25
+ class StreamWriter(Codec,codecs.StreamWriter):
26
+ pass
27
+
28
+ class StreamReader(Codec,codecs.StreamReader):
29
+ pass
30
+
31
+ ### encodings module API
32
+
33
+ def getregentry():
34
+ return codecs.CodecInfo(
35
+ name='cp037',
36
+ encode=Codec().encode,
37
+ decode=Codec().decode,
38
+ incrementalencoder=IncrementalEncoder,
39
+ incrementaldecoder=IncrementalDecoder,
40
+ streamreader=StreamReader,
41
+ streamwriter=StreamWriter,
42
+ )
43
+
44
+
45
+ ### Decoding Table
46
+
47
+ decoding_table = (
48
+ '\x00' # 0x00 -> NULL
49
+ '\x01' # 0x01 -> START OF HEADING
50
+ '\x02' # 0x02 -> START OF TEXT
51
+ '\x03' # 0x03 -> END OF TEXT
52
+ '\x9c' # 0x04 -> CONTROL
53
+ '\t' # 0x05 -> HORIZONTAL TABULATION
54
+ '\x86' # 0x06 -> CONTROL
55
+ '\x7f' # 0x07 -> DELETE
56
+ '\x97' # 0x08 -> CONTROL
57
+ '\x8d' # 0x09 -> CONTROL
58
+ '\x8e' # 0x0A -> CONTROL
59
+ '\x0b' # 0x0B -> VERTICAL TABULATION
60
+ '\x0c' # 0x0C -> FORM FEED
61
+ '\r' # 0x0D -> CARRIAGE RETURN
62
+ '\x0e' # 0x0E -> SHIFT OUT
63
+ '\x0f' # 0x0F -> SHIFT IN
64
+ '\x10' # 0x10 -> DATA LINK ESCAPE
65
+ '\x11' # 0x11 -> DEVICE CONTROL ONE
66
+ '\x12' # 0x12 -> DEVICE CONTROL TWO
67
+ '\x13' # 0x13 -> DEVICE CONTROL THREE
68
+ '\x9d' # 0x14 -> CONTROL
69
+ '\x85' # 0x15 -> CONTROL
70
+ '\x08' # 0x16 -> BACKSPACE
71
+ '\x87' # 0x17 -> CONTROL
72
+ '\x18' # 0x18 -> CANCEL
73
+ '\x19' # 0x19 -> END OF MEDIUM
74
+ '\x92' # 0x1A -> CONTROL
75
+ '\x8f' # 0x1B -> CONTROL
76
+ '\x1c' # 0x1C -> FILE SEPARATOR
77
+ '\x1d' # 0x1D -> GROUP SEPARATOR
78
+ '\x1e' # 0x1E -> RECORD SEPARATOR
79
+ '\x1f' # 0x1F -> UNIT SEPARATOR
80
+ '\x80' # 0x20 -> CONTROL
81
+ '\x81' # 0x21 -> CONTROL
82
+ '\x82' # 0x22 -> CONTROL
83
+ '\x83' # 0x23 -> CONTROL
84
+ '\x84' # 0x24 -> CONTROL
85
+ '\n' # 0x25 -> LINE FEED
86
+ '\x17' # 0x26 -> END OF TRANSMISSION BLOCK
87
+ '\x1b' # 0x27 -> ESCAPE
88
+ '\x88' # 0x28 -> CONTROL
89
+ '\x89' # 0x29 -> CONTROL
90
+ '\x8a' # 0x2A -> CONTROL
91
+ '\x8b' # 0x2B -> CONTROL
92
+ '\x8c' # 0x2C -> CONTROL
93
+ '\x05' # 0x2D -> ENQUIRY
94
+ '\x06' # 0x2E -> ACKNOWLEDGE
95
+ '\x07' # 0x2F -> BELL
96
+ '\x90' # 0x30 -> CONTROL
97
+ '\x91' # 0x31 -> CONTROL
98
+ '\x16' # 0x32 -> SYNCHRONOUS IDLE
99
+ '\x93' # 0x33 -> CONTROL
100
+ '\x94' # 0x34 -> CONTROL
101
+ '\x95' # 0x35 -> CONTROL
102
+ '\x96' # 0x36 -> CONTROL
103
+ '\x04' # 0x37 -> END OF TRANSMISSION
104
+ '\x98' # 0x38 -> CONTROL
105
+ '\x99' # 0x39 -> CONTROL
106
+ '\x9a' # 0x3A -> CONTROL
107
+ '\x9b' # 0x3B -> CONTROL
108
+ '\x14' # 0x3C -> DEVICE CONTROL FOUR
109
+ '\x15' # 0x3D -> NEGATIVE ACKNOWLEDGE
110
+ '\x9e' # 0x3E -> CONTROL
111
+ '\x1a' # 0x3F -> SUBSTITUTE
112
+ ' ' # 0x40 -> SPACE
113
+ '\xa0' # 0x41 -> NO-BREAK SPACE
114
+ '\xe2' # 0x42 -> LATIN SMALL LETTER A WITH CIRCUMFLEX
115
+ '\xe4' # 0x43 -> LATIN SMALL LETTER A WITH DIAERESIS
116
+ '\xe0' # 0x44 -> LATIN SMALL LETTER A WITH GRAVE
117
+ '\xe1' # 0x45 -> LATIN SMALL LETTER A WITH ACUTE
118
+ '\xe3' # 0x46 -> LATIN SMALL LETTER A WITH TILDE
119
+ '\xe5' # 0x47 -> LATIN SMALL LETTER A WITH RING ABOVE
120
+ '\xe7' # 0x48 -> LATIN SMALL LETTER C WITH CEDILLA
121
+ '\xf1' # 0x49 -> LATIN SMALL LETTER N WITH TILDE
122
+ '\xa2' # 0x4A -> CENT SIGN
123
+ '.' # 0x4B -> FULL STOP
124
+ '<' # 0x4C -> LESS-THAN SIGN
125
+ '(' # 0x4D -> LEFT PARENTHESIS
126
+ '+' # 0x4E -> PLUS SIGN
127
+ '|' # 0x4F -> VERTICAL LINE
128
+ '&' # 0x50 -> AMPERSAND
129
+ '\xe9' # 0x51 -> LATIN SMALL LETTER E WITH ACUTE
130
+ '\xea' # 0x52 -> LATIN SMALL LETTER E WITH CIRCUMFLEX
131
+ '\xeb' # 0x53 -> LATIN SMALL LETTER E WITH DIAERESIS
132
+ '\xe8' # 0x54 -> LATIN SMALL LETTER E WITH GRAVE
133
+ '\xed' # 0x55 -> LATIN SMALL LETTER I WITH ACUTE
134
+ '\xee' # 0x56 -> LATIN SMALL LETTER I WITH CIRCUMFLEX
135
+ '\xef' # 0x57 -> LATIN SMALL LETTER I WITH DIAERESIS
136
+ '\xec' # 0x58 -> LATIN SMALL LETTER I WITH GRAVE
137
+ '\xdf' # 0x59 -> LATIN SMALL LETTER SHARP S (GERMAN)
138
+ '!' # 0x5A -> EXCLAMATION MARK
139
+ '$' # 0x5B -> DOLLAR SIGN
140
+ '*' # 0x5C -> ASTERISK
141
+ ')' # 0x5D -> RIGHT PARENTHESIS
142
+ ';' # 0x5E -> SEMICOLON
143
+ '\xac' # 0x5F -> NOT SIGN
144
+ '-' # 0x60 -> HYPHEN-MINUS
145
+ '/' # 0x61 -> SOLIDUS
146
+ '\xc2' # 0x62 -> LATIN CAPITAL LETTER A WITH CIRCUMFLEX
147
+ '\xc4' # 0x63 -> LATIN CAPITAL LETTER A WITH DIAERESIS
148
+ '\xc0' # 0x64 -> LATIN CAPITAL LETTER A WITH GRAVE
149
+ '\xc1' # 0x65 -> LATIN CAPITAL LETTER A WITH ACUTE
150
+ '\xc3' # 0x66 -> LATIN CAPITAL LETTER A WITH TILDE
151
+ '\xc5' # 0x67 -> LATIN CAPITAL LETTER A WITH RING ABOVE
152
+ '\xc7' # 0x68 -> LATIN CAPITAL LETTER C WITH CEDILLA
153
+ '\xd1' # 0x69 -> LATIN CAPITAL LETTER N WITH TILDE
154
+ '\xa6' # 0x6A -> BROKEN BAR
155
+ ',' # 0x6B -> COMMA
156
+ '%' # 0x6C -> PERCENT SIGN
157
+ '_' # 0x6D -> LOW LINE
158
+ '>' # 0x6E -> GREATER-THAN SIGN
159
+ '?' # 0x6F -> QUESTION MARK
160
+ '\xf8' # 0x70 -> LATIN SMALL LETTER O WITH STROKE
161
+ '\xc9' # 0x71 -> LATIN CAPITAL LETTER E WITH ACUTE
162
+ '\xca' # 0x72 -> LATIN CAPITAL LETTER E WITH CIRCUMFLEX
163
+ '\xcb' # 0x73 -> LATIN CAPITAL LETTER E WITH DIAERESIS
164
+ '\xc8' # 0x74 -> LATIN CAPITAL LETTER E WITH GRAVE
165
+ '\xcd' # 0x75 -> LATIN CAPITAL LETTER I WITH ACUTE
166
+ '\xce' # 0x76 -> LATIN CAPITAL LETTER I WITH CIRCUMFLEX
167
+ '\xcf' # 0x77 -> LATIN CAPITAL LETTER I WITH DIAERESIS
168
+ '\xcc' # 0x78 -> LATIN CAPITAL LETTER I WITH GRAVE
169
+ '`' # 0x79 -> GRAVE ACCENT
170
+ ':' # 0x7A -> COLON
171
+ '#' # 0x7B -> NUMBER SIGN
172
+ '@' # 0x7C -> COMMERCIAL AT
173
+ "'" # 0x7D -> APOSTROPHE
174
+ '=' # 0x7E -> EQUALS SIGN
175
+ '"' # 0x7F -> QUOTATION MARK
176
+ '\xd8' # 0x80 -> LATIN CAPITAL LETTER O WITH STROKE
177
+ 'a' # 0x81 -> LATIN SMALL LETTER A
178
+ 'b' # 0x82 -> LATIN SMALL LETTER B
179
+ 'c' # 0x83 -> LATIN SMALL LETTER C
180
+ 'd' # 0x84 -> LATIN SMALL LETTER D
181
+ 'e' # 0x85 -> LATIN SMALL LETTER E
182
+ 'f' # 0x86 -> LATIN SMALL LETTER F
183
+ 'g' # 0x87 -> LATIN SMALL LETTER G
184
+ 'h' # 0x88 -> LATIN SMALL LETTER H
185
+ 'i' # 0x89 -> LATIN SMALL LETTER I
186
+ '\xab' # 0x8A -> LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
187
+ '\xbb' # 0x8B -> RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
188
+ '\xf0' # 0x8C -> LATIN SMALL LETTER ETH (ICELANDIC)
189
+ '\xfd' # 0x8D -> LATIN SMALL LETTER Y WITH ACUTE
190
+ '\xfe' # 0x8E -> LATIN SMALL LETTER THORN (ICELANDIC)
191
+ '\xb1' # 0x8F -> PLUS-MINUS SIGN
192
+ '\xb0' # 0x90 -> DEGREE SIGN
193
+ 'j' # 0x91 -> LATIN SMALL LETTER J
194
+ 'k' # 0x92 -> LATIN SMALL LETTER K
195
+ 'l' # 0x93 -> LATIN SMALL LETTER L
196
+ 'm' # 0x94 -> LATIN SMALL LETTER M
197
+ 'n' # 0x95 -> LATIN SMALL LETTER N
198
+ 'o' # 0x96 -> LATIN SMALL LETTER O
199
+ 'p' # 0x97 -> LATIN SMALL LETTER P
200
+ 'q' # 0x98 -> LATIN SMALL LETTER Q
201
+ 'r' # 0x99 -> LATIN SMALL LETTER R
202
+ '\xaa' # 0x9A -> FEMININE ORDINAL INDICATOR
203
+ '\xba' # 0x9B -> MASCULINE ORDINAL INDICATOR
204
+ '\xe6' # 0x9C -> LATIN SMALL LIGATURE AE
205
+ '\xb8' # 0x9D -> CEDILLA
206
+ '\xc6' # 0x9E -> LATIN CAPITAL LIGATURE AE
207
+ '\xa4' # 0x9F -> CURRENCY SIGN
208
+ '\xb5' # 0xA0 -> MICRO SIGN
209
+ '~' # 0xA1 -> TILDE
210
+ 's' # 0xA2 -> LATIN SMALL LETTER S
211
+ 't' # 0xA3 -> LATIN SMALL LETTER T
212
+ 'u' # 0xA4 -> LATIN SMALL LETTER U
213
+ 'v' # 0xA5 -> LATIN SMALL LETTER V
214
+ 'w' # 0xA6 -> LATIN SMALL LETTER W
215
+ 'x' # 0xA7 -> LATIN SMALL LETTER X
216
+ 'y' # 0xA8 -> LATIN SMALL LETTER Y
217
+ 'z' # 0xA9 -> LATIN SMALL LETTER Z
218
+ '\xa1' # 0xAA -> INVERTED EXCLAMATION MARK
219
+ '\xbf' # 0xAB -> INVERTED QUESTION MARK
220
+ '\xd0' # 0xAC -> LATIN CAPITAL LETTER ETH (ICELANDIC)
221
+ '\xdd' # 0xAD -> LATIN CAPITAL LETTER Y WITH ACUTE
222
+ '\xde' # 0xAE -> LATIN CAPITAL LETTER THORN (ICELANDIC)
223
+ '\xae' # 0xAF -> REGISTERED SIGN
224
+ '^' # 0xB0 -> CIRCUMFLEX ACCENT
225
+ '\xa3' # 0xB1 -> POUND SIGN
226
+ '\xa5' # 0xB2 -> YEN SIGN
227
+ '\xb7' # 0xB3 -> MIDDLE DOT
228
+ '\xa9' # 0xB4 -> COPYRIGHT SIGN
229
+ '\xa7' # 0xB5 -> SECTION SIGN
230
+ '\xb6' # 0xB6 -> PILCROW SIGN
231
+ '\xbc' # 0xB7 -> VULGAR FRACTION ONE QUARTER
232
+ '\xbd' # 0xB8 -> VULGAR FRACTION ONE HALF
233
+ '\xbe' # 0xB9 -> VULGAR FRACTION THREE QUARTERS
234
+ '[' # 0xBA -> LEFT SQUARE BRACKET
235
+ ']' # 0xBB -> RIGHT SQUARE BRACKET
236
+ '\xaf' # 0xBC -> MACRON
237
+ '\xa8' # 0xBD -> DIAERESIS
238
+ '\xb4' # 0xBE -> ACUTE ACCENT
239
+ '\xd7' # 0xBF -> MULTIPLICATION SIGN
240
+ '{' # 0xC0 -> LEFT CURLY BRACKET
241
+ 'A' # 0xC1 -> LATIN CAPITAL LETTER A
242
+ 'B' # 0xC2 -> LATIN CAPITAL LETTER B
243
+ 'C' # 0xC3 -> LATIN CAPITAL LETTER C
244
+ 'D' # 0xC4 -> LATIN CAPITAL LETTER D
245
+ 'E' # 0xC5 -> LATIN CAPITAL LETTER E
246
+ 'F' # 0xC6 -> LATIN CAPITAL LETTER F
247
+ 'G' # 0xC7 -> LATIN CAPITAL LETTER G
248
+ 'H' # 0xC8 -> LATIN CAPITAL LETTER H
249
+ 'I' # 0xC9 -> LATIN CAPITAL LETTER I
250
+ '\xad' # 0xCA -> SOFT HYPHEN
251
+ '\xf4' # 0xCB -> LATIN SMALL LETTER O WITH CIRCUMFLEX
252
+ '\xf6' # 0xCC -> LATIN SMALL LETTER O WITH DIAERESIS
253
+ '\xf2' # 0xCD -> LATIN SMALL LETTER O WITH GRAVE
254
+ '\xf3' # 0xCE -> LATIN SMALL LETTER O WITH ACUTE
255
+ '\xf5' # 0xCF -> LATIN SMALL LETTER O WITH TILDE
256
+ '}' # 0xD0 -> RIGHT CURLY BRACKET
257
+ 'J' # 0xD1 -> LATIN CAPITAL LETTER J
258
+ 'K' # 0xD2 -> LATIN CAPITAL LETTER K
259
+ 'L' # 0xD3 -> LATIN CAPITAL LETTER L
260
+ 'M' # 0xD4 -> LATIN CAPITAL LETTER M
261
+ 'N' # 0xD5 -> LATIN CAPITAL LETTER N
262
+ 'O' # 0xD6 -> LATIN CAPITAL LETTER O
263
+ 'P' # 0xD7 -> LATIN CAPITAL LETTER P
264
+ 'Q' # 0xD8 -> LATIN CAPITAL LETTER Q
265
+ 'R' # 0xD9 -> LATIN CAPITAL LETTER R
266
+ '\xb9' # 0xDA -> SUPERSCRIPT ONE
267
+ '\xfb' # 0xDB -> LATIN SMALL LETTER U WITH CIRCUMFLEX
268
+ '\xfc' # 0xDC -> LATIN SMALL LETTER U WITH DIAERESIS
269
+ '\xf9' # 0xDD -> LATIN SMALL LETTER U WITH GRAVE
270
+ '\xfa' # 0xDE -> LATIN SMALL LETTER U WITH ACUTE
271
+ '\xff' # 0xDF -> LATIN SMALL LETTER Y WITH DIAERESIS
272
+ '\\' # 0xE0 -> REVERSE SOLIDUS
273
+ '\xf7' # 0xE1 -> DIVISION SIGN
274
+ 'S' # 0xE2 -> LATIN CAPITAL LETTER S
275
+ 'T' # 0xE3 -> LATIN CAPITAL LETTER T
276
+ 'U' # 0xE4 -> LATIN CAPITAL LETTER U
277
+ 'V' # 0xE5 -> LATIN CAPITAL LETTER V
278
+ 'W' # 0xE6 -> LATIN CAPITAL LETTER W
279
+ 'X' # 0xE7 -> LATIN CAPITAL LETTER X
280
+ 'Y' # 0xE8 -> LATIN CAPITAL LETTER Y
281
+ 'Z' # 0xE9 -> LATIN CAPITAL LETTER Z
282
+ '\xb2' # 0xEA -> SUPERSCRIPT TWO
283
+ '\xd4' # 0xEB -> LATIN CAPITAL LETTER O WITH CIRCUMFLEX
284
+ '\xd6' # 0xEC -> LATIN CAPITAL LETTER O WITH DIAERESIS
285
+ '\xd2' # 0xED -> LATIN CAPITAL LETTER O WITH GRAVE
286
+ '\xd3' # 0xEE -> LATIN CAPITAL LETTER O WITH ACUTE
287
+ '\xd5' # 0xEF -> LATIN CAPITAL LETTER O WITH TILDE
288
+ '0' # 0xF0 -> DIGIT ZERO
289
+ '1' # 0xF1 -> DIGIT ONE
290
+ '2' # 0xF2 -> DIGIT TWO
291
+ '3' # 0xF3 -> DIGIT THREE
292
+ '4' # 0xF4 -> DIGIT FOUR
293
+ '5' # 0xF5 -> DIGIT FIVE
294
+ '6' # 0xF6 -> DIGIT SIX
295
+ '7' # 0xF7 -> DIGIT SEVEN
296
+ '8' # 0xF8 -> DIGIT EIGHT
297
+ '9' # 0xF9 -> DIGIT NINE
298
+ '\xb3' # 0xFA -> SUPERSCRIPT THREE
299
+ '\xdb' # 0xFB -> LATIN CAPITAL LETTER U WITH CIRCUMFLEX
300
+ '\xdc' # 0xFC -> LATIN CAPITAL LETTER U WITH DIAERESIS
301
+ '\xd9' # 0xFD -> LATIN CAPITAL LETTER U WITH GRAVE
302
+ '\xda' # 0xFE -> LATIN CAPITAL LETTER U WITH ACUTE
303
+ '\x9f' # 0xFF -> CONTROL
304
+ )
305
+
306
+ ### Encoding table
307
+ encoding_table=codecs.charmap_build(decoding_table)
parrot/lib/python3.10/encodings/cp1253.py ADDED
@@ -0,0 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python Character Mapping Codec cp1253 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1253.TXT' with gencodec.py.
2
+
3
+ """#"
4
+
5
+ import codecs
6
+
7
+ ### Codec APIs
8
+
9
+ class Codec(codecs.Codec):
10
+
11
+ def encode(self,input,errors='strict'):
12
+ return codecs.charmap_encode(input,errors,encoding_table)
13
+
14
+ def decode(self,input,errors='strict'):
15
+ return codecs.charmap_decode(input,errors,decoding_table)
16
+
17
+ class IncrementalEncoder(codecs.IncrementalEncoder):
18
+ def encode(self, input, final=False):
19
+ return codecs.charmap_encode(input,self.errors,encoding_table)[0]
20
+
21
+ class IncrementalDecoder(codecs.IncrementalDecoder):
22
+ def decode(self, input, final=False):
23
+ return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
+
25
+ class StreamWriter(Codec,codecs.StreamWriter):
26
+ pass
27
+
28
+ class StreamReader(Codec,codecs.StreamReader):
29
+ pass
30
+
31
+ ### encodings module API
32
+
33
+ def getregentry():
34
+ return codecs.CodecInfo(
35
+ name='cp1253',
36
+ encode=Codec().encode,
37
+ decode=Codec().decode,
38
+ incrementalencoder=IncrementalEncoder,
39
+ incrementaldecoder=IncrementalDecoder,
40
+ streamreader=StreamReader,
41
+ streamwriter=StreamWriter,
42
+ )
43
+
44
+
45
+ ### Decoding Table
46
+
47
+ decoding_table = (
48
+ '\x00' # 0x00 -> NULL
49
+ '\x01' # 0x01 -> START OF HEADING
50
+ '\x02' # 0x02 -> START OF TEXT
51
+ '\x03' # 0x03 -> END OF TEXT
52
+ '\x04' # 0x04 -> END OF TRANSMISSION
53
+ '\x05' # 0x05 -> ENQUIRY
54
+ '\x06' # 0x06 -> ACKNOWLEDGE
55
+ '\x07' # 0x07 -> BELL
56
+ '\x08' # 0x08 -> BACKSPACE
57
+ '\t' # 0x09 -> HORIZONTAL TABULATION
58
+ '\n' # 0x0A -> LINE FEED
59
+ '\x0b' # 0x0B -> VERTICAL TABULATION
60
+ '\x0c' # 0x0C -> FORM FEED
61
+ '\r' # 0x0D -> CARRIAGE RETURN
62
+ '\x0e' # 0x0E -> SHIFT OUT
63
+ '\x0f' # 0x0F -> SHIFT IN
64
+ '\x10' # 0x10 -> DATA LINK ESCAPE
65
+ '\x11' # 0x11 -> DEVICE CONTROL ONE
66
+ '\x12' # 0x12 -> DEVICE CONTROL TWO
67
+ '\x13' # 0x13 -> DEVICE CONTROL THREE
68
+ '\x14' # 0x14 -> DEVICE CONTROL FOUR
69
+ '\x15' # 0x15 -> NEGATIVE ACKNOWLEDGE
70
+ '\x16' # 0x16 -> SYNCHRONOUS IDLE
71
+ '\x17' # 0x17 -> END OF TRANSMISSION BLOCK
72
+ '\x18' # 0x18 -> CANCEL
73
+ '\x19' # 0x19 -> END OF MEDIUM
74
+ '\x1a' # 0x1A -> SUBSTITUTE
75
+ '\x1b' # 0x1B -> ESCAPE
76
+ '\x1c' # 0x1C -> FILE SEPARATOR
77
+ '\x1d' # 0x1D -> GROUP SEPARATOR
78
+ '\x1e' # 0x1E -> RECORD SEPARATOR
79
+ '\x1f' # 0x1F -> UNIT SEPARATOR
80
+ ' ' # 0x20 -> SPACE
81
+ '!' # 0x21 -> EXCLAMATION MARK
82
+ '"' # 0x22 -> QUOTATION MARK
83
+ '#' # 0x23 -> NUMBER SIGN
84
+ '$' # 0x24 -> DOLLAR SIGN
85
+ '%' # 0x25 -> PERCENT SIGN
86
+ '&' # 0x26 -> AMPERSAND
87
+ "'" # 0x27 -> APOSTROPHE
88
+ '(' # 0x28 -> LEFT PARENTHESIS
89
+ ')' # 0x29 -> RIGHT PARENTHESIS
90
+ '*' # 0x2A -> ASTERISK
91
+ '+' # 0x2B -> PLUS SIGN
92
+ ',' # 0x2C -> COMMA
93
+ '-' # 0x2D -> HYPHEN-MINUS
94
+ '.' # 0x2E -> FULL STOP
95
+ '/' # 0x2F -> SOLIDUS
96
+ '0' # 0x30 -> DIGIT ZERO
97
+ '1' # 0x31 -> DIGIT ONE
98
+ '2' # 0x32 -> DIGIT TWO
99
+ '3' # 0x33 -> DIGIT THREE
100
+ '4' # 0x34 -> DIGIT FOUR
101
+ '5' # 0x35 -> DIGIT FIVE
102
+ '6' # 0x36 -> DIGIT SIX
103
+ '7' # 0x37 -> DIGIT SEVEN
104
+ '8' # 0x38 -> DIGIT EIGHT
105
+ '9' # 0x39 -> DIGIT NINE
106
+ ':' # 0x3A -> COLON
107
+ ';' # 0x3B -> SEMICOLON
108
+ '<' # 0x3C -> LESS-THAN SIGN
109
+ '=' # 0x3D -> EQUALS SIGN
110
+ '>' # 0x3E -> GREATER-THAN SIGN
111
+ '?' # 0x3F -> QUESTION MARK
112
+ '@' # 0x40 -> COMMERCIAL AT
113
+ 'A' # 0x41 -> LATIN CAPITAL LETTER A
114
+ 'B' # 0x42 -> LATIN CAPITAL LETTER B
115
+ 'C' # 0x43 -> LATIN CAPITAL LETTER C
116
+ 'D' # 0x44 -> LATIN CAPITAL LETTER D
117
+ 'E' # 0x45 -> LATIN CAPITAL LETTER E
118
+ 'F' # 0x46 -> LATIN CAPITAL LETTER F
119
+ 'G' # 0x47 -> LATIN CAPITAL LETTER G
120
+ 'H' # 0x48 -> LATIN CAPITAL LETTER H
121
+ 'I' # 0x49 -> LATIN CAPITAL LETTER I
122
+ 'J' # 0x4A -> LATIN CAPITAL LETTER J
123
+ 'K' # 0x4B -> LATIN CAPITAL LETTER K
124
+ 'L' # 0x4C -> LATIN CAPITAL LETTER L
125
+ 'M' # 0x4D -> LATIN CAPITAL LETTER M
126
+ 'N' # 0x4E -> LATIN CAPITAL LETTER N
127
+ 'O' # 0x4F -> LATIN CAPITAL LETTER O
128
+ 'P' # 0x50 -> LATIN CAPITAL LETTER P
129
+ 'Q' # 0x51 -> LATIN CAPITAL LETTER Q
130
+ 'R' # 0x52 -> LATIN CAPITAL LETTER R
131
+ 'S' # 0x53 -> LATIN CAPITAL LETTER S
132
+ 'T' # 0x54 -> LATIN CAPITAL LETTER T
133
+ 'U' # 0x55 -> LATIN CAPITAL LETTER U
134
+ 'V' # 0x56 -> LATIN CAPITAL LETTER V
135
+ 'W' # 0x57 -> LATIN CAPITAL LETTER W
136
+ 'X' # 0x58 -> LATIN CAPITAL LETTER X
137
+ 'Y' # 0x59 -> LATIN CAPITAL LETTER Y
138
+ 'Z' # 0x5A -> LATIN CAPITAL LETTER Z
139
+ '[' # 0x5B -> LEFT SQUARE BRACKET
140
+ '\\' # 0x5C -> REVERSE SOLIDUS
141
+ ']' # 0x5D -> RIGHT SQUARE BRACKET
142
+ '^' # 0x5E -> CIRCUMFLEX ACCENT
143
+ '_' # 0x5F -> LOW LINE
144
+ '`' # 0x60 -> GRAVE ACCENT
145
+ 'a' # 0x61 -> LATIN SMALL LETTER A
146
+ 'b' # 0x62 -> LATIN SMALL LETTER B
147
+ 'c' # 0x63 -> LATIN SMALL LETTER C
148
+ 'd' # 0x64 -> LATIN SMALL LETTER D
149
+ 'e' # 0x65 -> LATIN SMALL LETTER E
150
+ 'f' # 0x66 -> LATIN SMALL LETTER F
151
+ 'g' # 0x67 -> LATIN SMALL LETTER G
152
+ 'h' # 0x68 -> LATIN SMALL LETTER H
153
+ 'i' # 0x69 -> LATIN SMALL LETTER I
154
+ 'j' # 0x6A -> LATIN SMALL LETTER J
155
+ 'k' # 0x6B -> LATIN SMALL LETTER K
156
+ 'l' # 0x6C -> LATIN SMALL LETTER L
157
+ 'm' # 0x6D -> LATIN SMALL LETTER M
158
+ 'n' # 0x6E -> LATIN SMALL LETTER N
159
+ 'o' # 0x6F -> LATIN SMALL LETTER O
160
+ 'p' # 0x70 -> LATIN SMALL LETTER P
161
+ 'q' # 0x71 -> LATIN SMALL LETTER Q
162
+ 'r' # 0x72 -> LATIN SMALL LETTER R
163
+ 's' # 0x73 -> LATIN SMALL LETTER S
164
+ 't' # 0x74 -> LATIN SMALL LETTER T
165
+ 'u' # 0x75 -> LATIN SMALL LETTER U
166
+ 'v' # 0x76 -> LATIN SMALL LETTER V
167
+ 'w' # 0x77 -> LATIN SMALL LETTER W
168
+ 'x' # 0x78 -> LATIN SMALL LETTER X
169
+ 'y' # 0x79 -> LATIN SMALL LETTER Y
170
+ 'z' # 0x7A -> LATIN SMALL LETTER Z
171
+ '{' # 0x7B -> LEFT CURLY BRACKET
172
+ '|' # 0x7C -> VERTICAL LINE
173
+ '}' # 0x7D -> RIGHT CURLY BRACKET
174
+ '~' # 0x7E -> TILDE
175
+ '\x7f' # 0x7F -> DELETE
176
+ '\u20ac' # 0x80 -> EURO SIGN
177
+ '\ufffe' # 0x81 -> UNDEFINED
178
+ '\u201a' # 0x82 -> SINGLE LOW-9 QUOTATION MARK
179
+ '\u0192' # 0x83 -> LATIN SMALL LETTER F WITH HOOK
180
+ '\u201e' # 0x84 -> DOUBLE LOW-9 QUOTATION MARK
181
+ '\u2026' # 0x85 -> HORIZONTAL ELLIPSIS
182
+ '\u2020' # 0x86 -> DAGGER
183
+ '\u2021' # 0x87 -> DOUBLE DAGGER
184
+ '\ufffe' # 0x88 -> UNDEFINED
185
+ '\u2030' # 0x89 -> PER MILLE SIGN
186
+ '\ufffe' # 0x8A -> UNDEFINED
187
+ '\u2039' # 0x8B -> SINGLE LEFT-POINTING ANGLE QUOTATION MARK
188
+ '\ufffe' # 0x8C -> UNDEFINED
189
+ '\ufffe' # 0x8D -> UNDEFINED
190
+ '\ufffe' # 0x8E -> UNDEFINED
191
+ '\ufffe' # 0x8F -> UNDEFINED
192
+ '\ufffe' # 0x90 -> UNDEFINED
193
+ '\u2018' # 0x91 -> LEFT SINGLE QUOTATION MARK
194
+ '\u2019' # 0x92 -> RIGHT SINGLE QUOTATION MARK
195
+ '\u201c' # 0x93 -> LEFT DOUBLE QUOTATION MARK
196
+ '\u201d' # 0x94 -> RIGHT DOUBLE QUOTATION MARK
197
+ '\u2022' # 0x95 -> BULLET
198
+ '\u2013' # 0x96 -> EN DASH
199
+ '\u2014' # 0x97 -> EM DASH
200
+ '\ufffe' # 0x98 -> UNDEFINED
201
+ '\u2122' # 0x99 -> TRADE MARK SIGN
202
+ '\ufffe' # 0x9A -> UNDEFINED
203
+ '\u203a' # 0x9B -> SINGLE RIGHT-POINTING ANGLE QUOTATION MARK
204
+ '\ufffe' # 0x9C -> UNDEFINED
205
+ '\ufffe' # 0x9D -> UNDEFINED
206
+ '\ufffe' # 0x9E -> UNDEFINED
207
+ '\ufffe' # 0x9F -> UNDEFINED
208
+ '\xa0' # 0xA0 -> NO-BREAK SPACE
209
+ '\u0385' # 0xA1 -> GREEK DIALYTIKA TONOS
210
+ '\u0386' # 0xA2 -> GREEK CAPITAL LETTER ALPHA WITH TONOS
211
+ '\xa3' # 0xA3 -> POUND SIGN
212
+ '\xa4' # 0xA4 -> CURRENCY SIGN
213
+ '\xa5' # 0xA5 -> YEN SIGN
214
+ '\xa6' # 0xA6 -> BROKEN BAR
215
+ '\xa7' # 0xA7 -> SECTION SIGN
216
+ '\xa8' # 0xA8 -> DIAERESIS
217
+ '\xa9' # 0xA9 -> COPYRIGHT SIGN
218
+ '\ufffe' # 0xAA -> UNDEFINED
219
+ '\xab' # 0xAB -> LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
220
+ '\xac' # 0xAC -> NOT SIGN
221
+ '\xad' # 0xAD -> SOFT HYPHEN
222
+ '\xae' # 0xAE -> REGISTERED SIGN
223
+ '\u2015' # 0xAF -> HORIZONTAL BAR
224
+ '\xb0' # 0xB0 -> DEGREE SIGN
225
+ '\xb1' # 0xB1 -> PLUS-MINUS SIGN
226
+ '\xb2' # 0xB2 -> SUPERSCRIPT TWO
227
+ '\xb3' # 0xB3 -> SUPERSCRIPT THREE
228
+ '\u0384' # 0xB4 -> GREEK TONOS
229
+ '\xb5' # 0xB5 -> MICRO SIGN
230
+ '\xb6' # 0xB6 -> PILCROW SIGN
231
+ '\xb7' # 0xB7 -> MIDDLE DOT
232
+ '\u0388' # 0xB8 -> GREEK CAPITAL LETTER EPSILON WITH TONOS
233
+ '\u0389' # 0xB9 -> GREEK CAPITAL LETTER ETA WITH TONOS
234
+ '\u038a' # 0xBA -> GREEK CAPITAL LETTER IOTA WITH TONOS
235
+ '\xbb' # 0xBB -> RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
236
+ '\u038c' # 0xBC -> GREEK CAPITAL LETTER OMICRON WITH TONOS
237
+ '\xbd' # 0xBD -> VULGAR FRACTION ONE HALF
238
+ '\u038e' # 0xBE -> GREEK CAPITAL LETTER UPSILON WITH TONOS
239
+ '\u038f' # 0xBF -> GREEK CAPITAL LETTER OMEGA WITH TONOS
240
+ '\u0390' # 0xC0 -> GREEK SMALL LETTER IOTA WITH DIALYTIKA AND TONOS
241
+ '\u0391' # 0xC1 -> GREEK CAPITAL LETTER ALPHA
242
+ '\u0392' # 0xC2 -> GREEK CAPITAL LETTER BETA
243
+ '\u0393' # 0xC3 -> GREEK CAPITAL LETTER GAMMA
244
+ '\u0394' # 0xC4 -> GREEK CAPITAL LETTER DELTA
245
+ '\u0395' # 0xC5 -> GREEK CAPITAL LETTER EPSILON
246
+ '\u0396' # 0xC6 -> GREEK CAPITAL LETTER ZETA
247
+ '\u0397' # 0xC7 -> GREEK CAPITAL LETTER ETA
248
+ '\u0398' # 0xC8 -> GREEK CAPITAL LETTER THETA
249
+ '\u0399' # 0xC9 -> GREEK CAPITAL LETTER IOTA
250
+ '\u039a' # 0xCA -> GREEK CAPITAL LETTER KAPPA
251
+ '\u039b' # 0xCB -> GREEK CAPITAL LETTER LAMDA
252
+ '\u039c' # 0xCC -> GREEK CAPITAL LETTER MU
253
+ '\u039d' # 0xCD -> GREEK CAPITAL LETTER NU
254
+ '\u039e' # 0xCE -> GREEK CAPITAL LETTER XI
255
+ '\u039f' # 0xCF -> GREEK CAPITAL LETTER OMICRON
256
+ '\u03a0' # 0xD0 -> GREEK CAPITAL LETTER PI
257
+ '\u03a1' # 0xD1 -> GREEK CAPITAL LETTER RHO
258
+ '\ufffe' # 0xD2 -> UNDEFINED
259
+ '\u03a3' # 0xD3 -> GREEK CAPITAL LETTER SIGMA
260
+ '\u03a4' # 0xD4 -> GREEK CAPITAL LETTER TAU
261
+ '\u03a5' # 0xD5 -> GREEK CAPITAL LETTER UPSILON
262
+ '\u03a6' # 0xD6 -> GREEK CAPITAL LETTER PHI
263
+ '\u03a7' # 0xD7 -> GREEK CAPITAL LETTER CHI
264
+ '\u03a8' # 0xD8 -> GREEK CAPITAL LETTER PSI
265
+ '\u03a9' # 0xD9 -> GREEK CAPITAL LETTER OMEGA
266
+ '\u03aa' # 0xDA -> GREEK CAPITAL LETTER IOTA WITH DIALYTIKA
267
+ '\u03ab' # 0xDB -> GREEK CAPITAL LETTER UPSILON WITH DIALYTIKA
268
+ '\u03ac' # 0xDC -> GREEK SMALL LETTER ALPHA WITH TONOS
269
+ '\u03ad' # 0xDD -> GREEK SMALL LETTER EPSILON WITH TONOS
270
+ '\u03ae' # 0xDE -> GREEK SMALL LETTER ETA WITH TONOS
271
+ '\u03af' # 0xDF -> GREEK SMALL LETTER IOTA WITH TONOS
272
+ '\u03b0' # 0xE0 -> GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND TONOS
273
+ '\u03b1' # 0xE1 -> GREEK SMALL LETTER ALPHA
274
+ '\u03b2' # 0xE2 -> GREEK SMALL LETTER BETA
275
+ '\u03b3' # 0xE3 -> GREEK SMALL LETTER GAMMA
276
+ '\u03b4' # 0xE4 -> GREEK SMALL LETTER DELTA
277
+ '\u03b5' # 0xE5 -> GREEK SMALL LETTER EPSILON
278
+ '\u03b6' # 0xE6 -> GREEK SMALL LETTER ZETA
279
+ '\u03b7' # 0xE7 -> GREEK SMALL LETTER ETA
280
+ '\u03b8' # 0xE8 -> GREEK SMALL LETTER THETA
281
+ '\u03b9' # 0xE9 -> GREEK SMALL LETTER IOTA
282
+ '\u03ba' # 0xEA -> GREEK SMALL LETTER KAPPA
283
+ '\u03bb' # 0xEB -> GREEK SMALL LETTER LAMDA
284
+ '\u03bc' # 0xEC -> GREEK SMALL LETTER MU
285
+ '\u03bd' # 0xED -> GREEK SMALL LETTER NU
286
+ '\u03be' # 0xEE -> GREEK SMALL LETTER XI
287
+ '\u03bf' # 0xEF -> GREEK SMALL LETTER OMICRON
288
+ '\u03c0' # 0xF0 -> GREEK SMALL LETTER PI
289
+ '\u03c1' # 0xF1 -> GREEK SMALL LETTER RHO
290
+ '\u03c2' # 0xF2 -> GREEK SMALL LETTER FINAL SIGMA
291
+ '\u03c3' # 0xF3 -> GREEK SMALL LETTER SIGMA
292
+ '\u03c4' # 0xF4 -> GREEK SMALL LETTER TAU
293
+ '\u03c5' # 0xF5 -> GREEK SMALL LETTER UPSILON
294
+ '\u03c6' # 0xF6 -> GREEK SMALL LETTER PHI
295
+ '\u03c7' # 0xF7 -> GREEK SMALL LETTER CHI
296
+ '\u03c8' # 0xF8 -> GREEK SMALL LETTER PSI
297
+ '\u03c9' # 0xF9 -> GREEK SMALL LETTER OMEGA
298
+ '\u03ca' # 0xFA -> GREEK SMALL LETTER IOTA WITH DIALYTIKA
299
+ '\u03cb' # 0xFB -> GREEK SMALL LETTER UPSILON WITH DIALYTIKA
300
+ '\u03cc' # 0xFC -> GREEK SMALL LETTER OMICRON WITH TONOS
301
+ '\u03cd' # 0xFD -> GREEK SMALL LETTER UPSILON WITH TONOS
302
+ '\u03ce' # 0xFE -> GREEK SMALL LETTER OMEGA WITH TONOS
303
+ '\ufffe' # 0xFF -> UNDEFINED
304
+ )
305
+
306
+ ### Encoding table
307
+ encoding_table=codecs.charmap_build(decoding_table)
parrot/lib/python3.10/encodings/cp1257.py ADDED
@@ -0,0 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python Character Mapping Codec cp1257 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1257.TXT' with gencodec.py.
2
+
3
+ """#"
4
+
5
+ import codecs
6
+
7
+ ### Codec APIs
8
+
9
+ class Codec(codecs.Codec):
10
+
11
+ def encode(self,input,errors='strict'):
12
+ return codecs.charmap_encode(input,errors,encoding_table)
13
+
14
+ def decode(self,input,errors='strict'):
15
+ return codecs.charmap_decode(input,errors,decoding_table)
16
+
17
+ class IncrementalEncoder(codecs.IncrementalEncoder):
18
+ def encode(self, input, final=False):
19
+ return codecs.charmap_encode(input,self.errors,encoding_table)[0]
20
+
21
+ class IncrementalDecoder(codecs.IncrementalDecoder):
22
+ def decode(self, input, final=False):
23
+ return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
+
25
+ class StreamWriter(Codec,codecs.StreamWriter):
26
+ pass
27
+
28
+ class StreamReader(Codec,codecs.StreamReader):
29
+ pass
30
+
31
+ ### encodings module API
32
+
33
+ def getregentry():
34
+ return codecs.CodecInfo(
35
+ name='cp1257',
36
+ encode=Codec().encode,
37
+ decode=Codec().decode,
38
+ incrementalencoder=IncrementalEncoder,
39
+ incrementaldecoder=IncrementalDecoder,
40
+ streamreader=StreamReader,
41
+ streamwriter=StreamWriter,
42
+ )
43
+
44
+
45
+ ### Decoding Table
46
+
47
+ decoding_table = (
48
+ '\x00' # 0x00 -> NULL
49
+ '\x01' # 0x01 -> START OF HEADING
50
+ '\x02' # 0x02 -> START OF TEXT
51
+ '\x03' # 0x03 -> END OF TEXT
52
+ '\x04' # 0x04 -> END OF TRANSMISSION
53
+ '\x05' # 0x05 -> ENQUIRY
54
+ '\x06' # 0x06 -> ACKNOWLEDGE
55
+ '\x07' # 0x07 -> BELL
56
+ '\x08' # 0x08 -> BACKSPACE
57
+ '\t' # 0x09 -> HORIZONTAL TABULATION
58
+ '\n' # 0x0A -> LINE FEED
59
+ '\x0b' # 0x0B -> VERTICAL TABULATION
60
+ '\x0c' # 0x0C -> FORM FEED
61
+ '\r' # 0x0D -> CARRIAGE RETURN
62
+ '\x0e' # 0x0E -> SHIFT OUT
63
+ '\x0f' # 0x0F -> SHIFT IN
64
+ '\x10' # 0x10 -> DATA LINK ESCAPE
65
+ '\x11' # 0x11 -> DEVICE CONTROL ONE
66
+ '\x12' # 0x12 -> DEVICE CONTROL TWO
67
+ '\x13' # 0x13 -> DEVICE CONTROL THREE
68
+ '\x14' # 0x14 -> DEVICE CONTROL FOUR
69
+ '\x15' # 0x15 -> NEGATIVE ACKNOWLEDGE
70
+ '\x16' # 0x16 -> SYNCHRONOUS IDLE
71
+ '\x17' # 0x17 -> END OF TRANSMISSION BLOCK
72
+ '\x18' # 0x18 -> CANCEL
73
+ '\x19' # 0x19 -> END OF MEDIUM
74
+ '\x1a' # 0x1A -> SUBSTITUTE
75
+ '\x1b' # 0x1B -> ESCAPE
76
+ '\x1c' # 0x1C -> FILE SEPARATOR
77
+ '\x1d' # 0x1D -> GROUP SEPARATOR
78
+ '\x1e' # 0x1E -> RECORD SEPARATOR
79
+ '\x1f' # 0x1F -> UNIT SEPARATOR
80
+ ' ' # 0x20 -> SPACE
81
+ '!' # 0x21 -> EXCLAMATION MARK
82
+ '"' # 0x22 -> QUOTATION MARK
83
+ '#' # 0x23 -> NUMBER SIGN
84
+ '$' # 0x24 -> DOLLAR SIGN
85
+ '%' # 0x25 -> PERCENT SIGN
86
+ '&' # 0x26 -> AMPERSAND
87
+ "'" # 0x27 -> APOSTROPHE
88
+ '(' # 0x28 -> LEFT PARENTHESIS
89
+ ')' # 0x29 -> RIGHT PARENTHESIS
90
+ '*' # 0x2A -> ASTERISK
91
+ '+' # 0x2B -> PLUS SIGN
92
+ ',' # 0x2C -> COMMA
93
+ '-' # 0x2D -> HYPHEN-MINUS
94
+ '.' # 0x2E -> FULL STOP
95
+ '/' # 0x2F -> SOLIDUS
96
+ '0' # 0x30 -> DIGIT ZERO
97
+ '1' # 0x31 -> DIGIT ONE
98
+ '2' # 0x32 -> DIGIT TWO
99
+ '3' # 0x33 -> DIGIT THREE
100
+ '4' # 0x34 -> DIGIT FOUR
101
+ '5' # 0x35 -> DIGIT FIVE
102
+ '6' # 0x36 -> DIGIT SIX
103
+ '7' # 0x37 -> DIGIT SEVEN
104
+ '8' # 0x38 -> DIGIT EIGHT
105
+ '9' # 0x39 -> DIGIT NINE
106
+ ':' # 0x3A -> COLON
107
+ ';' # 0x3B -> SEMICOLON
108
+ '<' # 0x3C -> LESS-THAN SIGN
109
+ '=' # 0x3D -> EQUALS SIGN
110
+ '>' # 0x3E -> GREATER-THAN SIGN
111
+ '?' # 0x3F -> QUESTION MARK
112
+ '@' # 0x40 -> COMMERCIAL AT
113
+ 'A' # 0x41 -> LATIN CAPITAL LETTER A
114
+ 'B' # 0x42 -> LATIN CAPITAL LETTER B
115
+ 'C' # 0x43 -> LATIN CAPITAL LETTER C
116
+ 'D' # 0x44 -> LATIN CAPITAL LETTER D
117
+ 'E' # 0x45 -> LATIN CAPITAL LETTER E
118
+ 'F' # 0x46 -> LATIN CAPITAL LETTER F
119
+ 'G' # 0x47 -> LATIN CAPITAL LETTER G
120
+ 'H' # 0x48 -> LATIN CAPITAL LETTER H
121
+ 'I' # 0x49 -> LATIN CAPITAL LETTER I
122
+ 'J' # 0x4A -> LATIN CAPITAL LETTER J
123
+ 'K' # 0x4B -> LATIN CAPITAL LETTER K
124
+ 'L' # 0x4C -> LATIN CAPITAL LETTER L
125
+ 'M' # 0x4D -> LATIN CAPITAL LETTER M
126
+ 'N' # 0x4E -> LATIN CAPITAL LETTER N
127
+ 'O' # 0x4F -> LATIN CAPITAL LETTER O
128
+ 'P' # 0x50 -> LATIN CAPITAL LETTER P
129
+ 'Q' # 0x51 -> LATIN CAPITAL LETTER Q
130
+ 'R' # 0x52 -> LATIN CAPITAL LETTER R
131
+ 'S' # 0x53 -> LATIN CAPITAL LETTER S
132
+ 'T' # 0x54 -> LATIN CAPITAL LETTER T
133
+ 'U' # 0x55 -> LATIN CAPITAL LETTER U
134
+ 'V' # 0x56 -> LATIN CAPITAL LETTER V
135
+ 'W' # 0x57 -> LATIN CAPITAL LETTER W
136
+ 'X' # 0x58 -> LATIN CAPITAL LETTER X
137
+ 'Y' # 0x59 -> LATIN CAPITAL LETTER Y
138
+ 'Z' # 0x5A -> LATIN CAPITAL LETTER Z
139
+ '[' # 0x5B -> LEFT SQUARE BRACKET
140
+ '\\' # 0x5C -> REVERSE SOLIDUS
141
+ ']' # 0x5D -> RIGHT SQUARE BRACKET
142
+ '^' # 0x5E -> CIRCUMFLEX ACCENT
143
+ '_' # 0x5F -> LOW LINE
144
+ '`' # 0x60 -> GRAVE ACCENT
145
+ 'a' # 0x61 -> LATIN SMALL LETTER A
146
+ 'b' # 0x62 -> LATIN SMALL LETTER B
147
+ 'c' # 0x63 -> LATIN SMALL LETTER C
148
+ 'd' # 0x64 -> LATIN SMALL LETTER D
149
+ 'e' # 0x65 -> LATIN SMALL LETTER E
150
+ 'f' # 0x66 -> LATIN SMALL LETTER F
151
+ 'g' # 0x67 -> LATIN SMALL LETTER G
152
+ 'h' # 0x68 -> LATIN SMALL LETTER H
153
+ 'i' # 0x69 -> LATIN SMALL LETTER I
154
+ 'j' # 0x6A -> LATIN SMALL LETTER J
155
+ 'k' # 0x6B -> LATIN SMALL LETTER K
156
+ 'l' # 0x6C -> LATIN SMALL LETTER L
157
+ 'm' # 0x6D -> LATIN SMALL LETTER M
158
+ 'n' # 0x6E -> LATIN SMALL LETTER N
159
+ 'o' # 0x6F -> LATIN SMALL LETTER O
160
+ 'p' # 0x70 -> LATIN SMALL LETTER P
161
+ 'q' # 0x71 -> LATIN SMALL LETTER Q
162
+ 'r' # 0x72 -> LATIN SMALL LETTER R
163
+ 's' # 0x73 -> LATIN SMALL LETTER S
164
+ 't' # 0x74 -> LATIN SMALL LETTER T
165
+ 'u' # 0x75 -> LATIN SMALL LETTER U
166
+ 'v' # 0x76 -> LATIN SMALL LETTER V
167
+ 'w' # 0x77 -> LATIN SMALL LETTER W
168
+ 'x' # 0x78 -> LATIN SMALL LETTER X
169
+ 'y' # 0x79 -> LATIN SMALL LETTER Y
170
+ 'z' # 0x7A -> LATIN SMALL LETTER Z
171
+ '{' # 0x7B -> LEFT CURLY BRACKET
172
+ '|' # 0x7C -> VERTICAL LINE
173
+ '}' # 0x7D -> RIGHT CURLY BRACKET
174
+ '~' # 0x7E -> TILDE
175
+ '\x7f' # 0x7F -> DELETE
176
+ '\u20ac' # 0x80 -> EURO SIGN
177
+ '\ufffe' # 0x81 -> UNDEFINED
178
+ '\u201a' # 0x82 -> SINGLE LOW-9 QUOTATION MARK
179
+ '\ufffe' # 0x83 -> UNDEFINED
180
+ '\u201e' # 0x84 -> DOUBLE LOW-9 QUOTATION MARK
181
+ '\u2026' # 0x85 -> HORIZONTAL ELLIPSIS
182
+ '\u2020' # 0x86 -> DAGGER
183
+ '\u2021' # 0x87 -> DOUBLE DAGGER
184
+ '\ufffe' # 0x88 -> UNDEFINED
185
+ '\u2030' # 0x89 -> PER MILLE SIGN
186
+ '\ufffe' # 0x8A -> UNDEFINED
187
+ '\u2039' # 0x8B -> SINGLE LEFT-POINTING ANGLE QUOTATION MARK
188
+ '\ufffe' # 0x8C -> UNDEFINED
189
+ '\xa8' # 0x8D -> DIAERESIS
190
+ '\u02c7' # 0x8E -> CARON
191
+ '\xb8' # 0x8F -> CEDILLA
192
+ '\ufffe' # 0x90 -> UNDEFINED
193
+ '\u2018' # 0x91 -> LEFT SINGLE QUOTATION MARK
194
+ '\u2019' # 0x92 -> RIGHT SINGLE QUOTATION MARK
195
+ '\u201c' # 0x93 -> LEFT DOUBLE QUOTATION MARK
196
+ '\u201d' # 0x94 -> RIGHT DOUBLE QUOTATION MARK
197
+ '\u2022' # 0x95 -> BULLET
198
+ '\u2013' # 0x96 -> EN DASH
199
+ '\u2014' # 0x97 -> EM DASH
200
+ '\ufffe' # 0x98 -> UNDEFINED
201
+ '\u2122' # 0x99 -> TRADE MARK SIGN
202
+ '\ufffe' # 0x9A -> UNDEFINED
203
+ '\u203a' # 0x9B -> SINGLE RIGHT-POINTING ANGLE QUOTATION MARK
204
+ '\ufffe' # 0x9C -> UNDEFINED
205
+ '\xaf' # 0x9D -> MACRON
206
+ '\u02db' # 0x9E -> OGONEK
207
+ '\ufffe' # 0x9F -> UNDEFINED
208
+ '\xa0' # 0xA0 -> NO-BREAK SPACE
209
+ '\ufffe' # 0xA1 -> UNDEFINED
210
+ '\xa2' # 0xA2 -> CENT SIGN
211
+ '\xa3' # 0xA3 -> POUND SIGN
212
+ '\xa4' # 0xA4 -> CURRENCY SIGN
213
+ '\ufffe' # 0xA5 -> UNDEFINED
214
+ '\xa6' # 0xA6 -> BROKEN BAR
215
+ '\xa7' # 0xA7 -> SECTION SIGN
216
+ '\xd8' # 0xA8 -> LATIN CAPITAL LETTER O WITH STROKE
217
+ '\xa9' # 0xA9 -> COPYRIGHT SIGN
218
+ '\u0156' # 0xAA -> LATIN CAPITAL LETTER R WITH CEDILLA
219
+ '\xab' # 0xAB -> LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
220
+ '\xac' # 0xAC -> NOT SIGN
221
+ '\xad' # 0xAD -> SOFT HYPHEN
222
+ '\xae' # 0xAE -> REGISTERED SIGN
223
+ '\xc6' # 0xAF -> LATIN CAPITAL LETTER AE
224
+ '\xb0' # 0xB0 -> DEGREE SIGN
225
+ '\xb1' # 0xB1 -> PLUS-MINUS SIGN
226
+ '\xb2' # 0xB2 -> SUPERSCRIPT TWO
227
+ '\xb3' # 0xB3 -> SUPERSCRIPT THREE
228
+ '\xb4' # 0xB4 -> ACUTE ACCENT
229
+ '\xb5' # 0xB5 -> MICRO SIGN
230
+ '\xb6' # 0xB6 -> PILCROW SIGN
231
+ '\xb7' # 0xB7 -> MIDDLE DOT
232
+ '\xf8' # 0xB8 -> LATIN SMALL LETTER O WITH STROKE
233
+ '\xb9' # 0xB9 -> SUPERSCRIPT ONE
234
+ '\u0157' # 0xBA -> LATIN SMALL LETTER R WITH CEDILLA
235
+ '\xbb' # 0xBB -> RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
236
+ '\xbc' # 0xBC -> VULGAR FRACTION ONE QUARTER
237
+ '\xbd' # 0xBD -> VULGAR FRACTION ONE HALF
238
+ '\xbe' # 0xBE -> VULGAR FRACTION THREE QUARTERS
239
+ '\xe6' # 0xBF -> LATIN SMALL LETTER AE
240
+ '\u0104' # 0xC0 -> LATIN CAPITAL LETTER A WITH OGONEK
241
+ '\u012e' # 0xC1 -> LATIN CAPITAL LETTER I WITH OGONEK
242
+ '\u0100' # 0xC2 -> LATIN CAPITAL LETTER A WITH MACRON
243
+ '\u0106' # 0xC3 -> LATIN CAPITAL LETTER C WITH ACUTE
244
+ '\xc4' # 0xC4 -> LATIN CAPITAL LETTER A WITH DIAERESIS
245
+ '\xc5' # 0xC5 -> LATIN CAPITAL LETTER A WITH RING ABOVE
246
+ '\u0118' # 0xC6 -> LATIN CAPITAL LETTER E WITH OGONEK
247
+ '\u0112' # 0xC7 -> LATIN CAPITAL LETTER E WITH MACRON
248
+ '\u010c' # 0xC8 -> LATIN CAPITAL LETTER C WITH CARON
249
+ '\xc9' # 0xC9 -> LATIN CAPITAL LETTER E WITH ACUTE
250
+ '\u0179' # 0xCA -> LATIN CAPITAL LETTER Z WITH ACUTE
251
+ '\u0116' # 0xCB -> LATIN CAPITAL LETTER E WITH DOT ABOVE
252
+ '\u0122' # 0xCC -> LATIN CAPITAL LETTER G WITH CEDILLA
253
+ '\u0136' # 0xCD -> LATIN CAPITAL LETTER K WITH CEDILLA
254
+ '\u012a' # 0xCE -> LATIN CAPITAL LETTER I WITH MACRON
255
+ '\u013b' # 0xCF -> LATIN CAPITAL LETTER L WITH CEDILLA
256
+ '\u0160' # 0xD0 -> LATIN CAPITAL LETTER S WITH CARON
257
+ '\u0143' # 0xD1 -> LATIN CAPITAL LETTER N WITH ACUTE
258
+ '\u0145' # 0xD2 -> LATIN CAPITAL LETTER N WITH CEDILLA
259
+ '\xd3' # 0xD3 -> LATIN CAPITAL LETTER O WITH ACUTE
260
+ '\u014c' # 0xD4 -> LATIN CAPITAL LETTER O WITH MACRON
261
+ '\xd5' # 0xD5 -> LATIN CAPITAL LETTER O WITH TILDE
262
+ '\xd6' # 0xD6 -> LATIN CAPITAL LETTER O WITH DIAERESIS
263
+ '\xd7' # 0xD7 -> MULTIPLICATION SIGN
264
+ '\u0172' # 0xD8 -> LATIN CAPITAL LETTER U WITH OGONEK
265
+ '\u0141' # 0xD9 -> LATIN CAPITAL LETTER L WITH STROKE
266
+ '\u015a' # 0xDA -> LATIN CAPITAL LETTER S WITH ACUTE
267
+ '\u016a' # 0xDB -> LATIN CAPITAL LETTER U WITH MACRON
268
+ '\xdc' # 0xDC -> LATIN CAPITAL LETTER U WITH DIAERESIS
269
+ '\u017b' # 0xDD -> LATIN CAPITAL LETTER Z WITH DOT ABOVE
270
+ '\u017d' # 0xDE -> LATIN CAPITAL LETTER Z WITH CARON
271
+ '\xdf' # 0xDF -> LATIN SMALL LETTER SHARP S
272
+ '\u0105' # 0xE0 -> LATIN SMALL LETTER A WITH OGONEK
273
+ '\u012f' # 0xE1 -> LATIN SMALL LETTER I WITH OGONEK
274
+ '\u0101' # 0xE2 -> LATIN SMALL LETTER A WITH MACRON
275
+ '\u0107' # 0xE3 -> LATIN SMALL LETTER C WITH ACUTE
276
+ '\xe4' # 0xE4 -> LATIN SMALL LETTER A WITH DIAERESIS
277
+ '\xe5' # 0xE5 -> LATIN SMALL LETTER A WITH RING ABOVE
278
+ '\u0119' # 0xE6 -> LATIN SMALL LETTER E WITH OGONEK
279
+ '\u0113' # 0xE7 -> LATIN SMALL LETTER E WITH MACRON
280
+ '\u010d' # 0xE8 -> LATIN SMALL LETTER C WITH CARON
281
+ '\xe9' # 0xE9 -> LATIN SMALL LETTER E WITH ACUTE
282
+ '\u017a' # 0xEA -> LATIN SMALL LETTER Z WITH ACUTE
283
+ '\u0117' # 0xEB -> LATIN SMALL LETTER E WITH DOT ABOVE
284
+ '\u0123' # 0xEC -> LATIN SMALL LETTER G WITH CEDILLA
285
+ '\u0137' # 0xED -> LATIN SMALL LETTER K WITH CEDILLA
286
+ '\u012b' # 0xEE -> LATIN SMALL LETTER I WITH MACRON
287
+ '\u013c' # 0xEF -> LATIN SMALL LETTER L WITH CEDILLA
288
+ '\u0161' # 0xF0 -> LATIN SMALL LETTER S WITH CARON
289
+ '\u0144' # 0xF1 -> LATIN SMALL LETTER N WITH ACUTE
290
+ '\u0146' # 0xF2 -> LATIN SMALL LETTER N WITH CEDILLA
291
+ '\xf3' # 0xF3 -> LATIN SMALL LETTER O WITH ACUTE
292
+ '\u014d' # 0xF4 -> LATIN SMALL LETTER O WITH MACRON
293
+ '\xf5' # 0xF5 -> LATIN SMALL LETTER O WITH TILDE
294
+ '\xf6' # 0xF6 -> LATIN SMALL LETTER O WITH DIAERESIS
295
+ '\xf7' # 0xF7 -> DIVISION SIGN
296
+ '\u0173' # 0xF8 -> LATIN SMALL LETTER U WITH OGONEK
297
+ '\u0142' # 0xF9 -> LATIN SMALL LETTER L WITH STROKE
298
+ '\u015b' # 0xFA -> LATIN SMALL LETTER S WITH ACUTE
299
+ '\u016b' # 0xFB -> LATIN SMALL LETTER U WITH MACRON
300
+ '\xfc' # 0xFC -> LATIN SMALL LETTER U WITH DIAERESIS
301
+ '\u017c' # 0xFD -> LATIN SMALL LETTER Z WITH DOT ABOVE
302
+ '\u017e' # 0xFE -> LATIN SMALL LETTER Z WITH CARON
303
+ '\u02d9' # 0xFF -> DOT ABOVE
304
+ )
305
+
306
+ ### Encoding table
307
+ encoding_table=codecs.charmap_build(decoding_table)
parrot/lib/python3.10/encodings/cp850.py ADDED
@@ -0,0 +1,698 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP850.TXT' with gencodec.py.
2
+
3
+ """#"
4
+
5
+ import codecs
6
+
7
+ ### Codec APIs
8
+
9
+ class Codec(codecs.Codec):
10
+
11
+ def encode(self,input,errors='strict'):
12
+ return codecs.charmap_encode(input,errors,encoding_map)
13
+
14
+ def decode(self,input,errors='strict'):
15
+ return codecs.charmap_decode(input,errors,decoding_table)
16
+
17
+ class IncrementalEncoder(codecs.IncrementalEncoder):
18
+ def encode(self, input, final=False):
19
+ return codecs.charmap_encode(input,self.errors,encoding_map)[0]
20
+
21
+ class IncrementalDecoder(codecs.IncrementalDecoder):
22
+ def decode(self, input, final=False):
23
+ return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
+
25
+ class StreamWriter(Codec,codecs.StreamWriter):
26
+ pass
27
+
28
+ class StreamReader(Codec,codecs.StreamReader):
29
+ pass
30
+
31
+ ### encodings module API
32
+
33
+ def getregentry():
34
+ return codecs.CodecInfo(
35
+ name='cp850',
36
+ encode=Codec().encode,
37
+ decode=Codec().decode,
38
+ incrementalencoder=IncrementalEncoder,
39
+ incrementaldecoder=IncrementalDecoder,
40
+ streamreader=StreamReader,
41
+ streamwriter=StreamWriter,
42
+ )
43
+
44
+ ### Decoding Map
45
+
46
+ decoding_map = codecs.make_identity_dict(range(256))
47
+ decoding_map.update({
48
+ 0x0080: 0x00c7, # LATIN CAPITAL LETTER C WITH CEDILLA
49
+ 0x0081: 0x00fc, # LATIN SMALL LETTER U WITH DIAERESIS
50
+ 0x0082: 0x00e9, # LATIN SMALL LETTER E WITH ACUTE
51
+ 0x0083: 0x00e2, # LATIN SMALL LETTER A WITH CIRCUMFLEX
52
+ 0x0084: 0x00e4, # LATIN SMALL LETTER A WITH DIAERESIS
53
+ 0x0085: 0x00e0, # LATIN SMALL LETTER A WITH GRAVE
54
+ 0x0086: 0x00e5, # LATIN SMALL LETTER A WITH RING ABOVE
55
+ 0x0087: 0x00e7, # LATIN SMALL LETTER C WITH CEDILLA
56
+ 0x0088: 0x00ea, # LATIN SMALL LETTER E WITH CIRCUMFLEX
57
+ 0x0089: 0x00eb, # LATIN SMALL LETTER E WITH DIAERESIS
58
+ 0x008a: 0x00e8, # LATIN SMALL LETTER E WITH GRAVE
59
+ 0x008b: 0x00ef, # LATIN SMALL LETTER I WITH DIAERESIS
60
+ 0x008c: 0x00ee, # LATIN SMALL LETTER I WITH CIRCUMFLEX
61
+ 0x008d: 0x00ec, # LATIN SMALL LETTER I WITH GRAVE
62
+ 0x008e: 0x00c4, # LATIN CAPITAL LETTER A WITH DIAERESIS
63
+ 0x008f: 0x00c5, # LATIN CAPITAL LETTER A WITH RING ABOVE
64
+ 0x0090: 0x00c9, # LATIN CAPITAL LETTER E WITH ACUTE
65
+ 0x0091: 0x00e6, # LATIN SMALL LIGATURE AE
66
+ 0x0092: 0x00c6, # LATIN CAPITAL LIGATURE AE
67
+ 0x0093: 0x00f4, # LATIN SMALL LETTER O WITH CIRCUMFLEX
68
+ 0x0094: 0x00f6, # LATIN SMALL LETTER O WITH DIAERESIS
69
+ 0x0095: 0x00f2, # LATIN SMALL LETTER O WITH GRAVE
70
+ 0x0096: 0x00fb, # LATIN SMALL LETTER U WITH CIRCUMFLEX
71
+ 0x0097: 0x00f9, # LATIN SMALL LETTER U WITH GRAVE
72
+ 0x0098: 0x00ff, # LATIN SMALL LETTER Y WITH DIAERESIS
73
+ 0x0099: 0x00d6, # LATIN CAPITAL LETTER O WITH DIAERESIS
74
+ 0x009a: 0x00dc, # LATIN CAPITAL LETTER U WITH DIAERESIS
75
+ 0x009b: 0x00f8, # LATIN SMALL LETTER O WITH STROKE
76
+ 0x009c: 0x00a3, # POUND SIGN
77
+ 0x009d: 0x00d8, # LATIN CAPITAL LETTER O WITH STROKE
78
+ 0x009e: 0x00d7, # MULTIPLICATION SIGN
79
+ 0x009f: 0x0192, # LATIN SMALL LETTER F WITH HOOK
80
+ 0x00a0: 0x00e1, # LATIN SMALL LETTER A WITH ACUTE
81
+ 0x00a1: 0x00ed, # LATIN SMALL LETTER I WITH ACUTE
82
+ 0x00a2: 0x00f3, # LATIN SMALL LETTER O WITH ACUTE
83
+ 0x00a3: 0x00fa, # LATIN SMALL LETTER U WITH ACUTE
84
+ 0x00a4: 0x00f1, # LATIN SMALL LETTER N WITH TILDE
85
+ 0x00a5: 0x00d1, # LATIN CAPITAL LETTER N WITH TILDE
86
+ 0x00a6: 0x00aa, # FEMININE ORDINAL INDICATOR
87
+ 0x00a7: 0x00ba, # MASCULINE ORDINAL INDICATOR
88
+ 0x00a8: 0x00bf, # INVERTED QUESTION MARK
89
+ 0x00a9: 0x00ae, # REGISTERED SIGN
90
+ 0x00aa: 0x00ac, # NOT SIGN
91
+ 0x00ab: 0x00bd, # VULGAR FRACTION ONE HALF
92
+ 0x00ac: 0x00bc, # VULGAR FRACTION ONE QUARTER
93
+ 0x00ad: 0x00a1, # INVERTED EXCLAMATION MARK
94
+ 0x00ae: 0x00ab, # LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
95
+ 0x00af: 0x00bb, # RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
96
+ 0x00b0: 0x2591, # LIGHT SHADE
97
+ 0x00b1: 0x2592, # MEDIUM SHADE
98
+ 0x00b2: 0x2593, # DARK SHADE
99
+ 0x00b3: 0x2502, # BOX DRAWINGS LIGHT VERTICAL
100
+ 0x00b4: 0x2524, # BOX DRAWINGS LIGHT VERTICAL AND LEFT
101
+ 0x00b5: 0x00c1, # LATIN CAPITAL LETTER A WITH ACUTE
102
+ 0x00b6: 0x00c2, # LATIN CAPITAL LETTER A WITH CIRCUMFLEX
103
+ 0x00b7: 0x00c0, # LATIN CAPITAL LETTER A WITH GRAVE
104
+ 0x00b8: 0x00a9, # COPYRIGHT SIGN
105
+ 0x00b9: 0x2563, # BOX DRAWINGS DOUBLE VERTICAL AND LEFT
106
+ 0x00ba: 0x2551, # BOX DRAWINGS DOUBLE VERTICAL
107
+ 0x00bb: 0x2557, # BOX DRAWINGS DOUBLE DOWN AND LEFT
108
+ 0x00bc: 0x255d, # BOX DRAWINGS DOUBLE UP AND LEFT
109
+ 0x00bd: 0x00a2, # CENT SIGN
110
+ 0x00be: 0x00a5, # YEN SIGN
111
+ 0x00bf: 0x2510, # BOX DRAWINGS LIGHT DOWN AND LEFT
112
+ 0x00c0: 0x2514, # BOX DRAWINGS LIGHT UP AND RIGHT
113
+ 0x00c1: 0x2534, # BOX DRAWINGS LIGHT UP AND HORIZONTAL
114
+ 0x00c2: 0x252c, # BOX DRAWINGS LIGHT DOWN AND HORIZONTAL
115
+ 0x00c3: 0x251c, # BOX DRAWINGS LIGHT VERTICAL AND RIGHT
116
+ 0x00c4: 0x2500, # BOX DRAWINGS LIGHT HORIZONTAL
117
+ 0x00c5: 0x253c, # BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL
118
+ 0x00c6: 0x00e3, # LATIN SMALL LETTER A WITH TILDE
119
+ 0x00c7: 0x00c3, # LATIN CAPITAL LETTER A WITH TILDE
120
+ 0x00c8: 0x255a, # BOX DRAWINGS DOUBLE UP AND RIGHT
121
+ 0x00c9: 0x2554, # BOX DRAWINGS DOUBLE DOWN AND RIGHT
122
+ 0x00ca: 0x2569, # BOX DRAWINGS DOUBLE UP AND HORIZONTAL
123
+ 0x00cb: 0x2566, # BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL
124
+ 0x00cc: 0x2560, # BOX DRAWINGS DOUBLE VERTICAL AND RIGHT
125
+ 0x00cd: 0x2550, # BOX DRAWINGS DOUBLE HORIZONTAL
126
+ 0x00ce: 0x256c, # BOX DRAWINGS DOUBLE VERTICAL AND HORIZONTAL
127
+ 0x00cf: 0x00a4, # CURRENCY SIGN
128
+ 0x00d0: 0x00f0, # LATIN SMALL LETTER ETH
129
+ 0x00d1: 0x00d0, # LATIN CAPITAL LETTER ETH
130
+ 0x00d2: 0x00ca, # LATIN CAPITAL LETTER E WITH CIRCUMFLEX
131
+ 0x00d3: 0x00cb, # LATIN CAPITAL LETTER E WITH DIAERESIS
132
+ 0x00d4: 0x00c8, # LATIN CAPITAL LETTER E WITH GRAVE
133
+ 0x00d5: 0x0131, # LATIN SMALL LETTER DOTLESS I
134
+ 0x00d6: 0x00cd, # LATIN CAPITAL LETTER I WITH ACUTE
135
+ 0x00d7: 0x00ce, # LATIN CAPITAL LETTER I WITH CIRCUMFLEX
136
+ 0x00d8: 0x00cf, # LATIN CAPITAL LETTER I WITH DIAERESIS
137
+ 0x00d9: 0x2518, # BOX DRAWINGS LIGHT UP AND LEFT
138
+ 0x00da: 0x250c, # BOX DRAWINGS LIGHT DOWN AND RIGHT
139
+ 0x00db: 0x2588, # FULL BLOCK
140
+ 0x00dc: 0x2584, # LOWER HALF BLOCK
141
+ 0x00dd: 0x00a6, # BROKEN BAR
142
+ 0x00de: 0x00cc, # LATIN CAPITAL LETTER I WITH GRAVE
143
+ 0x00df: 0x2580, # UPPER HALF BLOCK
144
+ 0x00e0: 0x00d3, # LATIN CAPITAL LETTER O WITH ACUTE
145
+ 0x00e1: 0x00df, # LATIN SMALL LETTER SHARP S
146
+ 0x00e2: 0x00d4, # LATIN CAPITAL LETTER O WITH CIRCUMFLEX
147
+ 0x00e3: 0x00d2, # LATIN CAPITAL LETTER O WITH GRAVE
148
+ 0x00e4: 0x00f5, # LATIN SMALL LETTER O WITH TILDE
149
+ 0x00e5: 0x00d5, # LATIN CAPITAL LETTER O WITH TILDE
150
+ 0x00e6: 0x00b5, # MICRO SIGN
151
+ 0x00e7: 0x00fe, # LATIN SMALL LETTER THORN
152
+ 0x00e8: 0x00de, # LATIN CAPITAL LETTER THORN
153
+ 0x00e9: 0x00da, # LATIN CAPITAL LETTER U WITH ACUTE
154
+ 0x00ea: 0x00db, # LATIN CAPITAL LETTER U WITH CIRCUMFLEX
155
+ 0x00eb: 0x00d9, # LATIN CAPITAL LETTER U WITH GRAVE
156
+ 0x00ec: 0x00fd, # LATIN SMALL LETTER Y WITH ACUTE
157
+ 0x00ed: 0x00dd, # LATIN CAPITAL LETTER Y WITH ACUTE
158
+ 0x00ee: 0x00af, # MACRON
159
+ 0x00ef: 0x00b4, # ACUTE ACCENT
160
+ 0x00f0: 0x00ad, # SOFT HYPHEN
161
+ 0x00f1: 0x00b1, # PLUS-MINUS SIGN
162
+ 0x00f2: 0x2017, # DOUBLE LOW LINE
163
+ 0x00f3: 0x00be, # VULGAR FRACTION THREE QUARTERS
164
+ 0x00f4: 0x00b6, # PILCROW SIGN
165
+ 0x00f5: 0x00a7, # SECTION SIGN
166
+ 0x00f6: 0x00f7, # DIVISION SIGN
167
+ 0x00f7: 0x00b8, # CEDILLA
168
+ 0x00f8: 0x00b0, # DEGREE SIGN
169
+ 0x00f9: 0x00a8, # DIAERESIS
170
+ 0x00fa: 0x00b7, # MIDDLE DOT
171
+ 0x00fb: 0x00b9, # SUPERSCRIPT ONE
172
+ 0x00fc: 0x00b3, # SUPERSCRIPT THREE
173
+ 0x00fd: 0x00b2, # SUPERSCRIPT TWO
174
+ 0x00fe: 0x25a0, # BLACK SQUARE
175
+ 0x00ff: 0x00a0, # NO-BREAK SPACE
176
+ })
177
+
178
+ ### Decoding Table
179
+
180
+ decoding_table = (
181
+ '\x00' # 0x0000 -> NULL
182
+ '\x01' # 0x0001 -> START OF HEADING
183
+ '\x02' # 0x0002 -> START OF TEXT
184
+ '\x03' # 0x0003 -> END OF TEXT
185
+ '\x04' # 0x0004 -> END OF TRANSMISSION
186
+ '\x05' # 0x0005 -> ENQUIRY
187
+ '\x06' # 0x0006 -> ACKNOWLEDGE
188
+ '\x07' # 0x0007 -> BELL
189
+ '\x08' # 0x0008 -> BACKSPACE
190
+ '\t' # 0x0009 -> HORIZONTAL TABULATION
191
+ '\n' # 0x000a -> LINE FEED
192
+ '\x0b' # 0x000b -> VERTICAL TABULATION
193
+ '\x0c' # 0x000c -> FORM FEED
194
+ '\r' # 0x000d -> CARRIAGE RETURN
195
+ '\x0e' # 0x000e -> SHIFT OUT
196
+ '\x0f' # 0x000f -> SHIFT IN
197
+ '\x10' # 0x0010 -> DATA LINK ESCAPE
198
+ '\x11' # 0x0011 -> DEVICE CONTROL ONE
199
+ '\x12' # 0x0012 -> DEVICE CONTROL TWO
200
+ '\x13' # 0x0013 -> DEVICE CONTROL THREE
201
+ '\x14' # 0x0014 -> DEVICE CONTROL FOUR
202
+ '\x15' # 0x0015 -> NEGATIVE ACKNOWLEDGE
203
+ '\x16' # 0x0016 -> SYNCHRONOUS IDLE
204
+ '\x17' # 0x0017 -> END OF TRANSMISSION BLOCK
205
+ '\x18' # 0x0018 -> CANCEL
206
+ '\x19' # 0x0019 -> END OF MEDIUM
207
+ '\x1a' # 0x001a -> SUBSTITUTE
208
+ '\x1b' # 0x001b -> ESCAPE
209
+ '\x1c' # 0x001c -> FILE SEPARATOR
210
+ '\x1d' # 0x001d -> GROUP SEPARATOR
211
+ '\x1e' # 0x001e -> RECORD SEPARATOR
212
+ '\x1f' # 0x001f -> UNIT SEPARATOR
213
+ ' ' # 0x0020 -> SPACE
214
+ '!' # 0x0021 -> EXCLAMATION MARK
215
+ '"' # 0x0022 -> QUOTATION MARK
216
+ '#' # 0x0023 -> NUMBER SIGN
217
+ '$' # 0x0024 -> DOLLAR SIGN
218
+ '%' # 0x0025 -> PERCENT SIGN
219
+ '&' # 0x0026 -> AMPERSAND
220
+ "'" # 0x0027 -> APOSTROPHE
221
+ '(' # 0x0028 -> LEFT PARENTHESIS
222
+ ')' # 0x0029 -> RIGHT PARENTHESIS
223
+ '*' # 0x002a -> ASTERISK
224
+ '+' # 0x002b -> PLUS SIGN
225
+ ',' # 0x002c -> COMMA
226
+ '-' # 0x002d -> HYPHEN-MINUS
227
+ '.' # 0x002e -> FULL STOP
228
+ '/' # 0x002f -> SOLIDUS
229
+ '0' # 0x0030 -> DIGIT ZERO
230
+ '1' # 0x0031 -> DIGIT ONE
231
+ '2' # 0x0032 -> DIGIT TWO
232
+ '3' # 0x0033 -> DIGIT THREE
233
+ '4' # 0x0034 -> DIGIT FOUR
234
+ '5' # 0x0035 -> DIGIT FIVE
235
+ '6' # 0x0036 -> DIGIT SIX
236
+ '7' # 0x0037 -> DIGIT SEVEN
237
+ '8' # 0x0038 -> DIGIT EIGHT
238
+ '9' # 0x0039 -> DIGIT NINE
239
+ ':' # 0x003a -> COLON
240
+ ';' # 0x003b -> SEMICOLON
241
+ '<' # 0x003c -> LESS-THAN SIGN
242
+ '=' # 0x003d -> EQUALS SIGN
243
+ '>' # 0x003e -> GREATER-THAN SIGN
244
+ '?' # 0x003f -> QUESTION MARK
245
+ '@' # 0x0040 -> COMMERCIAL AT
246
+ 'A' # 0x0041 -> LATIN CAPITAL LETTER A
247
+ 'B' # 0x0042 -> LATIN CAPITAL LETTER B
248
+ 'C' # 0x0043 -> LATIN CAPITAL LETTER C
249
+ 'D' # 0x0044 -> LATIN CAPITAL LETTER D
250
+ 'E' # 0x0045 -> LATIN CAPITAL LETTER E
251
+ 'F' # 0x0046 -> LATIN CAPITAL LETTER F
252
+ 'G' # 0x0047 -> LATIN CAPITAL LETTER G
253
+ 'H' # 0x0048 -> LATIN CAPITAL LETTER H
254
+ 'I' # 0x0049 -> LATIN CAPITAL LETTER I
255
+ 'J' # 0x004a -> LATIN CAPITAL LETTER J
256
+ 'K' # 0x004b -> LATIN CAPITAL LETTER K
257
+ 'L' # 0x004c -> LATIN CAPITAL LETTER L
258
+ 'M' # 0x004d -> LATIN CAPITAL LETTER M
259
+ 'N' # 0x004e -> LATIN CAPITAL LETTER N
260
+ 'O' # 0x004f -> LATIN CAPITAL LETTER O
261
+ 'P' # 0x0050 -> LATIN CAPITAL LETTER P
262
+ 'Q' # 0x0051 -> LATIN CAPITAL LETTER Q
263
+ 'R' # 0x0052 -> LATIN CAPITAL LETTER R
264
+ 'S' # 0x0053 -> LATIN CAPITAL LETTER S
265
+ 'T' # 0x0054 -> LATIN CAPITAL LETTER T
266
+ 'U' # 0x0055 -> LATIN CAPITAL LETTER U
267
+ 'V' # 0x0056 -> LATIN CAPITAL LETTER V
268
+ 'W' # 0x0057 -> LATIN CAPITAL LETTER W
269
+ 'X' # 0x0058 -> LATIN CAPITAL LETTER X
270
+ 'Y' # 0x0059 -> LATIN CAPITAL LETTER Y
271
+ 'Z' # 0x005a -> LATIN CAPITAL LETTER Z
272
+ '[' # 0x005b -> LEFT SQUARE BRACKET
273
+ '\\' # 0x005c -> REVERSE SOLIDUS
274
+ ']' # 0x005d -> RIGHT SQUARE BRACKET
275
+ '^' # 0x005e -> CIRCUMFLEX ACCENT
276
+ '_' # 0x005f -> LOW LINE
277
+ '`' # 0x0060 -> GRAVE ACCENT
278
+ 'a' # 0x0061 -> LATIN SMALL LETTER A
279
+ 'b' # 0x0062 -> LATIN SMALL LETTER B
280
+ 'c' # 0x0063 -> LATIN SMALL LETTER C
281
+ 'd' # 0x0064 -> LATIN SMALL LETTER D
282
+ 'e' # 0x0065 -> LATIN SMALL LETTER E
283
+ 'f' # 0x0066 -> LATIN SMALL LETTER F
284
+ 'g' # 0x0067 -> LATIN SMALL LETTER G
285
+ 'h' # 0x0068 -> LATIN SMALL LETTER H
286
+ 'i' # 0x0069 -> LATIN SMALL LETTER I
287
+ 'j' # 0x006a -> LATIN SMALL LETTER J
288
+ 'k' # 0x006b -> LATIN SMALL LETTER K
289
+ 'l' # 0x006c -> LATIN SMALL LETTER L
290
+ 'm' # 0x006d -> LATIN SMALL LETTER M
291
+ 'n' # 0x006e -> LATIN SMALL LETTER N
292
+ 'o' # 0x006f -> LATIN SMALL LETTER O
293
+ 'p' # 0x0070 -> LATIN SMALL LETTER P
294
+ 'q' # 0x0071 -> LATIN SMALL LETTER Q
295
+ 'r' # 0x0072 -> LATIN SMALL LETTER R
296
+ 's' # 0x0073 -> LATIN SMALL LETTER S
297
+ 't' # 0x0074 -> LATIN SMALL LETTER T
298
+ 'u' # 0x0075 -> LATIN SMALL LETTER U
299
+ 'v' # 0x0076 -> LATIN SMALL LETTER V
300
+ 'w' # 0x0077 -> LATIN SMALL LETTER W
301
+ 'x' # 0x0078 -> LATIN SMALL LETTER X
302
+ 'y' # 0x0079 -> LATIN SMALL LETTER Y
303
+ 'z' # 0x007a -> LATIN SMALL LETTER Z
304
+ '{' # 0x007b -> LEFT CURLY BRACKET
305
+ '|' # 0x007c -> VERTICAL LINE
306
+ '}' # 0x007d -> RIGHT CURLY BRACKET
307
+ '~' # 0x007e -> TILDE
308
+ '\x7f' # 0x007f -> DELETE
309
+ '\xc7' # 0x0080 -> LATIN CAPITAL LETTER C WITH CEDILLA
310
+ '\xfc' # 0x0081 -> LATIN SMALL LETTER U WITH DIAERESIS
311
+ '\xe9' # 0x0082 -> LATIN SMALL LETTER E WITH ACUTE
312
+ '\xe2' # 0x0083 -> LATIN SMALL LETTER A WITH CIRCUMFLEX
313
+ '\xe4' # 0x0084 -> LATIN SMALL LETTER A WITH DIAERESIS
314
+ '\xe0' # 0x0085 -> LATIN SMALL LETTER A WITH GRAVE
315
+ '\xe5' # 0x0086 -> LATIN SMALL LETTER A WITH RING ABOVE
316
+ '\xe7' # 0x0087 -> LATIN SMALL LETTER C WITH CEDILLA
317
+ '\xea' # 0x0088 -> LATIN SMALL LETTER E WITH CIRCUMFLEX
318
+ '\xeb' # 0x0089 -> LATIN SMALL LETTER E WITH DIAERESIS
319
+ '\xe8' # 0x008a -> LATIN SMALL LETTER E WITH GRAVE
320
+ '\xef' # 0x008b -> LATIN SMALL LETTER I WITH DIAERESIS
321
+ '\xee' # 0x008c -> LATIN SMALL LETTER I WITH CIRCUMFLEX
322
+ '\xec' # 0x008d -> LATIN SMALL LETTER I WITH GRAVE
323
+ '\xc4' # 0x008e -> LATIN CAPITAL LETTER A WITH DIAERESIS
324
+ '\xc5' # 0x008f -> LATIN CAPITAL LETTER A WITH RING ABOVE
325
+ '\xc9' # 0x0090 -> LATIN CAPITAL LETTER E WITH ACUTE
326
+ '\xe6' # 0x0091 -> LATIN SMALL LIGATURE AE
327
+ '\xc6' # 0x0092 -> LATIN CAPITAL LIGATURE AE
328
+ '\xf4' # 0x0093 -> LATIN SMALL LETTER O WITH CIRCUMFLEX
329
+ '\xf6' # 0x0094 -> LATIN SMALL LETTER O WITH DIAERESIS
330
+ '\xf2' # 0x0095 -> LATIN SMALL LETTER O WITH GRAVE
331
+ '\xfb' # 0x0096 -> LATIN SMALL LETTER U WITH CIRCUMFLEX
332
+ '\xf9' # 0x0097 -> LATIN SMALL LETTER U WITH GRAVE
333
+ '\xff' # 0x0098 -> LATIN SMALL LETTER Y WITH DIAERESIS
334
+ '\xd6' # 0x0099 -> LATIN CAPITAL LETTER O WITH DIAERESIS
335
+ '\xdc' # 0x009a -> LATIN CAPITAL LETTER U WITH DIAERESIS
336
+ '\xf8' # 0x009b -> LATIN SMALL LETTER O WITH STROKE
337
+ '\xa3' # 0x009c -> POUND SIGN
338
+ '\xd8' # 0x009d -> LATIN CAPITAL LETTER O WITH STROKE
339
+ '\xd7' # 0x009e -> MULTIPLICATION SIGN
340
+ '\u0192' # 0x009f -> LATIN SMALL LETTER F WITH HOOK
341
+ '\xe1' # 0x00a0 -> LATIN SMALL LETTER A WITH ACUTE
342
+ '\xed' # 0x00a1 -> LATIN SMALL LETTER I WITH ACUTE
343
+ '\xf3' # 0x00a2 -> LATIN SMALL LETTER O WITH ACUTE
344
+ '\xfa' # 0x00a3 -> LATIN SMALL LETTER U WITH ACUTE
345
+ '\xf1' # 0x00a4 -> LATIN SMALL LETTER N WITH TILDE
346
+ '\xd1' # 0x00a5 -> LATIN CAPITAL LETTER N WITH TILDE
347
+ '\xaa' # 0x00a6 -> FEMININE ORDINAL INDICATOR
348
+ '\xba' # 0x00a7 -> MASCULINE ORDINAL INDICATOR
349
+ '\xbf' # 0x00a8 -> INVERTED QUESTION MARK
350
+ '\xae' # 0x00a9 -> REGISTERED SIGN
351
+ '\xac' # 0x00aa -> NOT SIGN
352
+ '\xbd' # 0x00ab -> VULGAR FRACTION ONE HALF
353
+ '\xbc' # 0x00ac -> VULGAR FRACTION ONE QUARTER
354
+ '\xa1' # 0x00ad -> INVERTED EXCLAMATION MARK
355
+ '\xab' # 0x00ae -> LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
356
+ '\xbb' # 0x00af -> RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
357
+ '\u2591' # 0x00b0 -> LIGHT SHADE
358
+ '\u2592' # 0x00b1 -> MEDIUM SHADE
359
+ '\u2593' # 0x00b2 -> DARK SHADE
360
+ '\u2502' # 0x00b3 -> BOX DRAWINGS LIGHT VERTICAL
361
+ '\u2524' # 0x00b4 -> BOX DRAWINGS LIGHT VERTICAL AND LEFT
362
+ '\xc1' # 0x00b5 -> LATIN CAPITAL LETTER A WITH ACUTE
363
+ '\xc2' # 0x00b6 -> LATIN CAPITAL LETTER A WITH CIRCUMFLEX
364
+ '\xc0' # 0x00b7 -> LATIN CAPITAL LETTER A WITH GRAVE
365
+ '\xa9' # 0x00b8 -> COPYRIGHT SIGN
366
+ '\u2563' # 0x00b9 -> BOX DRAWINGS DOUBLE VERTICAL AND LEFT
367
+ '\u2551' # 0x00ba -> BOX DRAWINGS DOUBLE VERTICAL
368
+ '\u2557' # 0x00bb -> BOX DRAWINGS DOUBLE DOWN AND LEFT
369
+ '\u255d' # 0x00bc -> BOX DRAWINGS DOUBLE UP AND LEFT
370
+ '\xa2' # 0x00bd -> CENT SIGN
371
+ '\xa5' # 0x00be -> YEN SIGN
372
+ '\u2510' # 0x00bf -> BOX DRAWINGS LIGHT DOWN AND LEFT
373
+ '\u2514' # 0x00c0 -> BOX DRAWINGS LIGHT UP AND RIGHT
374
+ '\u2534' # 0x00c1 -> BOX DRAWINGS LIGHT UP AND HORIZONTAL
375
+ '\u252c' # 0x00c2 -> BOX DRAWINGS LIGHT DOWN AND HORIZONTAL
376
+ '\u251c' # 0x00c3 -> BOX DRAWINGS LIGHT VERTICAL AND RIGHT
377
+ '\u2500' # 0x00c4 -> BOX DRAWINGS LIGHT HORIZONTAL
378
+ '\u253c' # 0x00c5 -> BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL
379
+ '\xe3' # 0x00c6 -> LATIN SMALL LETTER A WITH TILDE
380
+ '\xc3' # 0x00c7 -> LATIN CAPITAL LETTER A WITH TILDE
381
+ '\u255a' # 0x00c8 -> BOX DRAWINGS DOUBLE UP AND RIGHT
382
+ '\u2554' # 0x00c9 -> BOX DRAWINGS DOUBLE DOWN AND RIGHT
383
+ '\u2569' # 0x00ca -> BOX DRAWINGS DOUBLE UP AND HORIZONTAL
384
+ '\u2566' # 0x00cb -> BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL
385
+ '\u2560' # 0x00cc -> BOX DRAWINGS DOUBLE VERTICAL AND RIGHT
386
+ '\u2550' # 0x00cd -> BOX DRAWINGS DOUBLE HORIZONTAL
387
+ '\u256c' # 0x00ce -> BOX DRAWINGS DOUBLE VERTICAL AND HORIZONTAL
388
+ '\xa4' # 0x00cf -> CURRENCY SIGN
389
+ '\xf0' # 0x00d0 -> LATIN SMALL LETTER ETH
390
+ '\xd0' # 0x00d1 -> LATIN CAPITAL LETTER ETH
391
+ '\xca' # 0x00d2 -> LATIN CAPITAL LETTER E WITH CIRCUMFLEX
392
+ '\xcb' # 0x00d3 -> LATIN CAPITAL LETTER E WITH DIAERESIS
393
+ '\xc8' # 0x00d4 -> LATIN CAPITAL LETTER E WITH GRAVE
394
+ '\u0131' # 0x00d5 -> LATIN SMALL LETTER DOTLESS I
395
+ '\xcd' # 0x00d6 -> LATIN CAPITAL LETTER I WITH ACUTE
396
+ '\xce' # 0x00d7 -> LATIN CAPITAL LETTER I WITH CIRCUMFLEX
397
+ '\xcf' # 0x00d8 -> LATIN CAPITAL LETTER I WITH DIAERESIS
398
+ '\u2518' # 0x00d9 -> BOX DRAWINGS LIGHT UP AND LEFT
399
+ '\u250c' # 0x00da -> BOX DRAWINGS LIGHT DOWN AND RIGHT
400
+ '\u2588' # 0x00db -> FULL BLOCK
401
+ '\u2584' # 0x00dc -> LOWER HALF BLOCK
402
+ '\xa6' # 0x00dd -> BROKEN BAR
403
+ '\xcc' # 0x00de -> LATIN CAPITAL LETTER I WITH GRAVE
404
+ '\u2580' # 0x00df -> UPPER HALF BLOCK
405
+ '\xd3' # 0x00e0 -> LATIN CAPITAL LETTER O WITH ACUTE
406
+ '\xdf' # 0x00e1 -> LATIN SMALL LETTER SHARP S
407
+ '\xd4' # 0x00e2 -> LATIN CAPITAL LETTER O WITH CIRCUMFLEX
408
+ '\xd2' # 0x00e3 -> LATIN CAPITAL LETTER O WITH GRAVE
409
+ '\xf5' # 0x00e4 -> LATIN SMALL LETTER O WITH TILDE
410
+ '\xd5' # 0x00e5 -> LATIN CAPITAL LETTER O WITH TILDE
411
+ '\xb5' # 0x00e6 -> MICRO SIGN
412
+ '\xfe' # 0x00e7 -> LATIN SMALL LETTER THORN
413
+ '\xde' # 0x00e8 -> LATIN CAPITAL LETTER THORN
414
+ '\xda' # 0x00e9 -> LATIN CAPITAL LETTER U WITH ACUTE
415
+ '\xdb' # 0x00ea -> LATIN CAPITAL LETTER U WITH CIRCUMFLEX
416
+ '\xd9' # 0x00eb -> LATIN CAPITAL LETTER U WITH GRAVE
417
+ '\xfd' # 0x00ec -> LATIN SMALL LETTER Y WITH ACUTE
418
+ '\xdd' # 0x00ed -> LATIN CAPITAL LETTER Y WITH ACUTE
419
+ '\xaf' # 0x00ee -> MACRON
420
+ '\xb4' # 0x00ef -> ACUTE ACCENT
421
+ '\xad' # 0x00f0 -> SOFT HYPHEN
422
+ '\xb1' # 0x00f1 -> PLUS-MINUS SIGN
423
+ '\u2017' # 0x00f2 -> DOUBLE LOW LINE
424
+ '\xbe' # 0x00f3 -> VULGAR FRACTION THREE QUARTERS
425
+ '\xb6' # 0x00f4 -> PILCROW SIGN
426
+ '\xa7' # 0x00f5 -> SECTION SIGN
427
+ '\xf7' # 0x00f6 -> DIVISION SIGN
428
+ '\xb8' # 0x00f7 -> CEDILLA
429
+ '\xb0' # 0x00f8 -> DEGREE SIGN
430
+ '\xa8' # 0x00f9 -> DIAERESIS
431
+ '\xb7' # 0x00fa -> MIDDLE DOT
432
+ '\xb9' # 0x00fb -> SUPERSCRIPT ONE
433
+ '\xb3' # 0x00fc -> SUPERSCRIPT THREE
434
+ '\xb2' # 0x00fd -> SUPERSCRIPT TWO
435
+ '\u25a0' # 0x00fe -> BLACK SQUARE
436
+ '\xa0' # 0x00ff -> NO-BREAK SPACE
437
+ )
438
+
439
+ ### Encoding Map
440
+
441
+ encoding_map = {
442
+ 0x0000: 0x0000, # NULL
443
+ 0x0001: 0x0001, # START OF HEADING
444
+ 0x0002: 0x0002, # START OF TEXT
445
+ 0x0003: 0x0003, # END OF TEXT
446
+ 0x0004: 0x0004, # END OF TRANSMISSION
447
+ 0x0005: 0x0005, # ENQUIRY
448
+ 0x0006: 0x0006, # ACKNOWLEDGE
449
+ 0x0007: 0x0007, # BELL
450
+ 0x0008: 0x0008, # BACKSPACE
451
+ 0x0009: 0x0009, # HORIZONTAL TABULATION
452
+ 0x000a: 0x000a, # LINE FEED
453
+ 0x000b: 0x000b, # VERTICAL TABULATION
454
+ 0x000c: 0x000c, # FORM FEED
455
+ 0x000d: 0x000d, # CARRIAGE RETURN
456
+ 0x000e: 0x000e, # SHIFT OUT
457
+ 0x000f: 0x000f, # SHIFT IN
458
+ 0x0010: 0x0010, # DATA LINK ESCAPE
459
+ 0x0011: 0x0011, # DEVICE CONTROL ONE
460
+ 0x0012: 0x0012, # DEVICE CONTROL TWO
461
+ 0x0013: 0x0013, # DEVICE CONTROL THREE
462
+ 0x0014: 0x0014, # DEVICE CONTROL FOUR
463
+ 0x0015: 0x0015, # NEGATIVE ACKNOWLEDGE
464
+ 0x0016: 0x0016, # SYNCHRONOUS IDLE
465
+ 0x0017: 0x0017, # END OF TRANSMISSION BLOCK
466
+ 0x0018: 0x0018, # CANCEL
467
+ 0x0019: 0x0019, # END OF MEDIUM
468
+ 0x001a: 0x001a, # SUBSTITUTE
469
+ 0x001b: 0x001b, # ESCAPE
470
+ 0x001c: 0x001c, # FILE SEPARATOR
471
+ 0x001d: 0x001d, # GROUP SEPARATOR
472
+ 0x001e: 0x001e, # RECORD SEPARATOR
473
+ 0x001f: 0x001f, # UNIT SEPARATOR
474
+ 0x0020: 0x0020, # SPACE
475
+ 0x0021: 0x0021, # EXCLAMATION MARK
476
+ 0x0022: 0x0022, # QUOTATION MARK
477
+ 0x0023: 0x0023, # NUMBER SIGN
478
+ 0x0024: 0x0024, # DOLLAR SIGN
479
+ 0x0025: 0x0025, # PERCENT SIGN
480
+ 0x0026: 0x0026, # AMPERSAND
481
+ 0x0027: 0x0027, # APOSTROPHE
482
+ 0x0028: 0x0028, # LEFT PARENTHESIS
483
+ 0x0029: 0x0029, # RIGHT PARENTHESIS
484
+ 0x002a: 0x002a, # ASTERISK
485
+ 0x002b: 0x002b, # PLUS SIGN
486
+ 0x002c: 0x002c, # COMMA
487
+ 0x002d: 0x002d, # HYPHEN-MINUS
488
+ 0x002e: 0x002e, # FULL STOP
489
+ 0x002f: 0x002f, # SOLIDUS
490
+ 0x0030: 0x0030, # DIGIT ZERO
491
+ 0x0031: 0x0031, # DIGIT ONE
492
+ 0x0032: 0x0032, # DIGIT TWO
493
+ 0x0033: 0x0033, # DIGIT THREE
494
+ 0x0034: 0x0034, # DIGIT FOUR
495
+ 0x0035: 0x0035, # DIGIT FIVE
496
+ 0x0036: 0x0036, # DIGIT SIX
497
+ 0x0037: 0x0037, # DIGIT SEVEN
498
+ 0x0038: 0x0038, # DIGIT EIGHT
499
+ 0x0039: 0x0039, # DIGIT NINE
500
+ 0x003a: 0x003a, # COLON
501
+ 0x003b: 0x003b, # SEMICOLON
502
+ 0x003c: 0x003c, # LESS-THAN SIGN
503
+ 0x003d: 0x003d, # EQUALS SIGN
504
+ 0x003e: 0x003e, # GREATER-THAN SIGN
505
+ 0x003f: 0x003f, # QUESTION MARK
506
+ 0x0040: 0x0040, # COMMERCIAL AT
507
+ 0x0041: 0x0041, # LATIN CAPITAL LETTER A
508
+ 0x0042: 0x0042, # LATIN CAPITAL LETTER B
509
+ 0x0043: 0x0043, # LATIN CAPITAL LETTER C
510
+ 0x0044: 0x0044, # LATIN CAPITAL LETTER D
511
+ 0x0045: 0x0045, # LATIN CAPITAL LETTER E
512
+ 0x0046: 0x0046, # LATIN CAPITAL LETTER F
513
+ 0x0047: 0x0047, # LATIN CAPITAL LETTER G
514
+ 0x0048: 0x0048, # LATIN CAPITAL LETTER H
515
+ 0x0049: 0x0049, # LATIN CAPITAL LETTER I
516
+ 0x004a: 0x004a, # LATIN CAPITAL LETTER J
517
+ 0x004b: 0x004b, # LATIN CAPITAL LETTER K
518
+ 0x004c: 0x004c, # LATIN CAPITAL LETTER L
519
+ 0x004d: 0x004d, # LATIN CAPITAL LETTER M
520
+ 0x004e: 0x004e, # LATIN CAPITAL LETTER N
521
+ 0x004f: 0x004f, # LATIN CAPITAL LETTER O
522
+ 0x0050: 0x0050, # LATIN CAPITAL LETTER P
523
+ 0x0051: 0x0051, # LATIN CAPITAL LETTER Q
524
+ 0x0052: 0x0052, # LATIN CAPITAL LETTER R
525
+ 0x0053: 0x0053, # LATIN CAPITAL LETTER S
526
+ 0x0054: 0x0054, # LATIN CAPITAL LETTER T
527
+ 0x0055: 0x0055, # LATIN CAPITAL LETTER U
528
+ 0x0056: 0x0056, # LATIN CAPITAL LETTER V
529
+ 0x0057: 0x0057, # LATIN CAPITAL LETTER W
530
+ 0x0058: 0x0058, # LATIN CAPITAL LETTER X
531
+ 0x0059: 0x0059, # LATIN CAPITAL LETTER Y
532
+ 0x005a: 0x005a, # LATIN CAPITAL LETTER Z
533
+ 0x005b: 0x005b, # LEFT SQUARE BRACKET
534
+ 0x005c: 0x005c, # REVERSE SOLIDUS
535
+ 0x005d: 0x005d, # RIGHT SQUARE BRACKET
536
+ 0x005e: 0x005e, # CIRCUMFLEX ACCENT
537
+ 0x005f: 0x005f, # LOW LINE
538
+ 0x0060: 0x0060, # GRAVE ACCENT
539
+ 0x0061: 0x0061, # LATIN SMALL LETTER A
540
+ 0x0062: 0x0062, # LATIN SMALL LETTER B
541
+ 0x0063: 0x0063, # LATIN SMALL LETTER C
542
+ 0x0064: 0x0064, # LATIN SMALL LETTER D
543
+ 0x0065: 0x0065, # LATIN SMALL LETTER E
544
+ 0x0066: 0x0066, # LATIN SMALL LETTER F
545
+ 0x0067: 0x0067, # LATIN SMALL LETTER G
546
+ 0x0068: 0x0068, # LATIN SMALL LETTER H
547
+ 0x0069: 0x0069, # LATIN SMALL LETTER I
548
+ 0x006a: 0x006a, # LATIN SMALL LETTER J
549
+ 0x006b: 0x006b, # LATIN SMALL LETTER K
550
+ 0x006c: 0x006c, # LATIN SMALL LETTER L
551
+ 0x006d: 0x006d, # LATIN SMALL LETTER M
552
+ 0x006e: 0x006e, # LATIN SMALL LETTER N
553
+ 0x006f: 0x006f, # LATIN SMALL LETTER O
554
+ 0x0070: 0x0070, # LATIN SMALL LETTER P
555
+ 0x0071: 0x0071, # LATIN SMALL LETTER Q
556
+ 0x0072: 0x0072, # LATIN SMALL LETTER R
557
+ 0x0073: 0x0073, # LATIN SMALL LETTER S
558
+ 0x0074: 0x0074, # LATIN SMALL LETTER T
559
+ 0x0075: 0x0075, # LATIN SMALL LETTER U
560
+ 0x0076: 0x0076, # LATIN SMALL LETTER V
561
+ 0x0077: 0x0077, # LATIN SMALL LETTER W
562
+ 0x0078: 0x0078, # LATIN SMALL LETTER X
563
+ 0x0079: 0x0079, # LATIN SMALL LETTER Y
564
+ 0x007a: 0x007a, # LATIN SMALL LETTER Z
565
+ 0x007b: 0x007b, # LEFT CURLY BRACKET
566
+ 0x007c: 0x007c, # VERTICAL LINE
567
+ 0x007d: 0x007d, # RIGHT CURLY BRACKET
568
+ 0x007e: 0x007e, # TILDE
569
+ 0x007f: 0x007f, # DELETE
570
+ 0x00a0: 0x00ff, # NO-BREAK SPACE
571
+ 0x00a1: 0x00ad, # INVERTED EXCLAMATION MARK
572
+ 0x00a2: 0x00bd, # CENT SIGN
573
+ 0x00a3: 0x009c, # POUND SIGN
574
+ 0x00a4: 0x00cf, # CURRENCY SIGN
575
+ 0x00a5: 0x00be, # YEN SIGN
576
+ 0x00a6: 0x00dd, # BROKEN BAR
577
+ 0x00a7: 0x00f5, # SECTION SIGN
578
+ 0x00a8: 0x00f9, # DIAERESIS
579
+ 0x00a9: 0x00b8, # COPYRIGHT SIGN
580
+ 0x00aa: 0x00a6, # FEMININE ORDINAL INDICATOR
581
+ 0x00ab: 0x00ae, # LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
582
+ 0x00ac: 0x00aa, # NOT SIGN
583
+ 0x00ad: 0x00f0, # SOFT HYPHEN
584
+ 0x00ae: 0x00a9, # REGISTERED SIGN
585
+ 0x00af: 0x00ee, # MACRON
586
+ 0x00b0: 0x00f8, # DEGREE SIGN
587
+ 0x00b1: 0x00f1, # PLUS-MINUS SIGN
588
+ 0x00b2: 0x00fd, # SUPERSCRIPT TWO
589
+ 0x00b3: 0x00fc, # SUPERSCRIPT THREE
590
+ 0x00b4: 0x00ef, # ACUTE ACCENT
591
+ 0x00b5: 0x00e6, # MICRO SIGN
592
+ 0x00b6: 0x00f4, # PILCROW SIGN
593
+ 0x00b7: 0x00fa, # MIDDLE DOT
594
+ 0x00b8: 0x00f7, # CEDILLA
595
+ 0x00b9: 0x00fb, # SUPERSCRIPT ONE
596
+ 0x00ba: 0x00a7, # MASCULINE ORDINAL INDICATOR
597
+ 0x00bb: 0x00af, # RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
598
+ 0x00bc: 0x00ac, # VULGAR FRACTION ONE QUARTER
599
+ 0x00bd: 0x00ab, # VULGAR FRACTION ONE HALF
600
+ 0x00be: 0x00f3, # VULGAR FRACTION THREE QUARTERS
601
+ 0x00bf: 0x00a8, # INVERTED QUESTION MARK
602
+ 0x00c0: 0x00b7, # LATIN CAPITAL LETTER A WITH GRAVE
603
+ 0x00c1: 0x00b5, # LATIN CAPITAL LETTER A WITH ACUTE
604
+ 0x00c2: 0x00b6, # LATIN CAPITAL LETTER A WITH CIRCUMFLEX
605
+ 0x00c3: 0x00c7, # LATIN CAPITAL LETTER A WITH TILDE
606
+ 0x00c4: 0x008e, # LATIN CAPITAL LETTER A WITH DIAERESIS
607
+ 0x00c5: 0x008f, # LATIN CAPITAL LETTER A WITH RING ABOVE
608
+ 0x00c6: 0x0092, # LATIN CAPITAL LIGATURE AE
609
+ 0x00c7: 0x0080, # LATIN CAPITAL LETTER C WITH CEDILLA
610
+ 0x00c8: 0x00d4, # LATIN CAPITAL LETTER E WITH GRAVE
611
+ 0x00c9: 0x0090, # LATIN CAPITAL LETTER E WITH ACUTE
612
+ 0x00ca: 0x00d2, # LATIN CAPITAL LETTER E WITH CIRCUMFLEX
613
+ 0x00cb: 0x00d3, # LATIN CAPITAL LETTER E WITH DIAERESIS
614
+ 0x00cc: 0x00de, # LATIN CAPITAL LETTER I WITH GRAVE
615
+ 0x00cd: 0x00d6, # LATIN CAPITAL LETTER I WITH ACUTE
616
+ 0x00ce: 0x00d7, # LATIN CAPITAL LETTER I WITH CIRCUMFLEX
617
+ 0x00cf: 0x00d8, # LATIN CAPITAL LETTER I WITH DIAERESIS
618
+ 0x00d0: 0x00d1, # LATIN CAPITAL LETTER ETH
619
+ 0x00d1: 0x00a5, # LATIN CAPITAL LETTER N WITH TILDE
620
+ 0x00d2: 0x00e3, # LATIN CAPITAL LETTER O WITH GRAVE
621
+ 0x00d3: 0x00e0, # LATIN CAPITAL LETTER O WITH ACUTE
622
+ 0x00d4: 0x00e2, # LATIN CAPITAL LETTER O WITH CIRCUMFLEX
623
+ 0x00d5: 0x00e5, # LATIN CAPITAL LETTER O WITH TILDE
624
+ 0x00d6: 0x0099, # LATIN CAPITAL LETTER O WITH DIAERESIS
625
+ 0x00d7: 0x009e, # MULTIPLICATION SIGN
626
+ 0x00d8: 0x009d, # LATIN CAPITAL LETTER O WITH STROKE
627
+ 0x00d9: 0x00eb, # LATIN CAPITAL LETTER U WITH GRAVE
628
+ 0x00da: 0x00e9, # LATIN CAPITAL LETTER U WITH ACUTE
629
+ 0x00db: 0x00ea, # LATIN CAPITAL LETTER U WITH CIRCUMFLEX
630
+ 0x00dc: 0x009a, # LATIN CAPITAL LETTER U WITH DIAERESIS
631
+ 0x00dd: 0x00ed, # LATIN CAPITAL LETTER Y WITH ACUTE
632
+ 0x00de: 0x00e8, # LATIN CAPITAL LETTER THORN
633
+ 0x00df: 0x00e1, # LATIN SMALL LETTER SHARP S
634
+ 0x00e0: 0x0085, # LATIN SMALL LETTER A WITH GRAVE
635
+ 0x00e1: 0x00a0, # LATIN SMALL LETTER A WITH ACUTE
636
+ 0x00e2: 0x0083, # LATIN SMALL LETTER A WITH CIRCUMFLEX
637
+ 0x00e3: 0x00c6, # LATIN SMALL LETTER A WITH TILDE
638
+ 0x00e4: 0x0084, # LATIN SMALL LETTER A WITH DIAERESIS
639
+ 0x00e5: 0x0086, # LATIN SMALL LETTER A WITH RING ABOVE
640
+ 0x00e6: 0x0091, # LATIN SMALL LIGATURE AE
641
+ 0x00e7: 0x0087, # LATIN SMALL LETTER C WITH CEDILLA
642
+ 0x00e8: 0x008a, # LATIN SMALL LETTER E WITH GRAVE
643
+ 0x00e9: 0x0082, # LATIN SMALL LETTER E WITH ACUTE
644
+ 0x00ea: 0x0088, # LATIN SMALL LETTER E WITH CIRCUMFLEX
645
+ 0x00eb: 0x0089, # LATIN SMALL LETTER E WITH DIAERESIS
646
+ 0x00ec: 0x008d, # LATIN SMALL LETTER I WITH GRAVE
647
+ 0x00ed: 0x00a1, # LATIN SMALL LETTER I WITH ACUTE
648
+ 0x00ee: 0x008c, # LATIN SMALL LETTER I WITH CIRCUMFLEX
649
+ 0x00ef: 0x008b, # LATIN SMALL LETTER I WITH DIAERESIS
650
+ 0x00f0: 0x00d0, # LATIN SMALL LETTER ETH
651
+ 0x00f1: 0x00a4, # LATIN SMALL LETTER N WITH TILDE
652
+ 0x00f2: 0x0095, # LATIN SMALL LETTER O WITH GRAVE
653
+ 0x00f3: 0x00a2, # LATIN SMALL LETTER O WITH ACUTE
654
+ 0x00f4: 0x0093, # LATIN SMALL LETTER O WITH CIRCUMFLEX
655
+ 0x00f5: 0x00e4, # LATIN SMALL LETTER O WITH TILDE
656
+ 0x00f6: 0x0094, # LATIN SMALL LETTER O WITH DIAERESIS
657
+ 0x00f7: 0x00f6, # DIVISION SIGN
658
+ 0x00f8: 0x009b, # LATIN SMALL LETTER O WITH STROKE
659
+ 0x00f9: 0x0097, # LATIN SMALL LETTER U WITH GRAVE
660
+ 0x00fa: 0x00a3, # LATIN SMALL LETTER U WITH ACUTE
661
+ 0x00fb: 0x0096, # LATIN SMALL LETTER U WITH CIRCUMFLEX
662
+ 0x00fc: 0x0081, # LATIN SMALL LETTER U WITH DIAERESIS
663
+ 0x00fd: 0x00ec, # LATIN SMALL LETTER Y WITH ACUTE
664
+ 0x00fe: 0x00e7, # LATIN SMALL LETTER THORN
665
+ 0x00ff: 0x0098, # LATIN SMALL LETTER Y WITH DIAERESIS
666
+ 0x0131: 0x00d5, # LATIN SMALL LETTER DOTLESS I
667
+ 0x0192: 0x009f, # LATIN SMALL LETTER F WITH HOOK
668
+ 0x2017: 0x00f2, # DOUBLE LOW LINE
669
+ 0x2500: 0x00c4, # BOX DRAWINGS LIGHT HORIZONTAL
670
+ 0x2502: 0x00b3, # BOX DRAWINGS LIGHT VERTICAL
671
+ 0x250c: 0x00da, # BOX DRAWINGS LIGHT DOWN AND RIGHT
672
+ 0x2510: 0x00bf, # BOX DRAWINGS LIGHT DOWN AND LEFT
673
+ 0x2514: 0x00c0, # BOX DRAWINGS LIGHT UP AND RIGHT
674
+ 0x2518: 0x00d9, # BOX DRAWINGS LIGHT UP AND LEFT
675
+ 0x251c: 0x00c3, # BOX DRAWINGS LIGHT VERTICAL AND RIGHT
676
+ 0x2524: 0x00b4, # BOX DRAWINGS LIGHT VERTICAL AND LEFT
677
+ 0x252c: 0x00c2, # BOX DRAWINGS LIGHT DOWN AND HORIZONTAL
678
+ 0x2534: 0x00c1, # BOX DRAWINGS LIGHT UP AND HORIZONTAL
679
+ 0x253c: 0x00c5, # BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL
680
+ 0x2550: 0x00cd, # BOX DRAWINGS DOUBLE HORIZONTAL
681
+ 0x2551: 0x00ba, # BOX DRAWINGS DOUBLE VERTICAL
682
+ 0x2554: 0x00c9, # BOX DRAWINGS DOUBLE DOWN AND RIGHT
683
+ 0x2557: 0x00bb, # BOX DRAWINGS DOUBLE DOWN AND LEFT
684
+ 0x255a: 0x00c8, # BOX DRAWINGS DOUBLE UP AND RIGHT
685
+ 0x255d: 0x00bc, # BOX DRAWINGS DOUBLE UP AND LEFT
686
+ 0x2560: 0x00cc, # BOX DRAWINGS DOUBLE VERTICAL AND RIGHT
687
+ 0x2563: 0x00b9, # BOX DRAWINGS DOUBLE VERTICAL AND LEFT
688
+ 0x2566: 0x00cb, # BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL
689
+ 0x2569: 0x00ca, # BOX DRAWINGS DOUBLE UP AND HORIZONTAL
690
+ 0x256c: 0x00ce, # BOX DRAWINGS DOUBLE VERTICAL AND HORIZONTAL
691
+ 0x2580: 0x00df, # UPPER HALF BLOCK
692
+ 0x2584: 0x00dc, # LOWER HALF BLOCK
693
+ 0x2588: 0x00db, # FULL BLOCK
694
+ 0x2591: 0x00b0, # LIGHT SHADE
695
+ 0x2592: 0x00b1, # MEDIUM SHADE
696
+ 0x2593: 0x00b2, # DARK SHADE
697
+ 0x25a0: 0x00fe, # BLACK SQUARE
698
+ }
parrot/lib/python3.10/encodings/cp855.py ADDED
@@ -0,0 +1,698 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP855.TXT' with gencodec.py.
2
+
3
+ """#"
4
+
5
+ import codecs
6
+
7
+ ### Codec APIs
8
+
9
+ class Codec(codecs.Codec):
10
+
11
+ def encode(self,input,errors='strict'):
12
+ return codecs.charmap_encode(input,errors,encoding_map)
13
+
14
+ def decode(self,input,errors='strict'):
15
+ return codecs.charmap_decode(input,errors,decoding_table)
16
+
17
+ class IncrementalEncoder(codecs.IncrementalEncoder):
18
+ def encode(self, input, final=False):
19
+ return codecs.charmap_encode(input,self.errors,encoding_map)[0]
20
+
21
+ class IncrementalDecoder(codecs.IncrementalDecoder):
22
+ def decode(self, input, final=False):
23
+ return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
+
25
+ class StreamWriter(Codec,codecs.StreamWriter):
26
+ pass
27
+
28
+ class StreamReader(Codec,codecs.StreamReader):
29
+ pass
30
+
31
+ ### encodings module API
32
+
33
+ def getregentry():
34
+ return codecs.CodecInfo(
35
+ name='cp855',
36
+ encode=Codec().encode,
37
+ decode=Codec().decode,
38
+ incrementalencoder=IncrementalEncoder,
39
+ incrementaldecoder=IncrementalDecoder,
40
+ streamreader=StreamReader,
41
+ streamwriter=StreamWriter,
42
+ )
43
+
44
+ ### Decoding Map
45
+
46
+ decoding_map = codecs.make_identity_dict(range(256))
47
+ decoding_map.update({
48
+ 0x0080: 0x0452, # CYRILLIC SMALL LETTER DJE
49
+ 0x0081: 0x0402, # CYRILLIC CAPITAL LETTER DJE
50
+ 0x0082: 0x0453, # CYRILLIC SMALL LETTER GJE
51
+ 0x0083: 0x0403, # CYRILLIC CAPITAL LETTER GJE
52
+ 0x0084: 0x0451, # CYRILLIC SMALL LETTER IO
53
+ 0x0085: 0x0401, # CYRILLIC CAPITAL LETTER IO
54
+ 0x0086: 0x0454, # CYRILLIC SMALL LETTER UKRAINIAN IE
55
+ 0x0087: 0x0404, # CYRILLIC CAPITAL LETTER UKRAINIAN IE
56
+ 0x0088: 0x0455, # CYRILLIC SMALL LETTER DZE
57
+ 0x0089: 0x0405, # CYRILLIC CAPITAL LETTER DZE
58
+ 0x008a: 0x0456, # CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I
59
+ 0x008b: 0x0406, # CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I
60
+ 0x008c: 0x0457, # CYRILLIC SMALL LETTER YI
61
+ 0x008d: 0x0407, # CYRILLIC CAPITAL LETTER YI
62
+ 0x008e: 0x0458, # CYRILLIC SMALL LETTER JE
63
+ 0x008f: 0x0408, # CYRILLIC CAPITAL LETTER JE
64
+ 0x0090: 0x0459, # CYRILLIC SMALL LETTER LJE
65
+ 0x0091: 0x0409, # CYRILLIC CAPITAL LETTER LJE
66
+ 0x0092: 0x045a, # CYRILLIC SMALL LETTER NJE
67
+ 0x0093: 0x040a, # CYRILLIC CAPITAL LETTER NJE
68
+ 0x0094: 0x045b, # CYRILLIC SMALL LETTER TSHE
69
+ 0x0095: 0x040b, # CYRILLIC CAPITAL LETTER TSHE
70
+ 0x0096: 0x045c, # CYRILLIC SMALL LETTER KJE
71
+ 0x0097: 0x040c, # CYRILLIC CAPITAL LETTER KJE
72
+ 0x0098: 0x045e, # CYRILLIC SMALL LETTER SHORT U
73
+ 0x0099: 0x040e, # CYRILLIC CAPITAL LETTER SHORT U
74
+ 0x009a: 0x045f, # CYRILLIC SMALL LETTER DZHE
75
+ 0x009b: 0x040f, # CYRILLIC CAPITAL LETTER DZHE
76
+ 0x009c: 0x044e, # CYRILLIC SMALL LETTER YU
77
+ 0x009d: 0x042e, # CYRILLIC CAPITAL LETTER YU
78
+ 0x009e: 0x044a, # CYRILLIC SMALL LETTER HARD SIGN
79
+ 0x009f: 0x042a, # CYRILLIC CAPITAL LETTER HARD SIGN
80
+ 0x00a0: 0x0430, # CYRILLIC SMALL LETTER A
81
+ 0x00a1: 0x0410, # CYRILLIC CAPITAL LETTER A
82
+ 0x00a2: 0x0431, # CYRILLIC SMALL LETTER BE
83
+ 0x00a3: 0x0411, # CYRILLIC CAPITAL LETTER BE
84
+ 0x00a4: 0x0446, # CYRILLIC SMALL LETTER TSE
85
+ 0x00a5: 0x0426, # CYRILLIC CAPITAL LETTER TSE
86
+ 0x00a6: 0x0434, # CYRILLIC SMALL LETTER DE
87
+ 0x00a7: 0x0414, # CYRILLIC CAPITAL LETTER DE
88
+ 0x00a8: 0x0435, # CYRILLIC SMALL LETTER IE
89
+ 0x00a9: 0x0415, # CYRILLIC CAPITAL LETTER IE
90
+ 0x00aa: 0x0444, # CYRILLIC SMALL LETTER EF
91
+ 0x00ab: 0x0424, # CYRILLIC CAPITAL LETTER EF
92
+ 0x00ac: 0x0433, # CYRILLIC SMALL LETTER GHE
93
+ 0x00ad: 0x0413, # CYRILLIC CAPITAL LETTER GHE
94
+ 0x00ae: 0x00ab, # LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
95
+ 0x00af: 0x00bb, # RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
96
+ 0x00b0: 0x2591, # LIGHT SHADE
97
+ 0x00b1: 0x2592, # MEDIUM SHADE
98
+ 0x00b2: 0x2593, # DARK SHADE
99
+ 0x00b3: 0x2502, # BOX DRAWINGS LIGHT VERTICAL
100
+ 0x00b4: 0x2524, # BOX DRAWINGS LIGHT VERTICAL AND LEFT
101
+ 0x00b5: 0x0445, # CYRILLIC SMALL LETTER HA
102
+ 0x00b6: 0x0425, # CYRILLIC CAPITAL LETTER HA
103
+ 0x00b7: 0x0438, # CYRILLIC SMALL LETTER I
104
+ 0x00b8: 0x0418, # CYRILLIC CAPITAL LETTER I
105
+ 0x00b9: 0x2563, # BOX DRAWINGS DOUBLE VERTICAL AND LEFT
106
+ 0x00ba: 0x2551, # BOX DRAWINGS DOUBLE VERTICAL
107
+ 0x00bb: 0x2557, # BOX DRAWINGS DOUBLE DOWN AND LEFT
108
+ 0x00bc: 0x255d, # BOX DRAWINGS DOUBLE UP AND LEFT
109
+ 0x00bd: 0x0439, # CYRILLIC SMALL LETTER SHORT I
110
+ 0x00be: 0x0419, # CYRILLIC CAPITAL LETTER SHORT I
111
+ 0x00bf: 0x2510, # BOX DRAWINGS LIGHT DOWN AND LEFT
112
+ 0x00c0: 0x2514, # BOX DRAWINGS LIGHT UP AND RIGHT
113
+ 0x00c1: 0x2534, # BOX DRAWINGS LIGHT UP AND HORIZONTAL
114
+ 0x00c2: 0x252c, # BOX DRAWINGS LIGHT DOWN AND HORIZONTAL
115
+ 0x00c3: 0x251c, # BOX DRAWINGS LIGHT VERTICAL AND RIGHT
116
+ 0x00c4: 0x2500, # BOX DRAWINGS LIGHT HORIZONTAL
117
+ 0x00c5: 0x253c, # BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL
118
+ 0x00c6: 0x043a, # CYRILLIC SMALL LETTER KA
119
+ 0x00c7: 0x041a, # CYRILLIC CAPITAL LETTER KA
120
+ 0x00c8: 0x255a, # BOX DRAWINGS DOUBLE UP AND RIGHT
121
+ 0x00c9: 0x2554, # BOX DRAWINGS DOUBLE DOWN AND RIGHT
122
+ 0x00ca: 0x2569, # BOX DRAWINGS DOUBLE UP AND HORIZONTAL
123
+ 0x00cb: 0x2566, # BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL
124
+ 0x00cc: 0x2560, # BOX DRAWINGS DOUBLE VERTICAL AND RIGHT
125
+ 0x00cd: 0x2550, # BOX DRAWINGS DOUBLE HORIZONTAL
126
+ 0x00ce: 0x256c, # BOX DRAWINGS DOUBLE VERTICAL AND HORIZONTAL
127
+ 0x00cf: 0x00a4, # CURRENCY SIGN
128
+ 0x00d0: 0x043b, # CYRILLIC SMALL LETTER EL
129
+ 0x00d1: 0x041b, # CYRILLIC CAPITAL LETTER EL
130
+ 0x00d2: 0x043c, # CYRILLIC SMALL LETTER EM
131
+ 0x00d3: 0x041c, # CYRILLIC CAPITAL LETTER EM
132
+ 0x00d4: 0x043d, # CYRILLIC SMALL LETTER EN
133
+ 0x00d5: 0x041d, # CYRILLIC CAPITAL LETTER EN
134
+ 0x00d6: 0x043e, # CYRILLIC SMALL LETTER O
135
+ 0x00d7: 0x041e, # CYRILLIC CAPITAL LETTER O
136
+ 0x00d8: 0x043f, # CYRILLIC SMALL LETTER PE
137
+ 0x00d9: 0x2518, # BOX DRAWINGS LIGHT UP AND LEFT
138
+ 0x00da: 0x250c, # BOX DRAWINGS LIGHT DOWN AND RIGHT
139
+ 0x00db: 0x2588, # FULL BLOCK
140
+ 0x00dc: 0x2584, # LOWER HALF BLOCK
141
+ 0x00dd: 0x041f, # CYRILLIC CAPITAL LETTER PE
142
+ 0x00de: 0x044f, # CYRILLIC SMALL LETTER YA
143
+ 0x00df: 0x2580, # UPPER HALF BLOCK
144
+ 0x00e0: 0x042f, # CYRILLIC CAPITAL LETTER YA
145
+ 0x00e1: 0x0440, # CYRILLIC SMALL LETTER ER
146
+ 0x00e2: 0x0420, # CYRILLIC CAPITAL LETTER ER
147
+ 0x00e3: 0x0441, # CYRILLIC SMALL LETTER ES
148
+ 0x00e4: 0x0421, # CYRILLIC CAPITAL LETTER ES
149
+ 0x00e5: 0x0442, # CYRILLIC SMALL LETTER TE
150
+ 0x00e6: 0x0422, # CYRILLIC CAPITAL LETTER TE
151
+ 0x00e7: 0x0443, # CYRILLIC SMALL LETTER U
152
+ 0x00e8: 0x0423, # CYRILLIC CAPITAL LETTER U
153
+ 0x00e9: 0x0436, # CYRILLIC SMALL LETTER ZHE
154
+ 0x00ea: 0x0416, # CYRILLIC CAPITAL LETTER ZHE
155
+ 0x00eb: 0x0432, # CYRILLIC SMALL LETTER VE
156
+ 0x00ec: 0x0412, # CYRILLIC CAPITAL LETTER VE
157
+ 0x00ed: 0x044c, # CYRILLIC SMALL LETTER SOFT SIGN
158
+ 0x00ee: 0x042c, # CYRILLIC CAPITAL LETTER SOFT SIGN
159
+ 0x00ef: 0x2116, # NUMERO SIGN
160
+ 0x00f0: 0x00ad, # SOFT HYPHEN
161
+ 0x00f1: 0x044b, # CYRILLIC SMALL LETTER YERU
162
+ 0x00f2: 0x042b, # CYRILLIC CAPITAL LETTER YERU
163
+ 0x00f3: 0x0437, # CYRILLIC SMALL LETTER ZE
164
+ 0x00f4: 0x0417, # CYRILLIC CAPITAL LETTER ZE
165
+ 0x00f5: 0x0448, # CYRILLIC SMALL LETTER SHA
166
+ 0x00f6: 0x0428, # CYRILLIC CAPITAL LETTER SHA
167
+ 0x00f7: 0x044d, # CYRILLIC SMALL LETTER E
168
+ 0x00f8: 0x042d, # CYRILLIC CAPITAL LETTER E
169
+ 0x00f9: 0x0449, # CYRILLIC SMALL LETTER SHCHA
170
+ 0x00fa: 0x0429, # CYRILLIC CAPITAL LETTER SHCHA
171
+ 0x00fb: 0x0447, # CYRILLIC SMALL LETTER CHE
172
+ 0x00fc: 0x0427, # CYRILLIC CAPITAL LETTER CHE
173
+ 0x00fd: 0x00a7, # SECTION SIGN
174
+ 0x00fe: 0x25a0, # BLACK SQUARE
175
+ 0x00ff: 0x00a0, # NO-BREAK SPACE
176
+ })
177
+
178
+ ### Decoding Table
179
+
180
+ decoding_table = (
181
+ '\x00' # 0x0000 -> NULL
182
+ '\x01' # 0x0001 -> START OF HEADING
183
+ '\x02' # 0x0002 -> START OF TEXT
184
+ '\x03' # 0x0003 -> END OF TEXT
185
+ '\x04' # 0x0004 -> END OF TRANSMISSION
186
+ '\x05' # 0x0005 -> ENQUIRY
187
+ '\x06' # 0x0006 -> ACKNOWLEDGE
188
+ '\x07' # 0x0007 -> BELL
189
+ '\x08' # 0x0008 -> BACKSPACE
190
+ '\t' # 0x0009 -> HORIZONTAL TABULATION
191
+ '\n' # 0x000a -> LINE FEED
192
+ '\x0b' # 0x000b -> VERTICAL TABULATION
193
+ '\x0c' # 0x000c -> FORM FEED
194
+ '\r' # 0x000d -> CARRIAGE RETURN
195
+ '\x0e' # 0x000e -> SHIFT OUT
196
+ '\x0f' # 0x000f -> SHIFT IN
197
+ '\x10' # 0x0010 -> DATA LINK ESCAPE
198
+ '\x11' # 0x0011 -> DEVICE CONTROL ONE
199
+ '\x12' # 0x0012 -> DEVICE CONTROL TWO
200
+ '\x13' # 0x0013 -> DEVICE CONTROL THREE
201
+ '\x14' # 0x0014 -> DEVICE CONTROL FOUR
202
+ '\x15' # 0x0015 -> NEGATIVE ACKNOWLEDGE
203
+ '\x16' # 0x0016 -> SYNCHRONOUS IDLE
204
+ '\x17' # 0x0017 -> END OF TRANSMISSION BLOCK
205
+ '\x18' # 0x0018 -> CANCEL
206
+ '\x19' # 0x0019 -> END OF MEDIUM
207
+ '\x1a' # 0x001a -> SUBSTITUTE
208
+ '\x1b' # 0x001b -> ESCAPE
209
+ '\x1c' # 0x001c -> FILE SEPARATOR
210
+ '\x1d' # 0x001d -> GROUP SEPARATOR
211
+ '\x1e' # 0x001e -> RECORD SEPARATOR
212
+ '\x1f' # 0x001f -> UNIT SEPARATOR
213
+ ' ' # 0x0020 -> SPACE
214
+ '!' # 0x0021 -> EXCLAMATION MARK
215
+ '"' # 0x0022 -> QUOTATION MARK
216
+ '#' # 0x0023 -> NUMBER SIGN
217
+ '$' # 0x0024 -> DOLLAR SIGN
218
+ '%' # 0x0025 -> PERCENT SIGN
219
+ '&' # 0x0026 -> AMPERSAND
220
+ "'" # 0x0027 -> APOSTROPHE
221
+ '(' # 0x0028 -> LEFT PARENTHESIS
222
+ ')' # 0x0029 -> RIGHT PARENTHESIS
223
+ '*' # 0x002a -> ASTERISK
224
+ '+' # 0x002b -> PLUS SIGN
225
+ ',' # 0x002c -> COMMA
226
+ '-' # 0x002d -> HYPHEN-MINUS
227
+ '.' # 0x002e -> FULL STOP
228
+ '/' # 0x002f -> SOLIDUS
229
+ '0' # 0x0030 -> DIGIT ZERO
230
+ '1' # 0x0031 -> DIGIT ONE
231
+ '2' # 0x0032 -> DIGIT TWO
232
+ '3' # 0x0033 -> DIGIT THREE
233
+ '4' # 0x0034 -> DIGIT FOUR
234
+ '5' # 0x0035 -> DIGIT FIVE
235
+ '6' # 0x0036 -> DIGIT SIX
236
+ '7' # 0x0037 -> DIGIT SEVEN
237
+ '8' # 0x0038 -> DIGIT EIGHT
238
+ '9' # 0x0039 -> DIGIT NINE
239
+ ':' # 0x003a -> COLON
240
+ ';' # 0x003b -> SEMICOLON
241
+ '<' # 0x003c -> LESS-THAN SIGN
242
+ '=' # 0x003d -> EQUALS SIGN
243
+ '>' # 0x003e -> GREATER-THAN SIGN
244
+ '?' # 0x003f -> QUESTION MARK
245
+ '@' # 0x0040 -> COMMERCIAL AT
246
+ 'A' # 0x0041 -> LATIN CAPITAL LETTER A
247
+ 'B' # 0x0042 -> LATIN CAPITAL LETTER B
248
+ 'C' # 0x0043 -> LATIN CAPITAL LETTER C
249
+ 'D' # 0x0044 -> LATIN CAPITAL LETTER D
250
+ 'E' # 0x0045 -> LATIN CAPITAL LETTER E
251
+ 'F' # 0x0046 -> LATIN CAPITAL LETTER F
252
+ 'G' # 0x0047 -> LATIN CAPITAL LETTER G
253
+ 'H' # 0x0048 -> LATIN CAPITAL LETTER H
254
+ 'I' # 0x0049 -> LATIN CAPITAL LETTER I
255
+ 'J' # 0x004a -> LATIN CAPITAL LETTER J
256
+ 'K' # 0x004b -> LATIN CAPITAL LETTER K
257
+ 'L' # 0x004c -> LATIN CAPITAL LETTER L
258
+ 'M' # 0x004d -> LATIN CAPITAL LETTER M
259
+ 'N' # 0x004e -> LATIN CAPITAL LETTER N
260
+ 'O' # 0x004f -> LATIN CAPITAL LETTER O
261
+ 'P' # 0x0050 -> LATIN CAPITAL LETTER P
262
+ 'Q' # 0x0051 -> LATIN CAPITAL LETTER Q
263
+ 'R' # 0x0052 -> LATIN CAPITAL LETTER R
264
+ 'S' # 0x0053 -> LATIN CAPITAL LETTER S
265
+ 'T' # 0x0054 -> LATIN CAPITAL LETTER T
266
+ 'U' # 0x0055 -> LATIN CAPITAL LETTER U
267
+ 'V' # 0x0056 -> LATIN CAPITAL LETTER V
268
+ 'W' # 0x0057 -> LATIN CAPITAL LETTER W
269
+ 'X' # 0x0058 -> LATIN CAPITAL LETTER X
270
+ 'Y' # 0x0059 -> LATIN CAPITAL LETTER Y
271
+ 'Z' # 0x005a -> LATIN CAPITAL LETTER Z
272
+ '[' # 0x005b -> LEFT SQUARE BRACKET
273
+ '\\' # 0x005c -> REVERSE SOLIDUS
274
+ ']' # 0x005d -> RIGHT SQUARE BRACKET
275
+ '^' # 0x005e -> CIRCUMFLEX ACCENT
276
+ '_' # 0x005f -> LOW LINE
277
+ '`' # 0x0060 -> GRAVE ACCENT
278
+ 'a' # 0x0061 -> LATIN SMALL LETTER A
279
+ 'b' # 0x0062 -> LATIN SMALL LETTER B
280
+ 'c' # 0x0063 -> LATIN SMALL LETTER C
281
+ 'd' # 0x0064 -> LATIN SMALL LETTER D
282
+ 'e' # 0x0065 -> LATIN SMALL LETTER E
283
+ 'f' # 0x0066 -> LATIN SMALL LETTER F
284
+ 'g' # 0x0067 -> LATIN SMALL LETTER G
285
+ 'h' # 0x0068 -> LATIN SMALL LETTER H
286
+ 'i' # 0x0069 -> LATIN SMALL LETTER I
287
+ 'j' # 0x006a -> LATIN SMALL LETTER J
288
+ 'k' # 0x006b -> LATIN SMALL LETTER K
289
+ 'l' # 0x006c -> LATIN SMALL LETTER L
290
+ 'm' # 0x006d -> LATIN SMALL LETTER M
291
+ 'n' # 0x006e -> LATIN SMALL LETTER N
292
+ 'o' # 0x006f -> LATIN SMALL LETTER O
293
+ 'p' # 0x0070 -> LATIN SMALL LETTER P
294
+ 'q' # 0x0071 -> LATIN SMALL LETTER Q
295
+ 'r' # 0x0072 -> LATIN SMALL LETTER R
296
+ 's' # 0x0073 -> LATIN SMALL LETTER S
297
+ 't' # 0x0074 -> LATIN SMALL LETTER T
298
+ 'u' # 0x0075 -> LATIN SMALL LETTER U
299
+ 'v' # 0x0076 -> LATIN SMALL LETTER V
300
+ 'w' # 0x0077 -> LATIN SMALL LETTER W
301
+ 'x' # 0x0078 -> LATIN SMALL LETTER X
302
+ 'y' # 0x0079 -> LATIN SMALL LETTER Y
303
+ 'z' # 0x007a -> LATIN SMALL LETTER Z
304
+ '{' # 0x007b -> LEFT CURLY BRACKET
305
+ '|' # 0x007c -> VERTICAL LINE
306
+ '}' # 0x007d -> RIGHT CURLY BRACKET
307
+ '~' # 0x007e -> TILDE
308
+ '\x7f' # 0x007f -> DELETE
309
+ '\u0452' # 0x0080 -> CYRILLIC SMALL LETTER DJE
310
+ '\u0402' # 0x0081 -> CYRILLIC CAPITAL LETTER DJE
311
+ '\u0453' # 0x0082 -> CYRILLIC SMALL LETTER GJE
312
+ '\u0403' # 0x0083 -> CYRILLIC CAPITAL LETTER GJE
313
+ '\u0451' # 0x0084 -> CYRILLIC SMALL LETTER IO
314
+ '\u0401' # 0x0085 -> CYRILLIC CAPITAL LETTER IO
315
+ '\u0454' # 0x0086 -> CYRILLIC SMALL LETTER UKRAINIAN IE
316
+ '\u0404' # 0x0087 -> CYRILLIC CAPITAL LETTER UKRAINIAN IE
317
+ '\u0455' # 0x0088 -> CYRILLIC SMALL LETTER DZE
318
+ '\u0405' # 0x0089 -> CYRILLIC CAPITAL LETTER DZE
319
+ '\u0456' # 0x008a -> CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I
320
+ '\u0406' # 0x008b -> CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I
321
+ '\u0457' # 0x008c -> CYRILLIC SMALL LETTER YI
322
+ '\u0407' # 0x008d -> CYRILLIC CAPITAL LETTER YI
323
+ '\u0458' # 0x008e -> CYRILLIC SMALL LETTER JE
324
+ '\u0408' # 0x008f -> CYRILLIC CAPITAL LETTER JE
325
+ '\u0459' # 0x0090 -> CYRILLIC SMALL LETTER LJE
326
+ '\u0409' # 0x0091 -> CYRILLIC CAPITAL LETTER LJE
327
+ '\u045a' # 0x0092 -> CYRILLIC SMALL LETTER NJE
328
+ '\u040a' # 0x0093 -> CYRILLIC CAPITAL LETTER NJE
329
+ '\u045b' # 0x0094 -> CYRILLIC SMALL LETTER TSHE
330
+ '\u040b' # 0x0095 -> CYRILLIC CAPITAL LETTER TSHE
331
+ '\u045c' # 0x0096 -> CYRILLIC SMALL LETTER KJE
332
+ '\u040c' # 0x0097 -> CYRILLIC CAPITAL LETTER KJE
333
+ '\u045e' # 0x0098 -> CYRILLIC SMALL LETTER SHORT U
334
+ '\u040e' # 0x0099 -> CYRILLIC CAPITAL LETTER SHORT U
335
+ '\u045f' # 0x009a -> CYRILLIC SMALL LETTER DZHE
336
+ '\u040f' # 0x009b -> CYRILLIC CAPITAL LETTER DZHE
337
+ '\u044e' # 0x009c -> CYRILLIC SMALL LETTER YU
338
+ '\u042e' # 0x009d -> CYRILLIC CAPITAL LETTER YU
339
+ '\u044a' # 0x009e -> CYRILLIC SMALL LETTER HARD SIGN
340
+ '\u042a' # 0x009f -> CYRILLIC CAPITAL LETTER HARD SIGN
341
+ '\u0430' # 0x00a0 -> CYRILLIC SMALL LETTER A
342
+ '\u0410' # 0x00a1 -> CYRILLIC CAPITAL LETTER A
343
+ '\u0431' # 0x00a2 -> CYRILLIC SMALL LETTER BE
344
+ '\u0411' # 0x00a3 -> CYRILLIC CAPITAL LETTER BE
345
+ '\u0446' # 0x00a4 -> CYRILLIC SMALL LETTER TSE
346
+ '\u0426' # 0x00a5 -> CYRILLIC CAPITAL LETTER TSE
347
+ '\u0434' # 0x00a6 -> CYRILLIC SMALL LETTER DE
348
+ '\u0414' # 0x00a7 -> CYRILLIC CAPITAL LETTER DE
349
+ '\u0435' # 0x00a8 -> CYRILLIC SMALL LETTER IE
350
+ '\u0415' # 0x00a9 -> CYRILLIC CAPITAL LETTER IE
351
+ '\u0444' # 0x00aa -> CYRILLIC SMALL LETTER EF
352
+ '\u0424' # 0x00ab -> CYRILLIC CAPITAL LETTER EF
353
+ '\u0433' # 0x00ac -> CYRILLIC SMALL LETTER GHE
354
+ '\u0413' # 0x00ad -> CYRILLIC CAPITAL LETTER GHE
355
+ '\xab' # 0x00ae -> LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
356
+ '\xbb' # 0x00af -> RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
357
+ '\u2591' # 0x00b0 -> LIGHT SHADE
358
+ '\u2592' # 0x00b1 -> MEDIUM SHADE
359
+ '\u2593' # 0x00b2 -> DARK SHADE
360
+ '\u2502' # 0x00b3 -> BOX DRAWINGS LIGHT VERTICAL
361
+ '\u2524' # 0x00b4 -> BOX DRAWINGS LIGHT VERTICAL AND LEFT
362
+ '\u0445' # 0x00b5 -> CYRILLIC SMALL LETTER HA
363
+ '\u0425' # 0x00b6 -> CYRILLIC CAPITAL LETTER HA
364
+ '\u0438' # 0x00b7 -> CYRILLIC SMALL LETTER I
365
+ '\u0418' # 0x00b8 -> CYRILLIC CAPITAL LETTER I
366
+ '\u2563' # 0x00b9 -> BOX DRAWINGS DOUBLE VERTICAL AND LEFT
367
+ '\u2551' # 0x00ba -> BOX DRAWINGS DOUBLE VERTICAL
368
+ '\u2557' # 0x00bb -> BOX DRAWINGS DOUBLE DOWN AND LEFT
369
+ '\u255d' # 0x00bc -> BOX DRAWINGS DOUBLE UP AND LEFT
370
+ '\u0439' # 0x00bd -> CYRILLIC SMALL LETTER SHORT I
371
+ '\u0419' # 0x00be -> CYRILLIC CAPITAL LETTER SHORT I
372
+ '\u2510' # 0x00bf -> BOX DRAWINGS LIGHT DOWN AND LEFT
373
+ '\u2514' # 0x00c0 -> BOX DRAWINGS LIGHT UP AND RIGHT
374
+ '\u2534' # 0x00c1 -> BOX DRAWINGS LIGHT UP AND HORIZONTAL
375
+ '\u252c' # 0x00c2 -> BOX DRAWINGS LIGHT DOWN AND HORIZONTAL
376
+ '\u251c' # 0x00c3 -> BOX DRAWINGS LIGHT VERTICAL AND RIGHT
377
+ '\u2500' # 0x00c4 -> BOX DRAWINGS LIGHT HORIZONTAL
378
+ '\u253c' # 0x00c5 -> BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL
379
+ '\u043a' # 0x00c6 -> CYRILLIC SMALL LETTER KA
380
+ '\u041a' # 0x00c7 -> CYRILLIC CAPITAL LETTER KA
381
+ '\u255a' # 0x00c8 -> BOX DRAWINGS DOUBLE UP AND RIGHT
382
+ '\u2554' # 0x00c9 -> BOX DRAWINGS DOUBLE DOWN AND RIGHT
383
+ '\u2569' # 0x00ca -> BOX DRAWINGS DOUBLE UP AND HORIZONTAL
384
+ '\u2566' # 0x00cb -> BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL
385
+ '\u2560' # 0x00cc -> BOX DRAWINGS DOUBLE VERTICAL AND RIGHT
386
+ '\u2550' # 0x00cd -> BOX DRAWINGS DOUBLE HORIZONTAL
387
+ '\u256c' # 0x00ce -> BOX DRAWINGS DOUBLE VERTICAL AND HORIZONTAL
388
+ '\xa4' # 0x00cf -> CURRENCY SIGN
389
+ '\u043b' # 0x00d0 -> CYRILLIC SMALL LETTER EL
390
+ '\u041b' # 0x00d1 -> CYRILLIC CAPITAL LETTER EL
391
+ '\u043c' # 0x00d2 -> CYRILLIC SMALL LETTER EM
392
+ '\u041c' # 0x00d3 -> CYRILLIC CAPITAL LETTER EM
393
+ '\u043d' # 0x00d4 -> CYRILLIC SMALL LETTER EN
394
+ '\u041d' # 0x00d5 -> CYRILLIC CAPITAL LETTER EN
395
+ '\u043e' # 0x00d6 -> CYRILLIC SMALL LETTER O
396
+ '\u041e' # 0x00d7 -> CYRILLIC CAPITAL LETTER O
397
+ '\u043f' # 0x00d8 -> CYRILLIC SMALL LETTER PE
398
+ '\u2518' # 0x00d9 -> BOX DRAWINGS LIGHT UP AND LEFT
399
+ '\u250c' # 0x00da -> BOX DRAWINGS LIGHT DOWN AND RIGHT
400
+ '\u2588' # 0x00db -> FULL BLOCK
401
+ '\u2584' # 0x00dc -> LOWER HALF BLOCK
402
+ '\u041f' # 0x00dd -> CYRILLIC CAPITAL LETTER PE
403
+ '\u044f' # 0x00de -> CYRILLIC SMALL LETTER YA
404
+ '\u2580' # 0x00df -> UPPER HALF BLOCK
405
+ '\u042f' # 0x00e0 -> CYRILLIC CAPITAL LETTER YA
406
+ '\u0440' # 0x00e1 -> CYRILLIC SMALL LETTER ER
407
+ '\u0420' # 0x00e2 -> CYRILLIC CAPITAL LETTER ER
408
+ '\u0441' # 0x00e3 -> CYRILLIC SMALL LETTER ES
409
+ '\u0421' # 0x00e4 -> CYRILLIC CAPITAL LETTER ES
410
+ '\u0442' # 0x00e5 -> CYRILLIC SMALL LETTER TE
411
+ '\u0422' # 0x00e6 -> CYRILLIC CAPITAL LETTER TE
412
+ '\u0443' # 0x00e7 -> CYRILLIC SMALL LETTER U
413
+ '\u0423' # 0x00e8 -> CYRILLIC CAPITAL LETTER U
414
+ '\u0436' # 0x00e9 -> CYRILLIC SMALL LETTER ZHE
415
+ '\u0416' # 0x00ea -> CYRILLIC CAPITAL LETTER ZHE
416
+ '\u0432' # 0x00eb -> CYRILLIC SMALL LETTER VE
417
+ '\u0412' # 0x00ec -> CYRILLIC CAPITAL LETTER VE
418
+ '\u044c' # 0x00ed -> CYRILLIC SMALL LETTER SOFT SIGN
419
+ '\u042c' # 0x00ee -> CYRILLIC CAPITAL LETTER SOFT SIGN
420
+ '\u2116' # 0x00ef -> NUMERO SIGN
421
+ '\xad' # 0x00f0 -> SOFT HYPHEN
422
+ '\u044b' # 0x00f1 -> CYRILLIC SMALL LETTER YERU
423
+ '\u042b' # 0x00f2 -> CYRILLIC CAPITAL LETTER YERU
424
+ '\u0437' # 0x00f3 -> CYRILLIC SMALL LETTER ZE
425
+ '\u0417' # 0x00f4 -> CYRILLIC CAPITAL LETTER ZE
426
+ '\u0448' # 0x00f5 -> CYRILLIC SMALL LETTER SHA
427
+ '\u0428' # 0x00f6 -> CYRILLIC CAPITAL LETTER SHA
428
+ '\u044d' # 0x00f7 -> CYRILLIC SMALL LETTER E
429
+ '\u042d' # 0x00f8 -> CYRILLIC CAPITAL LETTER E
430
+ '\u0449' # 0x00f9 -> CYRILLIC SMALL LETTER SHCHA
431
+ '\u0429' # 0x00fa -> CYRILLIC CAPITAL LETTER SHCHA
432
+ '\u0447' # 0x00fb -> CYRILLIC SMALL LETTER CHE
433
+ '\u0427' # 0x00fc -> CYRILLIC CAPITAL LETTER CHE
434
+ '\xa7' # 0x00fd -> SECTION SIGN
435
+ '\u25a0' # 0x00fe -> BLACK SQUARE
436
+ '\xa0' # 0x00ff -> NO-BREAK SPACE
437
+ )
438
+
439
+ ### Encoding Map
440
+
441
+ encoding_map = {
442
+ 0x0000: 0x0000, # NULL
443
+ 0x0001: 0x0001, # START OF HEADING
444
+ 0x0002: 0x0002, # START OF TEXT
445
+ 0x0003: 0x0003, # END OF TEXT
446
+ 0x0004: 0x0004, # END OF TRANSMISSION
447
+ 0x0005: 0x0005, # ENQUIRY
448
+ 0x0006: 0x0006, # ACKNOWLEDGE
449
+ 0x0007: 0x0007, # BELL
450
+ 0x0008: 0x0008, # BACKSPACE
451
+ 0x0009: 0x0009, # HORIZONTAL TABULATION
452
+ 0x000a: 0x000a, # LINE FEED
453
+ 0x000b: 0x000b, # VERTICAL TABULATION
454
+ 0x000c: 0x000c, # FORM FEED
455
+ 0x000d: 0x000d, # CARRIAGE RETURN
456
+ 0x000e: 0x000e, # SHIFT OUT
457
+ 0x000f: 0x000f, # SHIFT IN
458
+ 0x0010: 0x0010, # DATA LINK ESCAPE
459
+ 0x0011: 0x0011, # DEVICE CONTROL ONE
460
+ 0x0012: 0x0012, # DEVICE CONTROL TWO
461
+ 0x0013: 0x0013, # DEVICE CONTROL THREE
462
+ 0x0014: 0x0014, # DEVICE CONTROL FOUR
463
+ 0x0015: 0x0015, # NEGATIVE ACKNOWLEDGE
464
+ 0x0016: 0x0016, # SYNCHRONOUS IDLE
465
+ 0x0017: 0x0017, # END OF TRANSMISSION BLOCK
466
+ 0x0018: 0x0018, # CANCEL
467
+ 0x0019: 0x0019, # END OF MEDIUM
468
+ 0x001a: 0x001a, # SUBSTITUTE
469
+ 0x001b: 0x001b, # ESCAPE
470
+ 0x001c: 0x001c, # FILE SEPARATOR
471
+ 0x001d: 0x001d, # GROUP SEPARATOR
472
+ 0x001e: 0x001e, # RECORD SEPARATOR
473
+ 0x001f: 0x001f, # UNIT SEPARATOR
474
+ 0x0020: 0x0020, # SPACE
475
+ 0x0021: 0x0021, # EXCLAMATION MARK
476
+ 0x0022: 0x0022, # QUOTATION MARK
477
+ 0x0023: 0x0023, # NUMBER SIGN
478
+ 0x0024: 0x0024, # DOLLAR SIGN
479
+ 0x0025: 0x0025, # PERCENT SIGN
480
+ 0x0026: 0x0026, # AMPERSAND
481
+ 0x0027: 0x0027, # APOSTROPHE
482
+ 0x0028: 0x0028, # LEFT PARENTHESIS
483
+ 0x0029: 0x0029, # RIGHT PARENTHESIS
484
+ 0x002a: 0x002a, # ASTERISK
485
+ 0x002b: 0x002b, # PLUS SIGN
486
+ 0x002c: 0x002c, # COMMA
487
+ 0x002d: 0x002d, # HYPHEN-MINUS
488
+ 0x002e: 0x002e, # FULL STOP
489
+ 0x002f: 0x002f, # SOLIDUS
490
+ 0x0030: 0x0030, # DIGIT ZERO
491
+ 0x0031: 0x0031, # DIGIT ONE
492
+ 0x0032: 0x0032, # DIGIT TWO
493
+ 0x0033: 0x0033, # DIGIT THREE
494
+ 0x0034: 0x0034, # DIGIT FOUR
495
+ 0x0035: 0x0035, # DIGIT FIVE
496
+ 0x0036: 0x0036, # DIGIT SIX
497
+ 0x0037: 0x0037, # DIGIT SEVEN
498
+ 0x0038: 0x0038, # DIGIT EIGHT
499
+ 0x0039: 0x0039, # DIGIT NINE
500
+ 0x003a: 0x003a, # COLON
501
+ 0x003b: 0x003b, # SEMICOLON
502
+ 0x003c: 0x003c, # LESS-THAN SIGN
503
+ 0x003d: 0x003d, # EQUALS SIGN
504
+ 0x003e: 0x003e, # GREATER-THAN SIGN
505
+ 0x003f: 0x003f, # QUESTION MARK
506
+ 0x0040: 0x0040, # COMMERCIAL AT
507
+ 0x0041: 0x0041, # LATIN CAPITAL LETTER A
508
+ 0x0042: 0x0042, # LATIN CAPITAL LETTER B
509
+ 0x0043: 0x0043, # LATIN CAPITAL LETTER C
510
+ 0x0044: 0x0044, # LATIN CAPITAL LETTER D
511
+ 0x0045: 0x0045, # LATIN CAPITAL LETTER E
512
+ 0x0046: 0x0046, # LATIN CAPITAL LETTER F
513
+ 0x0047: 0x0047, # LATIN CAPITAL LETTER G
514
+ 0x0048: 0x0048, # LATIN CAPITAL LETTER H
515
+ 0x0049: 0x0049, # LATIN CAPITAL LETTER I
516
+ 0x004a: 0x004a, # LATIN CAPITAL LETTER J
517
+ 0x004b: 0x004b, # LATIN CAPITAL LETTER K
518
+ 0x004c: 0x004c, # LATIN CAPITAL LETTER L
519
+ 0x004d: 0x004d, # LATIN CAPITAL LETTER M
520
+ 0x004e: 0x004e, # LATIN CAPITAL LETTER N
521
+ 0x004f: 0x004f, # LATIN CAPITAL LETTER O
522
+ 0x0050: 0x0050, # LATIN CAPITAL LETTER P
523
+ 0x0051: 0x0051, # LATIN CAPITAL LETTER Q
524
+ 0x0052: 0x0052, # LATIN CAPITAL LETTER R
525
+ 0x0053: 0x0053, # LATIN CAPITAL LETTER S
526
+ 0x0054: 0x0054, # LATIN CAPITAL LETTER T
527
+ 0x0055: 0x0055, # LATIN CAPITAL LETTER U
528
+ 0x0056: 0x0056, # LATIN CAPITAL LETTER V
529
+ 0x0057: 0x0057, # LATIN CAPITAL LETTER W
530
+ 0x0058: 0x0058, # LATIN CAPITAL LETTER X
531
+ 0x0059: 0x0059, # LATIN CAPITAL LETTER Y
532
+ 0x005a: 0x005a, # LATIN CAPITAL LETTER Z
533
+ 0x005b: 0x005b, # LEFT SQUARE BRACKET
534
+ 0x005c: 0x005c, # REVERSE SOLIDUS
535
+ 0x005d: 0x005d, # RIGHT SQUARE BRACKET
536
+ 0x005e: 0x005e, # CIRCUMFLEX ACCENT
537
+ 0x005f: 0x005f, # LOW LINE
538
+ 0x0060: 0x0060, # GRAVE ACCENT
539
+ 0x0061: 0x0061, # LATIN SMALL LETTER A
540
+ 0x0062: 0x0062, # LATIN SMALL LETTER B
541
+ 0x0063: 0x0063, # LATIN SMALL LETTER C
542
+ 0x0064: 0x0064, # LATIN SMALL LETTER D
543
+ 0x0065: 0x0065, # LATIN SMALL LETTER E
544
+ 0x0066: 0x0066, # LATIN SMALL LETTER F
545
+ 0x0067: 0x0067, # LATIN SMALL LETTER G
546
+ 0x0068: 0x0068, # LATIN SMALL LETTER H
547
+ 0x0069: 0x0069, # LATIN SMALL LETTER I
548
+ 0x006a: 0x006a, # LATIN SMALL LETTER J
549
+ 0x006b: 0x006b, # LATIN SMALL LETTER K
550
+ 0x006c: 0x006c, # LATIN SMALL LETTER L
551
+ 0x006d: 0x006d, # LATIN SMALL LETTER M
552
+ 0x006e: 0x006e, # LATIN SMALL LETTER N
553
+ 0x006f: 0x006f, # LATIN SMALL LETTER O
554
+ 0x0070: 0x0070, # LATIN SMALL LETTER P
555
+ 0x0071: 0x0071, # LATIN SMALL LETTER Q
556
+ 0x0072: 0x0072, # LATIN SMALL LETTER R
557
+ 0x0073: 0x0073, # LATIN SMALL LETTER S
558
+ 0x0074: 0x0074, # LATIN SMALL LETTER T
559
+ 0x0075: 0x0075, # LATIN SMALL LETTER U
560
+ 0x0076: 0x0076, # LATIN SMALL LETTER V
561
+ 0x0077: 0x0077, # LATIN SMALL LETTER W
562
+ 0x0078: 0x0078, # LATIN SMALL LETTER X
563
+ 0x0079: 0x0079, # LATIN SMALL LETTER Y
564
+ 0x007a: 0x007a, # LATIN SMALL LETTER Z
565
+ 0x007b: 0x007b, # LEFT CURLY BRACKET
566
+ 0x007c: 0x007c, # VERTICAL LINE
567
+ 0x007d: 0x007d, # RIGHT CURLY BRACKET
568
+ 0x007e: 0x007e, # TILDE
569
+ 0x007f: 0x007f, # DELETE
570
+ 0x00a0: 0x00ff, # NO-BREAK SPACE
571
+ 0x00a4: 0x00cf, # CURRENCY SIGN
572
+ 0x00a7: 0x00fd, # SECTION SIGN
573
+ 0x00ab: 0x00ae, # LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
574
+ 0x00ad: 0x00f0, # SOFT HYPHEN
575
+ 0x00bb: 0x00af, # RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
576
+ 0x0401: 0x0085, # CYRILLIC CAPITAL LETTER IO
577
+ 0x0402: 0x0081, # CYRILLIC CAPITAL LETTER DJE
578
+ 0x0403: 0x0083, # CYRILLIC CAPITAL LETTER GJE
579
+ 0x0404: 0x0087, # CYRILLIC CAPITAL LETTER UKRAINIAN IE
580
+ 0x0405: 0x0089, # CYRILLIC CAPITAL LETTER DZE
581
+ 0x0406: 0x008b, # CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I
582
+ 0x0407: 0x008d, # CYRILLIC CAPITAL LETTER YI
583
+ 0x0408: 0x008f, # CYRILLIC CAPITAL LETTER JE
584
+ 0x0409: 0x0091, # CYRILLIC CAPITAL LETTER LJE
585
+ 0x040a: 0x0093, # CYRILLIC CAPITAL LETTER NJE
586
+ 0x040b: 0x0095, # CYRILLIC CAPITAL LETTER TSHE
587
+ 0x040c: 0x0097, # CYRILLIC CAPITAL LETTER KJE
588
+ 0x040e: 0x0099, # CYRILLIC CAPITAL LETTER SHORT U
589
+ 0x040f: 0x009b, # CYRILLIC CAPITAL LETTER DZHE
590
+ 0x0410: 0x00a1, # CYRILLIC CAPITAL LETTER A
591
+ 0x0411: 0x00a3, # CYRILLIC CAPITAL LETTER BE
592
+ 0x0412: 0x00ec, # CYRILLIC CAPITAL LETTER VE
593
+ 0x0413: 0x00ad, # CYRILLIC CAPITAL LETTER GHE
594
+ 0x0414: 0x00a7, # CYRILLIC CAPITAL LETTER DE
595
+ 0x0415: 0x00a9, # CYRILLIC CAPITAL LETTER IE
596
+ 0x0416: 0x00ea, # CYRILLIC CAPITAL LETTER ZHE
597
+ 0x0417: 0x00f4, # CYRILLIC CAPITAL LETTER ZE
598
+ 0x0418: 0x00b8, # CYRILLIC CAPITAL LETTER I
599
+ 0x0419: 0x00be, # CYRILLIC CAPITAL LETTER SHORT I
600
+ 0x041a: 0x00c7, # CYRILLIC CAPITAL LETTER KA
601
+ 0x041b: 0x00d1, # CYRILLIC CAPITAL LETTER EL
602
+ 0x041c: 0x00d3, # CYRILLIC CAPITAL LETTER EM
603
+ 0x041d: 0x00d5, # CYRILLIC CAPITAL LETTER EN
604
+ 0x041e: 0x00d7, # CYRILLIC CAPITAL LETTER O
605
+ 0x041f: 0x00dd, # CYRILLIC CAPITAL LETTER PE
606
+ 0x0420: 0x00e2, # CYRILLIC CAPITAL LETTER ER
607
+ 0x0421: 0x00e4, # CYRILLIC CAPITAL LETTER ES
608
+ 0x0422: 0x00e6, # CYRILLIC CAPITAL LETTER TE
609
+ 0x0423: 0x00e8, # CYRILLIC CAPITAL LETTER U
610
+ 0x0424: 0x00ab, # CYRILLIC CAPITAL LETTER EF
611
+ 0x0425: 0x00b6, # CYRILLIC CAPITAL LETTER HA
612
+ 0x0426: 0x00a5, # CYRILLIC CAPITAL LETTER TSE
613
+ 0x0427: 0x00fc, # CYRILLIC CAPITAL LETTER CHE
614
+ 0x0428: 0x00f6, # CYRILLIC CAPITAL LETTER SHA
615
+ 0x0429: 0x00fa, # CYRILLIC CAPITAL LETTER SHCHA
616
+ 0x042a: 0x009f, # CYRILLIC CAPITAL LETTER HARD SIGN
617
+ 0x042b: 0x00f2, # CYRILLIC CAPITAL LETTER YERU
618
+ 0x042c: 0x00ee, # CYRILLIC CAPITAL LETTER SOFT SIGN
619
+ 0x042d: 0x00f8, # CYRILLIC CAPITAL LETTER E
620
+ 0x042e: 0x009d, # CYRILLIC CAPITAL LETTER YU
621
+ 0x042f: 0x00e0, # CYRILLIC CAPITAL LETTER YA
622
+ 0x0430: 0x00a0, # CYRILLIC SMALL LETTER A
623
+ 0x0431: 0x00a2, # CYRILLIC SMALL LETTER BE
624
+ 0x0432: 0x00eb, # CYRILLIC SMALL LETTER VE
625
+ 0x0433: 0x00ac, # CYRILLIC SMALL LETTER GHE
626
+ 0x0434: 0x00a6, # CYRILLIC SMALL LETTER DE
627
+ 0x0435: 0x00a8, # CYRILLIC SMALL LETTER IE
628
+ 0x0436: 0x00e9, # CYRILLIC SMALL LETTER ZHE
629
+ 0x0437: 0x00f3, # CYRILLIC SMALL LETTER ZE
630
+ 0x0438: 0x00b7, # CYRILLIC SMALL LETTER I
631
+ 0x0439: 0x00bd, # CYRILLIC SMALL LETTER SHORT I
632
+ 0x043a: 0x00c6, # CYRILLIC SMALL LETTER KA
633
+ 0x043b: 0x00d0, # CYRILLIC SMALL LETTER EL
634
+ 0x043c: 0x00d2, # CYRILLIC SMALL LETTER EM
635
+ 0x043d: 0x00d4, # CYRILLIC SMALL LETTER EN
636
+ 0x043e: 0x00d6, # CYRILLIC SMALL LETTER O
637
+ 0x043f: 0x00d8, # CYRILLIC SMALL LETTER PE
638
+ 0x0440: 0x00e1, # CYRILLIC SMALL LETTER ER
639
+ 0x0441: 0x00e3, # CYRILLIC SMALL LETTER ES
640
+ 0x0442: 0x00e5, # CYRILLIC SMALL LETTER TE
641
+ 0x0443: 0x00e7, # CYRILLIC SMALL LETTER U
642
+ 0x0444: 0x00aa, # CYRILLIC SMALL LETTER EF
643
+ 0x0445: 0x00b5, # CYRILLIC SMALL LETTER HA
644
+ 0x0446: 0x00a4, # CYRILLIC SMALL LETTER TSE
645
+ 0x0447: 0x00fb, # CYRILLIC SMALL LETTER CHE
646
+ 0x0448: 0x00f5, # CYRILLIC SMALL LETTER SHA
647
+ 0x0449: 0x00f9, # CYRILLIC SMALL LETTER SHCHA
648
+ 0x044a: 0x009e, # CYRILLIC SMALL LETTER HARD SIGN
649
+ 0x044b: 0x00f1, # CYRILLIC SMALL LETTER YERU
650
+ 0x044c: 0x00ed, # CYRILLIC SMALL LETTER SOFT SIGN
651
+ 0x044d: 0x00f7, # CYRILLIC SMALL LETTER E
652
+ 0x044e: 0x009c, # CYRILLIC SMALL LETTER YU
653
+ 0x044f: 0x00de, # CYRILLIC SMALL LETTER YA
654
+ 0x0451: 0x0084, # CYRILLIC SMALL LETTER IO
655
+ 0x0452: 0x0080, # CYRILLIC SMALL LETTER DJE
656
+ 0x0453: 0x0082, # CYRILLIC SMALL LETTER GJE
657
+ 0x0454: 0x0086, # CYRILLIC SMALL LETTER UKRAINIAN IE
658
+ 0x0455: 0x0088, # CYRILLIC SMALL LETTER DZE
659
+ 0x0456: 0x008a, # CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I
660
+ 0x0457: 0x008c, # CYRILLIC SMALL LETTER YI
661
+ 0x0458: 0x008e, # CYRILLIC SMALL LETTER JE
662
+ 0x0459: 0x0090, # CYRILLIC SMALL LETTER LJE
663
+ 0x045a: 0x0092, # CYRILLIC SMALL LETTER NJE
664
+ 0x045b: 0x0094, # CYRILLIC SMALL LETTER TSHE
665
+ 0x045c: 0x0096, # CYRILLIC SMALL LETTER KJE
666
+ 0x045e: 0x0098, # CYRILLIC SMALL LETTER SHORT U
667
+ 0x045f: 0x009a, # CYRILLIC SMALL LETTER DZHE
668
+ 0x2116: 0x00ef, # NUMERO SIGN
669
+ 0x2500: 0x00c4, # BOX DRAWINGS LIGHT HORIZONTAL
670
+ 0x2502: 0x00b3, # BOX DRAWINGS LIGHT VERTICAL
671
+ 0x250c: 0x00da, # BOX DRAWINGS LIGHT DOWN AND RIGHT
672
+ 0x2510: 0x00bf, # BOX DRAWINGS LIGHT DOWN AND LEFT
673
+ 0x2514: 0x00c0, # BOX DRAWINGS LIGHT UP AND RIGHT
674
+ 0x2518: 0x00d9, # BOX DRAWINGS LIGHT UP AND LEFT
675
+ 0x251c: 0x00c3, # BOX DRAWINGS LIGHT VERTICAL AND RIGHT
676
+ 0x2524: 0x00b4, # BOX DRAWINGS LIGHT VERTICAL AND LEFT
677
+ 0x252c: 0x00c2, # BOX DRAWINGS LIGHT DOWN AND HORIZONTAL
678
+ 0x2534: 0x00c1, # BOX DRAWINGS LIGHT UP AND HORIZONTAL
679
+ 0x253c: 0x00c5, # BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL
680
+ 0x2550: 0x00cd, # BOX DRAWINGS DOUBLE HORIZONTAL
681
+ 0x2551: 0x00ba, # BOX DRAWINGS DOUBLE VERTICAL
682
+ 0x2554: 0x00c9, # BOX DRAWINGS DOUBLE DOWN AND RIGHT
683
+ 0x2557: 0x00bb, # BOX DRAWINGS DOUBLE DOWN AND LEFT
684
+ 0x255a: 0x00c8, # BOX DRAWINGS DOUBLE UP AND RIGHT
685
+ 0x255d: 0x00bc, # BOX DRAWINGS DOUBLE UP AND LEFT
686
+ 0x2560: 0x00cc, # BOX DRAWINGS DOUBLE VERTICAL AND RIGHT
687
+ 0x2563: 0x00b9, # BOX DRAWINGS DOUBLE VERTICAL AND LEFT
688
+ 0x2566: 0x00cb, # BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL
689
+ 0x2569: 0x00ca, # BOX DRAWINGS DOUBLE UP AND HORIZONTAL
690
+ 0x256c: 0x00ce, # BOX DRAWINGS DOUBLE VERTICAL AND HORIZONTAL
691
+ 0x2580: 0x00df, # UPPER HALF BLOCK
692
+ 0x2584: 0x00dc, # LOWER HALF BLOCK
693
+ 0x2588: 0x00db, # FULL BLOCK
694
+ 0x2591: 0x00b0, # LIGHT SHADE
695
+ 0x2592: 0x00b1, # MEDIUM SHADE
696
+ 0x2593: 0x00b2, # DARK SHADE
697
+ 0x25a0: 0x00fe, # BLACK SQUARE
698
+ }
parrot/lib/python3.10/encodings/cp862.py ADDED
@@ -0,0 +1,698 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP862.TXT' with gencodec.py.
2
+
3
+ """#"
4
+
5
+ import codecs
6
+
7
+ ### Codec APIs
8
+
9
+ class Codec(codecs.Codec):
10
+
11
+ def encode(self,input,errors='strict'):
12
+ return codecs.charmap_encode(input,errors,encoding_map)
13
+
14
+ def decode(self,input,errors='strict'):
15
+ return codecs.charmap_decode(input,errors,decoding_table)
16
+
17
+ class IncrementalEncoder(codecs.IncrementalEncoder):
18
+ def encode(self, input, final=False):
19
+ return codecs.charmap_encode(input,self.errors,encoding_map)[0]
20
+
21
+ class IncrementalDecoder(codecs.IncrementalDecoder):
22
+ def decode(self, input, final=False):
23
+ return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
+
25
+ class StreamWriter(Codec,codecs.StreamWriter):
26
+ pass
27
+
28
+ class StreamReader(Codec,codecs.StreamReader):
29
+ pass
30
+
31
+ ### encodings module API
32
+
33
+ def getregentry():
34
+ return codecs.CodecInfo(
35
+ name='cp862',
36
+ encode=Codec().encode,
37
+ decode=Codec().decode,
38
+ incrementalencoder=IncrementalEncoder,
39
+ incrementaldecoder=IncrementalDecoder,
40
+ streamreader=StreamReader,
41
+ streamwriter=StreamWriter,
42
+ )
43
+
44
+ ### Decoding Map
45
+
46
+ decoding_map = codecs.make_identity_dict(range(256))
47
+ decoding_map.update({
48
+ 0x0080: 0x05d0, # HEBREW LETTER ALEF
49
+ 0x0081: 0x05d1, # HEBREW LETTER BET
50
+ 0x0082: 0x05d2, # HEBREW LETTER GIMEL
51
+ 0x0083: 0x05d3, # HEBREW LETTER DALET
52
+ 0x0084: 0x05d4, # HEBREW LETTER HE
53
+ 0x0085: 0x05d5, # HEBREW LETTER VAV
54
+ 0x0086: 0x05d6, # HEBREW LETTER ZAYIN
55
+ 0x0087: 0x05d7, # HEBREW LETTER HET
56
+ 0x0088: 0x05d8, # HEBREW LETTER TET
57
+ 0x0089: 0x05d9, # HEBREW LETTER YOD
58
+ 0x008a: 0x05da, # HEBREW LETTER FINAL KAF
59
+ 0x008b: 0x05db, # HEBREW LETTER KAF
60
+ 0x008c: 0x05dc, # HEBREW LETTER LAMED
61
+ 0x008d: 0x05dd, # HEBREW LETTER FINAL MEM
62
+ 0x008e: 0x05de, # HEBREW LETTER MEM
63
+ 0x008f: 0x05df, # HEBREW LETTER FINAL NUN
64
+ 0x0090: 0x05e0, # HEBREW LETTER NUN
65
+ 0x0091: 0x05e1, # HEBREW LETTER SAMEKH
66
+ 0x0092: 0x05e2, # HEBREW LETTER AYIN
67
+ 0x0093: 0x05e3, # HEBREW LETTER FINAL PE
68
+ 0x0094: 0x05e4, # HEBREW LETTER PE
69
+ 0x0095: 0x05e5, # HEBREW LETTER FINAL TSADI
70
+ 0x0096: 0x05e6, # HEBREW LETTER TSADI
71
+ 0x0097: 0x05e7, # HEBREW LETTER QOF
72
+ 0x0098: 0x05e8, # HEBREW LETTER RESH
73
+ 0x0099: 0x05e9, # HEBREW LETTER SHIN
74
+ 0x009a: 0x05ea, # HEBREW LETTER TAV
75
+ 0x009b: 0x00a2, # CENT SIGN
76
+ 0x009c: 0x00a3, # POUND SIGN
77
+ 0x009d: 0x00a5, # YEN SIGN
78
+ 0x009e: 0x20a7, # PESETA SIGN
79
+ 0x009f: 0x0192, # LATIN SMALL LETTER F WITH HOOK
80
+ 0x00a0: 0x00e1, # LATIN SMALL LETTER A WITH ACUTE
81
+ 0x00a1: 0x00ed, # LATIN SMALL LETTER I WITH ACUTE
82
+ 0x00a2: 0x00f3, # LATIN SMALL LETTER O WITH ACUTE
83
+ 0x00a3: 0x00fa, # LATIN SMALL LETTER U WITH ACUTE
84
+ 0x00a4: 0x00f1, # LATIN SMALL LETTER N WITH TILDE
85
+ 0x00a5: 0x00d1, # LATIN CAPITAL LETTER N WITH TILDE
86
+ 0x00a6: 0x00aa, # FEMININE ORDINAL INDICATOR
87
+ 0x00a7: 0x00ba, # MASCULINE ORDINAL INDICATOR
88
+ 0x00a8: 0x00bf, # INVERTED QUESTION MARK
89
+ 0x00a9: 0x2310, # REVERSED NOT SIGN
90
+ 0x00aa: 0x00ac, # NOT SIGN
91
+ 0x00ab: 0x00bd, # VULGAR FRACTION ONE HALF
92
+ 0x00ac: 0x00bc, # VULGAR FRACTION ONE QUARTER
93
+ 0x00ad: 0x00a1, # INVERTED EXCLAMATION MARK
94
+ 0x00ae: 0x00ab, # LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
95
+ 0x00af: 0x00bb, # RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
96
+ 0x00b0: 0x2591, # LIGHT SHADE
97
+ 0x00b1: 0x2592, # MEDIUM SHADE
98
+ 0x00b2: 0x2593, # DARK SHADE
99
+ 0x00b3: 0x2502, # BOX DRAWINGS LIGHT VERTICAL
100
+ 0x00b4: 0x2524, # BOX DRAWINGS LIGHT VERTICAL AND LEFT
101
+ 0x00b5: 0x2561, # BOX DRAWINGS VERTICAL SINGLE AND LEFT DOUBLE
102
+ 0x00b6: 0x2562, # BOX DRAWINGS VERTICAL DOUBLE AND LEFT SINGLE
103
+ 0x00b7: 0x2556, # BOX DRAWINGS DOWN DOUBLE AND LEFT SINGLE
104
+ 0x00b8: 0x2555, # BOX DRAWINGS DOWN SINGLE AND LEFT DOUBLE
105
+ 0x00b9: 0x2563, # BOX DRAWINGS DOUBLE VERTICAL AND LEFT
106
+ 0x00ba: 0x2551, # BOX DRAWINGS DOUBLE VERTICAL
107
+ 0x00bb: 0x2557, # BOX DRAWINGS DOUBLE DOWN AND LEFT
108
+ 0x00bc: 0x255d, # BOX DRAWINGS DOUBLE UP AND LEFT
109
+ 0x00bd: 0x255c, # BOX DRAWINGS UP DOUBLE AND LEFT SINGLE
110
+ 0x00be: 0x255b, # BOX DRAWINGS UP SINGLE AND LEFT DOUBLE
111
+ 0x00bf: 0x2510, # BOX DRAWINGS LIGHT DOWN AND LEFT
112
+ 0x00c0: 0x2514, # BOX DRAWINGS LIGHT UP AND RIGHT
113
+ 0x00c1: 0x2534, # BOX DRAWINGS LIGHT UP AND HORIZONTAL
114
+ 0x00c2: 0x252c, # BOX DRAWINGS LIGHT DOWN AND HORIZONTAL
115
+ 0x00c3: 0x251c, # BOX DRAWINGS LIGHT VERTICAL AND RIGHT
116
+ 0x00c4: 0x2500, # BOX DRAWINGS LIGHT HORIZONTAL
117
+ 0x00c5: 0x253c, # BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL
118
+ 0x00c6: 0x255e, # BOX DRAWINGS VERTICAL SINGLE AND RIGHT DOUBLE
119
+ 0x00c7: 0x255f, # BOX DRAWINGS VERTICAL DOUBLE AND RIGHT SINGLE
120
+ 0x00c8: 0x255a, # BOX DRAWINGS DOUBLE UP AND RIGHT
121
+ 0x00c9: 0x2554, # BOX DRAWINGS DOUBLE DOWN AND RIGHT
122
+ 0x00ca: 0x2569, # BOX DRAWINGS DOUBLE UP AND HORIZONTAL
123
+ 0x00cb: 0x2566, # BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL
124
+ 0x00cc: 0x2560, # BOX DRAWINGS DOUBLE VERTICAL AND RIGHT
125
+ 0x00cd: 0x2550, # BOX DRAWINGS DOUBLE HORIZONTAL
126
+ 0x00ce: 0x256c, # BOX DRAWINGS DOUBLE VERTICAL AND HORIZONTAL
127
+ 0x00cf: 0x2567, # BOX DRAWINGS UP SINGLE AND HORIZONTAL DOUBLE
128
+ 0x00d0: 0x2568, # BOX DRAWINGS UP DOUBLE AND HORIZONTAL SINGLE
129
+ 0x00d1: 0x2564, # BOX DRAWINGS DOWN SINGLE AND HORIZONTAL DOUBLE
130
+ 0x00d2: 0x2565, # BOX DRAWINGS DOWN DOUBLE AND HORIZONTAL SINGLE
131
+ 0x00d3: 0x2559, # BOX DRAWINGS UP DOUBLE AND RIGHT SINGLE
132
+ 0x00d4: 0x2558, # BOX DRAWINGS UP SINGLE AND RIGHT DOUBLE
133
+ 0x00d5: 0x2552, # BOX DRAWINGS DOWN SINGLE AND RIGHT DOUBLE
134
+ 0x00d6: 0x2553, # BOX DRAWINGS DOWN DOUBLE AND RIGHT SINGLE
135
+ 0x00d7: 0x256b, # BOX DRAWINGS VERTICAL DOUBLE AND HORIZONTAL SINGLE
136
+ 0x00d8: 0x256a, # BOX DRAWINGS VERTICAL SINGLE AND HORIZONTAL DOUBLE
137
+ 0x00d9: 0x2518, # BOX DRAWINGS LIGHT UP AND LEFT
138
+ 0x00da: 0x250c, # BOX DRAWINGS LIGHT DOWN AND RIGHT
139
+ 0x00db: 0x2588, # FULL BLOCK
140
+ 0x00dc: 0x2584, # LOWER HALF BLOCK
141
+ 0x00dd: 0x258c, # LEFT HALF BLOCK
142
+ 0x00de: 0x2590, # RIGHT HALF BLOCK
143
+ 0x00df: 0x2580, # UPPER HALF BLOCK
144
+ 0x00e0: 0x03b1, # GREEK SMALL LETTER ALPHA
145
+ 0x00e1: 0x00df, # LATIN SMALL LETTER SHARP S (GERMAN)
146
+ 0x00e2: 0x0393, # GREEK CAPITAL LETTER GAMMA
147
+ 0x00e3: 0x03c0, # GREEK SMALL LETTER PI
148
+ 0x00e4: 0x03a3, # GREEK CAPITAL LETTER SIGMA
149
+ 0x00e5: 0x03c3, # GREEK SMALL LETTER SIGMA
150
+ 0x00e6: 0x00b5, # MICRO SIGN
151
+ 0x00e7: 0x03c4, # GREEK SMALL LETTER TAU
152
+ 0x00e8: 0x03a6, # GREEK CAPITAL LETTER PHI
153
+ 0x00e9: 0x0398, # GREEK CAPITAL LETTER THETA
154
+ 0x00ea: 0x03a9, # GREEK CAPITAL LETTER OMEGA
155
+ 0x00eb: 0x03b4, # GREEK SMALL LETTER DELTA
156
+ 0x00ec: 0x221e, # INFINITY
157
+ 0x00ed: 0x03c6, # GREEK SMALL LETTER PHI
158
+ 0x00ee: 0x03b5, # GREEK SMALL LETTER EPSILON
159
+ 0x00ef: 0x2229, # INTERSECTION
160
+ 0x00f0: 0x2261, # IDENTICAL TO
161
+ 0x00f1: 0x00b1, # PLUS-MINUS SIGN
162
+ 0x00f2: 0x2265, # GREATER-THAN OR EQUAL TO
163
+ 0x00f3: 0x2264, # LESS-THAN OR EQUAL TO
164
+ 0x00f4: 0x2320, # TOP HALF INTEGRAL
165
+ 0x00f5: 0x2321, # BOTTOM HALF INTEGRAL
166
+ 0x00f6: 0x00f7, # DIVISION SIGN
167
+ 0x00f7: 0x2248, # ALMOST EQUAL TO
168
+ 0x00f8: 0x00b0, # DEGREE SIGN
169
+ 0x00f9: 0x2219, # BULLET OPERATOR
170
+ 0x00fa: 0x00b7, # MIDDLE DOT
171
+ 0x00fb: 0x221a, # SQUARE ROOT
172
+ 0x00fc: 0x207f, # SUPERSCRIPT LATIN SMALL LETTER N
173
+ 0x00fd: 0x00b2, # SUPERSCRIPT TWO
174
+ 0x00fe: 0x25a0, # BLACK SQUARE
175
+ 0x00ff: 0x00a0, # NO-BREAK SPACE
176
+ })
177
+
178
+ ### Decoding Table
179
+
180
+ decoding_table = (
181
+ '\x00' # 0x0000 -> NULL
182
+ '\x01' # 0x0001 -> START OF HEADING
183
+ '\x02' # 0x0002 -> START OF TEXT
184
+ '\x03' # 0x0003 -> END OF TEXT
185
+ '\x04' # 0x0004 -> END OF TRANSMISSION
186
+ '\x05' # 0x0005 -> ENQUIRY
187
+ '\x06' # 0x0006 -> ACKNOWLEDGE
188
+ '\x07' # 0x0007 -> BELL
189
+ '\x08' # 0x0008 -> BACKSPACE
190
+ '\t' # 0x0009 -> HORIZONTAL TABULATION
191
+ '\n' # 0x000a -> LINE FEED
192
+ '\x0b' # 0x000b -> VERTICAL TABULATION
193
+ '\x0c' # 0x000c -> FORM FEED
194
+ '\r' # 0x000d -> CARRIAGE RETURN
195
+ '\x0e' # 0x000e -> SHIFT OUT
196
+ '\x0f' # 0x000f -> SHIFT IN
197
+ '\x10' # 0x0010 -> DATA LINK ESCAPE
198
+ '\x11' # 0x0011 -> DEVICE CONTROL ONE
199
+ '\x12' # 0x0012 -> DEVICE CONTROL TWO
200
+ '\x13' # 0x0013 -> DEVICE CONTROL THREE
201
+ '\x14' # 0x0014 -> DEVICE CONTROL FOUR
202
+ '\x15' # 0x0015 -> NEGATIVE ACKNOWLEDGE
203
+ '\x16' # 0x0016 -> SYNCHRONOUS IDLE
204
+ '\x17' # 0x0017 -> END OF TRANSMISSION BLOCK
205
+ '\x18' # 0x0018 -> CANCEL
206
+ '\x19' # 0x0019 -> END OF MEDIUM
207
+ '\x1a' # 0x001a -> SUBSTITUTE
208
+ '\x1b' # 0x001b -> ESCAPE
209
+ '\x1c' # 0x001c -> FILE SEPARATOR
210
+ '\x1d' # 0x001d -> GROUP SEPARATOR
211
+ '\x1e' # 0x001e -> RECORD SEPARATOR
212
+ '\x1f' # 0x001f -> UNIT SEPARATOR
213
+ ' ' # 0x0020 -> SPACE
214
+ '!' # 0x0021 -> EXCLAMATION MARK
215
+ '"' # 0x0022 -> QUOTATION MARK
216
+ '#' # 0x0023 -> NUMBER SIGN
217
+ '$' # 0x0024 -> DOLLAR SIGN
218
+ '%' # 0x0025 -> PERCENT SIGN
219
+ '&' # 0x0026 -> AMPERSAND
220
+ "'" # 0x0027 -> APOSTROPHE
221
+ '(' # 0x0028 -> LEFT PARENTHESIS
222
+ ')' # 0x0029 -> RIGHT PARENTHESIS
223
+ '*' # 0x002a -> ASTERISK
224
+ '+' # 0x002b -> PLUS SIGN
225
+ ',' # 0x002c -> COMMA
226
+ '-' # 0x002d -> HYPHEN-MINUS
227
+ '.' # 0x002e -> FULL STOP
228
+ '/' # 0x002f -> SOLIDUS
229
+ '0' # 0x0030 -> DIGIT ZERO
230
+ '1' # 0x0031 -> DIGIT ONE
231
+ '2' # 0x0032 -> DIGIT TWO
232
+ '3' # 0x0033 -> DIGIT THREE
233
+ '4' # 0x0034 -> DIGIT FOUR
234
+ '5' # 0x0035 -> DIGIT FIVE
235
+ '6' # 0x0036 -> DIGIT SIX
236
+ '7' # 0x0037 -> DIGIT SEVEN
237
+ '8' # 0x0038 -> DIGIT EIGHT
238
+ '9' # 0x0039 -> DIGIT NINE
239
+ ':' # 0x003a -> COLON
240
+ ';' # 0x003b -> SEMICOLON
241
+ '<' # 0x003c -> LESS-THAN SIGN
242
+ '=' # 0x003d -> EQUALS SIGN
243
+ '>' # 0x003e -> GREATER-THAN SIGN
244
+ '?' # 0x003f -> QUESTION MARK
245
+ '@' # 0x0040 -> COMMERCIAL AT
246
+ 'A' # 0x0041 -> LATIN CAPITAL LETTER A
247
+ 'B' # 0x0042 -> LATIN CAPITAL LETTER B
248
+ 'C' # 0x0043 -> LATIN CAPITAL LETTER C
249
+ 'D' # 0x0044 -> LATIN CAPITAL LETTER D
250
+ 'E' # 0x0045 -> LATIN CAPITAL LETTER E
251
+ 'F' # 0x0046 -> LATIN CAPITAL LETTER F
252
+ 'G' # 0x0047 -> LATIN CAPITAL LETTER G
253
+ 'H' # 0x0048 -> LATIN CAPITAL LETTER H
254
+ 'I' # 0x0049 -> LATIN CAPITAL LETTER I
255
+ 'J' # 0x004a -> LATIN CAPITAL LETTER J
256
+ 'K' # 0x004b -> LATIN CAPITAL LETTER K
257
+ 'L' # 0x004c -> LATIN CAPITAL LETTER L
258
+ 'M' # 0x004d -> LATIN CAPITAL LETTER M
259
+ 'N' # 0x004e -> LATIN CAPITAL LETTER N
260
+ 'O' # 0x004f -> LATIN CAPITAL LETTER O
261
+ 'P' # 0x0050 -> LATIN CAPITAL LETTER P
262
+ 'Q' # 0x0051 -> LATIN CAPITAL LETTER Q
263
+ 'R' # 0x0052 -> LATIN CAPITAL LETTER R
264
+ 'S' # 0x0053 -> LATIN CAPITAL LETTER S
265
+ 'T' # 0x0054 -> LATIN CAPITAL LETTER T
266
+ 'U' # 0x0055 -> LATIN CAPITAL LETTER U
267
+ 'V' # 0x0056 -> LATIN CAPITAL LETTER V
268
+ 'W' # 0x0057 -> LATIN CAPITAL LETTER W
269
+ 'X' # 0x0058 -> LATIN CAPITAL LETTER X
270
+ 'Y' # 0x0059 -> LATIN CAPITAL LETTER Y
271
+ 'Z' # 0x005a -> LATIN CAPITAL LETTER Z
272
+ '[' # 0x005b -> LEFT SQUARE BRACKET
273
+ '\\' # 0x005c -> REVERSE SOLIDUS
274
+ ']' # 0x005d -> RIGHT SQUARE BRACKET
275
+ '^' # 0x005e -> CIRCUMFLEX ACCENT
276
+ '_' # 0x005f -> LOW LINE
277
+ '`' # 0x0060 -> GRAVE ACCENT
278
+ 'a' # 0x0061 -> LATIN SMALL LETTER A
279
+ 'b' # 0x0062 -> LATIN SMALL LETTER B
280
+ 'c' # 0x0063 -> LATIN SMALL LETTER C
281
+ 'd' # 0x0064 -> LATIN SMALL LETTER D
282
+ 'e' # 0x0065 -> LATIN SMALL LETTER E
283
+ 'f' # 0x0066 -> LATIN SMALL LETTER F
284
+ 'g' # 0x0067 -> LATIN SMALL LETTER G
285
+ 'h' # 0x0068 -> LATIN SMALL LETTER H
286
+ 'i' # 0x0069 -> LATIN SMALL LETTER I
287
+ 'j' # 0x006a -> LATIN SMALL LETTER J
288
+ 'k' # 0x006b -> LATIN SMALL LETTER K
289
+ 'l' # 0x006c -> LATIN SMALL LETTER L
290
+ 'm' # 0x006d -> LATIN SMALL LETTER M
291
+ 'n' # 0x006e -> LATIN SMALL LETTER N
292
+ 'o' # 0x006f -> LATIN SMALL LETTER O
293
+ 'p' # 0x0070 -> LATIN SMALL LETTER P
294
+ 'q' # 0x0071 -> LATIN SMALL LETTER Q
295
+ 'r' # 0x0072 -> LATIN SMALL LETTER R
296
+ 's' # 0x0073 -> LATIN SMALL LETTER S
297
+ 't' # 0x0074 -> LATIN SMALL LETTER T
298
+ 'u' # 0x0075 -> LATIN SMALL LETTER U
299
+ 'v' # 0x0076 -> LATIN SMALL LETTER V
300
+ 'w' # 0x0077 -> LATIN SMALL LETTER W
301
+ 'x' # 0x0078 -> LATIN SMALL LETTER X
302
+ 'y' # 0x0079 -> LATIN SMALL LETTER Y
303
+ 'z' # 0x007a -> LATIN SMALL LETTER Z
304
+ '{' # 0x007b -> LEFT CURLY BRACKET
305
+ '|' # 0x007c -> VERTICAL LINE
306
+ '}' # 0x007d -> RIGHT CURLY BRACKET
307
+ '~' # 0x007e -> TILDE
308
+ '\x7f' # 0x007f -> DELETE
309
+ '\u05d0' # 0x0080 -> HEBREW LETTER ALEF
310
+ '\u05d1' # 0x0081 -> HEBREW LETTER BET
311
+ '\u05d2' # 0x0082 -> HEBREW LETTER GIMEL
312
+ '\u05d3' # 0x0083 -> HEBREW LETTER DALET
313
+ '\u05d4' # 0x0084 -> HEBREW LETTER HE
314
+ '\u05d5' # 0x0085 -> HEBREW LETTER VAV
315
+ '\u05d6' # 0x0086 -> HEBREW LETTER ZAYIN
316
+ '\u05d7' # 0x0087 -> HEBREW LETTER HET
317
+ '\u05d8' # 0x0088 -> HEBREW LETTER TET
318
+ '\u05d9' # 0x0089 -> HEBREW LETTER YOD
319
+ '\u05da' # 0x008a -> HEBREW LETTER FINAL KAF
320
+ '\u05db' # 0x008b -> HEBREW LETTER KAF
321
+ '\u05dc' # 0x008c -> HEBREW LETTER LAMED
322
+ '\u05dd' # 0x008d -> HEBREW LETTER FINAL MEM
323
+ '\u05de' # 0x008e -> HEBREW LETTER MEM
324
+ '\u05df' # 0x008f -> HEBREW LETTER FINAL NUN
325
+ '\u05e0' # 0x0090 -> HEBREW LETTER NUN
326
+ '\u05e1' # 0x0091 -> HEBREW LETTER SAMEKH
327
+ '\u05e2' # 0x0092 -> HEBREW LETTER AYIN
328
+ '\u05e3' # 0x0093 -> HEBREW LETTER FINAL PE
329
+ '\u05e4' # 0x0094 -> HEBREW LETTER PE
330
+ '\u05e5' # 0x0095 -> HEBREW LETTER FINAL TSADI
331
+ '\u05e6' # 0x0096 -> HEBREW LETTER TSADI
332
+ '\u05e7' # 0x0097 -> HEBREW LETTER QOF
333
+ '\u05e8' # 0x0098 -> HEBREW LETTER RESH
334
+ '\u05e9' # 0x0099 -> HEBREW LETTER SHIN
335
+ '\u05ea' # 0x009a -> HEBREW LETTER TAV
336
+ '\xa2' # 0x009b -> CENT SIGN
337
+ '\xa3' # 0x009c -> POUND SIGN
338
+ '\xa5' # 0x009d -> YEN SIGN
339
+ '\u20a7' # 0x009e -> PESETA SIGN
340
+ '\u0192' # 0x009f -> LATIN SMALL LETTER F WITH HOOK
341
+ '\xe1' # 0x00a0 -> LATIN SMALL LETTER A WITH ACUTE
342
+ '\xed' # 0x00a1 -> LATIN SMALL LETTER I WITH ACUTE
343
+ '\xf3' # 0x00a2 -> LATIN SMALL LETTER O WITH ACUTE
344
+ '\xfa' # 0x00a3 -> LATIN SMALL LETTER U WITH ACUTE
345
+ '\xf1' # 0x00a4 -> LATIN SMALL LETTER N WITH TILDE
346
+ '\xd1' # 0x00a5 -> LATIN CAPITAL LETTER N WITH TILDE
347
+ '\xaa' # 0x00a6 -> FEMININE ORDINAL INDICATOR
348
+ '\xba' # 0x00a7 -> MASCULINE ORDINAL INDICATOR
349
+ '\xbf' # 0x00a8 -> INVERTED QUESTION MARK
350
+ '\u2310' # 0x00a9 -> REVERSED NOT SIGN
351
+ '\xac' # 0x00aa -> NOT SIGN
352
+ '\xbd' # 0x00ab -> VULGAR FRACTION ONE HALF
353
+ '\xbc' # 0x00ac -> VULGAR FRACTION ONE QUARTER
354
+ '\xa1' # 0x00ad -> INVERTED EXCLAMATION MARK
355
+ '\xab' # 0x00ae -> LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
356
+ '\xbb' # 0x00af -> RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
357
+ '\u2591' # 0x00b0 -> LIGHT SHADE
358
+ '\u2592' # 0x00b1 -> MEDIUM SHADE
359
+ '\u2593' # 0x00b2 -> DARK SHADE
360
+ '\u2502' # 0x00b3 -> BOX DRAWINGS LIGHT VERTICAL
361
+ '\u2524' # 0x00b4 -> BOX DRAWINGS LIGHT VERTICAL AND LEFT
362
+ '\u2561' # 0x00b5 -> BOX DRAWINGS VERTICAL SINGLE AND LEFT DOUBLE
363
+ '\u2562' # 0x00b6 -> BOX DRAWINGS VERTICAL DOUBLE AND LEFT SINGLE
364
+ '\u2556' # 0x00b7 -> BOX DRAWINGS DOWN DOUBLE AND LEFT SINGLE
365
+ '\u2555' # 0x00b8 -> BOX DRAWINGS DOWN SINGLE AND LEFT DOUBLE
366
+ '\u2563' # 0x00b9 -> BOX DRAWINGS DOUBLE VERTICAL AND LEFT
367
+ '\u2551' # 0x00ba -> BOX DRAWINGS DOUBLE VERTICAL
368
+ '\u2557' # 0x00bb -> BOX DRAWINGS DOUBLE DOWN AND LEFT
369
+ '\u255d' # 0x00bc -> BOX DRAWINGS DOUBLE UP AND LEFT
370
+ '\u255c' # 0x00bd -> BOX DRAWINGS UP DOUBLE AND LEFT SINGLE
371
+ '\u255b' # 0x00be -> BOX DRAWINGS UP SINGLE AND LEFT DOUBLE
372
+ '\u2510' # 0x00bf -> BOX DRAWINGS LIGHT DOWN AND LEFT
373
+ '\u2514' # 0x00c0 -> BOX DRAWINGS LIGHT UP AND RIGHT
374
+ '\u2534' # 0x00c1 -> BOX DRAWINGS LIGHT UP AND HORIZONTAL
375
+ '\u252c' # 0x00c2 -> BOX DRAWINGS LIGHT DOWN AND HORIZONTAL
376
+ '\u251c' # 0x00c3 -> BOX DRAWINGS LIGHT VERTICAL AND RIGHT
377
+ '\u2500' # 0x00c4 -> BOX DRAWINGS LIGHT HORIZONTAL
378
+ '\u253c' # 0x00c5 -> BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL
379
+ '\u255e' # 0x00c6 -> BOX DRAWINGS VERTICAL SINGLE AND RIGHT DOUBLE
380
+ '\u255f' # 0x00c7 -> BOX DRAWINGS VERTICAL DOUBLE AND RIGHT SINGLE
381
+ '\u255a' # 0x00c8 -> BOX DRAWINGS DOUBLE UP AND RIGHT
382
+ '\u2554' # 0x00c9 -> BOX DRAWINGS DOUBLE DOWN AND RIGHT
383
+ '\u2569' # 0x00ca -> BOX DRAWINGS DOUBLE UP AND HORIZONTAL
384
+ '\u2566' # 0x00cb -> BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL
385
+ '\u2560' # 0x00cc -> BOX DRAWINGS DOUBLE VERTICAL AND RIGHT
386
+ '\u2550' # 0x00cd -> BOX DRAWINGS DOUBLE HORIZONTAL
387
+ '\u256c' # 0x00ce -> BOX DRAWINGS DOUBLE VERTICAL AND HORIZONTAL
388
+ '\u2567' # 0x00cf -> BOX DRAWINGS UP SINGLE AND HORIZONTAL DOUBLE
389
+ '\u2568' # 0x00d0 -> BOX DRAWINGS UP DOUBLE AND HORIZONTAL SINGLE
390
+ '\u2564' # 0x00d1 -> BOX DRAWINGS DOWN SINGLE AND HORIZONTAL DOUBLE
391
+ '\u2565' # 0x00d2 -> BOX DRAWINGS DOWN DOUBLE AND HORIZONTAL SINGLE
392
+ '\u2559' # 0x00d3 -> BOX DRAWINGS UP DOUBLE AND RIGHT SINGLE
393
+ '\u2558' # 0x00d4 -> BOX DRAWINGS UP SINGLE AND RIGHT DOUBLE
394
+ '\u2552' # 0x00d5 -> BOX DRAWINGS DOWN SINGLE AND RIGHT DOUBLE
395
+ '\u2553' # 0x00d6 -> BOX DRAWINGS DOWN DOUBLE AND RIGHT SINGLE
396
+ '\u256b' # 0x00d7 -> BOX DRAWINGS VERTICAL DOUBLE AND HORIZONTAL SINGLE
397
+ '\u256a' # 0x00d8 -> BOX DRAWINGS VERTICAL SINGLE AND HORIZONTAL DOUBLE
398
+ '\u2518' # 0x00d9 -> BOX DRAWINGS LIGHT UP AND LEFT
399
+ '\u250c' # 0x00da -> BOX DRAWINGS LIGHT DOWN AND RIGHT
400
+ '\u2588' # 0x00db -> FULL BLOCK
401
+ '\u2584' # 0x00dc -> LOWER HALF BLOCK
402
+ '\u258c' # 0x00dd -> LEFT HALF BLOCK
403
+ '\u2590' # 0x00de -> RIGHT HALF BLOCK
404
+ '\u2580' # 0x00df -> UPPER HALF BLOCK
405
+ '\u03b1' # 0x00e0 -> GREEK SMALL LETTER ALPHA
406
+ '\xdf' # 0x00e1 -> LATIN SMALL LETTER SHARP S (GERMAN)
407
+ '\u0393' # 0x00e2 -> GREEK CAPITAL LETTER GAMMA
408
+ '\u03c0' # 0x00e3 -> GREEK SMALL LETTER PI
409
+ '\u03a3' # 0x00e4 -> GREEK CAPITAL LETTER SIGMA
410
+ '\u03c3' # 0x00e5 -> GREEK SMALL LETTER SIGMA
411
+ '\xb5' # 0x00e6 -> MICRO SIGN
412
+ '\u03c4' # 0x00e7 -> GREEK SMALL LETTER TAU
413
+ '\u03a6' # 0x00e8 -> GREEK CAPITAL LETTER PHI
414
+ '\u0398' # 0x00e9 -> GREEK CAPITAL LETTER THETA
415
+ '\u03a9' # 0x00ea -> GREEK CAPITAL LETTER OMEGA
416
+ '\u03b4' # 0x00eb -> GREEK SMALL LETTER DELTA
417
+ '\u221e' # 0x00ec -> INFINITY
418
+ '\u03c6' # 0x00ed -> GREEK SMALL LETTER PHI
419
+ '\u03b5' # 0x00ee -> GREEK SMALL LETTER EPSILON
420
+ '\u2229' # 0x00ef -> INTERSECTION
421
+ '\u2261' # 0x00f0 -> IDENTICAL TO
422
+ '\xb1' # 0x00f1 -> PLUS-MINUS SIGN
423
+ '\u2265' # 0x00f2 -> GREATER-THAN OR EQUAL TO
424
+ '\u2264' # 0x00f3 -> LESS-THAN OR EQUAL TO
425
+ '\u2320' # 0x00f4 -> TOP HALF INTEGRAL
426
+ '\u2321' # 0x00f5 -> BOTTOM HALF INTEGRAL
427
+ '\xf7' # 0x00f6 -> DIVISION SIGN
428
+ '\u2248' # 0x00f7 -> ALMOST EQUAL TO
429
+ '\xb0' # 0x00f8 -> DEGREE SIGN
430
+ '\u2219' # 0x00f9 -> BULLET OPERATOR
431
+ '\xb7' # 0x00fa -> MIDDLE DOT
432
+ '\u221a' # 0x00fb -> SQUARE ROOT
433
+ '\u207f' # 0x00fc -> SUPERSCRIPT LATIN SMALL LETTER N
434
+ '\xb2' # 0x00fd -> SUPERSCRIPT TWO
435
+ '\u25a0' # 0x00fe -> BLACK SQUARE
436
+ '\xa0' # 0x00ff -> NO-BREAK SPACE
437
+ )
438
+
439
+ ### Encoding Map
440
+
441
+ encoding_map = {
442
+ 0x0000: 0x0000, # NULL
443
+ 0x0001: 0x0001, # START OF HEADING
444
+ 0x0002: 0x0002, # START OF TEXT
445
+ 0x0003: 0x0003, # END OF TEXT
446
+ 0x0004: 0x0004, # END OF TRANSMISSION
447
+ 0x0005: 0x0005, # ENQUIRY
448
+ 0x0006: 0x0006, # ACKNOWLEDGE
449
+ 0x0007: 0x0007, # BELL
450
+ 0x0008: 0x0008, # BACKSPACE
451
+ 0x0009: 0x0009, # HORIZONTAL TABULATION
452
+ 0x000a: 0x000a, # LINE FEED
453
+ 0x000b: 0x000b, # VERTICAL TABULATION
454
+ 0x000c: 0x000c, # FORM FEED
455
+ 0x000d: 0x000d, # CARRIAGE RETURN
456
+ 0x000e: 0x000e, # SHIFT OUT
457
+ 0x000f: 0x000f, # SHIFT IN
458
+ 0x0010: 0x0010, # DATA LINK ESCAPE
459
+ 0x0011: 0x0011, # DEVICE CONTROL ONE
460
+ 0x0012: 0x0012, # DEVICE CONTROL TWO
461
+ 0x0013: 0x0013, # DEVICE CONTROL THREE
462
+ 0x0014: 0x0014, # DEVICE CONTROL FOUR
463
+ 0x0015: 0x0015, # NEGATIVE ACKNOWLEDGE
464
+ 0x0016: 0x0016, # SYNCHRONOUS IDLE
465
+ 0x0017: 0x0017, # END OF TRANSMISSION BLOCK
466
+ 0x0018: 0x0018, # CANCEL
467
+ 0x0019: 0x0019, # END OF MEDIUM
468
+ 0x001a: 0x001a, # SUBSTITUTE
469
+ 0x001b: 0x001b, # ESCAPE
470
+ 0x001c: 0x001c, # FILE SEPARATOR
471
+ 0x001d: 0x001d, # GROUP SEPARATOR
472
+ 0x001e: 0x001e, # RECORD SEPARATOR
473
+ 0x001f: 0x001f, # UNIT SEPARATOR
474
+ 0x0020: 0x0020, # SPACE
475
+ 0x0021: 0x0021, # EXCLAMATION MARK
476
+ 0x0022: 0x0022, # QUOTATION MARK
477
+ 0x0023: 0x0023, # NUMBER SIGN
478
+ 0x0024: 0x0024, # DOLLAR SIGN
479
+ 0x0025: 0x0025, # PERCENT SIGN
480
+ 0x0026: 0x0026, # AMPERSAND
481
+ 0x0027: 0x0027, # APOSTROPHE
482
+ 0x0028: 0x0028, # LEFT PARENTHESIS
483
+ 0x0029: 0x0029, # RIGHT PARENTHESIS
484
+ 0x002a: 0x002a, # ASTERISK
485
+ 0x002b: 0x002b, # PLUS SIGN
486
+ 0x002c: 0x002c, # COMMA
487
+ 0x002d: 0x002d, # HYPHEN-MINUS
488
+ 0x002e: 0x002e, # FULL STOP
489
+ 0x002f: 0x002f, # SOLIDUS
490
+ 0x0030: 0x0030, # DIGIT ZERO
491
+ 0x0031: 0x0031, # DIGIT ONE
492
+ 0x0032: 0x0032, # DIGIT TWO
493
+ 0x0033: 0x0033, # DIGIT THREE
494
+ 0x0034: 0x0034, # DIGIT FOUR
495
+ 0x0035: 0x0035, # DIGIT FIVE
496
+ 0x0036: 0x0036, # DIGIT SIX
497
+ 0x0037: 0x0037, # DIGIT SEVEN
498
+ 0x0038: 0x0038, # DIGIT EIGHT
499
+ 0x0039: 0x0039, # DIGIT NINE
500
+ 0x003a: 0x003a, # COLON
501
+ 0x003b: 0x003b, # SEMICOLON
502
+ 0x003c: 0x003c, # LESS-THAN SIGN
503
+ 0x003d: 0x003d, # EQUALS SIGN
504
+ 0x003e: 0x003e, # GREATER-THAN SIGN
505
+ 0x003f: 0x003f, # QUESTION MARK
506
+ 0x0040: 0x0040, # COMMERCIAL AT
507
+ 0x0041: 0x0041, # LATIN CAPITAL LETTER A
508
+ 0x0042: 0x0042, # LATIN CAPITAL LETTER B
509
+ 0x0043: 0x0043, # LATIN CAPITAL LETTER C
510
+ 0x0044: 0x0044, # LATIN CAPITAL LETTER D
511
+ 0x0045: 0x0045, # LATIN CAPITAL LETTER E
512
+ 0x0046: 0x0046, # LATIN CAPITAL LETTER F
513
+ 0x0047: 0x0047, # LATIN CAPITAL LETTER G
514
+ 0x0048: 0x0048, # LATIN CAPITAL LETTER H
515
+ 0x0049: 0x0049, # LATIN CAPITAL LETTER I
516
+ 0x004a: 0x004a, # LATIN CAPITAL LETTER J
517
+ 0x004b: 0x004b, # LATIN CAPITAL LETTER K
518
+ 0x004c: 0x004c, # LATIN CAPITAL LETTER L
519
+ 0x004d: 0x004d, # LATIN CAPITAL LETTER M
520
+ 0x004e: 0x004e, # LATIN CAPITAL LETTER N
521
+ 0x004f: 0x004f, # LATIN CAPITAL LETTER O
522
+ 0x0050: 0x0050, # LATIN CAPITAL LETTER P
523
+ 0x0051: 0x0051, # LATIN CAPITAL LETTER Q
524
+ 0x0052: 0x0052, # LATIN CAPITAL LETTER R
525
+ 0x0053: 0x0053, # LATIN CAPITAL LETTER S
526
+ 0x0054: 0x0054, # LATIN CAPITAL LETTER T
527
+ 0x0055: 0x0055, # LATIN CAPITAL LETTER U
528
+ 0x0056: 0x0056, # LATIN CAPITAL LETTER V
529
+ 0x0057: 0x0057, # LATIN CAPITAL LETTER W
530
+ 0x0058: 0x0058, # LATIN CAPITAL LETTER X
531
+ 0x0059: 0x0059, # LATIN CAPITAL LETTER Y
532
+ 0x005a: 0x005a, # LATIN CAPITAL LETTER Z
533
+ 0x005b: 0x005b, # LEFT SQUARE BRACKET
534
+ 0x005c: 0x005c, # REVERSE SOLIDUS
535
+ 0x005d: 0x005d, # RIGHT SQUARE BRACKET
536
+ 0x005e: 0x005e, # CIRCUMFLEX ACCENT
537
+ 0x005f: 0x005f, # LOW LINE
538
+ 0x0060: 0x0060, # GRAVE ACCENT
539
+ 0x0061: 0x0061, # LATIN SMALL LETTER A
540
+ 0x0062: 0x0062, # LATIN SMALL LETTER B
541
+ 0x0063: 0x0063, # LATIN SMALL LETTER C
542
+ 0x0064: 0x0064, # LATIN SMALL LETTER D
543
+ 0x0065: 0x0065, # LATIN SMALL LETTER E
544
+ 0x0066: 0x0066, # LATIN SMALL LETTER F
545
+ 0x0067: 0x0067, # LATIN SMALL LETTER G
546
+ 0x0068: 0x0068, # LATIN SMALL LETTER H
547
+ 0x0069: 0x0069, # LATIN SMALL LETTER I
548
+ 0x006a: 0x006a, # LATIN SMALL LETTER J
549
+ 0x006b: 0x006b, # LATIN SMALL LETTER K
550
+ 0x006c: 0x006c, # LATIN SMALL LETTER L
551
+ 0x006d: 0x006d, # LATIN SMALL LETTER M
552
+ 0x006e: 0x006e, # LATIN SMALL LETTER N
553
+ 0x006f: 0x006f, # LATIN SMALL LETTER O
554
+ 0x0070: 0x0070, # LATIN SMALL LETTER P
555
+ 0x0071: 0x0071, # LATIN SMALL LETTER Q
556
+ 0x0072: 0x0072, # LATIN SMALL LETTER R
557
+ 0x0073: 0x0073, # LATIN SMALL LETTER S
558
+ 0x0074: 0x0074, # LATIN SMALL LETTER T
559
+ 0x0075: 0x0075, # LATIN SMALL LETTER U
560
+ 0x0076: 0x0076, # LATIN SMALL LETTER V
561
+ 0x0077: 0x0077, # LATIN SMALL LETTER W
562
+ 0x0078: 0x0078, # LATIN SMALL LETTER X
563
+ 0x0079: 0x0079, # LATIN SMALL LETTER Y
564
+ 0x007a: 0x007a, # LATIN SMALL LETTER Z
565
+ 0x007b: 0x007b, # LEFT CURLY BRACKET
566
+ 0x007c: 0x007c, # VERTICAL LINE
567
+ 0x007d: 0x007d, # RIGHT CURLY BRACKET
568
+ 0x007e: 0x007e, # TILDE
569
+ 0x007f: 0x007f, # DELETE
570
+ 0x00a0: 0x00ff, # NO-BREAK SPACE
571
+ 0x00a1: 0x00ad, # INVERTED EXCLAMATION MARK
572
+ 0x00a2: 0x009b, # CENT SIGN
573
+ 0x00a3: 0x009c, # POUND SIGN
574
+ 0x00a5: 0x009d, # YEN SIGN
575
+ 0x00aa: 0x00a6, # FEMININE ORDINAL INDICATOR
576
+ 0x00ab: 0x00ae, # LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
577
+ 0x00ac: 0x00aa, # NOT SIGN
578
+ 0x00b0: 0x00f8, # DEGREE SIGN
579
+ 0x00b1: 0x00f1, # PLUS-MINUS SIGN
580
+ 0x00b2: 0x00fd, # SUPERSCRIPT TWO
581
+ 0x00b5: 0x00e6, # MICRO SIGN
582
+ 0x00b7: 0x00fa, # MIDDLE DOT
583
+ 0x00ba: 0x00a7, # MASCULINE ORDINAL INDICATOR
584
+ 0x00bb: 0x00af, # RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
585
+ 0x00bc: 0x00ac, # VULGAR FRACTION ONE QUARTER
586
+ 0x00bd: 0x00ab, # VULGAR FRACTION ONE HALF
587
+ 0x00bf: 0x00a8, # INVERTED QUESTION MARK
588
+ 0x00d1: 0x00a5, # LATIN CAPITAL LETTER N WITH TILDE
589
+ 0x00df: 0x00e1, # LATIN SMALL LETTER SHARP S (GERMAN)
590
+ 0x00e1: 0x00a0, # LATIN SMALL LETTER A WITH ACUTE
591
+ 0x00ed: 0x00a1, # LATIN SMALL LETTER I WITH ACUTE
592
+ 0x00f1: 0x00a4, # LATIN SMALL LETTER N WITH TILDE
593
+ 0x00f3: 0x00a2, # LATIN SMALL LETTER O WITH ACUTE
594
+ 0x00f7: 0x00f6, # DIVISION SIGN
595
+ 0x00fa: 0x00a3, # LATIN SMALL LETTER U WITH ACUTE
596
+ 0x0192: 0x009f, # LATIN SMALL LETTER F WITH HOOK
597
+ 0x0393: 0x00e2, # GREEK CAPITAL LETTER GAMMA
598
+ 0x0398: 0x00e9, # GREEK CAPITAL LETTER THETA
599
+ 0x03a3: 0x00e4, # GREEK CAPITAL LETTER SIGMA
600
+ 0x03a6: 0x00e8, # GREEK CAPITAL LETTER PHI
601
+ 0x03a9: 0x00ea, # GREEK CAPITAL LETTER OMEGA
602
+ 0x03b1: 0x00e0, # GREEK SMALL LETTER ALPHA
603
+ 0x03b4: 0x00eb, # GREEK SMALL LETTER DELTA
604
+ 0x03b5: 0x00ee, # GREEK SMALL LETTER EPSILON
605
+ 0x03c0: 0x00e3, # GREEK SMALL LETTER PI
606
+ 0x03c3: 0x00e5, # GREEK SMALL LETTER SIGMA
607
+ 0x03c4: 0x00e7, # GREEK SMALL LETTER TAU
608
+ 0x03c6: 0x00ed, # GREEK SMALL LETTER PHI
609
+ 0x05d0: 0x0080, # HEBREW LETTER ALEF
610
+ 0x05d1: 0x0081, # HEBREW LETTER BET
611
+ 0x05d2: 0x0082, # HEBREW LETTER GIMEL
612
+ 0x05d3: 0x0083, # HEBREW LETTER DALET
613
+ 0x05d4: 0x0084, # HEBREW LETTER HE
614
+ 0x05d5: 0x0085, # HEBREW LETTER VAV
615
+ 0x05d6: 0x0086, # HEBREW LETTER ZAYIN
616
+ 0x05d7: 0x0087, # HEBREW LETTER HET
617
+ 0x05d8: 0x0088, # HEBREW LETTER TET
618
+ 0x05d9: 0x0089, # HEBREW LETTER YOD
619
+ 0x05da: 0x008a, # HEBREW LETTER FINAL KAF
620
+ 0x05db: 0x008b, # HEBREW LETTER KAF
621
+ 0x05dc: 0x008c, # HEBREW LETTER LAMED
622
+ 0x05dd: 0x008d, # HEBREW LETTER FINAL MEM
623
+ 0x05de: 0x008e, # HEBREW LETTER MEM
624
+ 0x05df: 0x008f, # HEBREW LETTER FINAL NUN
625
+ 0x05e0: 0x0090, # HEBREW LETTER NUN
626
+ 0x05e1: 0x0091, # HEBREW LETTER SAMEKH
627
+ 0x05e2: 0x0092, # HEBREW LETTER AYIN
628
+ 0x05e3: 0x0093, # HEBREW LETTER FINAL PE
629
+ 0x05e4: 0x0094, # HEBREW LETTER PE
630
+ 0x05e5: 0x0095, # HEBREW LETTER FINAL TSADI
631
+ 0x05e6: 0x0096, # HEBREW LETTER TSADI
632
+ 0x05e7: 0x0097, # HEBREW LETTER QOF
633
+ 0x05e8: 0x0098, # HEBREW LETTER RESH
634
+ 0x05e9: 0x0099, # HEBREW LETTER SHIN
635
+ 0x05ea: 0x009a, # HEBREW LETTER TAV
636
+ 0x207f: 0x00fc, # SUPERSCRIPT LATIN SMALL LETTER N
637
+ 0x20a7: 0x009e, # PESETA SIGN
638
+ 0x2219: 0x00f9, # BULLET OPERATOR
639
+ 0x221a: 0x00fb, # SQUARE ROOT
640
+ 0x221e: 0x00ec, # INFINITY
641
+ 0x2229: 0x00ef, # INTERSECTION
642
+ 0x2248: 0x00f7, # ALMOST EQUAL TO
643
+ 0x2261: 0x00f0, # IDENTICAL TO
644
+ 0x2264: 0x00f3, # LESS-THAN OR EQUAL TO
645
+ 0x2265: 0x00f2, # GREATER-THAN OR EQUAL TO
646
+ 0x2310: 0x00a9, # REVERSED NOT SIGN
647
+ 0x2320: 0x00f4, # TOP HALF INTEGRAL
648
+ 0x2321: 0x00f5, # BOTTOM HALF INTEGRAL
649
+ 0x2500: 0x00c4, # BOX DRAWINGS LIGHT HORIZONTAL
650
+ 0x2502: 0x00b3, # BOX DRAWINGS LIGHT VERTICAL
651
+ 0x250c: 0x00da, # BOX DRAWINGS LIGHT DOWN AND RIGHT
652
+ 0x2510: 0x00bf, # BOX DRAWINGS LIGHT DOWN AND LEFT
653
+ 0x2514: 0x00c0, # BOX DRAWINGS LIGHT UP AND RIGHT
654
+ 0x2518: 0x00d9, # BOX DRAWINGS LIGHT UP AND LEFT
655
+ 0x251c: 0x00c3, # BOX DRAWINGS LIGHT VERTICAL AND RIGHT
656
+ 0x2524: 0x00b4, # BOX DRAWINGS LIGHT VERTICAL AND LEFT
657
+ 0x252c: 0x00c2, # BOX DRAWINGS LIGHT DOWN AND HORIZONTAL
658
+ 0x2534: 0x00c1, # BOX DRAWINGS LIGHT UP AND HORIZONTAL
659
+ 0x253c: 0x00c5, # BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL
660
+ 0x2550: 0x00cd, # BOX DRAWINGS DOUBLE HORIZONTAL
661
+ 0x2551: 0x00ba, # BOX DRAWINGS DOUBLE VERTICAL
662
+ 0x2552: 0x00d5, # BOX DRAWINGS DOWN SINGLE AND RIGHT DOUBLE
663
+ 0x2553: 0x00d6, # BOX DRAWINGS DOWN DOUBLE AND RIGHT SINGLE
664
+ 0x2554: 0x00c9, # BOX DRAWINGS DOUBLE DOWN AND RIGHT
665
+ 0x2555: 0x00b8, # BOX DRAWINGS DOWN SINGLE AND LEFT DOUBLE
666
+ 0x2556: 0x00b7, # BOX DRAWINGS DOWN DOUBLE AND LEFT SINGLE
667
+ 0x2557: 0x00bb, # BOX DRAWINGS DOUBLE DOWN AND LEFT
668
+ 0x2558: 0x00d4, # BOX DRAWINGS UP SINGLE AND RIGHT DOUBLE
669
+ 0x2559: 0x00d3, # BOX DRAWINGS UP DOUBLE AND RIGHT SINGLE
670
+ 0x255a: 0x00c8, # BOX DRAWINGS DOUBLE UP AND RIGHT
671
+ 0x255b: 0x00be, # BOX DRAWINGS UP SINGLE AND LEFT DOUBLE
672
+ 0x255c: 0x00bd, # BOX DRAWINGS UP DOUBLE AND LEFT SINGLE
673
+ 0x255d: 0x00bc, # BOX DRAWINGS DOUBLE UP AND LEFT
674
+ 0x255e: 0x00c6, # BOX DRAWINGS VERTICAL SINGLE AND RIGHT DOUBLE
675
+ 0x255f: 0x00c7, # BOX DRAWINGS VERTICAL DOUBLE AND RIGHT SINGLE
676
+ 0x2560: 0x00cc, # BOX DRAWINGS DOUBLE VERTICAL AND RIGHT
677
+ 0x2561: 0x00b5, # BOX DRAWINGS VERTICAL SINGLE AND LEFT DOUBLE
678
+ 0x2562: 0x00b6, # BOX DRAWINGS VERTICAL DOUBLE AND LEFT SINGLE
679
+ 0x2563: 0x00b9, # BOX DRAWINGS DOUBLE VERTICAL AND LEFT
680
+ 0x2564: 0x00d1, # BOX DRAWINGS DOWN SINGLE AND HORIZONTAL DOUBLE
681
+ 0x2565: 0x00d2, # BOX DRAWINGS DOWN DOUBLE AND HORIZONTAL SINGLE
682
+ 0x2566: 0x00cb, # BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL
683
+ 0x2567: 0x00cf, # BOX DRAWINGS UP SINGLE AND HORIZONTAL DOUBLE
684
+ 0x2568: 0x00d0, # BOX DRAWINGS UP DOUBLE AND HORIZONTAL SINGLE
685
+ 0x2569: 0x00ca, # BOX DRAWINGS DOUBLE UP AND HORIZONTAL
686
+ 0x256a: 0x00d8, # BOX DRAWINGS VERTICAL SINGLE AND HORIZONTAL DOUBLE
687
+ 0x256b: 0x00d7, # BOX DRAWINGS VERTICAL DOUBLE AND HORIZONTAL SINGLE
688
+ 0x256c: 0x00ce, # BOX DRAWINGS DOUBLE VERTICAL AND HORIZONTAL
689
+ 0x2580: 0x00df, # UPPER HALF BLOCK
690
+ 0x2584: 0x00dc, # LOWER HALF BLOCK
691
+ 0x2588: 0x00db, # FULL BLOCK
692
+ 0x258c: 0x00dd, # LEFT HALF BLOCK
693
+ 0x2590: 0x00de, # RIGHT HALF BLOCK
694
+ 0x2591: 0x00b0, # LIGHT SHADE
695
+ 0x2592: 0x00b1, # MEDIUM SHADE
696
+ 0x2593: 0x00b2, # DARK SHADE
697
+ 0x25a0: 0x00fe, # BLACK SQUARE
698
+ }
parrot/lib/python3.10/encodings/cp874.py ADDED
@@ -0,0 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python Character Mapping Codec cp874 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP874.TXT' with gencodec.py.
2
+
3
+ """#"
4
+
5
+ import codecs
6
+
7
+ ### Codec APIs
8
+
9
+ class Codec(codecs.Codec):
10
+
11
+ def encode(self,input,errors='strict'):
12
+ return codecs.charmap_encode(input,errors,encoding_table)
13
+
14
+ def decode(self,input,errors='strict'):
15
+ return codecs.charmap_decode(input,errors,decoding_table)
16
+
17
+ class IncrementalEncoder(codecs.IncrementalEncoder):
18
+ def encode(self, input, final=False):
19
+ return codecs.charmap_encode(input,self.errors,encoding_table)[0]
20
+
21
+ class IncrementalDecoder(codecs.IncrementalDecoder):
22
+ def decode(self, input, final=False):
23
+ return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
+
25
+ class StreamWriter(Codec,codecs.StreamWriter):
26
+ pass
27
+
28
+ class StreamReader(Codec,codecs.StreamReader):
29
+ pass
30
+
31
+ ### encodings module API
32
+
33
+ def getregentry():
34
+ return codecs.CodecInfo(
35
+ name='cp874',
36
+ encode=Codec().encode,
37
+ decode=Codec().decode,
38
+ incrementalencoder=IncrementalEncoder,
39
+ incrementaldecoder=IncrementalDecoder,
40
+ streamreader=StreamReader,
41
+ streamwriter=StreamWriter,
42
+ )
43
+
44
+
45
+ ### Decoding Table
46
+
47
+ decoding_table = (
48
+ '\x00' # 0x00 -> NULL
49
+ '\x01' # 0x01 -> START OF HEADING
50
+ '\x02' # 0x02 -> START OF TEXT
51
+ '\x03' # 0x03 -> END OF TEXT
52
+ '\x04' # 0x04 -> END OF TRANSMISSION
53
+ '\x05' # 0x05 -> ENQUIRY
54
+ '\x06' # 0x06 -> ACKNOWLEDGE
55
+ '\x07' # 0x07 -> BELL
56
+ '\x08' # 0x08 -> BACKSPACE
57
+ '\t' # 0x09 -> HORIZONTAL TABULATION
58
+ '\n' # 0x0A -> LINE FEED
59
+ '\x0b' # 0x0B -> VERTICAL TABULATION
60
+ '\x0c' # 0x0C -> FORM FEED
61
+ '\r' # 0x0D -> CARRIAGE RETURN
62
+ '\x0e' # 0x0E -> SHIFT OUT
63
+ '\x0f' # 0x0F -> SHIFT IN
64
+ '\x10' # 0x10 -> DATA LINK ESCAPE
65
+ '\x11' # 0x11 -> DEVICE CONTROL ONE
66
+ '\x12' # 0x12 -> DEVICE CONTROL TWO
67
+ '\x13' # 0x13 -> DEVICE CONTROL THREE
68
+ '\x14' # 0x14 -> DEVICE CONTROL FOUR
69
+ '\x15' # 0x15 -> NEGATIVE ACKNOWLEDGE
70
+ '\x16' # 0x16 -> SYNCHRONOUS IDLE
71
+ '\x17' # 0x17 -> END OF TRANSMISSION BLOCK
72
+ '\x18' # 0x18 -> CANCEL
73
+ '\x19' # 0x19 -> END OF MEDIUM
74
+ '\x1a' # 0x1A -> SUBSTITUTE
75
+ '\x1b' # 0x1B -> ESCAPE
76
+ '\x1c' # 0x1C -> FILE SEPARATOR
77
+ '\x1d' # 0x1D -> GROUP SEPARATOR
78
+ '\x1e' # 0x1E -> RECORD SEPARATOR
79
+ '\x1f' # 0x1F -> UNIT SEPARATOR
80
+ ' ' # 0x20 -> SPACE
81
+ '!' # 0x21 -> EXCLAMATION MARK
82
+ '"' # 0x22 -> QUOTATION MARK
83
+ '#' # 0x23 -> NUMBER SIGN
84
+ '$' # 0x24 -> DOLLAR SIGN
85
+ '%' # 0x25 -> PERCENT SIGN
86
+ '&' # 0x26 -> AMPERSAND
87
+ "'" # 0x27 -> APOSTROPHE
88
+ '(' # 0x28 -> LEFT PARENTHESIS
89
+ ')' # 0x29 -> RIGHT PARENTHESIS
90
+ '*' # 0x2A -> ASTERISK
91
+ '+' # 0x2B -> PLUS SIGN
92
+ ',' # 0x2C -> COMMA
93
+ '-' # 0x2D -> HYPHEN-MINUS
94
+ '.' # 0x2E -> FULL STOP
95
+ '/' # 0x2F -> SOLIDUS
96
+ '0' # 0x30 -> DIGIT ZERO
97
+ '1' # 0x31 -> DIGIT ONE
98
+ '2' # 0x32 -> DIGIT TWO
99
+ '3' # 0x33 -> DIGIT THREE
100
+ '4' # 0x34 -> DIGIT FOUR
101
+ '5' # 0x35 -> DIGIT FIVE
102
+ '6' # 0x36 -> DIGIT SIX
103
+ '7' # 0x37 -> DIGIT SEVEN
104
+ '8' # 0x38 -> DIGIT EIGHT
105
+ '9' # 0x39 -> DIGIT NINE
106
+ ':' # 0x3A -> COLON
107
+ ';' # 0x3B -> SEMICOLON
108
+ '<' # 0x3C -> LESS-THAN SIGN
109
+ '=' # 0x3D -> EQUALS SIGN
110
+ '>' # 0x3E -> GREATER-THAN SIGN
111
+ '?' # 0x3F -> QUESTION MARK
112
+ '@' # 0x40 -> COMMERCIAL AT
113
+ 'A' # 0x41 -> LATIN CAPITAL LETTER A
114
+ 'B' # 0x42 -> LATIN CAPITAL LETTER B
115
+ 'C' # 0x43 -> LATIN CAPITAL LETTER C
116
+ 'D' # 0x44 -> LATIN CAPITAL LETTER D
117
+ 'E' # 0x45 -> LATIN CAPITAL LETTER E
118
+ 'F' # 0x46 -> LATIN CAPITAL LETTER F
119
+ 'G' # 0x47 -> LATIN CAPITAL LETTER G
120
+ 'H' # 0x48 -> LATIN CAPITAL LETTER H
121
+ 'I' # 0x49 -> LATIN CAPITAL LETTER I
122
+ 'J' # 0x4A -> LATIN CAPITAL LETTER J
123
+ 'K' # 0x4B -> LATIN CAPITAL LETTER K
124
+ 'L' # 0x4C -> LATIN CAPITAL LETTER L
125
+ 'M' # 0x4D -> LATIN CAPITAL LETTER M
126
+ 'N' # 0x4E -> LATIN CAPITAL LETTER N
127
+ 'O' # 0x4F -> LATIN CAPITAL LETTER O
128
+ 'P' # 0x50 -> LATIN CAPITAL LETTER P
129
+ 'Q' # 0x51 -> LATIN CAPITAL LETTER Q
130
+ 'R' # 0x52 -> LATIN CAPITAL LETTER R
131
+ 'S' # 0x53 -> LATIN CAPITAL LETTER S
132
+ 'T' # 0x54 -> LATIN CAPITAL LETTER T
133
+ 'U' # 0x55 -> LATIN CAPITAL LETTER U
134
+ 'V' # 0x56 -> LATIN CAPITAL LETTER V
135
+ 'W' # 0x57 -> LATIN CAPITAL LETTER W
136
+ 'X' # 0x58 -> LATIN CAPITAL LETTER X
137
+ 'Y' # 0x59 -> LATIN CAPITAL LETTER Y
138
+ 'Z' # 0x5A -> LATIN CAPITAL LETTER Z
139
+ '[' # 0x5B -> LEFT SQUARE BRACKET
140
+ '\\' # 0x5C -> REVERSE SOLIDUS
141
+ ']' # 0x5D -> RIGHT SQUARE BRACKET
142
+ '^' # 0x5E -> CIRCUMFLEX ACCENT
143
+ '_' # 0x5F -> LOW LINE
144
+ '`' # 0x60 -> GRAVE ACCENT
145
+ 'a' # 0x61 -> LATIN SMALL LETTER A
146
+ 'b' # 0x62 -> LATIN SMALL LETTER B
147
+ 'c' # 0x63 -> LATIN SMALL LETTER C
148
+ 'd' # 0x64 -> LATIN SMALL LETTER D
149
+ 'e' # 0x65 -> LATIN SMALL LETTER E
150
+ 'f' # 0x66 -> LATIN SMALL LETTER F
151
+ 'g' # 0x67 -> LATIN SMALL LETTER G
152
+ 'h' # 0x68 -> LATIN SMALL LETTER H
153
+ 'i' # 0x69 -> LATIN SMALL LETTER I
154
+ 'j' # 0x6A -> LATIN SMALL LETTER J
155
+ 'k' # 0x6B -> LATIN SMALL LETTER K
156
+ 'l' # 0x6C -> LATIN SMALL LETTER L
157
+ 'm' # 0x6D -> LATIN SMALL LETTER M
158
+ 'n' # 0x6E -> LATIN SMALL LETTER N
159
+ 'o' # 0x6F -> LATIN SMALL LETTER O
160
+ 'p' # 0x70 -> LATIN SMALL LETTER P
161
+ 'q' # 0x71 -> LATIN SMALL LETTER Q
162
+ 'r' # 0x72 -> LATIN SMALL LETTER R
163
+ 's' # 0x73 -> LATIN SMALL LETTER S
164
+ 't' # 0x74 -> LATIN SMALL LETTER T
165
+ 'u' # 0x75 -> LATIN SMALL LETTER U
166
+ 'v' # 0x76 -> LATIN SMALL LETTER V
167
+ 'w' # 0x77 -> LATIN SMALL LETTER W
168
+ 'x' # 0x78 -> LATIN SMALL LETTER X
169
+ 'y' # 0x79 -> LATIN SMALL LETTER Y
170
+ 'z' # 0x7A -> LATIN SMALL LETTER Z
171
+ '{' # 0x7B -> LEFT CURLY BRACKET
172
+ '|' # 0x7C -> VERTICAL LINE
173
+ '}' # 0x7D -> RIGHT CURLY BRACKET
174
+ '~' # 0x7E -> TILDE
175
+ '\x7f' # 0x7F -> DELETE
176
+ '\u20ac' # 0x80 -> EURO SIGN
177
+ '\ufffe' # 0x81 -> UNDEFINED
178
+ '\ufffe' # 0x82 -> UNDEFINED
179
+ '\ufffe' # 0x83 -> UNDEFINED
180
+ '\ufffe' # 0x84 -> UNDEFINED
181
+ '\u2026' # 0x85 -> HORIZONTAL ELLIPSIS
182
+ '\ufffe' # 0x86 -> UNDEFINED
183
+ '\ufffe' # 0x87 -> UNDEFINED
184
+ '\ufffe' # 0x88 -> UNDEFINED
185
+ '\ufffe' # 0x89 -> UNDEFINED
186
+ '\ufffe' # 0x8A -> UNDEFINED
187
+ '\ufffe' # 0x8B -> UNDEFINED
188
+ '\ufffe' # 0x8C -> UNDEFINED
189
+ '\ufffe' # 0x8D -> UNDEFINED
190
+ '\ufffe' # 0x8E -> UNDEFINED
191
+ '\ufffe' # 0x8F -> UNDEFINED
192
+ '\ufffe' # 0x90 -> UNDEFINED
193
+ '\u2018' # 0x91 -> LEFT SINGLE QUOTATION MARK
194
+ '\u2019' # 0x92 -> RIGHT SINGLE QUOTATION MARK
195
+ '\u201c' # 0x93 -> LEFT DOUBLE QUOTATION MARK
196
+ '\u201d' # 0x94 -> RIGHT DOUBLE QUOTATION MARK
197
+ '\u2022' # 0x95 -> BULLET
198
+ '\u2013' # 0x96 -> EN DASH
199
+ '\u2014' # 0x97 -> EM DASH
200
+ '\ufffe' # 0x98 -> UNDEFINED
201
+ '\ufffe' # 0x99 -> UNDEFINED
202
+ '\ufffe' # 0x9A -> UNDEFINED
203
+ '\ufffe' # 0x9B -> UNDEFINED
204
+ '\ufffe' # 0x9C -> UNDEFINED
205
+ '\ufffe' # 0x9D -> UNDEFINED
206
+ '\ufffe' # 0x9E -> UNDEFINED
207
+ '\ufffe' # 0x9F -> UNDEFINED
208
+ '\xa0' # 0xA0 -> NO-BREAK SPACE
209
+ '\u0e01' # 0xA1 -> THAI CHARACTER KO KAI
210
+ '\u0e02' # 0xA2 -> THAI CHARACTER KHO KHAI
211
+ '\u0e03' # 0xA3 -> THAI CHARACTER KHO KHUAT
212
+ '\u0e04' # 0xA4 -> THAI CHARACTER KHO KHWAI
213
+ '\u0e05' # 0xA5 -> THAI CHARACTER KHO KHON
214
+ '\u0e06' # 0xA6 -> THAI CHARACTER KHO RAKHANG
215
+ '\u0e07' # 0xA7 -> THAI CHARACTER NGO NGU
216
+ '\u0e08' # 0xA8 -> THAI CHARACTER CHO CHAN
217
+ '\u0e09' # 0xA9 -> THAI CHARACTER CHO CHING
218
+ '\u0e0a' # 0xAA -> THAI CHARACTER CHO CHANG
219
+ '\u0e0b' # 0xAB -> THAI CHARACTER SO SO
220
+ '\u0e0c' # 0xAC -> THAI CHARACTER CHO CHOE
221
+ '\u0e0d' # 0xAD -> THAI CHARACTER YO YING
222
+ '\u0e0e' # 0xAE -> THAI CHARACTER DO CHADA
223
+ '\u0e0f' # 0xAF -> THAI CHARACTER TO PATAK
224
+ '\u0e10' # 0xB0 -> THAI CHARACTER THO THAN
225
+ '\u0e11' # 0xB1 -> THAI CHARACTER THO NANGMONTHO
226
+ '\u0e12' # 0xB2 -> THAI CHARACTER THO PHUTHAO
227
+ '\u0e13' # 0xB3 -> THAI CHARACTER NO NEN
228
+ '\u0e14' # 0xB4 -> THAI CHARACTER DO DEK
229
+ '\u0e15' # 0xB5 -> THAI CHARACTER TO TAO
230
+ '\u0e16' # 0xB6 -> THAI CHARACTER THO THUNG
231
+ '\u0e17' # 0xB7 -> THAI CHARACTER THO THAHAN
232
+ '\u0e18' # 0xB8 -> THAI CHARACTER THO THONG
233
+ '\u0e19' # 0xB9 -> THAI CHARACTER NO NU
234
+ '\u0e1a' # 0xBA -> THAI CHARACTER BO BAIMAI
235
+ '\u0e1b' # 0xBB -> THAI CHARACTER PO PLA
236
+ '\u0e1c' # 0xBC -> THAI CHARACTER PHO PHUNG
237
+ '\u0e1d' # 0xBD -> THAI CHARACTER FO FA
238
+ '\u0e1e' # 0xBE -> THAI CHARACTER PHO PHAN
239
+ '\u0e1f' # 0xBF -> THAI CHARACTER FO FAN
240
+ '\u0e20' # 0xC0 -> THAI CHARACTER PHO SAMPHAO
241
+ '\u0e21' # 0xC1 -> THAI CHARACTER MO MA
242
+ '\u0e22' # 0xC2 -> THAI CHARACTER YO YAK
243
+ '\u0e23' # 0xC3 -> THAI CHARACTER RO RUA
244
+ '\u0e24' # 0xC4 -> THAI CHARACTER RU
245
+ '\u0e25' # 0xC5 -> THAI CHARACTER LO LING
246
+ '\u0e26' # 0xC6 -> THAI CHARACTER LU
247
+ '\u0e27' # 0xC7 -> THAI CHARACTER WO WAEN
248
+ '\u0e28' # 0xC8 -> THAI CHARACTER SO SALA
249
+ '\u0e29' # 0xC9 -> THAI CHARACTER SO RUSI
250
+ '\u0e2a' # 0xCA -> THAI CHARACTER SO SUA
251
+ '\u0e2b' # 0xCB -> THAI CHARACTER HO HIP
252
+ '\u0e2c' # 0xCC -> THAI CHARACTER LO CHULA
253
+ '\u0e2d' # 0xCD -> THAI CHARACTER O ANG
254
+ '\u0e2e' # 0xCE -> THAI CHARACTER HO NOKHUK
255
+ '\u0e2f' # 0xCF -> THAI CHARACTER PAIYANNOI
256
+ '\u0e30' # 0xD0 -> THAI CHARACTER SARA A
257
+ '\u0e31' # 0xD1 -> THAI CHARACTER MAI HAN-AKAT
258
+ '\u0e32' # 0xD2 -> THAI CHARACTER SARA AA
259
+ '\u0e33' # 0xD3 -> THAI CHARACTER SARA AM
260
+ '\u0e34' # 0xD4 -> THAI CHARACTER SARA I
261
+ '\u0e35' # 0xD5 -> THAI CHARACTER SARA II
262
+ '\u0e36' # 0xD6 -> THAI CHARACTER SARA UE
263
+ '\u0e37' # 0xD7 -> THAI CHARACTER SARA UEE
264
+ '\u0e38' # 0xD8 -> THAI CHARACTER SARA U
265
+ '\u0e39' # 0xD9 -> THAI CHARACTER SARA UU
266
+ '\u0e3a' # 0xDA -> THAI CHARACTER PHINTHU
267
+ '\ufffe' # 0xDB -> UNDEFINED
268
+ '\ufffe' # 0xDC -> UNDEFINED
269
+ '\ufffe' # 0xDD -> UNDEFINED
270
+ '\ufffe' # 0xDE -> UNDEFINED
271
+ '\u0e3f' # 0xDF -> THAI CURRENCY SYMBOL BAHT
272
+ '\u0e40' # 0xE0 -> THAI CHARACTER SARA E
273
+ '\u0e41' # 0xE1 -> THAI CHARACTER SARA AE
274
+ '\u0e42' # 0xE2 -> THAI CHARACTER SARA O
275
+ '\u0e43' # 0xE3 -> THAI CHARACTER SARA AI MAIMUAN
276
+ '\u0e44' # 0xE4 -> THAI CHARACTER SARA AI MAIMALAI
277
+ '\u0e45' # 0xE5 -> THAI CHARACTER LAKKHANGYAO
278
+ '\u0e46' # 0xE6 -> THAI CHARACTER MAIYAMOK
279
+ '\u0e47' # 0xE7 -> THAI CHARACTER MAITAIKHU
280
+ '\u0e48' # 0xE8 -> THAI CHARACTER MAI EK
281
+ '\u0e49' # 0xE9 -> THAI CHARACTER MAI THO
282
+ '\u0e4a' # 0xEA -> THAI CHARACTER MAI TRI
283
+ '\u0e4b' # 0xEB -> THAI CHARACTER MAI CHATTAWA
284
+ '\u0e4c' # 0xEC -> THAI CHARACTER THANTHAKHAT
285
+ '\u0e4d' # 0xED -> THAI CHARACTER NIKHAHIT
286
+ '\u0e4e' # 0xEE -> THAI CHARACTER YAMAKKAN
287
+ '\u0e4f' # 0xEF -> THAI CHARACTER FONGMAN
288
+ '\u0e50' # 0xF0 -> THAI DIGIT ZERO
289
+ '\u0e51' # 0xF1 -> THAI DIGIT ONE
290
+ '\u0e52' # 0xF2 -> THAI DIGIT TWO
291
+ '\u0e53' # 0xF3 -> THAI DIGIT THREE
292
+ '\u0e54' # 0xF4 -> THAI DIGIT FOUR
293
+ '\u0e55' # 0xF5 -> THAI DIGIT FIVE
294
+ '\u0e56' # 0xF6 -> THAI DIGIT SIX
295
+ '\u0e57' # 0xF7 -> THAI DIGIT SEVEN
296
+ '\u0e58' # 0xF8 -> THAI DIGIT EIGHT
297
+ '\u0e59' # 0xF9 -> THAI DIGIT NINE
298
+ '\u0e5a' # 0xFA -> THAI CHARACTER ANGKHANKHU
299
+ '\u0e5b' # 0xFB -> THAI CHARACTER KHOMUT
300
+ '\ufffe' # 0xFC -> UNDEFINED
301
+ '\ufffe' # 0xFD -> UNDEFINED
302
+ '\ufffe' # 0xFE -> UNDEFINED
303
+ '\ufffe' # 0xFF -> UNDEFINED
304
+ )
305
+
306
+ ### Encoding table
307
+ encoding_table=codecs.charmap_build(decoding_table)
parrot/lib/python3.10/encodings/cp950.py ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # cp950.py: Python Unicode Codec for CP950
3
+ #
4
+ # Written by Hye-Shik Chang <perky@FreeBSD.org>
5
+ #
6
+
7
+ import _codecs_tw, codecs
8
+ import _multibytecodec as mbc
9
+
10
+ codec = _codecs_tw.getcodec('cp950')
11
+
12
+ class Codec(codecs.Codec):
13
+ encode = codec.encode
14
+ decode = codec.decode
15
+
16
+ class IncrementalEncoder(mbc.MultibyteIncrementalEncoder,
17
+ codecs.IncrementalEncoder):
18
+ codec = codec
19
+
20
+ class IncrementalDecoder(mbc.MultibyteIncrementalDecoder,
21
+ codecs.IncrementalDecoder):
22
+ codec = codec
23
+
24
+ class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader):
25
+ codec = codec
26
+
27
+ class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
28
+ codec = codec
29
+
30
+ def getregentry():
31
+ return codecs.CodecInfo(
32
+ name='cp950',
33
+ encode=Codec().encode,
34
+ decode=Codec().decode,
35
+ incrementalencoder=IncrementalEncoder,
36
+ incrementaldecoder=IncrementalDecoder,
37
+ streamreader=StreamReader,
38
+ streamwriter=StreamWriter,
39
+ )
parrot/lib/python3.10/encodings/euc_jisx0213.py ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # euc_jisx0213.py: Python Unicode Codec for EUC_JISX0213
3
+ #
4
+ # Written by Hye-Shik Chang <perky@FreeBSD.org>
5
+ #
6
+
7
+ import _codecs_jp, codecs
8
+ import _multibytecodec as mbc
9
+
10
+ codec = _codecs_jp.getcodec('euc_jisx0213')
11
+
12
+ class Codec(codecs.Codec):
13
+ encode = codec.encode
14
+ decode = codec.decode
15
+
16
+ class IncrementalEncoder(mbc.MultibyteIncrementalEncoder,
17
+ codecs.IncrementalEncoder):
18
+ codec = codec
19
+
20
+ class IncrementalDecoder(mbc.MultibyteIncrementalDecoder,
21
+ codecs.IncrementalDecoder):
22
+ codec = codec
23
+
24
+ class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader):
25
+ codec = codec
26
+
27
+ class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
28
+ codec = codec
29
+
30
+ def getregentry():
31
+ return codecs.CodecInfo(
32
+ name='euc_jisx0213',
33
+ encode=Codec().encode,
34
+ decode=Codec().decode,
35
+ incrementalencoder=IncrementalEncoder,
36
+ incrementaldecoder=IncrementalDecoder,
37
+ streamreader=StreamReader,
38
+ streamwriter=StreamWriter,
39
+ )
parrot/lib/python3.10/encodings/euc_jp.py ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # euc_jp.py: Python Unicode Codec for EUC_JP
3
+ #
4
+ # Written by Hye-Shik Chang <perky@FreeBSD.org>
5
+ #
6
+
7
+ import _codecs_jp, codecs
8
+ import _multibytecodec as mbc
9
+
10
+ codec = _codecs_jp.getcodec('euc_jp')
11
+
12
+ class Codec(codecs.Codec):
13
+ encode = codec.encode
14
+ decode = codec.decode
15
+
16
+ class IncrementalEncoder(mbc.MultibyteIncrementalEncoder,
17
+ codecs.IncrementalEncoder):
18
+ codec = codec
19
+
20
+ class IncrementalDecoder(mbc.MultibyteIncrementalDecoder,
21
+ codecs.IncrementalDecoder):
22
+ codec = codec
23
+
24
+ class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader):
25
+ codec = codec
26
+
27
+ class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
28
+ codec = codec
29
+
30
+ def getregentry():
31
+ return codecs.CodecInfo(
32
+ name='euc_jp',
33
+ encode=Codec().encode,
34
+ decode=Codec().decode,
35
+ incrementalencoder=IncrementalEncoder,
36
+ incrementaldecoder=IncrementalDecoder,
37
+ streamreader=StreamReader,
38
+ streamwriter=StreamWriter,
39
+ )
parrot/lib/python3.10/encodings/euc_kr.py ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # euc_kr.py: Python Unicode Codec for EUC_KR
3
+ #
4
+ # Written by Hye-Shik Chang <perky@FreeBSD.org>
5
+ #
6
+
7
+ import _codecs_kr, codecs
8
+ import _multibytecodec as mbc
9
+
10
+ codec = _codecs_kr.getcodec('euc_kr')
11
+
12
+ class Codec(codecs.Codec):
13
+ encode = codec.encode
14
+ decode = codec.decode
15
+
16
+ class IncrementalEncoder(mbc.MultibyteIncrementalEncoder,
17
+ codecs.IncrementalEncoder):
18
+ codec = codec
19
+
20
+ class IncrementalDecoder(mbc.MultibyteIncrementalDecoder,
21
+ codecs.IncrementalDecoder):
22
+ codec = codec
23
+
24
+ class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader):
25
+ codec = codec
26
+
27
+ class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
28
+ codec = codec
29
+
30
+ def getregentry():
31
+ return codecs.CodecInfo(
32
+ name='euc_kr',
33
+ encode=Codec().encode,
34
+ decode=Codec().decode,
35
+ incrementalencoder=IncrementalEncoder,
36
+ incrementaldecoder=IncrementalDecoder,
37
+ streamreader=StreamReader,
38
+ streamwriter=StreamWriter,
39
+ )
parrot/lib/python3.10/encodings/gb2312.py ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # gb2312.py: Python Unicode Codec for GB2312
3
+ #
4
+ # Written by Hye-Shik Chang <perky@FreeBSD.org>
5
+ #
6
+
7
+ import _codecs_cn, codecs
8
+ import _multibytecodec as mbc
9
+
10
+ codec = _codecs_cn.getcodec('gb2312')
11
+
12
+ class Codec(codecs.Codec):
13
+ encode = codec.encode
14
+ decode = codec.decode
15
+
16
+ class IncrementalEncoder(mbc.MultibyteIncrementalEncoder,
17
+ codecs.IncrementalEncoder):
18
+ codec = codec
19
+
20
+ class IncrementalDecoder(mbc.MultibyteIncrementalDecoder,
21
+ codecs.IncrementalDecoder):
22
+ codec = codec
23
+
24
+ class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader):
25
+ codec = codec
26
+
27
+ class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
28
+ codec = codec
29
+
30
+ def getregentry():
31
+ return codecs.CodecInfo(
32
+ name='gb2312',
33
+ encode=Codec().encode,
34
+ decode=Codec().decode,
35
+ incrementalencoder=IncrementalEncoder,
36
+ incrementaldecoder=IncrementalDecoder,
37
+ streamreader=StreamReader,
38
+ streamwriter=StreamWriter,
39
+ )
parrot/lib/python3.10/encodings/iso2022_jp.py ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # iso2022_jp.py: Python Unicode Codec for ISO2022_JP
3
+ #
4
+ # Written by Hye-Shik Chang <perky@FreeBSD.org>
5
+ #
6
+
7
+ import _codecs_iso2022, codecs
8
+ import _multibytecodec as mbc
9
+
10
+ codec = _codecs_iso2022.getcodec('iso2022_jp')
11
+
12
+ class Codec(codecs.Codec):
13
+ encode = codec.encode
14
+ decode = codec.decode
15
+
16
+ class IncrementalEncoder(mbc.MultibyteIncrementalEncoder,
17
+ codecs.IncrementalEncoder):
18
+ codec = codec
19
+
20
+ class IncrementalDecoder(mbc.MultibyteIncrementalDecoder,
21
+ codecs.IncrementalDecoder):
22
+ codec = codec
23
+
24
+ class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader):
25
+ codec = codec
26
+
27
+ class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
28
+ codec = codec
29
+
30
+ def getregentry():
31
+ return codecs.CodecInfo(
32
+ name='iso2022_jp',
33
+ encode=Codec().encode,
34
+ decode=Codec().decode,
35
+ incrementalencoder=IncrementalEncoder,
36
+ incrementaldecoder=IncrementalDecoder,
37
+ streamreader=StreamReader,
38
+ streamwriter=StreamWriter,
39
+ )
parrot/lib/python3.10/encodings/iso2022_jp_1.py ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # iso2022_jp_1.py: Python Unicode Codec for ISO2022_JP_1
3
+ #
4
+ # Written by Hye-Shik Chang <perky@FreeBSD.org>
5
+ #
6
+
7
+ import _codecs_iso2022, codecs
8
+ import _multibytecodec as mbc
9
+
10
+ codec = _codecs_iso2022.getcodec('iso2022_jp_1')
11
+
12
+ class Codec(codecs.Codec):
13
+ encode = codec.encode
14
+ decode = codec.decode
15
+
16
+ class IncrementalEncoder(mbc.MultibyteIncrementalEncoder,
17
+ codecs.IncrementalEncoder):
18
+ codec = codec
19
+
20
+ class IncrementalDecoder(mbc.MultibyteIncrementalDecoder,
21
+ codecs.IncrementalDecoder):
22
+ codec = codec
23
+
24
+ class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader):
25
+ codec = codec
26
+
27
+ class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
28
+ codec = codec
29
+
30
+ def getregentry():
31
+ return codecs.CodecInfo(
32
+ name='iso2022_jp_1',
33
+ encode=Codec().encode,
34
+ decode=Codec().decode,
35
+ incrementalencoder=IncrementalEncoder,
36
+ incrementaldecoder=IncrementalDecoder,
37
+ streamreader=StreamReader,
38
+ streamwriter=StreamWriter,
39
+ )
parrot/lib/python3.10/encodings/iso2022_jp_3.py ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # iso2022_jp_3.py: Python Unicode Codec for ISO2022_JP_3
3
+ #
4
+ # Written by Hye-Shik Chang <perky@FreeBSD.org>
5
+ #
6
+
7
+ import _codecs_iso2022, codecs
8
+ import _multibytecodec as mbc
9
+
10
+ codec = _codecs_iso2022.getcodec('iso2022_jp_3')
11
+
12
+ class Codec(codecs.Codec):
13
+ encode = codec.encode
14
+ decode = codec.decode
15
+
16
+ class IncrementalEncoder(mbc.MultibyteIncrementalEncoder,
17
+ codecs.IncrementalEncoder):
18
+ codec = codec
19
+
20
+ class IncrementalDecoder(mbc.MultibyteIncrementalDecoder,
21
+ codecs.IncrementalDecoder):
22
+ codec = codec
23
+
24
+ class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader):
25
+ codec = codec
26
+
27
+ class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
28
+ codec = codec
29
+
30
+ def getregentry():
31
+ return codecs.CodecInfo(
32
+ name='iso2022_jp_3',
33
+ encode=Codec().encode,
34
+ decode=Codec().decode,
35
+ incrementalencoder=IncrementalEncoder,
36
+ incrementaldecoder=IncrementalDecoder,
37
+ streamreader=StreamReader,
38
+ streamwriter=StreamWriter,
39
+ )
parrot/lib/python3.10/encodings/iso8859_11.py ADDED
@@ -0,0 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python Character Mapping Codec iso8859_11 generated from 'MAPPINGS/ISO8859/8859-11.TXT' with gencodec.py.
2
+
3
+ """#"
4
+
5
+ import codecs
6
+
7
+ ### Codec APIs
8
+
9
+ class Codec(codecs.Codec):
10
+
11
+ def encode(self,input,errors='strict'):
12
+ return codecs.charmap_encode(input,errors,encoding_table)
13
+
14
+ def decode(self,input,errors='strict'):
15
+ return codecs.charmap_decode(input,errors,decoding_table)
16
+
17
+ class IncrementalEncoder(codecs.IncrementalEncoder):
18
+ def encode(self, input, final=False):
19
+ return codecs.charmap_encode(input,self.errors,encoding_table)[0]
20
+
21
+ class IncrementalDecoder(codecs.IncrementalDecoder):
22
+ def decode(self, input, final=False):
23
+ return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
+
25
+ class StreamWriter(Codec,codecs.StreamWriter):
26
+ pass
27
+
28
+ class StreamReader(Codec,codecs.StreamReader):
29
+ pass
30
+
31
+ ### encodings module API
32
+
33
+ def getregentry():
34
+ return codecs.CodecInfo(
35
+ name='iso8859-11',
36
+ encode=Codec().encode,
37
+ decode=Codec().decode,
38
+ incrementalencoder=IncrementalEncoder,
39
+ incrementaldecoder=IncrementalDecoder,
40
+ streamreader=StreamReader,
41
+ streamwriter=StreamWriter,
42
+ )
43
+
44
+
45
+ ### Decoding Table
46
+
47
+ decoding_table = (
48
+ '\x00' # 0x00 -> NULL
49
+ '\x01' # 0x01 -> START OF HEADING
50
+ '\x02' # 0x02 -> START OF TEXT
51
+ '\x03' # 0x03 -> END OF TEXT
52
+ '\x04' # 0x04 -> END OF TRANSMISSION
53
+ '\x05' # 0x05 -> ENQUIRY
54
+ '\x06' # 0x06 -> ACKNOWLEDGE
55
+ '\x07' # 0x07 -> BELL
56
+ '\x08' # 0x08 -> BACKSPACE
57
+ '\t' # 0x09 -> HORIZONTAL TABULATION
58
+ '\n' # 0x0A -> LINE FEED
59
+ '\x0b' # 0x0B -> VERTICAL TABULATION
60
+ '\x0c' # 0x0C -> FORM FEED
61
+ '\r' # 0x0D -> CARRIAGE RETURN
62
+ '\x0e' # 0x0E -> SHIFT OUT
63
+ '\x0f' # 0x0F -> SHIFT IN
64
+ '\x10' # 0x10 -> DATA LINK ESCAPE
65
+ '\x11' # 0x11 -> DEVICE CONTROL ONE
66
+ '\x12' # 0x12 -> DEVICE CONTROL TWO
67
+ '\x13' # 0x13 -> DEVICE CONTROL THREE
68
+ '\x14' # 0x14 -> DEVICE CONTROL FOUR
69
+ '\x15' # 0x15 -> NEGATIVE ACKNOWLEDGE
70
+ '\x16' # 0x16 -> SYNCHRONOUS IDLE
71
+ '\x17' # 0x17 -> END OF TRANSMISSION BLOCK
72
+ '\x18' # 0x18 -> CANCEL
73
+ '\x19' # 0x19 -> END OF MEDIUM
74
+ '\x1a' # 0x1A -> SUBSTITUTE
75
+ '\x1b' # 0x1B -> ESCAPE
76
+ '\x1c' # 0x1C -> FILE SEPARATOR
77
+ '\x1d' # 0x1D -> GROUP SEPARATOR
78
+ '\x1e' # 0x1E -> RECORD SEPARATOR
79
+ '\x1f' # 0x1F -> UNIT SEPARATOR
80
+ ' ' # 0x20 -> SPACE
81
+ '!' # 0x21 -> EXCLAMATION MARK
82
+ '"' # 0x22 -> QUOTATION MARK
83
+ '#' # 0x23 -> NUMBER SIGN
84
+ '$' # 0x24 -> DOLLAR SIGN
85
+ '%' # 0x25 -> PERCENT SIGN
86
+ '&' # 0x26 -> AMPERSAND
87
+ "'" # 0x27 -> APOSTROPHE
88
+ '(' # 0x28 -> LEFT PARENTHESIS
89
+ ')' # 0x29 -> RIGHT PARENTHESIS
90
+ '*' # 0x2A -> ASTERISK
91
+ '+' # 0x2B -> PLUS SIGN
92
+ ',' # 0x2C -> COMMA
93
+ '-' # 0x2D -> HYPHEN-MINUS
94
+ '.' # 0x2E -> FULL STOP
95
+ '/' # 0x2F -> SOLIDUS
96
+ '0' # 0x30 -> DIGIT ZERO
97
+ '1' # 0x31 -> DIGIT ONE
98
+ '2' # 0x32 -> DIGIT TWO
99
+ '3' # 0x33 -> DIGIT THREE
100
+ '4' # 0x34 -> DIGIT FOUR
101
+ '5' # 0x35 -> DIGIT FIVE
102
+ '6' # 0x36 -> DIGIT SIX
103
+ '7' # 0x37 -> DIGIT SEVEN
104
+ '8' # 0x38 -> DIGIT EIGHT
105
+ '9' # 0x39 -> DIGIT NINE
106
+ ':' # 0x3A -> COLON
107
+ ';' # 0x3B -> SEMICOLON
108
+ '<' # 0x3C -> LESS-THAN SIGN
109
+ '=' # 0x3D -> EQUALS SIGN
110
+ '>' # 0x3E -> GREATER-THAN SIGN
111
+ '?' # 0x3F -> QUESTION MARK
112
+ '@' # 0x40 -> COMMERCIAL AT
113
+ 'A' # 0x41 -> LATIN CAPITAL LETTER A
114
+ 'B' # 0x42 -> LATIN CAPITAL LETTER B
115
+ 'C' # 0x43 -> LATIN CAPITAL LETTER C
116
+ 'D' # 0x44 -> LATIN CAPITAL LETTER D
117
+ 'E' # 0x45 -> LATIN CAPITAL LETTER E
118
+ 'F' # 0x46 -> LATIN CAPITAL LETTER F
119
+ 'G' # 0x47 -> LATIN CAPITAL LETTER G
120
+ 'H' # 0x48 -> LATIN CAPITAL LETTER H
121
+ 'I' # 0x49 -> LATIN CAPITAL LETTER I
122
+ 'J' # 0x4A -> LATIN CAPITAL LETTER J
123
+ 'K' # 0x4B -> LATIN CAPITAL LETTER K
124
+ 'L' # 0x4C -> LATIN CAPITAL LETTER L
125
+ 'M' # 0x4D -> LATIN CAPITAL LETTER M
126
+ 'N' # 0x4E -> LATIN CAPITAL LETTER N
127
+ 'O' # 0x4F -> LATIN CAPITAL LETTER O
128
+ 'P' # 0x50 -> LATIN CAPITAL LETTER P
129
+ 'Q' # 0x51 -> LATIN CAPITAL LETTER Q
130
+ 'R' # 0x52 -> LATIN CAPITAL LETTER R
131
+ 'S' # 0x53 -> LATIN CAPITAL LETTER S
132
+ 'T' # 0x54 -> LATIN CAPITAL LETTER T
133
+ 'U' # 0x55 -> LATIN CAPITAL LETTER U
134
+ 'V' # 0x56 -> LATIN CAPITAL LETTER V
135
+ 'W' # 0x57 -> LATIN CAPITAL LETTER W
136
+ 'X' # 0x58 -> LATIN CAPITAL LETTER X
137
+ 'Y' # 0x59 -> LATIN CAPITAL LETTER Y
138
+ 'Z' # 0x5A -> LATIN CAPITAL LETTER Z
139
+ '[' # 0x5B -> LEFT SQUARE BRACKET
140
+ '\\' # 0x5C -> REVERSE SOLIDUS
141
+ ']' # 0x5D -> RIGHT SQUARE BRACKET
142
+ '^' # 0x5E -> CIRCUMFLEX ACCENT
143
+ '_' # 0x5F -> LOW LINE
144
+ '`' # 0x60 -> GRAVE ACCENT
145
+ 'a' # 0x61 -> LATIN SMALL LETTER A
146
+ 'b' # 0x62 -> LATIN SMALL LETTER B
147
+ 'c' # 0x63 -> LATIN SMALL LETTER C
148
+ 'd' # 0x64 -> LATIN SMALL LETTER D
149
+ 'e' # 0x65 -> LATIN SMALL LETTER E
150
+ 'f' # 0x66 -> LATIN SMALL LETTER F
151
+ 'g' # 0x67 -> LATIN SMALL LETTER G
152
+ 'h' # 0x68 -> LATIN SMALL LETTER H
153
+ 'i' # 0x69 -> LATIN SMALL LETTER I
154
+ 'j' # 0x6A -> LATIN SMALL LETTER J
155
+ 'k' # 0x6B -> LATIN SMALL LETTER K
156
+ 'l' # 0x6C -> LATIN SMALL LETTER L
157
+ 'm' # 0x6D -> LATIN SMALL LETTER M
158
+ 'n' # 0x6E -> LATIN SMALL LETTER N
159
+ 'o' # 0x6F -> LATIN SMALL LETTER O
160
+ 'p' # 0x70 -> LATIN SMALL LETTER P
161
+ 'q' # 0x71 -> LATIN SMALL LETTER Q
162
+ 'r' # 0x72 -> LATIN SMALL LETTER R
163
+ 's' # 0x73 -> LATIN SMALL LETTER S
164
+ 't' # 0x74 -> LATIN SMALL LETTER T
165
+ 'u' # 0x75 -> LATIN SMALL LETTER U
166
+ 'v' # 0x76 -> LATIN SMALL LETTER V
167
+ 'w' # 0x77 -> LATIN SMALL LETTER W
168
+ 'x' # 0x78 -> LATIN SMALL LETTER X
169
+ 'y' # 0x79 -> LATIN SMALL LETTER Y
170
+ 'z' # 0x7A -> LATIN SMALL LETTER Z
171
+ '{' # 0x7B -> LEFT CURLY BRACKET
172
+ '|' # 0x7C -> VERTICAL LINE
173
+ '}' # 0x7D -> RIGHT CURLY BRACKET
174
+ '~' # 0x7E -> TILDE
175
+ '\x7f' # 0x7F -> DELETE
176
+ '\x80' # 0x80 -> <control>
177
+ '\x81' # 0x81 -> <control>
178
+ '\x82' # 0x82 -> <control>
179
+ '\x83' # 0x83 -> <control>
180
+ '\x84' # 0x84 -> <control>
181
+ '\x85' # 0x85 -> <control>
182
+ '\x86' # 0x86 -> <control>
183
+ '\x87' # 0x87 -> <control>
184
+ '\x88' # 0x88 -> <control>
185
+ '\x89' # 0x89 -> <control>
186
+ '\x8a' # 0x8A -> <control>
187
+ '\x8b' # 0x8B -> <control>
188
+ '\x8c' # 0x8C -> <control>
189
+ '\x8d' # 0x8D -> <control>
190
+ '\x8e' # 0x8E -> <control>
191
+ '\x8f' # 0x8F -> <control>
192
+ '\x90' # 0x90 -> <control>
193
+ '\x91' # 0x91 -> <control>
194
+ '\x92' # 0x92 -> <control>
195
+ '\x93' # 0x93 -> <control>
196
+ '\x94' # 0x94 -> <control>
197
+ '\x95' # 0x95 -> <control>
198
+ '\x96' # 0x96 -> <control>
199
+ '\x97' # 0x97 -> <control>
200
+ '\x98' # 0x98 -> <control>
201
+ '\x99' # 0x99 -> <control>
202
+ '\x9a' # 0x9A -> <control>
203
+ '\x9b' # 0x9B -> <control>
204
+ '\x9c' # 0x9C -> <control>
205
+ '\x9d' # 0x9D -> <control>
206
+ '\x9e' # 0x9E -> <control>
207
+ '\x9f' # 0x9F -> <control>
208
+ '\xa0' # 0xA0 -> NO-BREAK SPACE
209
+ '\u0e01' # 0xA1 -> THAI CHARACTER KO KAI
210
+ '\u0e02' # 0xA2 -> THAI CHARACTER KHO KHAI
211
+ '\u0e03' # 0xA3 -> THAI CHARACTER KHO KHUAT
212
+ '\u0e04' # 0xA4 -> THAI CHARACTER KHO KHWAI
213
+ '\u0e05' # 0xA5 -> THAI CHARACTER KHO KHON
214
+ '\u0e06' # 0xA6 -> THAI CHARACTER KHO RAKHANG
215
+ '\u0e07' # 0xA7 -> THAI CHARACTER NGO NGU
216
+ '\u0e08' # 0xA8 -> THAI CHARACTER CHO CHAN
217
+ '\u0e09' # 0xA9 -> THAI CHARACTER CHO CHING
218
+ '\u0e0a' # 0xAA -> THAI CHARACTER CHO CHANG
219
+ '\u0e0b' # 0xAB -> THAI CHARACTER SO SO
220
+ '\u0e0c' # 0xAC -> THAI CHARACTER CHO CHOE
221
+ '\u0e0d' # 0xAD -> THAI CHARACTER YO YING
222
+ '\u0e0e' # 0xAE -> THAI CHARACTER DO CHADA
223
+ '\u0e0f' # 0xAF -> THAI CHARACTER TO PATAK
224
+ '\u0e10' # 0xB0 -> THAI CHARACTER THO THAN
225
+ '\u0e11' # 0xB1 -> THAI CHARACTER THO NANGMONTHO
226
+ '\u0e12' # 0xB2 -> THAI CHARACTER THO PHUTHAO
227
+ '\u0e13' # 0xB3 -> THAI CHARACTER NO NEN
228
+ '\u0e14' # 0xB4 -> THAI CHARACTER DO DEK
229
+ '\u0e15' # 0xB5 -> THAI CHARACTER TO TAO
230
+ '\u0e16' # 0xB6 -> THAI CHARACTER THO THUNG
231
+ '\u0e17' # 0xB7 -> THAI CHARACTER THO THAHAN
232
+ '\u0e18' # 0xB8 -> THAI CHARACTER THO THONG
233
+ '\u0e19' # 0xB9 -> THAI CHARACTER NO NU
234
+ '\u0e1a' # 0xBA -> THAI CHARACTER BO BAIMAI
235
+ '\u0e1b' # 0xBB -> THAI CHARACTER PO PLA
236
+ '\u0e1c' # 0xBC -> THAI CHARACTER PHO PHUNG
237
+ '\u0e1d' # 0xBD -> THAI CHARACTER FO FA
238
+ '\u0e1e' # 0xBE -> THAI CHARACTER PHO PHAN
239
+ '\u0e1f' # 0xBF -> THAI CHARACTER FO FAN
240
+ '\u0e20' # 0xC0 -> THAI CHARACTER PHO SAMPHAO
241
+ '\u0e21' # 0xC1 -> THAI CHARACTER MO MA
242
+ '\u0e22' # 0xC2 -> THAI CHARACTER YO YAK
243
+ '\u0e23' # 0xC3 -> THAI CHARACTER RO RUA
244
+ '\u0e24' # 0xC4 -> THAI CHARACTER RU
245
+ '\u0e25' # 0xC5 -> THAI CHARACTER LO LING
246
+ '\u0e26' # 0xC6 -> THAI CHARACTER LU
247
+ '\u0e27' # 0xC7 -> THAI CHARACTER WO WAEN
248
+ '\u0e28' # 0xC8 -> THAI CHARACTER SO SALA
249
+ '\u0e29' # 0xC9 -> THAI CHARACTER SO RUSI
250
+ '\u0e2a' # 0xCA -> THAI CHARACTER SO SUA
251
+ '\u0e2b' # 0xCB -> THAI CHARACTER HO HIP
252
+ '\u0e2c' # 0xCC -> THAI CHARACTER LO CHULA
253
+ '\u0e2d' # 0xCD -> THAI CHARACTER O ANG
254
+ '\u0e2e' # 0xCE -> THAI CHARACTER HO NOKHUK
255
+ '\u0e2f' # 0xCF -> THAI CHARACTER PAIYANNOI
256
+ '\u0e30' # 0xD0 -> THAI CHARACTER SARA A
257
+ '\u0e31' # 0xD1 -> THAI CHARACTER MAI HAN-AKAT
258
+ '\u0e32' # 0xD2 -> THAI CHARACTER SARA AA
259
+ '\u0e33' # 0xD3 -> THAI CHARACTER SARA AM
260
+ '\u0e34' # 0xD4 -> THAI CHARACTER SARA I
261
+ '\u0e35' # 0xD5 -> THAI CHARACTER SARA II
262
+ '\u0e36' # 0xD6 -> THAI CHARACTER SARA UE
263
+ '\u0e37' # 0xD7 -> THAI CHARACTER SARA UEE
264
+ '\u0e38' # 0xD8 -> THAI CHARACTER SARA U
265
+ '\u0e39' # 0xD9 -> THAI CHARACTER SARA UU
266
+ '\u0e3a' # 0xDA -> THAI CHARACTER PHINTHU
267
+ '\ufffe'
268
+ '\ufffe'
269
+ '\ufffe'
270
+ '\ufffe'
271
+ '\u0e3f' # 0xDF -> THAI CURRENCY SYMBOL BAHT
272
+ '\u0e40' # 0xE0 -> THAI CHARACTER SARA E
273
+ '\u0e41' # 0xE1 -> THAI CHARACTER SARA AE
274
+ '\u0e42' # 0xE2 -> THAI CHARACTER SARA O
275
+ '\u0e43' # 0xE3 -> THAI CHARACTER SARA AI MAIMUAN
276
+ '\u0e44' # 0xE4 -> THAI CHARACTER SARA AI MAIMALAI
277
+ '\u0e45' # 0xE5 -> THAI CHARACTER LAKKHANGYAO
278
+ '\u0e46' # 0xE6 -> THAI CHARACTER MAIYAMOK
279
+ '\u0e47' # 0xE7 -> THAI CHARACTER MAITAIKHU
280
+ '\u0e48' # 0xE8 -> THAI CHARACTER MAI EK
281
+ '\u0e49' # 0xE9 -> THAI CHARACTER MAI THO
282
+ '\u0e4a' # 0xEA -> THAI CHARACTER MAI TRI
283
+ '\u0e4b' # 0xEB -> THAI CHARACTER MAI CHATTAWA
284
+ '\u0e4c' # 0xEC -> THAI CHARACTER THANTHAKHAT
285
+ '\u0e4d' # 0xED -> THAI CHARACTER NIKHAHIT
286
+ '\u0e4e' # 0xEE -> THAI CHARACTER YAMAKKAN
287
+ '\u0e4f' # 0xEF -> THAI CHARACTER FONGMAN
288
+ '\u0e50' # 0xF0 -> THAI DIGIT ZERO
289
+ '\u0e51' # 0xF1 -> THAI DIGIT ONE
290
+ '\u0e52' # 0xF2 -> THAI DIGIT TWO
291
+ '\u0e53' # 0xF3 -> THAI DIGIT THREE
292
+ '\u0e54' # 0xF4 -> THAI DIGIT FOUR
293
+ '\u0e55' # 0xF5 -> THAI DIGIT FIVE
294
+ '\u0e56' # 0xF6 -> THAI DIGIT SIX
295
+ '\u0e57' # 0xF7 -> THAI DIGIT SEVEN
296
+ '\u0e58' # 0xF8 -> THAI DIGIT EIGHT
297
+ '\u0e59' # 0xF9 -> THAI DIGIT NINE
298
+ '\u0e5a' # 0xFA -> THAI CHARACTER ANGKHANKHU
299
+ '\u0e5b' # 0xFB -> THAI CHARACTER KHOMUT
300
+ '\ufffe'
301
+ '\ufffe'
302
+ '\ufffe'
303
+ '\ufffe'
304
+ )
305
+
306
+ ### Encoding table
307
+ encoding_table=codecs.charmap_build(decoding_table)
parrot/lib/python3.10/encodings/iso8859_15.py ADDED
@@ -0,0 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python Character Mapping Codec iso8859_15 generated from 'MAPPINGS/ISO8859/8859-15.TXT' with gencodec.py.
2
+
3
+ """#"
4
+
5
+ import codecs
6
+
7
+ ### Codec APIs
8
+
9
+ class Codec(codecs.Codec):
10
+
11
+ def encode(self,input,errors='strict'):
12
+ return codecs.charmap_encode(input,errors,encoding_table)
13
+
14
+ def decode(self,input,errors='strict'):
15
+ return codecs.charmap_decode(input,errors,decoding_table)
16
+
17
+ class IncrementalEncoder(codecs.IncrementalEncoder):
18
+ def encode(self, input, final=False):
19
+ return codecs.charmap_encode(input,self.errors,encoding_table)[0]
20
+
21
+ class IncrementalDecoder(codecs.IncrementalDecoder):
22
+ def decode(self, input, final=False):
23
+ return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
+
25
+ class StreamWriter(Codec,codecs.StreamWriter):
26
+ pass
27
+
28
+ class StreamReader(Codec,codecs.StreamReader):
29
+ pass
30
+
31
+ ### encodings module API
32
+
33
+ def getregentry():
34
+ return codecs.CodecInfo(
35
+ name='iso8859-15',
36
+ encode=Codec().encode,
37
+ decode=Codec().decode,
38
+ incrementalencoder=IncrementalEncoder,
39
+ incrementaldecoder=IncrementalDecoder,
40
+ streamreader=StreamReader,
41
+ streamwriter=StreamWriter,
42
+ )
43
+
44
+
45
+ ### Decoding Table
46
+
47
+ decoding_table = (
48
+ '\x00' # 0x00 -> NULL
49
+ '\x01' # 0x01 -> START OF HEADING
50
+ '\x02' # 0x02 -> START OF TEXT
51
+ '\x03' # 0x03 -> END OF TEXT
52
+ '\x04' # 0x04 -> END OF TRANSMISSION
53
+ '\x05' # 0x05 -> ENQUIRY
54
+ '\x06' # 0x06 -> ACKNOWLEDGE
55
+ '\x07' # 0x07 -> BELL
56
+ '\x08' # 0x08 -> BACKSPACE
57
+ '\t' # 0x09 -> HORIZONTAL TABULATION
58
+ '\n' # 0x0A -> LINE FEED
59
+ '\x0b' # 0x0B -> VERTICAL TABULATION
60
+ '\x0c' # 0x0C -> FORM FEED
61
+ '\r' # 0x0D -> CARRIAGE RETURN
62
+ '\x0e' # 0x0E -> SHIFT OUT
63
+ '\x0f' # 0x0F -> SHIFT IN
64
+ '\x10' # 0x10 -> DATA LINK ESCAPE
65
+ '\x11' # 0x11 -> DEVICE CONTROL ONE
66
+ '\x12' # 0x12 -> DEVICE CONTROL TWO
67
+ '\x13' # 0x13 -> DEVICE CONTROL THREE
68
+ '\x14' # 0x14 -> DEVICE CONTROL FOUR
69
+ '\x15' # 0x15 -> NEGATIVE ACKNOWLEDGE
70
+ '\x16' # 0x16 -> SYNCHRONOUS IDLE
71
+ '\x17' # 0x17 -> END OF TRANSMISSION BLOCK
72
+ '\x18' # 0x18 -> CANCEL
73
+ '\x19' # 0x19 -> END OF MEDIUM
74
+ '\x1a' # 0x1A -> SUBSTITUTE
75
+ '\x1b' # 0x1B -> ESCAPE
76
+ '\x1c' # 0x1C -> FILE SEPARATOR
77
+ '\x1d' # 0x1D -> GROUP SEPARATOR
78
+ '\x1e' # 0x1E -> RECORD SEPARATOR
79
+ '\x1f' # 0x1F -> UNIT SEPARATOR
80
+ ' ' # 0x20 -> SPACE
81
+ '!' # 0x21 -> EXCLAMATION MARK
82
+ '"' # 0x22 -> QUOTATION MARK
83
+ '#' # 0x23 -> NUMBER SIGN
84
+ '$' # 0x24 -> DOLLAR SIGN
85
+ '%' # 0x25 -> PERCENT SIGN
86
+ '&' # 0x26 -> AMPERSAND
87
+ "'" # 0x27 -> APOSTROPHE
88
+ '(' # 0x28 -> LEFT PARENTHESIS
89
+ ')' # 0x29 -> RIGHT PARENTHESIS
90
+ '*' # 0x2A -> ASTERISK
91
+ '+' # 0x2B -> PLUS SIGN
92
+ ',' # 0x2C -> COMMA
93
+ '-' # 0x2D -> HYPHEN-MINUS
94
+ '.' # 0x2E -> FULL STOP
95
+ '/' # 0x2F -> SOLIDUS
96
+ '0' # 0x30 -> DIGIT ZERO
97
+ '1' # 0x31 -> DIGIT ONE
98
+ '2' # 0x32 -> DIGIT TWO
99
+ '3' # 0x33 -> DIGIT THREE
100
+ '4' # 0x34 -> DIGIT FOUR
101
+ '5' # 0x35 -> DIGIT FIVE
102
+ '6' # 0x36 -> DIGIT SIX
103
+ '7' # 0x37 -> DIGIT SEVEN
104
+ '8' # 0x38 -> DIGIT EIGHT
105
+ '9' # 0x39 -> DIGIT NINE
106
+ ':' # 0x3A -> COLON
107
+ ';' # 0x3B -> SEMICOLON
108
+ '<' # 0x3C -> LESS-THAN SIGN
109
+ '=' # 0x3D -> EQUALS SIGN
110
+ '>' # 0x3E -> GREATER-THAN SIGN
111
+ '?' # 0x3F -> QUESTION MARK
112
+ '@' # 0x40 -> COMMERCIAL AT
113
+ 'A' # 0x41 -> LATIN CAPITAL LETTER A
114
+ 'B' # 0x42 -> LATIN CAPITAL LETTER B
115
+ 'C' # 0x43 -> LATIN CAPITAL LETTER C
116
+ 'D' # 0x44 -> LATIN CAPITAL LETTER D
117
+ 'E' # 0x45 -> LATIN CAPITAL LETTER E
118
+ 'F' # 0x46 -> LATIN CAPITAL LETTER F
119
+ 'G' # 0x47 -> LATIN CAPITAL LETTER G
120
+ 'H' # 0x48 -> LATIN CAPITAL LETTER H
121
+ 'I' # 0x49 -> LATIN CAPITAL LETTER I
122
+ 'J' # 0x4A -> LATIN CAPITAL LETTER J
123
+ 'K' # 0x4B -> LATIN CAPITAL LETTER K
124
+ 'L' # 0x4C -> LATIN CAPITAL LETTER L
125
+ 'M' # 0x4D -> LATIN CAPITAL LETTER M
126
+ 'N' # 0x4E -> LATIN CAPITAL LETTER N
127
+ 'O' # 0x4F -> LATIN CAPITAL LETTER O
128
+ 'P' # 0x50 -> LATIN CAPITAL LETTER P
129
+ 'Q' # 0x51 -> LATIN CAPITAL LETTER Q
130
+ 'R' # 0x52 -> LATIN CAPITAL LETTER R
131
+ 'S' # 0x53 -> LATIN CAPITAL LETTER S
132
+ 'T' # 0x54 -> LATIN CAPITAL LETTER T
133
+ 'U' # 0x55 -> LATIN CAPITAL LETTER U
134
+ 'V' # 0x56 -> LATIN CAPITAL LETTER V
135
+ 'W' # 0x57 -> LATIN CAPITAL LETTER W
136
+ 'X' # 0x58 -> LATIN CAPITAL LETTER X
137
+ 'Y' # 0x59 -> LATIN CAPITAL LETTER Y
138
+ 'Z' # 0x5A -> LATIN CAPITAL LETTER Z
139
+ '[' # 0x5B -> LEFT SQUARE BRACKET
140
+ '\\' # 0x5C -> REVERSE SOLIDUS
141
+ ']' # 0x5D -> RIGHT SQUARE BRACKET
142
+ '^' # 0x5E -> CIRCUMFLEX ACCENT
143
+ '_' # 0x5F -> LOW LINE
144
+ '`' # 0x60 -> GRAVE ACCENT
145
+ 'a' # 0x61 -> LATIN SMALL LETTER A
146
+ 'b' # 0x62 -> LATIN SMALL LETTER B
147
+ 'c' # 0x63 -> LATIN SMALL LETTER C
148
+ 'd' # 0x64 -> LATIN SMALL LETTER D
149
+ 'e' # 0x65 -> LATIN SMALL LETTER E
150
+ 'f' # 0x66 -> LATIN SMALL LETTER F
151
+ 'g' # 0x67 -> LATIN SMALL LETTER G
152
+ 'h' # 0x68 -> LATIN SMALL LETTER H
153
+ 'i' # 0x69 -> LATIN SMALL LETTER I
154
+ 'j' # 0x6A -> LATIN SMALL LETTER J
155
+ 'k' # 0x6B -> LATIN SMALL LETTER K
156
+ 'l' # 0x6C -> LATIN SMALL LETTER L
157
+ 'm' # 0x6D -> LATIN SMALL LETTER M
158
+ 'n' # 0x6E -> LATIN SMALL LETTER N
159
+ 'o' # 0x6F -> LATIN SMALL LETTER O
160
+ 'p' # 0x70 -> LATIN SMALL LETTER P
161
+ 'q' # 0x71 -> LATIN SMALL LETTER Q
162
+ 'r' # 0x72 -> LATIN SMALL LETTER R
163
+ 's' # 0x73 -> LATIN SMALL LETTER S
164
+ 't' # 0x74 -> LATIN SMALL LETTER T
165
+ 'u' # 0x75 -> LATIN SMALL LETTER U
166
+ 'v' # 0x76 -> LATIN SMALL LETTER V
167
+ 'w' # 0x77 -> LATIN SMALL LETTER W
168
+ 'x' # 0x78 -> LATIN SMALL LETTER X
169
+ 'y' # 0x79 -> LATIN SMALL LETTER Y
170
+ 'z' # 0x7A -> LATIN SMALL LETTER Z
171
+ '{' # 0x7B -> LEFT CURLY BRACKET
172
+ '|' # 0x7C -> VERTICAL LINE
173
+ '}' # 0x7D -> RIGHT CURLY BRACKET
174
+ '~' # 0x7E -> TILDE
175
+ '\x7f' # 0x7F -> DELETE
176
+ '\x80' # 0x80 -> <control>
177
+ '\x81' # 0x81 -> <control>
178
+ '\x82' # 0x82 -> <control>
179
+ '\x83' # 0x83 -> <control>
180
+ '\x84' # 0x84 -> <control>
181
+ '\x85' # 0x85 -> <control>
182
+ '\x86' # 0x86 -> <control>
183
+ '\x87' # 0x87 -> <control>
184
+ '\x88' # 0x88 -> <control>
185
+ '\x89' # 0x89 -> <control>
186
+ '\x8a' # 0x8A -> <control>
187
+ '\x8b' # 0x8B -> <control>
188
+ '\x8c' # 0x8C -> <control>
189
+ '\x8d' # 0x8D -> <control>
190
+ '\x8e' # 0x8E -> <control>
191
+ '\x8f' # 0x8F -> <control>
192
+ '\x90' # 0x90 -> <control>
193
+ '\x91' # 0x91 -> <control>
194
+ '\x92' # 0x92 -> <control>
195
+ '\x93' # 0x93 -> <control>
196
+ '\x94' # 0x94 -> <control>
197
+ '\x95' # 0x95 -> <control>
198
+ '\x96' # 0x96 -> <control>
199
+ '\x97' # 0x97 -> <control>
200
+ '\x98' # 0x98 -> <control>
201
+ '\x99' # 0x99 -> <control>
202
+ '\x9a' # 0x9A -> <control>
203
+ '\x9b' # 0x9B -> <control>
204
+ '\x9c' # 0x9C -> <control>
205
+ '\x9d' # 0x9D -> <control>
206
+ '\x9e' # 0x9E -> <control>
207
+ '\x9f' # 0x9F -> <control>
208
+ '\xa0' # 0xA0 -> NO-BREAK SPACE
209
+ '\xa1' # 0xA1 -> INVERTED EXCLAMATION MARK
210
+ '\xa2' # 0xA2 -> CENT SIGN
211
+ '\xa3' # 0xA3 -> POUND SIGN
212
+ '\u20ac' # 0xA4 -> EURO SIGN
213
+ '\xa5' # 0xA5 -> YEN SIGN
214
+ '\u0160' # 0xA6 -> LATIN CAPITAL LETTER S WITH CARON
215
+ '\xa7' # 0xA7 -> SECTION SIGN
216
+ '\u0161' # 0xA8 -> LATIN SMALL LETTER S WITH CARON
217
+ '\xa9' # 0xA9 -> COPYRIGHT SIGN
218
+ '\xaa' # 0xAA -> FEMININE ORDINAL INDICATOR
219
+ '\xab' # 0xAB -> LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
220
+ '\xac' # 0xAC -> NOT SIGN
221
+ '\xad' # 0xAD -> SOFT HYPHEN
222
+ '\xae' # 0xAE -> REGISTERED SIGN
223
+ '\xaf' # 0xAF -> MACRON
224
+ '\xb0' # 0xB0 -> DEGREE SIGN
225
+ '\xb1' # 0xB1 -> PLUS-MINUS SIGN
226
+ '\xb2' # 0xB2 -> SUPERSCRIPT TWO
227
+ '\xb3' # 0xB3 -> SUPERSCRIPT THREE
228
+ '\u017d' # 0xB4 -> LATIN CAPITAL LETTER Z WITH CARON
229
+ '\xb5' # 0xB5 -> MICRO SIGN
230
+ '\xb6' # 0xB6 -> PILCROW SIGN
231
+ '\xb7' # 0xB7 -> MIDDLE DOT
232
+ '\u017e' # 0xB8 -> LATIN SMALL LETTER Z WITH CARON
233
+ '\xb9' # 0xB9 -> SUPERSCRIPT ONE
234
+ '\xba' # 0xBA -> MASCULINE ORDINAL INDICATOR
235
+ '\xbb' # 0xBB -> RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
236
+ '\u0152' # 0xBC -> LATIN CAPITAL LIGATURE OE
237
+ '\u0153' # 0xBD -> LATIN SMALL LIGATURE OE
238
+ '\u0178' # 0xBE -> LATIN CAPITAL LETTER Y WITH DIAERESIS
239
+ '\xbf' # 0xBF -> INVERTED QUESTION MARK
240
+ '\xc0' # 0xC0 -> LATIN CAPITAL LETTER A WITH GRAVE
241
+ '\xc1' # 0xC1 -> LATIN CAPITAL LETTER A WITH ACUTE
242
+ '\xc2' # 0xC2 -> LATIN CAPITAL LETTER A WITH CIRCUMFLEX
243
+ '\xc3' # 0xC3 -> LATIN CAPITAL LETTER A WITH TILDE
244
+ '\xc4' # 0xC4 -> LATIN CAPITAL LETTER A WITH DIAERESIS
245
+ '\xc5' # 0xC5 -> LATIN CAPITAL LETTER A WITH RING ABOVE
246
+ '\xc6' # 0xC6 -> LATIN CAPITAL LETTER AE
247
+ '\xc7' # 0xC7 -> LATIN CAPITAL LETTER C WITH CEDILLA
248
+ '\xc8' # 0xC8 -> LATIN CAPITAL LETTER E WITH GRAVE
249
+ '\xc9' # 0xC9 -> LATIN CAPITAL LETTER E WITH ACUTE
250
+ '\xca' # 0xCA -> LATIN CAPITAL LETTER E WITH CIRCUMFLEX
251
+ '\xcb' # 0xCB -> LATIN CAPITAL LETTER E WITH DIAERESIS
252
+ '\xcc' # 0xCC -> LATIN CAPITAL LETTER I WITH GRAVE
253
+ '\xcd' # 0xCD -> LATIN CAPITAL LETTER I WITH ACUTE
254
+ '\xce' # 0xCE -> LATIN CAPITAL LETTER I WITH CIRCUMFLEX
255
+ '\xcf' # 0xCF -> LATIN CAPITAL LETTER I WITH DIAERESIS
256
+ '\xd0' # 0xD0 -> LATIN CAPITAL LETTER ETH
257
+ '\xd1' # 0xD1 -> LATIN CAPITAL LETTER N WITH TILDE
258
+ '\xd2' # 0xD2 -> LATIN CAPITAL LETTER O WITH GRAVE
259
+ '\xd3' # 0xD3 -> LATIN CAPITAL LETTER O WITH ACUTE
260
+ '\xd4' # 0xD4 -> LATIN CAPITAL LETTER O WITH CIRCUMFLEX
261
+ '\xd5' # 0xD5 -> LATIN CAPITAL LETTER O WITH TILDE
262
+ '\xd6' # 0xD6 -> LATIN CAPITAL LETTER O WITH DIAERESIS
263
+ '\xd7' # 0xD7 -> MULTIPLICATION SIGN
264
+ '\xd8' # 0xD8 -> LATIN CAPITAL LETTER O WITH STROKE
265
+ '\xd9' # 0xD9 -> LATIN CAPITAL LETTER U WITH GRAVE
266
+ '\xda' # 0xDA -> LATIN CAPITAL LETTER U WITH ACUTE
267
+ '\xdb' # 0xDB -> LATIN CAPITAL LETTER U WITH CIRCUMFLEX
268
+ '\xdc' # 0xDC -> LATIN CAPITAL LETTER U WITH DIAERESIS
269
+ '\xdd' # 0xDD -> LATIN CAPITAL LETTER Y WITH ACUTE
270
+ '\xde' # 0xDE -> LATIN CAPITAL LETTER THORN
271
+ '\xdf' # 0xDF -> LATIN SMALL LETTER SHARP S
272
+ '\xe0' # 0xE0 -> LATIN SMALL LETTER A WITH GRAVE
273
+ '\xe1' # 0xE1 -> LATIN SMALL LETTER A WITH ACUTE
274
+ '\xe2' # 0xE2 -> LATIN SMALL LETTER A WITH CIRCUMFLEX
275
+ '\xe3' # 0xE3 -> LATIN SMALL LETTER A WITH TILDE
276
+ '\xe4' # 0xE4 -> LATIN SMALL LETTER A WITH DIAERESIS
277
+ '\xe5' # 0xE5 -> LATIN SMALL LETTER A WITH RING ABOVE
278
+ '\xe6' # 0xE6 -> LATIN SMALL LETTER AE
279
+ '\xe7' # 0xE7 -> LATIN SMALL LETTER C WITH CEDILLA
280
+ '\xe8' # 0xE8 -> LATIN SMALL LETTER E WITH GRAVE
281
+ '\xe9' # 0xE9 -> LATIN SMALL LETTER E WITH ACUTE
282
+ '\xea' # 0xEA -> LATIN SMALL LETTER E WITH CIRCUMFLEX
283
+ '\xeb' # 0xEB -> LATIN SMALL LETTER E WITH DIAERESIS
284
+ '\xec' # 0xEC -> LATIN SMALL LETTER I WITH GRAVE
285
+ '\xed' # 0xED -> LATIN SMALL LETTER I WITH ACUTE
286
+ '\xee' # 0xEE -> LATIN SMALL LETTER I WITH CIRCUMFLEX
287
+ '\xef' # 0xEF -> LATIN SMALL LETTER I WITH DIAERESIS
288
+ '\xf0' # 0xF0 -> LATIN SMALL LETTER ETH
289
+ '\xf1' # 0xF1 -> LATIN SMALL LETTER N WITH TILDE
290
+ '\xf2' # 0xF2 -> LATIN SMALL LETTER O WITH GRAVE
291
+ '\xf3' # 0xF3 -> LATIN SMALL LETTER O WITH ACUTE
292
+ '\xf4' # 0xF4 -> LATIN SMALL LETTER O WITH CIRCUMFLEX
293
+ '\xf5' # 0xF5 -> LATIN SMALL LETTER O WITH TILDE
294
+ '\xf6' # 0xF6 -> LATIN SMALL LETTER O WITH DIAERESIS
295
+ '\xf7' # 0xF7 -> DIVISION SIGN
296
+ '\xf8' # 0xF8 -> LATIN SMALL LETTER O WITH STROKE
297
+ '\xf9' # 0xF9 -> LATIN SMALL LETTER U WITH GRAVE
298
+ '\xfa' # 0xFA -> LATIN SMALL LETTER U WITH ACUTE
299
+ '\xfb' # 0xFB -> LATIN SMALL LETTER U WITH CIRCUMFLEX
300
+ '\xfc' # 0xFC -> LATIN SMALL LETTER U WITH DIAERESIS
301
+ '\xfd' # 0xFD -> LATIN SMALL LETTER Y WITH ACUTE
302
+ '\xfe' # 0xFE -> LATIN SMALL LETTER THORN
303
+ '\xff' # 0xFF -> LATIN SMALL LETTER Y WITH DIAERESIS
304
+ )
305
+
306
+ ### Encoding table
307
+ encoding_table=codecs.charmap_build(decoding_table)
parrot/lib/python3.10/encodings/iso8859_16.py ADDED
@@ -0,0 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python Character Mapping Codec iso8859_16 generated from 'MAPPINGS/ISO8859/8859-16.TXT' with gencodec.py.
2
+
3
+ """#"
4
+
5
+ import codecs
6
+
7
+ ### Codec APIs
8
+
9
+ class Codec(codecs.Codec):
10
+
11
+ def encode(self,input,errors='strict'):
12
+ return codecs.charmap_encode(input,errors,encoding_table)
13
+
14
+ def decode(self,input,errors='strict'):
15
+ return codecs.charmap_decode(input,errors,decoding_table)
16
+
17
+ class IncrementalEncoder(codecs.IncrementalEncoder):
18
+ def encode(self, input, final=False):
19
+ return codecs.charmap_encode(input,self.errors,encoding_table)[0]
20
+
21
+ class IncrementalDecoder(codecs.IncrementalDecoder):
22
+ def decode(self, input, final=False):
23
+ return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
+
25
+ class StreamWriter(Codec,codecs.StreamWriter):
26
+ pass
27
+
28
+ class StreamReader(Codec,codecs.StreamReader):
29
+ pass
30
+
31
+ ### encodings module API
32
+
33
+ def getregentry():
34
+ return codecs.CodecInfo(
35
+ name='iso8859-16',
36
+ encode=Codec().encode,
37
+ decode=Codec().decode,
38
+ incrementalencoder=IncrementalEncoder,
39
+ incrementaldecoder=IncrementalDecoder,
40
+ streamreader=StreamReader,
41
+ streamwriter=StreamWriter,
42
+ )
43
+
44
+
45
+ ### Decoding Table
46
+
47
+ decoding_table = (
48
+ '\x00' # 0x00 -> NULL
49
+ '\x01' # 0x01 -> START OF HEADING
50
+ '\x02' # 0x02 -> START OF TEXT
51
+ '\x03' # 0x03 -> END OF TEXT
52
+ '\x04' # 0x04 -> END OF TRANSMISSION
53
+ '\x05' # 0x05 -> ENQUIRY
54
+ '\x06' # 0x06 -> ACKNOWLEDGE
55
+ '\x07' # 0x07 -> BELL
56
+ '\x08' # 0x08 -> BACKSPACE
57
+ '\t' # 0x09 -> HORIZONTAL TABULATION
58
+ '\n' # 0x0A -> LINE FEED
59
+ '\x0b' # 0x0B -> VERTICAL TABULATION
60
+ '\x0c' # 0x0C -> FORM FEED
61
+ '\r' # 0x0D -> CARRIAGE RETURN
62
+ '\x0e' # 0x0E -> SHIFT OUT
63
+ '\x0f' # 0x0F -> SHIFT IN
64
+ '\x10' # 0x10 -> DATA LINK ESCAPE
65
+ '\x11' # 0x11 -> DEVICE CONTROL ONE
66
+ '\x12' # 0x12 -> DEVICE CONTROL TWO
67
+ '\x13' # 0x13 -> DEVICE CONTROL THREE
68
+ '\x14' # 0x14 -> DEVICE CONTROL FOUR
69
+ '\x15' # 0x15 -> NEGATIVE ACKNOWLEDGE
70
+ '\x16' # 0x16 -> SYNCHRONOUS IDLE
71
+ '\x17' # 0x17 -> END OF TRANSMISSION BLOCK
72
+ '\x18' # 0x18 -> CANCEL
73
+ '\x19' # 0x19 -> END OF MEDIUM
74
+ '\x1a' # 0x1A -> SUBSTITUTE
75
+ '\x1b' # 0x1B -> ESCAPE
76
+ '\x1c' # 0x1C -> FILE SEPARATOR
77
+ '\x1d' # 0x1D -> GROUP SEPARATOR
78
+ '\x1e' # 0x1E -> RECORD SEPARATOR
79
+ '\x1f' # 0x1F -> UNIT SEPARATOR
80
+ ' ' # 0x20 -> SPACE
81
+ '!' # 0x21 -> EXCLAMATION MARK
82
+ '"' # 0x22 -> QUOTATION MARK
83
+ '#' # 0x23 -> NUMBER SIGN
84
+ '$' # 0x24 -> DOLLAR SIGN
85
+ '%' # 0x25 -> PERCENT SIGN
86
+ '&' # 0x26 -> AMPERSAND
87
+ "'" # 0x27 -> APOSTROPHE
88
+ '(' # 0x28 -> LEFT PARENTHESIS
89
+ ')' # 0x29 -> RIGHT PARENTHESIS
90
+ '*' # 0x2A -> ASTERISK
91
+ '+' # 0x2B -> PLUS SIGN
92
+ ',' # 0x2C -> COMMA
93
+ '-' # 0x2D -> HYPHEN-MINUS
94
+ '.' # 0x2E -> FULL STOP
95
+ '/' # 0x2F -> SOLIDUS
96
+ '0' # 0x30 -> DIGIT ZERO
97
+ '1' # 0x31 -> DIGIT ONE
98
+ '2' # 0x32 -> DIGIT TWO
99
+ '3' # 0x33 -> DIGIT THREE
100
+ '4' # 0x34 -> DIGIT FOUR
101
+ '5' # 0x35 -> DIGIT FIVE
102
+ '6' # 0x36 -> DIGIT SIX
103
+ '7' # 0x37 -> DIGIT SEVEN
104
+ '8' # 0x38 -> DIGIT EIGHT
105
+ '9' # 0x39 -> DIGIT NINE
106
+ ':' # 0x3A -> COLON
107
+ ';' # 0x3B -> SEMICOLON
108
+ '<' # 0x3C -> LESS-THAN SIGN
109
+ '=' # 0x3D -> EQUALS SIGN
110
+ '>' # 0x3E -> GREATER-THAN SIGN
111
+ '?' # 0x3F -> QUESTION MARK
112
+ '@' # 0x40 -> COMMERCIAL AT
113
+ 'A' # 0x41 -> LATIN CAPITAL LETTER A
114
+ 'B' # 0x42 -> LATIN CAPITAL LETTER B
115
+ 'C' # 0x43 -> LATIN CAPITAL LETTER C
116
+ 'D' # 0x44 -> LATIN CAPITAL LETTER D
117
+ 'E' # 0x45 -> LATIN CAPITAL LETTER E
118
+ 'F' # 0x46 -> LATIN CAPITAL LETTER F
119
+ 'G' # 0x47 -> LATIN CAPITAL LETTER G
120
+ 'H' # 0x48 -> LATIN CAPITAL LETTER H
121
+ 'I' # 0x49 -> LATIN CAPITAL LETTER I
122
+ 'J' # 0x4A -> LATIN CAPITAL LETTER J
123
+ 'K' # 0x4B -> LATIN CAPITAL LETTER K
124
+ 'L' # 0x4C -> LATIN CAPITAL LETTER L
125
+ 'M' # 0x4D -> LATIN CAPITAL LETTER M
126
+ 'N' # 0x4E -> LATIN CAPITAL LETTER N
127
+ 'O' # 0x4F -> LATIN CAPITAL LETTER O
128
+ 'P' # 0x50 -> LATIN CAPITAL LETTER P
129
+ 'Q' # 0x51 -> LATIN CAPITAL LETTER Q
130
+ 'R' # 0x52 -> LATIN CAPITAL LETTER R
131
+ 'S' # 0x53 -> LATIN CAPITAL LETTER S
132
+ 'T' # 0x54 -> LATIN CAPITAL LETTER T
133
+ 'U' # 0x55 -> LATIN CAPITAL LETTER U
134
+ 'V' # 0x56 -> LATIN CAPITAL LETTER V
135
+ 'W' # 0x57 -> LATIN CAPITAL LETTER W
136
+ 'X' # 0x58 -> LATIN CAPITAL LETTER X
137
+ 'Y' # 0x59 -> LATIN CAPITAL LETTER Y
138
+ 'Z' # 0x5A -> LATIN CAPITAL LETTER Z
139
+ '[' # 0x5B -> LEFT SQUARE BRACKET
140
+ '\\' # 0x5C -> REVERSE SOLIDUS
141
+ ']' # 0x5D -> RIGHT SQUARE BRACKET
142
+ '^' # 0x5E -> CIRCUMFLEX ACCENT
143
+ '_' # 0x5F -> LOW LINE
144
+ '`' # 0x60 -> GRAVE ACCENT
145
+ 'a' # 0x61 -> LATIN SMALL LETTER A
146
+ 'b' # 0x62 -> LATIN SMALL LETTER B
147
+ 'c' # 0x63 -> LATIN SMALL LETTER C
148
+ 'd' # 0x64 -> LATIN SMALL LETTER D
149
+ 'e' # 0x65 -> LATIN SMALL LETTER E
150
+ 'f' # 0x66 -> LATIN SMALL LETTER F
151
+ 'g' # 0x67 -> LATIN SMALL LETTER G
152
+ 'h' # 0x68 -> LATIN SMALL LETTER H
153
+ 'i' # 0x69 -> LATIN SMALL LETTER I
154
+ 'j' # 0x6A -> LATIN SMALL LETTER J
155
+ 'k' # 0x6B -> LATIN SMALL LETTER K
156
+ 'l' # 0x6C -> LATIN SMALL LETTER L
157
+ 'm' # 0x6D -> LATIN SMALL LETTER M
158
+ 'n' # 0x6E -> LATIN SMALL LETTER N
159
+ 'o' # 0x6F -> LATIN SMALL LETTER O
160
+ 'p' # 0x70 -> LATIN SMALL LETTER P
161
+ 'q' # 0x71 -> LATIN SMALL LETTER Q
162
+ 'r' # 0x72 -> LATIN SMALL LETTER R
163
+ 's' # 0x73 -> LATIN SMALL LETTER S
164
+ 't' # 0x74 -> LATIN SMALL LETTER T
165
+ 'u' # 0x75 -> LATIN SMALL LETTER U
166
+ 'v' # 0x76 -> LATIN SMALL LETTER V
167
+ 'w' # 0x77 -> LATIN SMALL LETTER W
168
+ 'x' # 0x78 -> LATIN SMALL LETTER X
169
+ 'y' # 0x79 -> LATIN SMALL LETTER Y
170
+ 'z' # 0x7A -> LATIN SMALL LETTER Z
171
+ '{' # 0x7B -> LEFT CURLY BRACKET
172
+ '|' # 0x7C -> VERTICAL LINE
173
+ '}' # 0x7D -> RIGHT CURLY BRACKET
174
+ '~' # 0x7E -> TILDE
175
+ '\x7f' # 0x7F -> DELETE
176
+ '\x80' # 0x80 -> <control>
177
+ '\x81' # 0x81 -> <control>
178
+ '\x82' # 0x82 -> <control>
179
+ '\x83' # 0x83 -> <control>
180
+ '\x84' # 0x84 -> <control>
181
+ '\x85' # 0x85 -> <control>
182
+ '\x86' # 0x86 -> <control>
183
+ '\x87' # 0x87 -> <control>
184
+ '\x88' # 0x88 -> <control>
185
+ '\x89' # 0x89 -> <control>
186
+ '\x8a' # 0x8A -> <control>
187
+ '\x8b' # 0x8B -> <control>
188
+ '\x8c' # 0x8C -> <control>
189
+ '\x8d' # 0x8D -> <control>
190
+ '\x8e' # 0x8E -> <control>
191
+ '\x8f' # 0x8F -> <control>
192
+ '\x90' # 0x90 -> <control>
193
+ '\x91' # 0x91 -> <control>
194
+ '\x92' # 0x92 -> <control>
195
+ '\x93' # 0x93 -> <control>
196
+ '\x94' # 0x94 -> <control>
197
+ '\x95' # 0x95 -> <control>
198
+ '\x96' # 0x96 -> <control>
199
+ '\x97' # 0x97 -> <control>
200
+ '\x98' # 0x98 -> <control>
201
+ '\x99' # 0x99 -> <control>
202
+ '\x9a' # 0x9A -> <control>
203
+ '\x9b' # 0x9B -> <control>
204
+ '\x9c' # 0x9C -> <control>
205
+ '\x9d' # 0x9D -> <control>
206
+ '\x9e' # 0x9E -> <control>
207
+ '\x9f' # 0x9F -> <control>
208
+ '\xa0' # 0xA0 -> NO-BREAK SPACE
209
+ '\u0104' # 0xA1 -> LATIN CAPITAL LETTER A WITH OGONEK
210
+ '\u0105' # 0xA2 -> LATIN SMALL LETTER A WITH OGONEK
211
+ '\u0141' # 0xA3 -> LATIN CAPITAL LETTER L WITH STROKE
212
+ '\u20ac' # 0xA4 -> EURO SIGN
213
+ '\u201e' # 0xA5 -> DOUBLE LOW-9 QUOTATION MARK
214
+ '\u0160' # 0xA6 -> LATIN CAPITAL LETTER S WITH CARON
215
+ '\xa7' # 0xA7 -> SECTION SIGN
216
+ '\u0161' # 0xA8 -> LATIN SMALL LETTER S WITH CARON
217
+ '\xa9' # 0xA9 -> COPYRIGHT SIGN
218
+ '\u0218' # 0xAA -> LATIN CAPITAL LETTER S WITH COMMA BELOW
219
+ '\xab' # 0xAB -> LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
220
+ '\u0179' # 0xAC -> LATIN CAPITAL LETTER Z WITH ACUTE
221
+ '\xad' # 0xAD -> SOFT HYPHEN
222
+ '\u017a' # 0xAE -> LATIN SMALL LETTER Z WITH ACUTE
223
+ '\u017b' # 0xAF -> LATIN CAPITAL LETTER Z WITH DOT ABOVE
224
+ '\xb0' # 0xB0 -> DEGREE SIGN
225
+ '\xb1' # 0xB1 -> PLUS-MINUS SIGN
226
+ '\u010c' # 0xB2 -> LATIN CAPITAL LETTER C WITH CARON
227
+ '\u0142' # 0xB3 -> LATIN SMALL LETTER L WITH STROKE
228
+ '\u017d' # 0xB4 -> LATIN CAPITAL LETTER Z WITH CARON
229
+ '\u201d' # 0xB5 -> RIGHT DOUBLE QUOTATION MARK
230
+ '\xb6' # 0xB6 -> PILCROW SIGN
231
+ '\xb7' # 0xB7 -> MIDDLE DOT
232
+ '\u017e' # 0xB8 -> LATIN SMALL LETTER Z WITH CARON
233
+ '\u010d' # 0xB9 -> LATIN SMALL LETTER C WITH CARON
234
+ '\u0219' # 0xBA -> LATIN SMALL LETTER S WITH COMMA BELOW
235
+ '\xbb' # 0xBB -> RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
236
+ '\u0152' # 0xBC -> LATIN CAPITAL LIGATURE OE
237
+ '\u0153' # 0xBD -> LATIN SMALL LIGATURE OE
238
+ '\u0178' # 0xBE -> LATIN CAPITAL LETTER Y WITH DIAERESIS
239
+ '\u017c' # 0xBF -> LATIN SMALL LETTER Z WITH DOT ABOVE
240
+ '\xc0' # 0xC0 -> LATIN CAPITAL LETTER A WITH GRAVE
241
+ '\xc1' # 0xC1 -> LATIN CAPITAL LETTER A WITH ACUTE
242
+ '\xc2' # 0xC2 -> LATIN CAPITAL LETTER A WITH CIRCUMFLEX
243
+ '\u0102' # 0xC3 -> LATIN CAPITAL LETTER A WITH BREVE
244
+ '\xc4' # 0xC4 -> LATIN CAPITAL LETTER A WITH DIAERESIS
245
+ '\u0106' # 0xC5 -> LATIN CAPITAL LETTER C WITH ACUTE
246
+ '\xc6' # 0xC6 -> LATIN CAPITAL LETTER AE
247
+ '\xc7' # 0xC7 -> LATIN CAPITAL LETTER C WITH CEDILLA
248
+ '\xc8' # 0xC8 -> LATIN CAPITAL LETTER E WITH GRAVE
249
+ '\xc9' # 0xC9 -> LATIN CAPITAL LETTER E WITH ACUTE
250
+ '\xca' # 0xCA -> LATIN CAPITAL LETTER E WITH CIRCUMFLEX
251
+ '\xcb' # 0xCB -> LATIN CAPITAL LETTER E WITH DIAERESIS
252
+ '\xcc' # 0xCC -> LATIN CAPITAL LETTER I WITH GRAVE
253
+ '\xcd' # 0xCD -> LATIN CAPITAL LETTER I WITH ACUTE
254
+ '\xce' # 0xCE -> LATIN CAPITAL LETTER I WITH CIRCUMFLEX
255
+ '\xcf' # 0xCF -> LATIN CAPITAL LETTER I WITH DIAERESIS
256
+ '\u0110' # 0xD0 -> LATIN CAPITAL LETTER D WITH STROKE
257
+ '\u0143' # 0xD1 -> LATIN CAPITAL LETTER N WITH ACUTE
258
+ '\xd2' # 0xD2 -> LATIN CAPITAL LETTER O WITH GRAVE
259
+ '\xd3' # 0xD3 -> LATIN CAPITAL LETTER O WITH ACUTE
260
+ '\xd4' # 0xD4 -> LATIN CAPITAL LETTER O WITH CIRCUMFLEX
261
+ '\u0150' # 0xD5 -> LATIN CAPITAL LETTER O WITH DOUBLE ACUTE
262
+ '\xd6' # 0xD6 -> LATIN CAPITAL LETTER O WITH DIAERESIS
263
+ '\u015a' # 0xD7 -> LATIN CAPITAL LETTER S WITH ACUTE
264
+ '\u0170' # 0xD8 -> LATIN CAPITAL LETTER U WITH DOUBLE ACUTE
265
+ '\xd9' # 0xD9 -> LATIN CAPITAL LETTER U WITH GRAVE
266
+ '\xda' # 0xDA -> LATIN CAPITAL LETTER U WITH ACUTE
267
+ '\xdb' # 0xDB -> LATIN CAPITAL LETTER U WITH CIRCUMFLEX
268
+ '\xdc' # 0xDC -> LATIN CAPITAL LETTER U WITH DIAERESIS
269
+ '\u0118' # 0xDD -> LATIN CAPITAL LETTER E WITH OGONEK
270
+ '\u021a' # 0xDE -> LATIN CAPITAL LETTER T WITH COMMA BELOW
271
+ '\xdf' # 0xDF -> LATIN SMALL LETTER SHARP S
272
+ '\xe0' # 0xE0 -> LATIN SMALL LETTER A WITH GRAVE
273
+ '\xe1' # 0xE1 -> LATIN SMALL LETTER A WITH ACUTE
274
+ '\xe2' # 0xE2 -> LATIN SMALL LETTER A WITH CIRCUMFLEX
275
+ '\u0103' # 0xE3 -> LATIN SMALL LETTER A WITH BREVE
276
+ '\xe4' # 0xE4 -> LATIN SMALL LETTER A WITH DIAERESIS
277
+ '\u0107' # 0xE5 -> LATIN SMALL LETTER C WITH ACUTE
278
+ '\xe6' # 0xE6 -> LATIN SMALL LETTER AE
279
+ '\xe7' # 0xE7 -> LATIN SMALL LETTER C WITH CEDILLA
280
+ '\xe8' # 0xE8 -> LATIN SMALL LETTER E WITH GRAVE
281
+ '\xe9' # 0xE9 -> LATIN SMALL LETTER E WITH ACUTE
282
+ '\xea' # 0xEA -> LATIN SMALL LETTER E WITH CIRCUMFLEX
283
+ '\xeb' # 0xEB -> LATIN SMALL LETTER E WITH DIAERESIS
284
+ '\xec' # 0xEC -> LATIN SMALL LETTER I WITH GRAVE
285
+ '\xed' # 0xED -> LATIN SMALL LETTER I WITH ACUTE
286
+ '\xee' # 0xEE -> LATIN SMALL LETTER I WITH CIRCUMFLEX
287
+ '\xef' # 0xEF -> LATIN SMALL LETTER I WITH DIAERESIS
288
+ '\u0111' # 0xF0 -> LATIN SMALL LETTER D WITH STROKE
289
+ '\u0144' # 0xF1 -> LATIN SMALL LETTER N WITH ACUTE
290
+ '\xf2' # 0xF2 -> LATIN SMALL LETTER O WITH GRAVE
291
+ '\xf3' # 0xF3 -> LATIN SMALL LETTER O WITH ACUTE
292
+ '\xf4' # 0xF4 -> LATIN SMALL LETTER O WITH CIRCUMFLEX
293
+ '\u0151' # 0xF5 -> LATIN SMALL LETTER O WITH DOUBLE ACUTE
294
+ '\xf6' # 0xF6 -> LATIN SMALL LETTER O WITH DIAERESIS
295
+ '\u015b' # 0xF7 -> LATIN SMALL LETTER S WITH ACUTE
296
+ '\u0171' # 0xF8 -> LATIN SMALL LETTER U WITH DOUBLE ACUTE
297
+ '\xf9' # 0xF9 -> LATIN SMALL LETTER U WITH GRAVE
298
+ '\xfa' # 0xFA -> LATIN SMALL LETTER U WITH ACUTE
299
+ '\xfb' # 0xFB -> LATIN SMALL LETTER U WITH CIRCUMFLEX
300
+ '\xfc' # 0xFC -> LATIN SMALL LETTER U WITH DIAERESIS
301
+ '\u0119' # 0xFD -> LATIN SMALL LETTER E WITH OGONEK
302
+ '\u021b' # 0xFE -> LATIN SMALL LETTER T WITH COMMA BELOW
303
+ '\xff' # 0xFF -> LATIN SMALL LETTER Y WITH DIAERESIS
304
+ )
305
+
306
+ ### Encoding table
307
+ encoding_table=codecs.charmap_build(decoding_table)
parrot/lib/python3.10/encodings/iso8859_2.py ADDED
@@ -0,0 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python Character Mapping Codec iso8859_2 generated from 'MAPPINGS/ISO8859/8859-2.TXT' with gencodec.py.
2
+
3
+ """#"
4
+
5
+ import codecs
6
+
7
+ ### Codec APIs
8
+
9
+ class Codec(codecs.Codec):
10
+
11
+ def encode(self,input,errors='strict'):
12
+ return codecs.charmap_encode(input,errors,encoding_table)
13
+
14
+ def decode(self,input,errors='strict'):
15
+ return codecs.charmap_decode(input,errors,decoding_table)
16
+
17
+ class IncrementalEncoder(codecs.IncrementalEncoder):
18
+ def encode(self, input, final=False):
19
+ return codecs.charmap_encode(input,self.errors,encoding_table)[0]
20
+
21
+ class IncrementalDecoder(codecs.IncrementalDecoder):
22
+ def decode(self, input, final=False):
23
+ return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
+
25
+ class StreamWriter(Codec,codecs.StreamWriter):
26
+ pass
27
+
28
+ class StreamReader(Codec,codecs.StreamReader):
29
+ pass
30
+
31
+ ### encodings module API
32
+
33
+ def getregentry():
34
+ return codecs.CodecInfo(
35
+ name='iso8859-2',
36
+ encode=Codec().encode,
37
+ decode=Codec().decode,
38
+ incrementalencoder=IncrementalEncoder,
39
+ incrementaldecoder=IncrementalDecoder,
40
+ streamreader=StreamReader,
41
+ streamwriter=StreamWriter,
42
+ )
43
+
44
+
45
+ ### Decoding Table
46
+
47
+ decoding_table = (
48
+ '\x00' # 0x00 -> NULL
49
+ '\x01' # 0x01 -> START OF HEADING
50
+ '\x02' # 0x02 -> START OF TEXT
51
+ '\x03' # 0x03 -> END OF TEXT
52
+ '\x04' # 0x04 -> END OF TRANSMISSION
53
+ '\x05' # 0x05 -> ENQUIRY
54
+ '\x06' # 0x06 -> ACKNOWLEDGE
55
+ '\x07' # 0x07 -> BELL
56
+ '\x08' # 0x08 -> BACKSPACE
57
+ '\t' # 0x09 -> HORIZONTAL TABULATION
58
+ '\n' # 0x0A -> LINE FEED
59
+ '\x0b' # 0x0B -> VERTICAL TABULATION
60
+ '\x0c' # 0x0C -> FORM FEED
61
+ '\r' # 0x0D -> CARRIAGE RETURN
62
+ '\x0e' # 0x0E -> SHIFT OUT
63
+ '\x0f' # 0x0F -> SHIFT IN
64
+ '\x10' # 0x10 -> DATA LINK ESCAPE
65
+ '\x11' # 0x11 -> DEVICE CONTROL ONE
66
+ '\x12' # 0x12 -> DEVICE CONTROL TWO
67
+ '\x13' # 0x13 -> DEVICE CONTROL THREE
68
+ '\x14' # 0x14 -> DEVICE CONTROL FOUR
69
+ '\x15' # 0x15 -> NEGATIVE ACKNOWLEDGE
70
+ '\x16' # 0x16 -> SYNCHRONOUS IDLE
71
+ '\x17' # 0x17 -> END OF TRANSMISSION BLOCK
72
+ '\x18' # 0x18 -> CANCEL
73
+ '\x19' # 0x19 -> END OF MEDIUM
74
+ '\x1a' # 0x1A -> SUBSTITUTE
75
+ '\x1b' # 0x1B -> ESCAPE
76
+ '\x1c' # 0x1C -> FILE SEPARATOR
77
+ '\x1d' # 0x1D -> GROUP SEPARATOR
78
+ '\x1e' # 0x1E -> RECORD SEPARATOR
79
+ '\x1f' # 0x1F -> UNIT SEPARATOR
80
+ ' ' # 0x20 -> SPACE
81
+ '!' # 0x21 -> EXCLAMATION MARK
82
+ '"' # 0x22 -> QUOTATION MARK
83
+ '#' # 0x23 -> NUMBER SIGN
84
+ '$' # 0x24 -> DOLLAR SIGN
85
+ '%' # 0x25 -> PERCENT SIGN
86
+ '&' # 0x26 -> AMPERSAND
87
+ "'" # 0x27 -> APOSTROPHE
88
+ '(' # 0x28 -> LEFT PARENTHESIS
89
+ ')' # 0x29 -> RIGHT PARENTHESIS
90
+ '*' # 0x2A -> ASTERISK
91
+ '+' # 0x2B -> PLUS SIGN
92
+ ',' # 0x2C -> COMMA
93
+ '-' # 0x2D -> HYPHEN-MINUS
94
+ '.' # 0x2E -> FULL STOP
95
+ '/' # 0x2F -> SOLIDUS
96
+ '0' # 0x30 -> DIGIT ZERO
97
+ '1' # 0x31 -> DIGIT ONE
98
+ '2' # 0x32 -> DIGIT TWO
99
+ '3' # 0x33 -> DIGIT THREE
100
+ '4' # 0x34 -> DIGIT FOUR
101
+ '5' # 0x35 -> DIGIT FIVE
102
+ '6' # 0x36 -> DIGIT SIX
103
+ '7' # 0x37 -> DIGIT SEVEN
104
+ '8' # 0x38 -> DIGIT EIGHT
105
+ '9' # 0x39 -> DIGIT NINE
106
+ ':' # 0x3A -> COLON
107
+ ';' # 0x3B -> SEMICOLON
108
+ '<' # 0x3C -> LESS-THAN SIGN
109
+ '=' # 0x3D -> EQUALS SIGN
110
+ '>' # 0x3E -> GREATER-THAN SIGN
111
+ '?' # 0x3F -> QUESTION MARK
112
+ '@' # 0x40 -> COMMERCIAL AT
113
+ 'A' # 0x41 -> LATIN CAPITAL LETTER A
114
+ 'B' # 0x42 -> LATIN CAPITAL LETTER B
115
+ 'C' # 0x43 -> LATIN CAPITAL LETTER C
116
+ 'D' # 0x44 -> LATIN CAPITAL LETTER D
117
+ 'E' # 0x45 -> LATIN CAPITAL LETTER E
118
+ 'F' # 0x46 -> LATIN CAPITAL LETTER F
119
+ 'G' # 0x47 -> LATIN CAPITAL LETTER G
120
+ 'H' # 0x48 -> LATIN CAPITAL LETTER H
121
+ 'I' # 0x49 -> LATIN CAPITAL LETTER I
122
+ 'J' # 0x4A -> LATIN CAPITAL LETTER J
123
+ 'K' # 0x4B -> LATIN CAPITAL LETTER K
124
+ 'L' # 0x4C -> LATIN CAPITAL LETTER L
125
+ 'M' # 0x4D -> LATIN CAPITAL LETTER M
126
+ 'N' # 0x4E -> LATIN CAPITAL LETTER N
127
+ 'O' # 0x4F -> LATIN CAPITAL LETTER O
128
+ 'P' # 0x50 -> LATIN CAPITAL LETTER P
129
+ 'Q' # 0x51 -> LATIN CAPITAL LETTER Q
130
+ 'R' # 0x52 -> LATIN CAPITAL LETTER R
131
+ 'S' # 0x53 -> LATIN CAPITAL LETTER S
132
+ 'T' # 0x54 -> LATIN CAPITAL LETTER T
133
+ 'U' # 0x55 -> LATIN CAPITAL LETTER U
134
+ 'V' # 0x56 -> LATIN CAPITAL LETTER V
135
+ 'W' # 0x57 -> LATIN CAPITAL LETTER W
136
+ 'X' # 0x58 -> LATIN CAPITAL LETTER X
137
+ 'Y' # 0x59 -> LATIN CAPITAL LETTER Y
138
+ 'Z' # 0x5A -> LATIN CAPITAL LETTER Z
139
+ '[' # 0x5B -> LEFT SQUARE BRACKET
140
+ '\\' # 0x5C -> REVERSE SOLIDUS
141
+ ']' # 0x5D -> RIGHT SQUARE BRACKET
142
+ '^' # 0x5E -> CIRCUMFLEX ACCENT
143
+ '_' # 0x5F -> LOW LINE
144
+ '`' # 0x60 -> GRAVE ACCENT
145
+ 'a' # 0x61 -> LATIN SMALL LETTER A
146
+ 'b' # 0x62 -> LATIN SMALL LETTER B
147
+ 'c' # 0x63 -> LATIN SMALL LETTER C
148
+ 'd' # 0x64 -> LATIN SMALL LETTER D
149
+ 'e' # 0x65 -> LATIN SMALL LETTER E
150
+ 'f' # 0x66 -> LATIN SMALL LETTER F
151
+ 'g' # 0x67 -> LATIN SMALL LETTER G
152
+ 'h' # 0x68 -> LATIN SMALL LETTER H
153
+ 'i' # 0x69 -> LATIN SMALL LETTER I
154
+ 'j' # 0x6A -> LATIN SMALL LETTER J
155
+ 'k' # 0x6B -> LATIN SMALL LETTER K
156
+ 'l' # 0x6C -> LATIN SMALL LETTER L
157
+ 'm' # 0x6D -> LATIN SMALL LETTER M
158
+ 'n' # 0x6E -> LATIN SMALL LETTER N
159
+ 'o' # 0x6F -> LATIN SMALL LETTER O
160
+ 'p' # 0x70 -> LATIN SMALL LETTER P
161
+ 'q' # 0x71 -> LATIN SMALL LETTER Q
162
+ 'r' # 0x72 -> LATIN SMALL LETTER R
163
+ 's' # 0x73 -> LATIN SMALL LETTER S
164
+ 't' # 0x74 -> LATIN SMALL LETTER T
165
+ 'u' # 0x75 -> LATIN SMALL LETTER U
166
+ 'v' # 0x76 -> LATIN SMALL LETTER V
167
+ 'w' # 0x77 -> LATIN SMALL LETTER W
168
+ 'x' # 0x78 -> LATIN SMALL LETTER X
169
+ 'y' # 0x79 -> LATIN SMALL LETTER Y
170
+ 'z' # 0x7A -> LATIN SMALL LETTER Z
171
+ '{' # 0x7B -> LEFT CURLY BRACKET
172
+ '|' # 0x7C -> VERTICAL LINE
173
+ '}' # 0x7D -> RIGHT CURLY BRACKET
174
+ '~' # 0x7E -> TILDE
175
+ '\x7f' # 0x7F -> DELETE
176
+ '\x80' # 0x80 -> <control>
177
+ '\x81' # 0x81 -> <control>
178
+ '\x82' # 0x82 -> <control>
179
+ '\x83' # 0x83 -> <control>
180
+ '\x84' # 0x84 -> <control>
181
+ '\x85' # 0x85 -> <control>
182
+ '\x86' # 0x86 -> <control>
183
+ '\x87' # 0x87 -> <control>
184
+ '\x88' # 0x88 -> <control>
185
+ '\x89' # 0x89 -> <control>
186
+ '\x8a' # 0x8A -> <control>
187
+ '\x8b' # 0x8B -> <control>
188
+ '\x8c' # 0x8C -> <control>
189
+ '\x8d' # 0x8D -> <control>
190
+ '\x8e' # 0x8E -> <control>
191
+ '\x8f' # 0x8F -> <control>
192
+ '\x90' # 0x90 -> <control>
193
+ '\x91' # 0x91 -> <control>
194
+ '\x92' # 0x92 -> <control>
195
+ '\x93' # 0x93 -> <control>
196
+ '\x94' # 0x94 -> <control>
197
+ '\x95' # 0x95 -> <control>
198
+ '\x96' # 0x96 -> <control>
199
+ '\x97' # 0x97 -> <control>
200
+ '\x98' # 0x98 -> <control>
201
+ '\x99' # 0x99 -> <control>
202
+ '\x9a' # 0x9A -> <control>
203
+ '\x9b' # 0x9B -> <control>
204
+ '\x9c' # 0x9C -> <control>
205
+ '\x9d' # 0x9D -> <control>
206
+ '\x9e' # 0x9E -> <control>
207
+ '\x9f' # 0x9F -> <control>
208
+ '\xa0' # 0xA0 -> NO-BREAK SPACE
209
+ '\u0104' # 0xA1 -> LATIN CAPITAL LETTER A WITH OGONEK
210
+ '\u02d8' # 0xA2 -> BREVE
211
+ '\u0141' # 0xA3 -> LATIN CAPITAL LETTER L WITH STROKE
212
+ '\xa4' # 0xA4 -> CURRENCY SIGN
213
+ '\u013d' # 0xA5 -> LATIN CAPITAL LETTER L WITH CARON
214
+ '\u015a' # 0xA6 -> LATIN CAPITAL LETTER S WITH ACUTE
215
+ '\xa7' # 0xA7 -> SECTION SIGN
216
+ '\xa8' # 0xA8 -> DIAERESIS
217
+ '\u0160' # 0xA9 -> LATIN CAPITAL LETTER S WITH CARON
218
+ '\u015e' # 0xAA -> LATIN CAPITAL LETTER S WITH CEDILLA
219
+ '\u0164' # 0xAB -> LATIN CAPITAL LETTER T WITH CARON
220
+ '\u0179' # 0xAC -> LATIN CAPITAL LETTER Z WITH ACUTE
221
+ '\xad' # 0xAD -> SOFT HYPHEN
222
+ '\u017d' # 0xAE -> LATIN CAPITAL LETTER Z WITH CARON
223
+ '\u017b' # 0xAF -> LATIN CAPITAL LETTER Z WITH DOT ABOVE
224
+ '\xb0' # 0xB0 -> DEGREE SIGN
225
+ '\u0105' # 0xB1 -> LATIN SMALL LETTER A WITH OGONEK
226
+ '\u02db' # 0xB2 -> OGONEK
227
+ '\u0142' # 0xB3 -> LATIN SMALL LETTER L WITH STROKE
228
+ '\xb4' # 0xB4 -> ACUTE ACCENT
229
+ '\u013e' # 0xB5 -> LATIN SMALL LETTER L WITH CARON
230
+ '\u015b' # 0xB6 -> LATIN SMALL LETTER S WITH ACUTE
231
+ '\u02c7' # 0xB7 -> CARON
232
+ '\xb8' # 0xB8 -> CEDILLA
233
+ '\u0161' # 0xB9 -> LATIN SMALL LETTER S WITH CARON
234
+ '\u015f' # 0xBA -> LATIN SMALL LETTER S WITH CEDILLA
235
+ '\u0165' # 0xBB -> LATIN SMALL LETTER T WITH CARON
236
+ '\u017a' # 0xBC -> LATIN SMALL LETTER Z WITH ACUTE
237
+ '\u02dd' # 0xBD -> DOUBLE ACUTE ACCENT
238
+ '\u017e' # 0xBE -> LATIN SMALL LETTER Z WITH CARON
239
+ '\u017c' # 0xBF -> LATIN SMALL LETTER Z WITH DOT ABOVE
240
+ '\u0154' # 0xC0 -> LATIN CAPITAL LETTER R WITH ACUTE
241
+ '\xc1' # 0xC1 -> LATIN CAPITAL LETTER A WITH ACUTE
242
+ '\xc2' # 0xC2 -> LATIN CAPITAL LETTER A WITH CIRCUMFLEX
243
+ '\u0102' # 0xC3 -> LATIN CAPITAL LETTER A WITH BREVE
244
+ '\xc4' # 0xC4 -> LATIN CAPITAL LETTER A WITH DIAERESIS
245
+ '\u0139' # 0xC5 -> LATIN CAPITAL LETTER L WITH ACUTE
246
+ '\u0106' # 0xC6 -> LATIN CAPITAL LETTER C WITH ACUTE
247
+ '\xc7' # 0xC7 -> LATIN CAPITAL LETTER C WITH CEDILLA
248
+ '\u010c' # 0xC8 -> LATIN CAPITAL LETTER C WITH CARON
249
+ '\xc9' # 0xC9 -> LATIN CAPITAL LETTER E WITH ACUTE
250
+ '\u0118' # 0xCA -> LATIN CAPITAL LETTER E WITH OGONEK
251
+ '\xcb' # 0xCB -> LATIN CAPITAL LETTER E WITH DIAERESIS
252
+ '\u011a' # 0xCC -> LATIN CAPITAL LETTER E WITH CARON
253
+ '\xcd' # 0xCD -> LATIN CAPITAL LETTER I WITH ACUTE
254
+ '\xce' # 0xCE -> LATIN CAPITAL LETTER I WITH CIRCUMFLEX
255
+ '\u010e' # 0xCF -> LATIN CAPITAL LETTER D WITH CARON
256
+ '\u0110' # 0xD0 -> LATIN CAPITAL LETTER D WITH STROKE
257
+ '\u0143' # 0xD1 -> LATIN CAPITAL LETTER N WITH ACUTE
258
+ '\u0147' # 0xD2 -> LATIN CAPITAL LETTER N WITH CARON
259
+ '\xd3' # 0xD3 -> LATIN CAPITAL LETTER O WITH ACUTE
260
+ '\xd4' # 0xD4 -> LATIN CAPITAL LETTER O WITH CIRCUMFLEX
261
+ '\u0150' # 0xD5 -> LATIN CAPITAL LETTER O WITH DOUBLE ACUTE
262
+ '\xd6' # 0xD6 -> LATIN CAPITAL LETTER O WITH DIAERESIS
263
+ '\xd7' # 0xD7 -> MULTIPLICATION SIGN
264
+ '\u0158' # 0xD8 -> LATIN CAPITAL LETTER R WITH CARON
265
+ '\u016e' # 0xD9 -> LATIN CAPITAL LETTER U WITH RING ABOVE
266
+ '\xda' # 0xDA -> LATIN CAPITAL LETTER U WITH ACUTE
267
+ '\u0170' # 0xDB -> LATIN CAPITAL LETTER U WITH DOUBLE ACUTE
268
+ '\xdc' # 0xDC -> LATIN CAPITAL LETTER U WITH DIAERESIS
269
+ '\xdd' # 0xDD -> LATIN CAPITAL LETTER Y WITH ACUTE
270
+ '\u0162' # 0xDE -> LATIN CAPITAL LETTER T WITH CEDILLA
271
+ '\xdf' # 0xDF -> LATIN SMALL LETTER SHARP S
272
+ '\u0155' # 0xE0 -> LATIN SMALL LETTER R WITH ACUTE
273
+ '\xe1' # 0xE1 -> LATIN SMALL LETTER A WITH ACUTE
274
+ '\xe2' # 0xE2 -> LATIN SMALL LETTER A WITH CIRCUMFLEX
275
+ '\u0103' # 0xE3 -> LATIN SMALL LETTER A WITH BREVE
276
+ '\xe4' # 0xE4 -> LATIN SMALL LETTER A WITH DIAERESIS
277
+ '\u013a' # 0xE5 -> LATIN SMALL LETTER L WITH ACUTE
278
+ '\u0107' # 0xE6 -> LATIN SMALL LETTER C WITH ACUTE
279
+ '\xe7' # 0xE7 -> LATIN SMALL LETTER C WITH CEDILLA
280
+ '\u010d' # 0xE8 -> LATIN SMALL LETTER C WITH CARON
281
+ '\xe9' # 0xE9 -> LATIN SMALL LETTER E WITH ACUTE
282
+ '\u0119' # 0xEA -> LATIN SMALL LETTER E WITH OGONEK
283
+ '\xeb' # 0xEB -> LATIN SMALL LETTER E WITH DIAERESIS
284
+ '\u011b' # 0xEC -> LATIN SMALL LETTER E WITH CARON
285
+ '\xed' # 0xED -> LATIN SMALL LETTER I WITH ACUTE
286
+ '\xee' # 0xEE -> LATIN SMALL LETTER I WITH CIRCUMFLEX
287
+ '\u010f' # 0xEF -> LATIN SMALL LETTER D WITH CARON
288
+ '\u0111' # 0xF0 -> LATIN SMALL LETTER D WITH STROKE
289
+ '\u0144' # 0xF1 -> LATIN SMALL LETTER N WITH ACUTE
290
+ '\u0148' # 0xF2 -> LATIN SMALL LETTER N WITH CARON
291
+ '\xf3' # 0xF3 -> LATIN SMALL LETTER O WITH ACUTE
292
+ '\xf4' # 0xF4 -> LATIN SMALL LETTER O WITH CIRCUMFLEX
293
+ '\u0151' # 0xF5 -> LATIN SMALL LETTER O WITH DOUBLE ACUTE
294
+ '\xf6' # 0xF6 -> LATIN SMALL LETTER O WITH DIAERESIS
295
+ '\xf7' # 0xF7 -> DIVISION SIGN
296
+ '\u0159' # 0xF8 -> LATIN SMALL LETTER R WITH CARON
297
+ '\u016f' # 0xF9 -> LATIN SMALL LETTER U WITH RING ABOVE
298
+ '\xfa' # 0xFA -> LATIN SMALL LETTER U WITH ACUTE
299
+ '\u0171' # 0xFB -> LATIN SMALL LETTER U WITH DOUBLE ACUTE
300
+ '\xfc' # 0xFC -> LATIN SMALL LETTER U WITH DIAERESIS
301
+ '\xfd' # 0xFD -> LATIN SMALL LETTER Y WITH ACUTE
302
+ '\u0163' # 0xFE -> LATIN SMALL LETTER T WITH CEDILLA
303
+ '\u02d9' # 0xFF -> DOT ABOVE
304
+ )
305
+
306
+ ### Encoding table
307
+ encoding_table=codecs.charmap_build(decoding_table)
parrot/lib/python3.10/encodings/iso8859_9.py ADDED
@@ -0,0 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python Character Mapping Codec iso8859_9 generated from 'MAPPINGS/ISO8859/8859-9.TXT' with gencodec.py.
2
+
3
+ """#"
4
+
5
+ import codecs
6
+
7
+ ### Codec APIs
8
+
9
+ class Codec(codecs.Codec):
10
+
11
+ def encode(self,input,errors='strict'):
12
+ return codecs.charmap_encode(input,errors,encoding_table)
13
+
14
+ def decode(self,input,errors='strict'):
15
+ return codecs.charmap_decode(input,errors,decoding_table)
16
+
17
+ class IncrementalEncoder(codecs.IncrementalEncoder):
18
+ def encode(self, input, final=False):
19
+ return codecs.charmap_encode(input,self.errors,encoding_table)[0]
20
+
21
+ class IncrementalDecoder(codecs.IncrementalDecoder):
22
+ def decode(self, input, final=False):
23
+ return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
+
25
+ class StreamWriter(Codec,codecs.StreamWriter):
26
+ pass
27
+
28
+ class StreamReader(Codec,codecs.StreamReader):
29
+ pass
30
+
31
+ ### encodings module API
32
+
33
+ def getregentry():
34
+ return codecs.CodecInfo(
35
+ name='iso8859-9',
36
+ encode=Codec().encode,
37
+ decode=Codec().decode,
38
+ incrementalencoder=IncrementalEncoder,
39
+ incrementaldecoder=IncrementalDecoder,
40
+ streamreader=StreamReader,
41
+ streamwriter=StreamWriter,
42
+ )
43
+
44
+
45
+ ### Decoding Table
46
+
47
+ decoding_table = (
48
+ '\x00' # 0x00 -> NULL
49
+ '\x01' # 0x01 -> START OF HEADING
50
+ '\x02' # 0x02 -> START OF TEXT
51
+ '\x03' # 0x03 -> END OF TEXT
52
+ '\x04' # 0x04 -> END OF TRANSMISSION
53
+ '\x05' # 0x05 -> ENQUIRY
54
+ '\x06' # 0x06 -> ACKNOWLEDGE
55
+ '\x07' # 0x07 -> BELL
56
+ '\x08' # 0x08 -> BACKSPACE
57
+ '\t' # 0x09 -> HORIZONTAL TABULATION
58
+ '\n' # 0x0A -> LINE FEED
59
+ '\x0b' # 0x0B -> VERTICAL TABULATION
60
+ '\x0c' # 0x0C -> FORM FEED
61
+ '\r' # 0x0D -> CARRIAGE RETURN
62
+ '\x0e' # 0x0E -> SHIFT OUT
63
+ '\x0f' # 0x0F -> SHIFT IN
64
+ '\x10' # 0x10 -> DATA LINK ESCAPE
65
+ '\x11' # 0x11 -> DEVICE CONTROL ONE
66
+ '\x12' # 0x12 -> DEVICE CONTROL TWO
67
+ '\x13' # 0x13 -> DEVICE CONTROL THREE
68
+ '\x14' # 0x14 -> DEVICE CONTROL FOUR
69
+ '\x15' # 0x15 -> NEGATIVE ACKNOWLEDGE
70
+ '\x16' # 0x16 -> SYNCHRONOUS IDLE
71
+ '\x17' # 0x17 -> END OF TRANSMISSION BLOCK
72
+ '\x18' # 0x18 -> CANCEL
73
+ '\x19' # 0x19 -> END OF MEDIUM
74
+ '\x1a' # 0x1A -> SUBSTITUTE
75
+ '\x1b' # 0x1B -> ESCAPE
76
+ '\x1c' # 0x1C -> FILE SEPARATOR
77
+ '\x1d' # 0x1D -> GROUP SEPARATOR
78
+ '\x1e' # 0x1E -> RECORD SEPARATOR
79
+ '\x1f' # 0x1F -> UNIT SEPARATOR
80
+ ' ' # 0x20 -> SPACE
81
+ '!' # 0x21 -> EXCLAMATION MARK
82
+ '"' # 0x22 -> QUOTATION MARK
83
+ '#' # 0x23 -> NUMBER SIGN
84
+ '$' # 0x24 -> DOLLAR SIGN
85
+ '%' # 0x25 -> PERCENT SIGN
86
+ '&' # 0x26 -> AMPERSAND
87
+ "'" # 0x27 -> APOSTROPHE
88
+ '(' # 0x28 -> LEFT PARENTHESIS
89
+ ')' # 0x29 -> RIGHT PARENTHESIS
90
+ '*' # 0x2A -> ASTERISK
91
+ '+' # 0x2B -> PLUS SIGN
92
+ ',' # 0x2C -> COMMA
93
+ '-' # 0x2D -> HYPHEN-MINUS
94
+ '.' # 0x2E -> FULL STOP
95
+ '/' # 0x2F -> SOLIDUS
96
+ '0' # 0x30 -> DIGIT ZERO
97
+ '1' # 0x31 -> DIGIT ONE
98
+ '2' # 0x32 -> DIGIT TWO
99
+ '3' # 0x33 -> DIGIT THREE
100
+ '4' # 0x34 -> DIGIT FOUR
101
+ '5' # 0x35 -> DIGIT FIVE
102
+ '6' # 0x36 -> DIGIT SIX
103
+ '7' # 0x37 -> DIGIT SEVEN
104
+ '8' # 0x38 -> DIGIT EIGHT
105
+ '9' # 0x39 -> DIGIT NINE
106
+ ':' # 0x3A -> COLON
107
+ ';' # 0x3B -> SEMICOLON
108
+ '<' # 0x3C -> LESS-THAN SIGN
109
+ '=' # 0x3D -> EQUALS SIGN
110
+ '>' # 0x3E -> GREATER-THAN SIGN
111
+ '?' # 0x3F -> QUESTION MARK
112
+ '@' # 0x40 -> COMMERCIAL AT
113
+ 'A' # 0x41 -> LATIN CAPITAL LETTER A
114
+ 'B' # 0x42 -> LATIN CAPITAL LETTER B
115
+ 'C' # 0x43 -> LATIN CAPITAL LETTER C
116
+ 'D' # 0x44 -> LATIN CAPITAL LETTER D
117
+ 'E' # 0x45 -> LATIN CAPITAL LETTER E
118
+ 'F' # 0x46 -> LATIN CAPITAL LETTER F
119
+ 'G' # 0x47 -> LATIN CAPITAL LETTER G
120
+ 'H' # 0x48 -> LATIN CAPITAL LETTER H
121
+ 'I' # 0x49 -> LATIN CAPITAL LETTER I
122
+ 'J' # 0x4A -> LATIN CAPITAL LETTER J
123
+ 'K' # 0x4B -> LATIN CAPITAL LETTER K
124
+ 'L' # 0x4C -> LATIN CAPITAL LETTER L
125
+ 'M' # 0x4D -> LATIN CAPITAL LETTER M
126
+ 'N' # 0x4E -> LATIN CAPITAL LETTER N
127
+ 'O' # 0x4F -> LATIN CAPITAL LETTER O
128
+ 'P' # 0x50 -> LATIN CAPITAL LETTER P
129
+ 'Q' # 0x51 -> LATIN CAPITAL LETTER Q
130
+ 'R' # 0x52 -> LATIN CAPITAL LETTER R
131
+ 'S' # 0x53 -> LATIN CAPITAL LETTER S
132
+ 'T' # 0x54 -> LATIN CAPITAL LETTER T
133
+ 'U' # 0x55 -> LATIN CAPITAL LETTER U
134
+ 'V' # 0x56 -> LATIN CAPITAL LETTER V
135
+ 'W' # 0x57 -> LATIN CAPITAL LETTER W
136
+ 'X' # 0x58 -> LATIN CAPITAL LETTER X
137
+ 'Y' # 0x59 -> LATIN CAPITAL LETTER Y
138
+ 'Z' # 0x5A -> LATIN CAPITAL LETTER Z
139
+ '[' # 0x5B -> LEFT SQUARE BRACKET
140
+ '\\' # 0x5C -> REVERSE SOLIDUS
141
+ ']' # 0x5D -> RIGHT SQUARE BRACKET
142
+ '^' # 0x5E -> CIRCUMFLEX ACCENT
143
+ '_' # 0x5F -> LOW LINE
144
+ '`' # 0x60 -> GRAVE ACCENT
145
+ 'a' # 0x61 -> LATIN SMALL LETTER A
146
+ 'b' # 0x62 -> LATIN SMALL LETTER B
147
+ 'c' # 0x63 -> LATIN SMALL LETTER C
148
+ 'd' # 0x64 -> LATIN SMALL LETTER D
149
+ 'e' # 0x65 -> LATIN SMALL LETTER E
150
+ 'f' # 0x66 -> LATIN SMALL LETTER F
151
+ 'g' # 0x67 -> LATIN SMALL LETTER G
152
+ 'h' # 0x68 -> LATIN SMALL LETTER H
153
+ 'i' # 0x69 -> LATIN SMALL LETTER I
154
+ 'j' # 0x6A -> LATIN SMALL LETTER J
155
+ 'k' # 0x6B -> LATIN SMALL LETTER K
156
+ 'l' # 0x6C -> LATIN SMALL LETTER L
157
+ 'm' # 0x6D -> LATIN SMALL LETTER M
158
+ 'n' # 0x6E -> LATIN SMALL LETTER N
159
+ 'o' # 0x6F -> LATIN SMALL LETTER O
160
+ 'p' # 0x70 -> LATIN SMALL LETTER P
161
+ 'q' # 0x71 -> LATIN SMALL LETTER Q
162
+ 'r' # 0x72 -> LATIN SMALL LETTER R
163
+ 's' # 0x73 -> LATIN SMALL LETTER S
164
+ 't' # 0x74 -> LATIN SMALL LETTER T
165
+ 'u' # 0x75 -> LATIN SMALL LETTER U
166
+ 'v' # 0x76 -> LATIN SMALL LETTER V
167
+ 'w' # 0x77 -> LATIN SMALL LETTER W
168
+ 'x' # 0x78 -> LATIN SMALL LETTER X
169
+ 'y' # 0x79 -> LATIN SMALL LETTER Y
170
+ 'z' # 0x7A -> LATIN SMALL LETTER Z
171
+ '{' # 0x7B -> LEFT CURLY BRACKET
172
+ '|' # 0x7C -> VERTICAL LINE
173
+ '}' # 0x7D -> RIGHT CURLY BRACKET
174
+ '~' # 0x7E -> TILDE
175
+ '\x7f' # 0x7F -> DELETE
176
+ '\x80' # 0x80 -> <control>
177
+ '\x81' # 0x81 -> <control>
178
+ '\x82' # 0x82 -> <control>
179
+ '\x83' # 0x83 -> <control>
180
+ '\x84' # 0x84 -> <control>
181
+ '\x85' # 0x85 -> <control>
182
+ '\x86' # 0x86 -> <control>
183
+ '\x87' # 0x87 -> <control>
184
+ '\x88' # 0x88 -> <control>
185
+ '\x89' # 0x89 -> <control>
186
+ '\x8a' # 0x8A -> <control>
187
+ '\x8b' # 0x8B -> <control>
188
+ '\x8c' # 0x8C -> <control>
189
+ '\x8d' # 0x8D -> <control>
190
+ '\x8e' # 0x8E -> <control>
191
+ '\x8f' # 0x8F -> <control>
192
+ '\x90' # 0x90 -> <control>
193
+ '\x91' # 0x91 -> <control>
194
+ '\x92' # 0x92 -> <control>
195
+ '\x93' # 0x93 -> <control>
196
+ '\x94' # 0x94 -> <control>
197
+ '\x95' # 0x95 -> <control>
198
+ '\x96' # 0x96 -> <control>
199
+ '\x97' # 0x97 -> <control>
200
+ '\x98' # 0x98 -> <control>
201
+ '\x99' # 0x99 -> <control>
202
+ '\x9a' # 0x9A -> <control>
203
+ '\x9b' # 0x9B -> <control>
204
+ '\x9c' # 0x9C -> <control>
205
+ '\x9d' # 0x9D -> <control>
206
+ '\x9e' # 0x9E -> <control>
207
+ '\x9f' # 0x9F -> <control>
208
+ '\xa0' # 0xA0 -> NO-BREAK SPACE
209
+ '\xa1' # 0xA1 -> INVERTED EXCLAMATION MARK
210
+ '\xa2' # 0xA2 -> CENT SIGN
211
+ '\xa3' # 0xA3 -> POUND SIGN
212
+ '\xa4' # 0xA4 -> CURRENCY SIGN
213
+ '\xa5' # 0xA5 -> YEN SIGN
214
+ '\xa6' # 0xA6 -> BROKEN BAR
215
+ '\xa7' # 0xA7 -> SECTION SIGN
216
+ '\xa8' # 0xA8 -> DIAERESIS
217
+ '\xa9' # 0xA9 -> COPYRIGHT SIGN
218
+ '\xaa' # 0xAA -> FEMININE ORDINAL INDICATOR
219
+ '\xab' # 0xAB -> LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
220
+ '\xac' # 0xAC -> NOT SIGN
221
+ '\xad' # 0xAD -> SOFT HYPHEN
222
+ '\xae' # 0xAE -> REGISTERED SIGN
223
+ '\xaf' # 0xAF -> MACRON
224
+ '\xb0' # 0xB0 -> DEGREE SIGN
225
+ '\xb1' # 0xB1 -> PLUS-MINUS SIGN
226
+ '\xb2' # 0xB2 -> SUPERSCRIPT TWO
227
+ '\xb3' # 0xB3 -> SUPERSCRIPT THREE
228
+ '\xb4' # 0xB4 -> ACUTE ACCENT
229
+ '\xb5' # 0xB5 -> MICRO SIGN
230
+ '\xb6' # 0xB6 -> PILCROW SIGN
231
+ '\xb7' # 0xB7 -> MIDDLE DOT
232
+ '\xb8' # 0xB8 -> CEDILLA
233
+ '\xb9' # 0xB9 -> SUPERSCRIPT ONE
234
+ '\xba' # 0xBA -> MASCULINE ORDINAL INDICATOR
235
+ '\xbb' # 0xBB -> RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
236
+ '\xbc' # 0xBC -> VULGAR FRACTION ONE QUARTER
237
+ '\xbd' # 0xBD -> VULGAR FRACTION ONE HALF
238
+ '\xbe' # 0xBE -> VULGAR FRACTION THREE QUARTERS
239
+ '\xbf' # 0xBF -> INVERTED QUESTION MARK
240
+ '\xc0' # 0xC0 -> LATIN CAPITAL LETTER A WITH GRAVE
241
+ '\xc1' # 0xC1 -> LATIN CAPITAL LETTER A WITH ACUTE
242
+ '\xc2' # 0xC2 -> LATIN CAPITAL LETTER A WITH CIRCUMFLEX
243
+ '\xc3' # 0xC3 -> LATIN CAPITAL LETTER A WITH TILDE
244
+ '\xc4' # 0xC4 -> LATIN CAPITAL LETTER A WITH DIAERESIS
245
+ '\xc5' # 0xC5 -> LATIN CAPITAL LETTER A WITH RING ABOVE
246
+ '\xc6' # 0xC6 -> LATIN CAPITAL LETTER AE
247
+ '\xc7' # 0xC7 -> LATIN CAPITAL LETTER C WITH CEDILLA
248
+ '\xc8' # 0xC8 -> LATIN CAPITAL LETTER E WITH GRAVE
249
+ '\xc9' # 0xC9 -> LATIN CAPITAL LETTER E WITH ACUTE
250
+ '\xca' # 0xCA -> LATIN CAPITAL LETTER E WITH CIRCUMFLEX
251
+ '\xcb' # 0xCB -> LATIN CAPITAL LETTER E WITH DIAERESIS
252
+ '\xcc' # 0xCC -> LATIN CAPITAL LETTER I WITH GRAVE
253
+ '\xcd' # 0xCD -> LATIN CAPITAL LETTER I WITH ACUTE
254
+ '\xce' # 0xCE -> LATIN CAPITAL LETTER I WITH CIRCUMFLEX
255
+ '\xcf' # 0xCF -> LATIN CAPITAL LETTER I WITH DIAERESIS
256
+ '\u011e' # 0xD0 -> LATIN CAPITAL LETTER G WITH BREVE
257
+ '\xd1' # 0xD1 -> LATIN CAPITAL LETTER N WITH TILDE
258
+ '\xd2' # 0xD2 -> LATIN CAPITAL LETTER O WITH GRAVE
259
+ '\xd3' # 0xD3 -> LATIN CAPITAL LETTER O WITH ACUTE
260
+ '\xd4' # 0xD4 -> LATIN CAPITAL LETTER O WITH CIRCUMFLEX
261
+ '\xd5' # 0xD5 -> LATIN CAPITAL LETTER O WITH TILDE
262
+ '\xd6' # 0xD6 -> LATIN CAPITAL LETTER O WITH DIAERESIS
263
+ '\xd7' # 0xD7 -> MULTIPLICATION SIGN
264
+ '\xd8' # 0xD8 -> LATIN CAPITAL LETTER O WITH STROKE
265
+ '\xd9' # 0xD9 -> LATIN CAPITAL LETTER U WITH GRAVE
266
+ '\xda' # 0xDA -> LATIN CAPITAL LETTER U WITH ACUTE
267
+ '\xdb' # 0xDB -> LATIN CAPITAL LETTER U WITH CIRCUMFLEX
268
+ '\xdc' # 0xDC -> LATIN CAPITAL LETTER U WITH DIAERESIS
269
+ '\u0130' # 0xDD -> LATIN CAPITAL LETTER I WITH DOT ABOVE
270
+ '\u015e' # 0xDE -> LATIN CAPITAL LETTER S WITH CEDILLA
271
+ '\xdf' # 0xDF -> LATIN SMALL LETTER SHARP S
272
+ '\xe0' # 0xE0 -> LATIN SMALL LETTER A WITH GRAVE
273
+ '\xe1' # 0xE1 -> LATIN SMALL LETTER A WITH ACUTE
274
+ '\xe2' # 0xE2 -> LATIN SMALL LETTER A WITH CIRCUMFLEX
275
+ '\xe3' # 0xE3 -> LATIN SMALL LETTER A WITH TILDE
276
+ '\xe4' # 0xE4 -> LATIN SMALL LETTER A WITH DIAERESIS
277
+ '\xe5' # 0xE5 -> LATIN SMALL LETTER A WITH RING ABOVE
278
+ '\xe6' # 0xE6 -> LATIN SMALL LETTER AE
279
+ '\xe7' # 0xE7 -> LATIN SMALL LETTER C WITH CEDILLA
280
+ '\xe8' # 0xE8 -> LATIN SMALL LETTER E WITH GRAVE
281
+ '\xe9' # 0xE9 -> LATIN SMALL LETTER E WITH ACUTE
282
+ '\xea' # 0xEA -> LATIN SMALL LETTER E WITH CIRCUMFLEX
283
+ '\xeb' # 0xEB -> LATIN SMALL LETTER E WITH DIAERESIS
284
+ '\xec' # 0xEC -> LATIN SMALL LETTER I WITH GRAVE
285
+ '\xed' # 0xED -> LATIN SMALL LETTER I WITH ACUTE
286
+ '\xee' # 0xEE -> LATIN SMALL LETTER I WITH CIRCUMFLEX
287
+ '\xef' # 0xEF -> LATIN SMALL LETTER I WITH DIAERESIS
288
+ '\u011f' # 0xF0 -> LATIN SMALL LETTER G WITH BREVE
289
+ '\xf1' # 0xF1 -> LATIN SMALL LETTER N WITH TILDE
290
+ '\xf2' # 0xF2 -> LATIN SMALL LETTER O WITH GRAVE
291
+ '\xf3' # 0xF3 -> LATIN SMALL LETTER O WITH ACUTE
292
+ '\xf4' # 0xF4 -> LATIN SMALL LETTER O WITH CIRCUMFLEX
293
+ '\xf5' # 0xF5 -> LATIN SMALL LETTER O WITH TILDE
294
+ '\xf6' # 0xF6 -> LATIN SMALL LETTER O WITH DIAERESIS
295
+ '\xf7' # 0xF7 -> DIVISION SIGN
296
+ '\xf8' # 0xF8 -> LATIN SMALL LETTER O WITH STROKE
297
+ '\xf9' # 0xF9 -> LATIN SMALL LETTER U WITH GRAVE
298
+ '\xfa' # 0xFA -> LATIN SMALL LETTER U WITH ACUTE
299
+ '\xfb' # 0xFB -> LATIN SMALL LETTER U WITH CIRCUMFLEX
300
+ '\xfc' # 0xFC -> LATIN SMALL LETTER U WITH DIAERESIS
301
+ '\u0131' # 0xFD -> LATIN SMALL LETTER DOTLESS I
302
+ '\u015f' # 0xFE -> LATIN SMALL LETTER S WITH CEDILLA
303
+ '\xff' # 0xFF -> LATIN SMALL LETTER Y WITH DIAERESIS
304
+ )
305
+
306
+ ### Encoding table
307
+ encoding_table=codecs.charmap_build(decoding_table)
parrot/lib/python3.10/encodings/koi8_t.py ADDED
@@ -0,0 +1,308 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python Character Mapping Codec koi8_t
2
+ """
3
+ # http://ru.wikipedia.org/wiki/КОИ-8
4
+ # http://www.opensource.apple.com/source/libiconv/libiconv-4/libiconv/tests/KOI8-T.TXT
5
+
6
+ import codecs
7
+
8
+ ### Codec APIs
9
+
10
+ class Codec(codecs.Codec):
11
+
12
+ def encode(self,input,errors='strict'):
13
+ return codecs.charmap_encode(input,errors,encoding_table)
14
+
15
+ def decode(self,input,errors='strict'):
16
+ return codecs.charmap_decode(input,errors,decoding_table)
17
+
18
+ class IncrementalEncoder(codecs.IncrementalEncoder):
19
+ def encode(self, input, final=False):
20
+ return codecs.charmap_encode(input,self.errors,encoding_table)[0]
21
+
22
+ class IncrementalDecoder(codecs.IncrementalDecoder):
23
+ def decode(self, input, final=False):
24
+ return codecs.charmap_decode(input,self.errors,decoding_table)[0]
25
+
26
+ class StreamWriter(Codec,codecs.StreamWriter):
27
+ pass
28
+
29
+ class StreamReader(Codec,codecs.StreamReader):
30
+ pass
31
+
32
+ ### encodings module API
33
+
34
+ def getregentry():
35
+ return codecs.CodecInfo(
36
+ name='koi8-t',
37
+ encode=Codec().encode,
38
+ decode=Codec().decode,
39
+ incrementalencoder=IncrementalEncoder,
40
+ incrementaldecoder=IncrementalDecoder,
41
+ streamreader=StreamReader,
42
+ streamwriter=StreamWriter,
43
+ )
44
+
45
+
46
+ ### Decoding Table
47
+
48
+ decoding_table = (
49
+ '\x00' # 0x00 -> NULL
50
+ '\x01' # 0x01 -> START OF HEADING
51
+ '\x02' # 0x02 -> START OF TEXT
52
+ '\x03' # 0x03 -> END OF TEXT
53
+ '\x04' # 0x04 -> END OF TRANSMISSION
54
+ '\x05' # 0x05 -> ENQUIRY
55
+ '\x06' # 0x06 -> ACKNOWLEDGE
56
+ '\x07' # 0x07 -> BELL
57
+ '\x08' # 0x08 -> BACKSPACE
58
+ '\t' # 0x09 -> HORIZONTAL TABULATION
59
+ '\n' # 0x0A -> LINE FEED
60
+ '\x0b' # 0x0B -> VERTICAL TABULATION
61
+ '\x0c' # 0x0C -> FORM FEED
62
+ '\r' # 0x0D -> CARRIAGE RETURN
63
+ '\x0e' # 0x0E -> SHIFT OUT
64
+ '\x0f' # 0x0F -> SHIFT IN
65
+ '\x10' # 0x10 -> DATA LINK ESCAPE
66
+ '\x11' # 0x11 -> DEVICE CONTROL ONE
67
+ '\x12' # 0x12 -> DEVICE CONTROL TWO
68
+ '\x13' # 0x13 -> DEVICE CONTROL THREE
69
+ '\x14' # 0x14 -> DEVICE CONTROL FOUR
70
+ '\x15' # 0x15 -> NEGATIVE ACKNOWLEDGE
71
+ '\x16' # 0x16 -> SYNCHRONOUS IDLE
72
+ '\x17' # 0x17 -> END OF TRANSMISSION BLOCK
73
+ '\x18' # 0x18 -> CANCEL
74
+ '\x19' # 0x19 -> END OF MEDIUM
75
+ '\x1a' # 0x1A -> SUBSTITUTE
76
+ '\x1b' # 0x1B -> ESCAPE
77
+ '\x1c' # 0x1C -> FILE SEPARATOR
78
+ '\x1d' # 0x1D -> GROUP SEPARATOR
79
+ '\x1e' # 0x1E -> RECORD SEPARATOR
80
+ '\x1f' # 0x1F -> UNIT SEPARATOR
81
+ ' ' # 0x20 -> SPACE
82
+ '!' # 0x21 -> EXCLAMATION MARK
83
+ '"' # 0x22 -> QUOTATION MARK
84
+ '#' # 0x23 -> NUMBER SIGN
85
+ '$' # 0x24 -> DOLLAR SIGN
86
+ '%' # 0x25 -> PERCENT SIGN
87
+ '&' # 0x26 -> AMPERSAND
88
+ "'" # 0x27 -> APOSTROPHE
89
+ '(' # 0x28 -> LEFT PARENTHESIS
90
+ ')' # 0x29 -> RIGHT PARENTHESIS
91
+ '*' # 0x2A -> ASTERISK
92
+ '+' # 0x2B -> PLUS SIGN
93
+ ',' # 0x2C -> COMMA
94
+ '-' # 0x2D -> HYPHEN-MINUS
95
+ '.' # 0x2E -> FULL STOP
96
+ '/' # 0x2F -> SOLIDUS
97
+ '0' # 0x30 -> DIGIT ZERO
98
+ '1' # 0x31 -> DIGIT ONE
99
+ '2' # 0x32 -> DIGIT TWO
100
+ '3' # 0x33 -> DIGIT THREE
101
+ '4' # 0x34 -> DIGIT FOUR
102
+ '5' # 0x35 -> DIGIT FIVE
103
+ '6' # 0x36 -> DIGIT SIX
104
+ '7' # 0x37 -> DIGIT SEVEN
105
+ '8' # 0x38 -> DIGIT EIGHT
106
+ '9' # 0x39 -> DIGIT NINE
107
+ ':' # 0x3A -> COLON
108
+ ';' # 0x3B -> SEMICOLON
109
+ '<' # 0x3C -> LESS-THAN SIGN
110
+ '=' # 0x3D -> EQUALS SIGN
111
+ '>' # 0x3E -> GREATER-THAN SIGN
112
+ '?' # 0x3F -> QUESTION MARK
113
+ '@' # 0x40 -> COMMERCIAL AT
114
+ 'A' # 0x41 -> LATIN CAPITAL LETTER A
115
+ 'B' # 0x42 -> LATIN CAPITAL LETTER B
116
+ 'C' # 0x43 -> LATIN CAPITAL LETTER C
117
+ 'D' # 0x44 -> LATIN CAPITAL LETTER D
118
+ 'E' # 0x45 -> LATIN CAPITAL LETTER E
119
+ 'F' # 0x46 -> LATIN CAPITAL LETTER F
120
+ 'G' # 0x47 -> LATIN CAPITAL LETTER G
121
+ 'H' # 0x48 -> LATIN CAPITAL LETTER H
122
+ 'I' # 0x49 -> LATIN CAPITAL LETTER I
123
+ 'J' # 0x4A -> LATIN CAPITAL LETTER J
124
+ 'K' # 0x4B -> LATIN CAPITAL LETTER K
125
+ 'L' # 0x4C -> LATIN CAPITAL LETTER L
126
+ 'M' # 0x4D -> LATIN CAPITAL LETTER M
127
+ 'N' # 0x4E -> LATIN CAPITAL LETTER N
128
+ 'O' # 0x4F -> LATIN CAPITAL LETTER O
129
+ 'P' # 0x50 -> LATIN CAPITAL LETTER P
130
+ 'Q' # 0x51 -> LATIN CAPITAL LETTER Q
131
+ 'R' # 0x52 -> LATIN CAPITAL LETTER R
132
+ 'S' # 0x53 -> LATIN CAPITAL LETTER S
133
+ 'T' # 0x54 -> LATIN CAPITAL LETTER T
134
+ 'U' # 0x55 -> LATIN CAPITAL LETTER U
135
+ 'V' # 0x56 -> LATIN CAPITAL LETTER V
136
+ 'W' # 0x57 -> LATIN CAPITAL LETTER W
137
+ 'X' # 0x58 -> LATIN CAPITAL LETTER X
138
+ 'Y' # 0x59 -> LATIN CAPITAL LETTER Y
139
+ 'Z' # 0x5A -> LATIN CAPITAL LETTER Z
140
+ '[' # 0x5B -> LEFT SQUARE BRACKET
141
+ '\\' # 0x5C -> REVERSE SOLIDUS
142
+ ']' # 0x5D -> RIGHT SQUARE BRACKET
143
+ '^' # 0x5E -> CIRCUMFLEX ACCENT
144
+ '_' # 0x5F -> LOW LINE
145
+ '`' # 0x60 -> GRAVE ACCENT
146
+ 'a' # 0x61 -> LATIN SMALL LETTER A
147
+ 'b' # 0x62 -> LATIN SMALL LETTER B
148
+ 'c' # 0x63 -> LATIN SMALL LETTER C
149
+ 'd' # 0x64 -> LATIN SMALL LETTER D
150
+ 'e' # 0x65 -> LATIN SMALL LETTER E
151
+ 'f' # 0x66 -> LATIN SMALL LETTER F
152
+ 'g' # 0x67 -> LATIN SMALL LETTER G
153
+ 'h' # 0x68 -> LATIN SMALL LETTER H
154
+ 'i' # 0x69 -> LATIN SMALL LETTER I
155
+ 'j' # 0x6A -> LATIN SMALL LETTER J
156
+ 'k' # 0x6B -> LATIN SMALL LETTER K
157
+ 'l' # 0x6C -> LATIN SMALL LETTER L
158
+ 'm' # 0x6D -> LATIN SMALL LETTER M
159
+ 'n' # 0x6E -> LATIN SMALL LETTER N
160
+ 'o' # 0x6F -> LATIN SMALL LETTER O
161
+ 'p' # 0x70 -> LATIN SMALL LETTER P
162
+ 'q' # 0x71 -> LATIN SMALL LETTER Q
163
+ 'r' # 0x72 -> LATIN SMALL LETTER R
164
+ 's' # 0x73 -> LATIN SMALL LETTER S
165
+ 't' # 0x74 -> LATIN SMALL LETTER T
166
+ 'u' # 0x75 -> LATIN SMALL LETTER U
167
+ 'v' # 0x76 -> LATIN SMALL LETTER V
168
+ 'w' # 0x77 -> LATIN SMALL LETTER W
169
+ 'x' # 0x78 -> LATIN SMALL LETTER X
170
+ 'y' # 0x79 -> LATIN SMALL LETTER Y
171
+ 'z' # 0x7A -> LATIN SMALL LETTER Z
172
+ '{' # 0x7B -> LEFT CURLY BRACKET
173
+ '|' # 0x7C -> VERTICAL LINE
174
+ '}' # 0x7D -> RIGHT CURLY BRACKET
175
+ '~' # 0x7E -> TILDE
176
+ '\x7f' # 0x7F -> DELETE
177
+ '\u049b' # 0x80 -> CYRILLIC SMALL LETTER KA WITH DESCENDER
178
+ '\u0493' # 0x81 -> CYRILLIC SMALL LETTER GHE WITH STROKE
179
+ '\u201a' # 0x82 -> SINGLE LOW-9 QUOTATION MARK
180
+ '\u0492' # 0x83 -> CYRILLIC CAPITAL LETTER GHE WITH STROKE
181
+ '\u201e' # 0x84 -> DOUBLE LOW-9 QUOTATION MARK
182
+ '\u2026' # 0x85 -> HORIZONTAL ELLIPSIS
183
+ '\u2020' # 0x86 -> DAGGER
184
+ '\u2021' # 0x87 -> DOUBLE DAGGER
185
+ '\ufffe' # 0x88 -> UNDEFINED
186
+ '\u2030' # 0x89 -> PER MILLE SIGN
187
+ '\u04b3' # 0x8A -> CYRILLIC SMALL LETTER HA WITH DESCENDER
188
+ '\u2039' # 0x8B -> SINGLE LEFT-POINTING ANGLE QUOTATION MARK
189
+ '\u04b2' # 0x8C -> CYRILLIC CAPITAL LETTER HA WITH DESCENDER
190
+ '\u04b7' # 0x8D -> CYRILLIC SMALL LETTER CHE WITH DESCENDER
191
+ '\u04b6' # 0x8E -> CYRILLIC CAPITAL LETTER CHE WITH DESCENDER
192
+ '\ufffe' # 0x8F -> UNDEFINED
193
+ '\u049a' # 0x90 -> CYRILLIC CAPITAL LETTER KA WITH DESCENDER
194
+ '\u2018' # 0x91 -> LEFT SINGLE QUOTATION MARK
195
+ '\u2019' # 0x92 -> RIGHT SINGLE QUOTATION MARK
196
+ '\u201c' # 0x93 -> LEFT DOUBLE QUOTATION MARK
197
+ '\u201d' # 0x94 -> RIGHT DOUBLE QUOTATION MARK
198
+ '\u2022' # 0x95 -> BULLET
199
+ '\u2013' # 0x96 -> EN DASH
200
+ '\u2014' # 0x97 -> EM DASH
201
+ '\ufffe' # 0x98 -> UNDEFINED
202
+ '\u2122' # 0x99 -> TRADE MARK SIGN
203
+ '\ufffe' # 0x9A -> UNDEFINED
204
+ '\u203a' # 0x9B -> SINGLE RIGHT-POINTING ANGLE QUOTATION MARK
205
+ '\ufffe' # 0x9C -> UNDEFINED
206
+ '\ufffe' # 0x9D -> UNDEFINED
207
+ '\ufffe' # 0x9E -> UNDEFINED
208
+ '\ufffe' # 0x9F -> UNDEFINED
209
+ '\ufffe' # 0xA0 -> UNDEFINED
210
+ '\u04ef' # 0xA1 -> CYRILLIC SMALL LETTER U WITH MACRON
211
+ '\u04ee' # 0xA2 -> CYRILLIC CAPITAL LETTER U WITH MACRON
212
+ '\u0451' # 0xA3 -> CYRILLIC SMALL LETTER IO
213
+ '\xa4' # 0xA4 -> CURRENCY SIGN
214
+ '\u04e3' # 0xA5 -> CYRILLIC SMALL LETTER I WITH MACRON
215
+ '\xa6' # 0xA6 -> BROKEN BAR
216
+ '\xa7' # 0xA7 -> SECTION SIGN
217
+ '\ufffe' # 0xA8 -> UNDEFINED
218
+ '\ufffe' # 0xA9 -> UNDEFINED
219
+ '\ufffe' # 0xAA -> UNDEFINED
220
+ '\xab' # 0xAB -> LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
221
+ '\xac' # 0xAC -> NOT SIGN
222
+ '\xad' # 0xAD -> SOFT HYPHEN
223
+ '\xae' # 0xAE -> REGISTERED SIGN
224
+ '\ufffe' # 0xAF -> UNDEFINED
225
+ '\xb0' # 0xB0 -> DEGREE SIGN
226
+ '\xb1' # 0xB1 -> PLUS-MINUS SIGN
227
+ '\xb2' # 0xB2 -> SUPERSCRIPT TWO
228
+ '\u0401' # 0xB3 -> CYRILLIC CAPITAL LETTER IO
229
+ '\ufffe' # 0xB4 -> UNDEFINED
230
+ '\u04e2' # 0xB5 -> CYRILLIC CAPITAL LETTER I WITH MACRON
231
+ '\xb6' # 0xB6 -> PILCROW SIGN
232
+ '\xb7' # 0xB7 -> MIDDLE DOT
233
+ '\ufffe' # 0xB8 -> UNDEFINED
234
+ '\u2116' # 0xB9 -> NUMERO SIGN
235
+ '\ufffe' # 0xBA -> UNDEFINED
236
+ '\xbb' # 0xBB -> RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
237
+ '\ufffe' # 0xBC -> UNDEFINED
238
+ '\ufffe' # 0xBD -> UNDEFINED
239
+ '\ufffe' # 0xBE -> UNDEFINED
240
+ '\xa9' # 0xBF -> COPYRIGHT SIGN
241
+ '\u044e' # 0xC0 -> CYRILLIC SMALL LETTER YU
242
+ '\u0430' # 0xC1 -> CYRILLIC SMALL LETTER A
243
+ '\u0431' # 0xC2 -> CYRILLIC SMALL LETTER BE
244
+ '\u0446' # 0xC3 -> CYRILLIC SMALL LETTER TSE
245
+ '\u0434' # 0xC4 -> CYRILLIC SMALL LETTER DE
246
+ '\u0435' # 0xC5 -> CYRILLIC SMALL LETTER IE
247
+ '\u0444' # 0xC6 -> CYRILLIC SMALL LETTER EF
248
+ '\u0433' # 0xC7 -> CYRILLIC SMALL LETTER GHE
249
+ '\u0445' # 0xC8 -> CYRILLIC SMALL LETTER HA
250
+ '\u0438' # 0xC9 -> CYRILLIC SMALL LETTER I
251
+ '\u0439' # 0xCA -> CYRILLIC SMALL LETTER SHORT I
252
+ '\u043a' # 0xCB -> CYRILLIC SMALL LETTER KA
253
+ '\u043b' # 0xCC -> CYRILLIC SMALL LETTER EL
254
+ '\u043c' # 0xCD -> CYRILLIC SMALL LETTER EM
255
+ '\u043d' # 0xCE -> CYRILLIC SMALL LETTER EN
256
+ '\u043e' # 0xCF -> CYRILLIC SMALL LETTER O
257
+ '\u043f' # 0xD0 -> CYRILLIC SMALL LETTER PE
258
+ '\u044f' # 0xD1 -> CYRILLIC SMALL LETTER YA
259
+ '\u0440' # 0xD2 -> CYRILLIC SMALL LETTER ER
260
+ '\u0441' # 0xD3 -> CYRILLIC SMALL LETTER ES
261
+ '\u0442' # 0xD4 -> CYRILLIC SMALL LETTER TE
262
+ '\u0443' # 0xD5 -> CYRILLIC SMALL LETTER U
263
+ '\u0436' # 0xD6 -> CYRILLIC SMALL LETTER ZHE
264
+ '\u0432' # 0xD7 -> CYRILLIC SMALL LETTER VE
265
+ '\u044c' # 0xD8 -> CYRILLIC SMALL LETTER SOFT SIGN
266
+ '\u044b' # 0xD9 -> CYRILLIC SMALL LETTER YERU
267
+ '\u0437' # 0xDA -> CYRILLIC SMALL LETTER ZE
268
+ '\u0448' # 0xDB -> CYRILLIC SMALL LETTER SHA
269
+ '\u044d' # 0xDC -> CYRILLIC SMALL LETTER E
270
+ '\u0449' # 0xDD -> CYRILLIC SMALL LETTER SHCHA
271
+ '\u0447' # 0xDE -> CYRILLIC SMALL LETTER CHE
272
+ '\u044a' # 0xDF -> CYRILLIC SMALL LETTER HARD SIGN
273
+ '\u042e' # 0xE0 -> CYRILLIC CAPITAL LETTER YU
274
+ '\u0410' # 0xE1 -> CYRILLIC CAPITAL LETTER A
275
+ '\u0411' # 0xE2 -> CYRILLIC CAPITAL LETTER BE
276
+ '\u0426' # 0xE3 -> CYRILLIC CAPITAL LETTER TSE
277
+ '\u0414' # 0xE4 -> CYRILLIC CAPITAL LETTER DE
278
+ '\u0415' # 0xE5 -> CYRILLIC CAPITAL LETTER IE
279
+ '\u0424' # 0xE6 -> CYRILLIC CAPITAL LETTER EF
280
+ '\u0413' # 0xE7 -> CYRILLIC CAPITAL LETTER GHE
281
+ '\u0425' # 0xE8 -> CYRILLIC CAPITAL LETTER HA
282
+ '\u0418' # 0xE9 -> CYRILLIC CAPITAL LETTER I
283
+ '\u0419' # 0xEA -> CYRILLIC CAPITAL LETTER SHORT I
284
+ '\u041a' # 0xEB -> CYRILLIC CAPITAL LETTER KA
285
+ '\u041b' # 0xEC -> CYRILLIC CAPITAL LETTER EL
286
+ '\u041c' # 0xED -> CYRILLIC CAPITAL LETTER EM
287
+ '\u041d' # 0xEE -> CYRILLIC CAPITAL LETTER EN
288
+ '\u041e' # 0xEF -> CYRILLIC CAPITAL LETTER O
289
+ '\u041f' # 0xF0 -> CYRILLIC CAPITAL LETTER PE
290
+ '\u042f' # 0xF1 -> CYRILLIC CAPITAL LETTER YA
291
+ '\u0420' # 0xF2 -> CYRILLIC CAPITAL LETTER ER
292
+ '\u0421' # 0xF3 -> CYRILLIC CAPITAL LETTER ES
293
+ '\u0422' # 0xF4 -> CYRILLIC CAPITAL LETTER TE
294
+ '\u0423' # 0xF5 -> CYRILLIC CAPITAL LETTER U
295
+ '\u0416' # 0xF6 -> CYRILLIC CAPITAL LETTER ZHE
296
+ '\u0412' # 0xF7 -> CYRILLIC CAPITAL LETTER VE
297
+ '\u042c' # 0xF8 -> CYRILLIC CAPITAL LETTER SOFT SIGN
298
+ '\u042b' # 0xF9 -> CYRILLIC CAPITAL LETTER YERU
299
+ '\u0417' # 0xFA -> CYRILLIC CAPITAL LETTER ZE
300
+ '\u0428' # 0xFB -> CYRILLIC CAPITAL LETTER SHA
301
+ '\u042d' # 0xFC -> CYRILLIC CAPITAL LETTER E
302
+ '\u0429' # 0xFD -> CYRILLIC CAPITAL LETTER SHCHA
303
+ '\u0427' # 0xFE -> CYRILLIC CAPITAL LETTER CHE
304
+ '\u042a' # 0xFF -> CYRILLIC CAPITAL LETTER HARD SIGN
305
+ )
306
+
307
+ ### Encoding table
308
+ encoding_table=codecs.charmap_build(decoding_table)
parrot/lib/python3.10/encodings/koi8_u.py ADDED
@@ -0,0 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python Character Mapping Codec koi8_u generated from 'python-mappings/KOI8-U.TXT' with gencodec.py.
2
+
3
+ """#"
4
+
5
+ import codecs
6
+
7
+ ### Codec APIs
8
+
9
+ class Codec(codecs.Codec):
10
+
11
+ def encode(self,input,errors='strict'):
12
+ return codecs.charmap_encode(input,errors,encoding_table)
13
+
14
+ def decode(self,input,errors='strict'):
15
+ return codecs.charmap_decode(input,errors,decoding_table)
16
+
17
+ class IncrementalEncoder(codecs.IncrementalEncoder):
18
+ def encode(self, input, final=False):
19
+ return codecs.charmap_encode(input,self.errors,encoding_table)[0]
20
+
21
+ class IncrementalDecoder(codecs.IncrementalDecoder):
22
+ def decode(self, input, final=False):
23
+ return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
+
25
+ class StreamWriter(Codec,codecs.StreamWriter):
26
+ pass
27
+
28
+ class StreamReader(Codec,codecs.StreamReader):
29
+ pass
30
+
31
+ ### encodings module API
32
+
33
+ def getregentry():
34
+ return codecs.CodecInfo(
35
+ name='koi8-u',
36
+ encode=Codec().encode,
37
+ decode=Codec().decode,
38
+ incrementalencoder=IncrementalEncoder,
39
+ incrementaldecoder=IncrementalDecoder,
40
+ streamreader=StreamReader,
41
+ streamwriter=StreamWriter,
42
+ )
43
+
44
+
45
+ ### Decoding Table
46
+
47
+ decoding_table = (
48
+ '\x00' # 0x00 -> NULL
49
+ '\x01' # 0x01 -> START OF HEADING
50
+ '\x02' # 0x02 -> START OF TEXT
51
+ '\x03' # 0x03 -> END OF TEXT
52
+ '\x04' # 0x04 -> END OF TRANSMISSION
53
+ '\x05' # 0x05 -> ENQUIRY
54
+ '\x06' # 0x06 -> ACKNOWLEDGE
55
+ '\x07' # 0x07 -> BELL
56
+ '\x08' # 0x08 -> BACKSPACE
57
+ '\t' # 0x09 -> HORIZONTAL TABULATION
58
+ '\n' # 0x0A -> LINE FEED
59
+ '\x0b' # 0x0B -> VERTICAL TABULATION
60
+ '\x0c' # 0x0C -> FORM FEED
61
+ '\r' # 0x0D -> CARRIAGE RETURN
62
+ '\x0e' # 0x0E -> SHIFT OUT
63
+ '\x0f' # 0x0F -> SHIFT IN
64
+ '\x10' # 0x10 -> DATA LINK ESCAPE
65
+ '\x11' # 0x11 -> DEVICE CONTROL ONE
66
+ '\x12' # 0x12 -> DEVICE CONTROL TWO
67
+ '\x13' # 0x13 -> DEVICE CONTROL THREE
68
+ '\x14' # 0x14 -> DEVICE CONTROL FOUR
69
+ '\x15' # 0x15 -> NEGATIVE ACKNOWLEDGE
70
+ '\x16' # 0x16 -> SYNCHRONOUS IDLE
71
+ '\x17' # 0x17 -> END OF TRANSMISSION BLOCK
72
+ '\x18' # 0x18 -> CANCEL
73
+ '\x19' # 0x19 -> END OF MEDIUM
74
+ '\x1a' # 0x1A -> SUBSTITUTE
75
+ '\x1b' # 0x1B -> ESCAPE
76
+ '\x1c' # 0x1C -> FILE SEPARATOR
77
+ '\x1d' # 0x1D -> GROUP SEPARATOR
78
+ '\x1e' # 0x1E -> RECORD SEPARATOR
79
+ '\x1f' # 0x1F -> UNIT SEPARATOR
80
+ ' ' # 0x20 -> SPACE
81
+ '!' # 0x21 -> EXCLAMATION MARK
82
+ '"' # 0x22 -> QUOTATION MARK
83
+ '#' # 0x23 -> NUMBER SIGN
84
+ '$' # 0x24 -> DOLLAR SIGN
85
+ '%' # 0x25 -> PERCENT SIGN
86
+ '&' # 0x26 -> AMPERSAND
87
+ "'" # 0x27 -> APOSTROPHE
88
+ '(' # 0x28 -> LEFT PARENTHESIS
89
+ ')' # 0x29 -> RIGHT PARENTHESIS
90
+ '*' # 0x2A -> ASTERISK
91
+ '+' # 0x2B -> PLUS SIGN
92
+ ',' # 0x2C -> COMMA
93
+ '-' # 0x2D -> HYPHEN-MINUS
94
+ '.' # 0x2E -> FULL STOP
95
+ '/' # 0x2F -> SOLIDUS
96
+ '0' # 0x30 -> DIGIT ZERO
97
+ '1' # 0x31 -> DIGIT ONE
98
+ '2' # 0x32 -> DIGIT TWO
99
+ '3' # 0x33 -> DIGIT THREE
100
+ '4' # 0x34 -> DIGIT FOUR
101
+ '5' # 0x35 -> DIGIT FIVE
102
+ '6' # 0x36 -> DIGIT SIX
103
+ '7' # 0x37 -> DIGIT SEVEN
104
+ '8' # 0x38 -> DIGIT EIGHT
105
+ '9' # 0x39 -> DIGIT NINE
106
+ ':' # 0x3A -> COLON
107
+ ';' # 0x3B -> SEMICOLON
108
+ '<' # 0x3C -> LESS-THAN SIGN
109
+ '=' # 0x3D -> EQUALS SIGN
110
+ '>' # 0x3E -> GREATER-THAN SIGN
111
+ '?' # 0x3F -> QUESTION MARK
112
+ '@' # 0x40 -> COMMERCIAL AT
113
+ 'A' # 0x41 -> LATIN CAPITAL LETTER A
114
+ 'B' # 0x42 -> LATIN CAPITAL LETTER B
115
+ 'C' # 0x43 -> LATIN CAPITAL LETTER C
116
+ 'D' # 0x44 -> LATIN CAPITAL LETTER D
117
+ 'E' # 0x45 -> LATIN CAPITAL LETTER E
118
+ 'F' # 0x46 -> LATIN CAPITAL LETTER F
119
+ 'G' # 0x47 -> LATIN CAPITAL LETTER G
120
+ 'H' # 0x48 -> LATIN CAPITAL LETTER H
121
+ 'I' # 0x49 -> LATIN CAPITAL LETTER I
122
+ 'J' # 0x4A -> LATIN CAPITAL LETTER J
123
+ 'K' # 0x4B -> LATIN CAPITAL LETTER K
124
+ 'L' # 0x4C -> LATIN CAPITAL LETTER L
125
+ 'M' # 0x4D -> LATIN CAPITAL LETTER M
126
+ 'N' # 0x4E -> LATIN CAPITAL LETTER N
127
+ 'O' # 0x4F -> LATIN CAPITAL LETTER O
128
+ 'P' # 0x50 -> LATIN CAPITAL LETTER P
129
+ 'Q' # 0x51 -> LATIN CAPITAL LETTER Q
130
+ 'R' # 0x52 -> LATIN CAPITAL LETTER R
131
+ 'S' # 0x53 -> LATIN CAPITAL LETTER S
132
+ 'T' # 0x54 -> LATIN CAPITAL LETTER T
133
+ 'U' # 0x55 -> LATIN CAPITAL LETTER U
134
+ 'V' # 0x56 -> LATIN CAPITAL LETTER V
135
+ 'W' # 0x57 -> LATIN CAPITAL LETTER W
136
+ 'X' # 0x58 -> LATIN CAPITAL LETTER X
137
+ 'Y' # 0x59 -> LATIN CAPITAL LETTER Y
138
+ 'Z' # 0x5A -> LATIN CAPITAL LETTER Z
139
+ '[' # 0x5B -> LEFT SQUARE BRACKET
140
+ '\\' # 0x5C -> REVERSE SOLIDUS
141
+ ']' # 0x5D -> RIGHT SQUARE BRACKET
142
+ '^' # 0x5E -> CIRCUMFLEX ACCENT
143
+ '_' # 0x5F -> LOW LINE
144
+ '`' # 0x60 -> GRAVE ACCENT
145
+ 'a' # 0x61 -> LATIN SMALL LETTER A
146
+ 'b' # 0x62 -> LATIN SMALL LETTER B
147
+ 'c' # 0x63 -> LATIN SMALL LETTER C
148
+ 'd' # 0x64 -> LATIN SMALL LETTER D
149
+ 'e' # 0x65 -> LATIN SMALL LETTER E
150
+ 'f' # 0x66 -> LATIN SMALL LETTER F
151
+ 'g' # 0x67 -> LATIN SMALL LETTER G
152
+ 'h' # 0x68 -> LATIN SMALL LETTER H
153
+ 'i' # 0x69 -> LATIN SMALL LETTER I
154
+ 'j' # 0x6A -> LATIN SMALL LETTER J
155
+ 'k' # 0x6B -> LATIN SMALL LETTER K
156
+ 'l' # 0x6C -> LATIN SMALL LETTER L
157
+ 'm' # 0x6D -> LATIN SMALL LETTER M
158
+ 'n' # 0x6E -> LATIN SMALL LETTER N
159
+ 'o' # 0x6F -> LATIN SMALL LETTER O
160
+ 'p' # 0x70 -> LATIN SMALL LETTER P
161
+ 'q' # 0x71 -> LATIN SMALL LETTER Q
162
+ 'r' # 0x72 -> LATIN SMALL LETTER R
163
+ 's' # 0x73 -> LATIN SMALL LETTER S
164
+ 't' # 0x74 -> LATIN SMALL LETTER T
165
+ 'u' # 0x75 -> LATIN SMALL LETTER U
166
+ 'v' # 0x76 -> LATIN SMALL LETTER V
167
+ 'w' # 0x77 -> LATIN SMALL LETTER W
168
+ 'x' # 0x78 -> LATIN SMALL LETTER X
169
+ 'y' # 0x79 -> LATIN SMALL LETTER Y
170
+ 'z' # 0x7A -> LATIN SMALL LETTER Z
171
+ '{' # 0x7B -> LEFT CURLY BRACKET
172
+ '|' # 0x7C -> VERTICAL LINE
173
+ '}' # 0x7D -> RIGHT CURLY BRACKET
174
+ '~' # 0x7E -> TILDE
175
+ '\x7f' # 0x7F -> DELETE
176
+ '\u2500' # 0x80 -> BOX DRAWINGS LIGHT HORIZONTAL
177
+ '\u2502' # 0x81 -> BOX DRAWINGS LIGHT VERTICAL
178
+ '\u250c' # 0x82 -> BOX DRAWINGS LIGHT DOWN AND RIGHT
179
+ '\u2510' # 0x83 -> BOX DRAWINGS LIGHT DOWN AND LEFT
180
+ '\u2514' # 0x84 -> BOX DRAWINGS LIGHT UP AND RIGHT
181
+ '\u2518' # 0x85 -> BOX DRAWINGS LIGHT UP AND LEFT
182
+ '\u251c' # 0x86 -> BOX DRAWINGS LIGHT VERTICAL AND RIGHT
183
+ '\u2524' # 0x87 -> BOX DRAWINGS LIGHT VERTICAL AND LEFT
184
+ '\u252c' # 0x88 -> BOX DRAWINGS LIGHT DOWN AND HORIZONTAL
185
+ '\u2534' # 0x89 -> BOX DRAWINGS LIGHT UP AND HORIZONTAL
186
+ '\u253c' # 0x8A -> BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL
187
+ '\u2580' # 0x8B -> UPPER HALF BLOCK
188
+ '\u2584' # 0x8C -> LOWER HALF BLOCK
189
+ '\u2588' # 0x8D -> FULL BLOCK
190
+ '\u258c' # 0x8E -> LEFT HALF BLOCK
191
+ '\u2590' # 0x8F -> RIGHT HALF BLOCK
192
+ '\u2591' # 0x90 -> LIGHT SHADE
193
+ '\u2592' # 0x91 -> MEDIUM SHADE
194
+ '\u2593' # 0x92 -> DARK SHADE
195
+ '\u2320' # 0x93 -> TOP HALF INTEGRAL
196
+ '\u25a0' # 0x94 -> BLACK SQUARE
197
+ '\u2219' # 0x95 -> BULLET OPERATOR
198
+ '\u221a' # 0x96 -> SQUARE ROOT
199
+ '\u2248' # 0x97 -> ALMOST EQUAL TO
200
+ '\u2264' # 0x98 -> LESS-THAN OR EQUAL TO
201
+ '\u2265' # 0x99 -> GREATER-THAN OR EQUAL TO
202
+ '\xa0' # 0x9A -> NO-BREAK SPACE
203
+ '\u2321' # 0x9B -> BOTTOM HALF INTEGRAL
204
+ '\xb0' # 0x9C -> DEGREE SIGN
205
+ '\xb2' # 0x9D -> SUPERSCRIPT TWO
206
+ '\xb7' # 0x9E -> MIDDLE DOT
207
+ '\xf7' # 0x9F -> DIVISION SIGN
208
+ '\u2550' # 0xA0 -> BOX DRAWINGS DOUBLE HORIZONTAL
209
+ '\u2551' # 0xA1 -> BOX DRAWINGS DOUBLE VERTICAL
210
+ '\u2552' # 0xA2 -> BOX DRAWINGS DOWN SINGLE AND RIGHT DOUBLE
211
+ '\u0451' # 0xA3 -> CYRILLIC SMALL LETTER IO
212
+ '\u0454' # 0xA4 -> CYRILLIC SMALL LETTER UKRAINIAN IE
213
+ '\u2554' # 0xA5 -> BOX DRAWINGS DOUBLE DOWN AND RIGHT
214
+ '\u0456' # 0xA6 -> CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I
215
+ '\u0457' # 0xA7 -> CYRILLIC SMALL LETTER YI (UKRAINIAN)
216
+ '\u2557' # 0xA8 -> BOX DRAWINGS DOUBLE DOWN AND LEFT
217
+ '\u2558' # 0xA9 -> BOX DRAWINGS UP SINGLE AND RIGHT DOUBLE
218
+ '\u2559' # 0xAA -> BOX DRAWINGS UP DOUBLE AND RIGHT SINGLE
219
+ '\u255a' # 0xAB -> BOX DRAWINGS DOUBLE UP AND RIGHT
220
+ '\u255b' # 0xAC -> BOX DRAWINGS UP SINGLE AND LEFT DOUBLE
221
+ '\u0491' # 0xAD -> CYRILLIC SMALL LETTER UKRAINIAN GHE WITH UPTURN
222
+ '\u255d' # 0xAE -> BOX DRAWINGS DOUBLE UP AND LEFT
223
+ '\u255e' # 0xAF -> BOX DRAWINGS VERTICAL SINGLE AND RIGHT DOUBLE
224
+ '\u255f' # 0xB0 -> BOX DRAWINGS VERTICAL DOUBLE AND RIGHT SINGLE
225
+ '\u2560' # 0xB1 -> BOX DRAWINGS DOUBLE VERTICAL AND RIGHT
226
+ '\u2561' # 0xB2 -> BOX DRAWINGS VERTICAL SINGLE AND LEFT DOUBLE
227
+ '\u0401' # 0xB3 -> CYRILLIC CAPITAL LETTER IO
228
+ '\u0404' # 0xB4 -> CYRILLIC CAPITAL LETTER UKRAINIAN IE
229
+ '\u2563' # 0xB5 -> BOX DRAWINGS DOUBLE VERTICAL AND LEFT
230
+ '\u0406' # 0xB6 -> CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I
231
+ '\u0407' # 0xB7 -> CYRILLIC CAPITAL LETTER YI (UKRAINIAN)
232
+ '\u2566' # 0xB8 -> BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL
233
+ '\u2567' # 0xB9 -> BOX DRAWINGS UP SINGLE AND HORIZONTAL DOUBLE
234
+ '\u2568' # 0xBA -> BOX DRAWINGS UP DOUBLE AND HORIZONTAL SINGLE
235
+ '\u2569' # 0xBB -> BOX DRAWINGS DOUBLE UP AND HORIZONTAL
236
+ '\u256a' # 0xBC -> BOX DRAWINGS VERTICAL SINGLE AND HORIZONTAL DOUBLE
237
+ '\u0490' # 0xBD -> CYRILLIC CAPITAL LETTER UKRAINIAN GHE WITH UPTURN
238
+ '\u256c' # 0xBE -> BOX DRAWINGS DOUBLE VERTICAL AND HORIZONTAL
239
+ '\xa9' # 0xBF -> COPYRIGHT SIGN
240
+ '\u044e' # 0xC0 -> CYRILLIC SMALL LETTER YU
241
+ '\u0430' # 0xC1 -> CYRILLIC SMALL LETTER A
242
+ '\u0431' # 0xC2 -> CYRILLIC SMALL LETTER BE
243
+ '\u0446' # 0xC3 -> CYRILLIC SMALL LETTER TSE
244
+ '\u0434' # 0xC4 -> CYRILLIC SMALL LETTER DE
245
+ '\u0435' # 0xC5 -> CYRILLIC SMALL LETTER IE
246
+ '\u0444' # 0xC6 -> CYRILLIC SMALL LETTER EF
247
+ '\u0433' # 0xC7 -> CYRILLIC SMALL LETTER GHE
248
+ '\u0445' # 0xC8 -> CYRILLIC SMALL LETTER HA
249
+ '\u0438' # 0xC9 -> CYRILLIC SMALL LETTER I
250
+ '\u0439' # 0xCA -> CYRILLIC SMALL LETTER SHORT I
251
+ '\u043a' # 0xCB -> CYRILLIC SMALL LETTER KA
252
+ '\u043b' # 0xCC -> CYRILLIC SMALL LETTER EL
253
+ '\u043c' # 0xCD -> CYRILLIC SMALL LETTER EM
254
+ '\u043d' # 0xCE -> CYRILLIC SMALL LETTER EN
255
+ '\u043e' # 0xCF -> CYRILLIC SMALL LETTER O
256
+ '\u043f' # 0xD0 -> CYRILLIC SMALL LETTER PE
257
+ '\u044f' # 0xD1 -> CYRILLIC SMALL LETTER YA
258
+ '\u0440' # 0xD2 -> CYRILLIC SMALL LETTER ER
259
+ '\u0441' # 0xD3 -> CYRILLIC SMALL LETTER ES
260
+ '\u0442' # 0xD4 -> CYRILLIC SMALL LETTER TE
261
+ '\u0443' # 0xD5 -> CYRILLIC SMALL LETTER U
262
+ '\u0436' # 0xD6 -> CYRILLIC SMALL LETTER ZHE
263
+ '\u0432' # 0xD7 -> CYRILLIC SMALL LETTER VE
264
+ '\u044c' # 0xD8 -> CYRILLIC SMALL LETTER SOFT SIGN
265
+ '\u044b' # 0xD9 -> CYRILLIC SMALL LETTER YERU
266
+ '\u0437' # 0xDA -> CYRILLIC SMALL LETTER ZE
267
+ '\u0448' # 0xDB -> CYRILLIC SMALL LETTER SHA
268
+ '\u044d' # 0xDC -> CYRILLIC SMALL LETTER E
269
+ '\u0449' # 0xDD -> CYRILLIC SMALL LETTER SHCHA
270
+ '\u0447' # 0xDE -> CYRILLIC SMALL LETTER CHE
271
+ '\u044a' # 0xDF -> CYRILLIC SMALL LETTER HARD SIGN
272
+ '\u042e' # 0xE0 -> CYRILLIC CAPITAL LETTER YU
273
+ '\u0410' # 0xE1 -> CYRILLIC CAPITAL LETTER A
274
+ '\u0411' # 0xE2 -> CYRILLIC CAPITAL LETTER BE
275
+ '\u0426' # 0xE3 -> CYRILLIC CAPITAL LETTER TSE
276
+ '\u0414' # 0xE4 -> CYRILLIC CAPITAL LETTER DE
277
+ '\u0415' # 0xE5 -> CYRILLIC CAPITAL LETTER IE
278
+ '\u0424' # 0xE6 -> CYRILLIC CAPITAL LETTER EF
279
+ '\u0413' # 0xE7 -> CYRILLIC CAPITAL LETTER GHE
280
+ '\u0425' # 0xE8 -> CYRILLIC CAPITAL LETTER HA
281
+ '\u0418' # 0xE9 -> CYRILLIC CAPITAL LETTER I
282
+ '\u0419' # 0xEA -> CYRILLIC CAPITAL LETTER SHORT I
283
+ '\u041a' # 0xEB -> CYRILLIC CAPITAL LETTER KA
284
+ '\u041b' # 0xEC -> CYRILLIC CAPITAL LETTER EL
285
+ '\u041c' # 0xED -> CYRILLIC CAPITAL LETTER EM
286
+ '\u041d' # 0xEE -> CYRILLIC CAPITAL LETTER EN
287
+ '\u041e' # 0xEF -> CYRILLIC CAPITAL LETTER O
288
+ '\u041f' # 0xF0 -> CYRILLIC CAPITAL LETTER PE
289
+ '\u042f' # 0xF1 -> CYRILLIC CAPITAL LETTER YA
290
+ '\u0420' # 0xF2 -> CYRILLIC CAPITAL LETTER ER
291
+ '\u0421' # 0xF3 -> CYRILLIC CAPITAL LETTER ES
292
+ '\u0422' # 0xF4 -> CYRILLIC CAPITAL LETTER TE
293
+ '\u0423' # 0xF5 -> CYRILLIC CAPITAL LETTER U
294
+ '\u0416' # 0xF6 -> CYRILLIC CAPITAL LETTER ZHE
295
+ '\u0412' # 0xF7 -> CYRILLIC CAPITAL LETTER VE
296
+ '\u042c' # 0xF8 -> CYRILLIC CAPITAL LETTER SOFT SIGN
297
+ '\u042b' # 0xF9 -> CYRILLIC CAPITAL LETTER YERU
298
+ '\u0417' # 0xFA -> CYRILLIC CAPITAL LETTER ZE
299
+ '\u0428' # 0xFB -> CYRILLIC CAPITAL LETTER SHA
300
+ '\u042d' # 0xFC -> CYRILLIC CAPITAL LETTER E
301
+ '\u0429' # 0xFD -> CYRILLIC CAPITAL LETTER SHCHA
302
+ '\u0427' # 0xFE -> CYRILLIC CAPITAL LETTER CHE
303
+ '\u042a' # 0xFF -> CYRILLIC CAPITAL LETTER HARD SIGN
304
+ )
305
+
306
+ ### Encoding table
307
+ encoding_table=codecs.charmap_build(decoding_table)
parrot/lib/python3.10/encodings/mac_arabic.py ADDED
@@ -0,0 +1,698 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python Character Mapping Codec generated from 'VENDORS/APPLE/ARABIC.TXT' with gencodec.py.
2
+
3
+ """#"
4
+
5
+ import codecs
6
+
7
+ ### Codec APIs
8
+
9
+ class Codec(codecs.Codec):
10
+
11
+ def encode(self,input,errors='strict'):
12
+ return codecs.charmap_encode(input,errors,encoding_map)
13
+
14
+ def decode(self,input,errors='strict'):
15
+ return codecs.charmap_decode(input,errors,decoding_table)
16
+
17
+ class IncrementalEncoder(codecs.IncrementalEncoder):
18
+ def encode(self, input, final=False):
19
+ return codecs.charmap_encode(input,self.errors,encoding_map)[0]
20
+
21
+ class IncrementalDecoder(codecs.IncrementalDecoder):
22
+ def decode(self, input, final=False):
23
+ return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
+
25
+ class StreamWriter(Codec,codecs.StreamWriter):
26
+ pass
27
+
28
+ class StreamReader(Codec,codecs.StreamReader):
29
+ pass
30
+
31
+ ### encodings module API
32
+
33
+ def getregentry():
34
+ return codecs.CodecInfo(
35
+ name='mac-arabic',
36
+ encode=Codec().encode,
37
+ decode=Codec().decode,
38
+ incrementalencoder=IncrementalEncoder,
39
+ incrementaldecoder=IncrementalDecoder,
40
+ streamreader=StreamReader,
41
+ streamwriter=StreamWriter,
42
+ )
43
+
44
+ ### Decoding Map
45
+
46
+ decoding_map = codecs.make_identity_dict(range(256))
47
+ decoding_map.update({
48
+ 0x0080: 0x00c4, # LATIN CAPITAL LETTER A WITH DIAERESIS
49
+ 0x0081: 0x00a0, # NO-BREAK SPACE, right-left
50
+ 0x0082: 0x00c7, # LATIN CAPITAL LETTER C WITH CEDILLA
51
+ 0x0083: 0x00c9, # LATIN CAPITAL LETTER E WITH ACUTE
52
+ 0x0084: 0x00d1, # LATIN CAPITAL LETTER N WITH TILDE
53
+ 0x0085: 0x00d6, # LATIN CAPITAL LETTER O WITH DIAERESIS
54
+ 0x0086: 0x00dc, # LATIN CAPITAL LETTER U WITH DIAERESIS
55
+ 0x0087: 0x00e1, # LATIN SMALL LETTER A WITH ACUTE
56
+ 0x0088: 0x00e0, # LATIN SMALL LETTER A WITH GRAVE
57
+ 0x0089: 0x00e2, # LATIN SMALL LETTER A WITH CIRCUMFLEX
58
+ 0x008a: 0x00e4, # LATIN SMALL LETTER A WITH DIAERESIS
59
+ 0x008b: 0x06ba, # ARABIC LETTER NOON GHUNNA
60
+ 0x008c: 0x00ab, # LEFT-POINTING DOUBLE ANGLE QUOTATION MARK, right-left
61
+ 0x008d: 0x00e7, # LATIN SMALL LETTER C WITH CEDILLA
62
+ 0x008e: 0x00e9, # LATIN SMALL LETTER E WITH ACUTE
63
+ 0x008f: 0x00e8, # LATIN SMALL LETTER E WITH GRAVE
64
+ 0x0090: 0x00ea, # LATIN SMALL LETTER E WITH CIRCUMFLEX
65
+ 0x0091: 0x00eb, # LATIN SMALL LETTER E WITH DIAERESIS
66
+ 0x0092: 0x00ed, # LATIN SMALL LETTER I WITH ACUTE
67
+ 0x0093: 0x2026, # HORIZONTAL ELLIPSIS, right-left
68
+ 0x0094: 0x00ee, # LATIN SMALL LETTER I WITH CIRCUMFLEX
69
+ 0x0095: 0x00ef, # LATIN SMALL LETTER I WITH DIAERESIS
70
+ 0x0096: 0x00f1, # LATIN SMALL LETTER N WITH TILDE
71
+ 0x0097: 0x00f3, # LATIN SMALL LETTER O WITH ACUTE
72
+ 0x0098: 0x00bb, # RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK, right-left
73
+ 0x0099: 0x00f4, # LATIN SMALL LETTER O WITH CIRCUMFLEX
74
+ 0x009a: 0x00f6, # LATIN SMALL LETTER O WITH DIAERESIS
75
+ 0x009b: 0x00f7, # DIVISION SIGN, right-left
76
+ 0x009c: 0x00fa, # LATIN SMALL LETTER U WITH ACUTE
77
+ 0x009d: 0x00f9, # LATIN SMALL LETTER U WITH GRAVE
78
+ 0x009e: 0x00fb, # LATIN SMALL LETTER U WITH CIRCUMFLEX
79
+ 0x009f: 0x00fc, # LATIN SMALL LETTER U WITH DIAERESIS
80
+ 0x00a0: 0x0020, # SPACE, right-left
81
+ 0x00a1: 0x0021, # EXCLAMATION MARK, right-left
82
+ 0x00a2: 0x0022, # QUOTATION MARK, right-left
83
+ 0x00a3: 0x0023, # NUMBER SIGN, right-left
84
+ 0x00a4: 0x0024, # DOLLAR SIGN, right-left
85
+ 0x00a5: 0x066a, # ARABIC PERCENT SIGN
86
+ 0x00a6: 0x0026, # AMPERSAND, right-left
87
+ 0x00a7: 0x0027, # APOSTROPHE, right-left
88
+ 0x00a8: 0x0028, # LEFT PARENTHESIS, right-left
89
+ 0x00a9: 0x0029, # RIGHT PARENTHESIS, right-left
90
+ 0x00aa: 0x002a, # ASTERISK, right-left
91
+ 0x00ab: 0x002b, # PLUS SIGN, right-left
92
+ 0x00ac: 0x060c, # ARABIC COMMA
93
+ 0x00ad: 0x002d, # HYPHEN-MINUS, right-left
94
+ 0x00ae: 0x002e, # FULL STOP, right-left
95
+ 0x00af: 0x002f, # SOLIDUS, right-left
96
+ 0x00b0: 0x0660, # ARABIC-INDIC DIGIT ZERO, right-left (need override)
97
+ 0x00b1: 0x0661, # ARABIC-INDIC DIGIT ONE, right-left (need override)
98
+ 0x00b2: 0x0662, # ARABIC-INDIC DIGIT TWO, right-left (need override)
99
+ 0x00b3: 0x0663, # ARABIC-INDIC DIGIT THREE, right-left (need override)
100
+ 0x00b4: 0x0664, # ARABIC-INDIC DIGIT FOUR, right-left (need override)
101
+ 0x00b5: 0x0665, # ARABIC-INDIC DIGIT FIVE, right-left (need override)
102
+ 0x00b6: 0x0666, # ARABIC-INDIC DIGIT SIX, right-left (need override)
103
+ 0x00b7: 0x0667, # ARABIC-INDIC DIGIT SEVEN, right-left (need override)
104
+ 0x00b8: 0x0668, # ARABIC-INDIC DIGIT EIGHT, right-left (need override)
105
+ 0x00b9: 0x0669, # ARABIC-INDIC DIGIT NINE, right-left (need override)
106
+ 0x00ba: 0x003a, # COLON, right-left
107
+ 0x00bb: 0x061b, # ARABIC SEMICOLON
108
+ 0x00bc: 0x003c, # LESS-THAN SIGN, right-left
109
+ 0x00bd: 0x003d, # EQUALS SIGN, right-left
110
+ 0x00be: 0x003e, # GREATER-THAN SIGN, right-left
111
+ 0x00bf: 0x061f, # ARABIC QUESTION MARK
112
+ 0x00c0: 0x274a, # EIGHT TEARDROP-SPOKED PROPELLER ASTERISK, right-left
113
+ 0x00c1: 0x0621, # ARABIC LETTER HAMZA
114
+ 0x00c2: 0x0622, # ARABIC LETTER ALEF WITH MADDA ABOVE
115
+ 0x00c3: 0x0623, # ARABIC LETTER ALEF WITH HAMZA ABOVE
116
+ 0x00c4: 0x0624, # ARABIC LETTER WAW WITH HAMZA ABOVE
117
+ 0x00c5: 0x0625, # ARABIC LETTER ALEF WITH HAMZA BELOW
118
+ 0x00c6: 0x0626, # ARABIC LETTER YEH WITH HAMZA ABOVE
119
+ 0x00c7: 0x0627, # ARABIC LETTER ALEF
120
+ 0x00c8: 0x0628, # ARABIC LETTER BEH
121
+ 0x00c9: 0x0629, # ARABIC LETTER TEH MARBUTA
122
+ 0x00ca: 0x062a, # ARABIC LETTER TEH
123
+ 0x00cb: 0x062b, # ARABIC LETTER THEH
124
+ 0x00cc: 0x062c, # ARABIC LETTER JEEM
125
+ 0x00cd: 0x062d, # ARABIC LETTER HAH
126
+ 0x00ce: 0x062e, # ARABIC LETTER KHAH
127
+ 0x00cf: 0x062f, # ARABIC LETTER DAL
128
+ 0x00d0: 0x0630, # ARABIC LETTER THAL
129
+ 0x00d1: 0x0631, # ARABIC LETTER REH
130
+ 0x00d2: 0x0632, # ARABIC LETTER ZAIN
131
+ 0x00d3: 0x0633, # ARABIC LETTER SEEN
132
+ 0x00d4: 0x0634, # ARABIC LETTER SHEEN
133
+ 0x00d5: 0x0635, # ARABIC LETTER SAD
134
+ 0x00d6: 0x0636, # ARABIC LETTER DAD
135
+ 0x00d7: 0x0637, # ARABIC LETTER TAH
136
+ 0x00d8: 0x0638, # ARABIC LETTER ZAH
137
+ 0x00d9: 0x0639, # ARABIC LETTER AIN
138
+ 0x00da: 0x063a, # ARABIC LETTER GHAIN
139
+ 0x00db: 0x005b, # LEFT SQUARE BRACKET, right-left
140
+ 0x00dc: 0x005c, # REVERSE SOLIDUS, right-left
141
+ 0x00dd: 0x005d, # RIGHT SQUARE BRACKET, right-left
142
+ 0x00de: 0x005e, # CIRCUMFLEX ACCENT, right-left
143
+ 0x00df: 0x005f, # LOW LINE, right-left
144
+ 0x00e0: 0x0640, # ARABIC TATWEEL
145
+ 0x00e1: 0x0641, # ARABIC LETTER FEH
146
+ 0x00e2: 0x0642, # ARABIC LETTER QAF
147
+ 0x00e3: 0x0643, # ARABIC LETTER KAF
148
+ 0x00e4: 0x0644, # ARABIC LETTER LAM
149
+ 0x00e5: 0x0645, # ARABIC LETTER MEEM
150
+ 0x00e6: 0x0646, # ARABIC LETTER NOON
151
+ 0x00e7: 0x0647, # ARABIC LETTER HEH
152
+ 0x00e8: 0x0648, # ARABIC LETTER WAW
153
+ 0x00e9: 0x0649, # ARABIC LETTER ALEF MAKSURA
154
+ 0x00ea: 0x064a, # ARABIC LETTER YEH
155
+ 0x00eb: 0x064b, # ARABIC FATHATAN
156
+ 0x00ec: 0x064c, # ARABIC DAMMATAN
157
+ 0x00ed: 0x064d, # ARABIC KASRATAN
158
+ 0x00ee: 0x064e, # ARABIC FATHA
159
+ 0x00ef: 0x064f, # ARABIC DAMMA
160
+ 0x00f0: 0x0650, # ARABIC KASRA
161
+ 0x00f1: 0x0651, # ARABIC SHADDA
162
+ 0x00f2: 0x0652, # ARABIC SUKUN
163
+ 0x00f3: 0x067e, # ARABIC LETTER PEH
164
+ 0x00f4: 0x0679, # ARABIC LETTER TTEH
165
+ 0x00f5: 0x0686, # ARABIC LETTER TCHEH
166
+ 0x00f6: 0x06d5, # ARABIC LETTER AE
167
+ 0x00f7: 0x06a4, # ARABIC LETTER VEH
168
+ 0x00f8: 0x06af, # ARABIC LETTER GAF
169
+ 0x00f9: 0x0688, # ARABIC LETTER DDAL
170
+ 0x00fa: 0x0691, # ARABIC LETTER RREH
171
+ 0x00fb: 0x007b, # LEFT CURLY BRACKET, right-left
172
+ 0x00fc: 0x007c, # VERTICAL LINE, right-left
173
+ 0x00fd: 0x007d, # RIGHT CURLY BRACKET, right-left
174
+ 0x00fe: 0x0698, # ARABIC LETTER JEH
175
+ 0x00ff: 0x06d2, # ARABIC LETTER YEH BARREE
176
+ })
177
+
178
+ ### Decoding Table
179
+
180
+ decoding_table = (
181
+ '\x00' # 0x0000 -> CONTROL CHARACTER
182
+ '\x01' # 0x0001 -> CONTROL CHARACTER
183
+ '\x02' # 0x0002 -> CONTROL CHARACTER
184
+ '\x03' # 0x0003 -> CONTROL CHARACTER
185
+ '\x04' # 0x0004 -> CONTROL CHARACTER
186
+ '\x05' # 0x0005 -> CONTROL CHARACTER
187
+ '\x06' # 0x0006 -> CONTROL CHARACTER
188
+ '\x07' # 0x0007 -> CONTROL CHARACTER
189
+ '\x08' # 0x0008 -> CONTROL CHARACTER
190
+ '\t' # 0x0009 -> CONTROL CHARACTER
191
+ '\n' # 0x000a -> CONTROL CHARACTER
192
+ '\x0b' # 0x000b -> CONTROL CHARACTER
193
+ '\x0c' # 0x000c -> CONTROL CHARACTER
194
+ '\r' # 0x000d -> CONTROL CHARACTER
195
+ '\x0e' # 0x000e -> CONTROL CHARACTER
196
+ '\x0f' # 0x000f -> CONTROL CHARACTER
197
+ '\x10' # 0x0010 -> CONTROL CHARACTER
198
+ '\x11' # 0x0011 -> CONTROL CHARACTER
199
+ '\x12' # 0x0012 -> CONTROL CHARACTER
200
+ '\x13' # 0x0013 -> CONTROL CHARACTER
201
+ '\x14' # 0x0014 -> CONTROL CHARACTER
202
+ '\x15' # 0x0015 -> CONTROL CHARACTER
203
+ '\x16' # 0x0016 -> CONTROL CHARACTER
204
+ '\x17' # 0x0017 -> CONTROL CHARACTER
205
+ '\x18' # 0x0018 -> CONTROL CHARACTER
206
+ '\x19' # 0x0019 -> CONTROL CHARACTER
207
+ '\x1a' # 0x001a -> CONTROL CHARACTER
208
+ '\x1b' # 0x001b -> CONTROL CHARACTER
209
+ '\x1c' # 0x001c -> CONTROL CHARACTER
210
+ '\x1d' # 0x001d -> CONTROL CHARACTER
211
+ '\x1e' # 0x001e -> CONTROL CHARACTER
212
+ '\x1f' # 0x001f -> CONTROL CHARACTER
213
+ ' ' # 0x0020 -> SPACE, left-right
214
+ '!' # 0x0021 -> EXCLAMATION MARK, left-right
215
+ '"' # 0x0022 -> QUOTATION MARK, left-right
216
+ '#' # 0x0023 -> NUMBER SIGN, left-right
217
+ '$' # 0x0024 -> DOLLAR SIGN, left-right
218
+ '%' # 0x0025 -> PERCENT SIGN, left-right
219
+ '&' # 0x0026 -> AMPERSAND, left-right
220
+ "'" # 0x0027 -> APOSTROPHE, left-right
221
+ '(' # 0x0028 -> LEFT PARENTHESIS, left-right
222
+ ')' # 0x0029 -> RIGHT PARENTHESIS, left-right
223
+ '*' # 0x002a -> ASTERISK, left-right
224
+ '+' # 0x002b -> PLUS SIGN, left-right
225
+ ',' # 0x002c -> COMMA, left-right; in Arabic-script context, displayed as 0x066C ARABIC THOUSANDS SEPARATOR
226
+ '-' # 0x002d -> HYPHEN-MINUS, left-right
227
+ '.' # 0x002e -> FULL STOP, left-right; in Arabic-script context, displayed as 0x066B ARABIC DECIMAL SEPARATOR
228
+ '/' # 0x002f -> SOLIDUS, left-right
229
+ '0' # 0x0030 -> DIGIT ZERO; in Arabic-script context, displayed as 0x0660 ARABIC-INDIC DIGIT ZERO
230
+ '1' # 0x0031 -> DIGIT ONE; in Arabic-script context, displayed as 0x0661 ARABIC-INDIC DIGIT ONE
231
+ '2' # 0x0032 -> DIGIT TWO; in Arabic-script context, displayed as 0x0662 ARABIC-INDIC DIGIT TWO
232
+ '3' # 0x0033 -> DIGIT THREE; in Arabic-script context, displayed as 0x0663 ARABIC-INDIC DIGIT THREE
233
+ '4' # 0x0034 -> DIGIT FOUR; in Arabic-script context, displayed as 0x0664 ARABIC-INDIC DIGIT FOUR
234
+ '5' # 0x0035 -> DIGIT FIVE; in Arabic-script context, displayed as 0x0665 ARABIC-INDIC DIGIT FIVE
235
+ '6' # 0x0036 -> DIGIT SIX; in Arabic-script context, displayed as 0x0666 ARABIC-INDIC DIGIT SIX
236
+ '7' # 0x0037 -> DIGIT SEVEN; in Arabic-script context, displayed as 0x0667 ARABIC-INDIC DIGIT SEVEN
237
+ '8' # 0x0038 -> DIGIT EIGHT; in Arabic-script context, displayed as 0x0668 ARABIC-INDIC DIGIT EIGHT
238
+ '9' # 0x0039 -> DIGIT NINE; in Arabic-script context, displayed as 0x0669 ARABIC-INDIC DIGIT NINE
239
+ ':' # 0x003a -> COLON, left-right
240
+ ';' # 0x003b -> SEMICOLON, left-right
241
+ '<' # 0x003c -> LESS-THAN SIGN, left-right
242
+ '=' # 0x003d -> EQUALS SIGN, left-right
243
+ '>' # 0x003e -> GREATER-THAN SIGN, left-right
244
+ '?' # 0x003f -> QUESTION MARK, left-right
245
+ '@' # 0x0040 -> COMMERCIAL AT
246
+ 'A' # 0x0041 -> LATIN CAPITAL LETTER A
247
+ 'B' # 0x0042 -> LATIN CAPITAL LETTER B
248
+ 'C' # 0x0043 -> LATIN CAPITAL LETTER C
249
+ 'D' # 0x0044 -> LATIN CAPITAL LETTER D
250
+ 'E' # 0x0045 -> LATIN CAPITAL LETTER E
251
+ 'F' # 0x0046 -> LATIN CAPITAL LETTER F
252
+ 'G' # 0x0047 -> LATIN CAPITAL LETTER G
253
+ 'H' # 0x0048 -> LATIN CAPITAL LETTER H
254
+ 'I' # 0x0049 -> LATIN CAPITAL LETTER I
255
+ 'J' # 0x004a -> LATIN CAPITAL LETTER J
256
+ 'K' # 0x004b -> LATIN CAPITAL LETTER K
257
+ 'L' # 0x004c -> LATIN CAPITAL LETTER L
258
+ 'M' # 0x004d -> LATIN CAPITAL LETTER M
259
+ 'N' # 0x004e -> LATIN CAPITAL LETTER N
260
+ 'O' # 0x004f -> LATIN CAPITAL LETTER O
261
+ 'P' # 0x0050 -> LATIN CAPITAL LETTER P
262
+ 'Q' # 0x0051 -> LATIN CAPITAL LETTER Q
263
+ 'R' # 0x0052 -> LATIN CAPITAL LETTER R
264
+ 'S' # 0x0053 -> LATIN CAPITAL LETTER S
265
+ 'T' # 0x0054 -> LATIN CAPITAL LETTER T
266
+ 'U' # 0x0055 -> LATIN CAPITAL LETTER U
267
+ 'V' # 0x0056 -> LATIN CAPITAL LETTER V
268
+ 'W' # 0x0057 -> LATIN CAPITAL LETTER W
269
+ 'X' # 0x0058 -> LATIN CAPITAL LETTER X
270
+ 'Y' # 0x0059 -> LATIN CAPITAL LETTER Y
271
+ 'Z' # 0x005a -> LATIN CAPITAL LETTER Z
272
+ '[' # 0x005b -> LEFT SQUARE BRACKET, left-right
273
+ '\\' # 0x005c -> REVERSE SOLIDUS, left-right
274
+ ']' # 0x005d -> RIGHT SQUARE BRACKET, left-right
275
+ '^' # 0x005e -> CIRCUMFLEX ACCENT, left-right
276
+ '_' # 0x005f -> LOW LINE, left-right
277
+ '`' # 0x0060 -> GRAVE ACCENT
278
+ 'a' # 0x0061 -> LATIN SMALL LETTER A
279
+ 'b' # 0x0062 -> LATIN SMALL LETTER B
280
+ 'c' # 0x0063 -> LATIN SMALL LETTER C
281
+ 'd' # 0x0064 -> LATIN SMALL LETTER D
282
+ 'e' # 0x0065 -> LATIN SMALL LETTER E
283
+ 'f' # 0x0066 -> LATIN SMALL LETTER F
284
+ 'g' # 0x0067 -> LATIN SMALL LETTER G
285
+ 'h' # 0x0068 -> LATIN SMALL LETTER H
286
+ 'i' # 0x0069 -> LATIN SMALL LETTER I
287
+ 'j' # 0x006a -> LATIN SMALL LETTER J
288
+ 'k' # 0x006b -> LATIN SMALL LETTER K
289
+ 'l' # 0x006c -> LATIN SMALL LETTER L
290
+ 'm' # 0x006d -> LATIN SMALL LETTER M
291
+ 'n' # 0x006e -> LATIN SMALL LETTER N
292
+ 'o' # 0x006f -> LATIN SMALL LETTER O
293
+ 'p' # 0x0070 -> LATIN SMALL LETTER P
294
+ 'q' # 0x0071 -> LATIN SMALL LETTER Q
295
+ 'r' # 0x0072 -> LATIN SMALL LETTER R
296
+ 's' # 0x0073 -> LATIN SMALL LETTER S
297
+ 't' # 0x0074 -> LATIN SMALL LETTER T
298
+ 'u' # 0x0075 -> LATIN SMALL LETTER U
299
+ 'v' # 0x0076 -> LATIN SMALL LETTER V
300
+ 'w' # 0x0077 -> LATIN SMALL LETTER W
301
+ 'x' # 0x0078 -> LATIN SMALL LETTER X
302
+ 'y' # 0x0079 -> LATIN SMALL LETTER Y
303
+ 'z' # 0x007a -> LATIN SMALL LETTER Z
304
+ '{' # 0x007b -> LEFT CURLY BRACKET, left-right
305
+ '|' # 0x007c -> VERTICAL LINE, left-right
306
+ '}' # 0x007d -> RIGHT CURLY BRACKET, left-right
307
+ '~' # 0x007e -> TILDE
308
+ '\x7f' # 0x007f -> CONTROL CHARACTER
309
+ '\xc4' # 0x0080 -> LATIN CAPITAL LETTER A WITH DIAERESIS
310
+ '\xa0' # 0x0081 -> NO-BREAK SPACE, right-left
311
+ '\xc7' # 0x0082 -> LATIN CAPITAL LETTER C WITH CEDILLA
312
+ '\xc9' # 0x0083 -> LATIN CAPITAL LETTER E WITH ACUTE
313
+ '\xd1' # 0x0084 -> LATIN CAPITAL LETTER N WITH TILDE
314
+ '\xd6' # 0x0085 -> LATIN CAPITAL LETTER O WITH DIAERESIS
315
+ '\xdc' # 0x0086 -> LATIN CAPITAL LETTER U WITH DIAERESIS
316
+ '\xe1' # 0x0087 -> LATIN SMALL LETTER A WITH ACUTE
317
+ '\xe0' # 0x0088 -> LATIN SMALL LETTER A WITH GRAVE
318
+ '\xe2' # 0x0089 -> LATIN SMALL LETTER A WITH CIRCUMFLEX
319
+ '\xe4' # 0x008a -> LATIN SMALL LETTER A WITH DIAERESIS
320
+ '\u06ba' # 0x008b -> ARABIC LETTER NOON GHUNNA
321
+ '\xab' # 0x008c -> LEFT-POINTING DOUBLE ANGLE QUOTATION MARK, right-left
322
+ '\xe7' # 0x008d -> LATIN SMALL LETTER C WITH CEDILLA
323
+ '\xe9' # 0x008e -> LATIN SMALL LETTER E WITH ACUTE
324
+ '\xe8' # 0x008f -> LATIN SMALL LETTER E WITH GRAVE
325
+ '\xea' # 0x0090 -> LATIN SMALL LETTER E WITH CIRCUMFLEX
326
+ '\xeb' # 0x0091 -> LATIN SMALL LETTER E WITH DIAERESIS
327
+ '\xed' # 0x0092 -> LATIN SMALL LETTER I WITH ACUTE
328
+ '\u2026' # 0x0093 -> HORIZONTAL ELLIPSIS, right-left
329
+ '\xee' # 0x0094 -> LATIN SMALL LETTER I WITH CIRCUMFLEX
330
+ '\xef' # 0x0095 -> LATIN SMALL LETTER I WITH DIAERESIS
331
+ '\xf1' # 0x0096 -> LATIN SMALL LETTER N WITH TILDE
332
+ '\xf3' # 0x0097 -> LATIN SMALL LETTER O WITH ACUTE
333
+ '\xbb' # 0x0098 -> RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK, right-left
334
+ '\xf4' # 0x0099 -> LATIN SMALL LETTER O WITH CIRCUMFLEX
335
+ '\xf6' # 0x009a -> LATIN SMALL LETTER O WITH DIAERESIS
336
+ '\xf7' # 0x009b -> DIVISION SIGN, right-left
337
+ '\xfa' # 0x009c -> LATIN SMALL LETTER U WITH ACUTE
338
+ '\xf9' # 0x009d -> LATIN SMALL LETTER U WITH GRAVE
339
+ '\xfb' # 0x009e -> LATIN SMALL LETTER U WITH CIRCUMFLEX
340
+ '\xfc' # 0x009f -> LATIN SMALL LETTER U WITH DIAERESIS
341
+ ' ' # 0x00a0 -> SPACE, right-left
342
+ '!' # 0x00a1 -> EXCLAMATION MARK, right-left
343
+ '"' # 0x00a2 -> QUOTATION MARK, right-left
344
+ '#' # 0x00a3 -> NUMBER SIGN, right-left
345
+ '$' # 0x00a4 -> DOLLAR SIGN, right-left
346
+ '\u066a' # 0x00a5 -> ARABIC PERCENT SIGN
347
+ '&' # 0x00a6 -> AMPERSAND, right-left
348
+ "'" # 0x00a7 -> APOSTROPHE, right-left
349
+ '(' # 0x00a8 -> LEFT PARENTHESIS, right-left
350
+ ')' # 0x00a9 -> RIGHT PARENTHESIS, right-left
351
+ '*' # 0x00aa -> ASTERISK, right-left
352
+ '+' # 0x00ab -> PLUS SIGN, right-left
353
+ '\u060c' # 0x00ac -> ARABIC COMMA
354
+ '-' # 0x00ad -> HYPHEN-MINUS, right-left
355
+ '.' # 0x00ae -> FULL STOP, right-left
356
+ '/' # 0x00af -> SOLIDUS, right-left
357
+ '\u0660' # 0x00b0 -> ARABIC-INDIC DIGIT ZERO, right-left (need override)
358
+ '\u0661' # 0x00b1 -> ARABIC-INDIC DIGIT ONE, right-left (need override)
359
+ '\u0662' # 0x00b2 -> ARABIC-INDIC DIGIT TWO, right-left (need override)
360
+ '\u0663' # 0x00b3 -> ARABIC-INDIC DIGIT THREE, right-left (need override)
361
+ '\u0664' # 0x00b4 -> ARABIC-INDIC DIGIT FOUR, right-left (need override)
362
+ '\u0665' # 0x00b5 -> ARABIC-INDIC DIGIT FIVE, right-left (need override)
363
+ '\u0666' # 0x00b6 -> ARABIC-INDIC DIGIT SIX, right-left (need override)
364
+ '\u0667' # 0x00b7 -> ARABIC-INDIC DIGIT SEVEN, right-left (need override)
365
+ '\u0668' # 0x00b8 -> ARABIC-INDIC DIGIT EIGHT, right-left (need override)
366
+ '\u0669' # 0x00b9 -> ARABIC-INDIC DIGIT NINE, right-left (need override)
367
+ ':' # 0x00ba -> COLON, right-left
368
+ '\u061b' # 0x00bb -> ARABIC SEMICOLON
369
+ '<' # 0x00bc -> LESS-THAN SIGN, right-left
370
+ '=' # 0x00bd -> EQUALS SIGN, right-left
371
+ '>' # 0x00be -> GREATER-THAN SIGN, right-left
372
+ '\u061f' # 0x00bf -> ARABIC QUESTION MARK
373
+ '\u274a' # 0x00c0 -> EIGHT TEARDROP-SPOKED PROPELLER ASTERISK, right-left
374
+ '\u0621' # 0x00c1 -> ARABIC LETTER HAMZA
375
+ '\u0622' # 0x00c2 -> ARABIC LETTER ALEF WITH MADDA ABOVE
376
+ '\u0623' # 0x00c3 -> ARABIC LETTER ALEF WITH HAMZA ABOVE
377
+ '\u0624' # 0x00c4 -> ARABIC LETTER WAW WITH HAMZA ABOVE
378
+ '\u0625' # 0x00c5 -> ARABIC LETTER ALEF WITH HAMZA BELOW
379
+ '\u0626' # 0x00c6 -> ARABIC LETTER YEH WITH HAMZA ABOVE
380
+ '\u0627' # 0x00c7 -> ARABIC LETTER ALEF
381
+ '\u0628' # 0x00c8 -> ARABIC LETTER BEH
382
+ '\u0629' # 0x00c9 -> ARABIC LETTER TEH MARBUTA
383
+ '\u062a' # 0x00ca -> ARABIC LETTER TEH
384
+ '\u062b' # 0x00cb -> ARABIC LETTER THEH
385
+ '\u062c' # 0x00cc -> ARABIC LETTER JEEM
386
+ '\u062d' # 0x00cd -> ARABIC LETTER HAH
387
+ '\u062e' # 0x00ce -> ARABIC LETTER KHAH
388
+ '\u062f' # 0x00cf -> ARABIC LETTER DAL
389
+ '\u0630' # 0x00d0 -> ARABIC LETTER THAL
390
+ '\u0631' # 0x00d1 -> ARABIC LETTER REH
391
+ '\u0632' # 0x00d2 -> ARABIC LETTER ZAIN
392
+ '\u0633' # 0x00d3 -> ARABIC LETTER SEEN
393
+ '\u0634' # 0x00d4 -> ARABIC LETTER SHEEN
394
+ '\u0635' # 0x00d5 -> ARABIC LETTER SAD
395
+ '\u0636' # 0x00d6 -> ARABIC LETTER DAD
396
+ '\u0637' # 0x00d7 -> ARABIC LETTER TAH
397
+ '\u0638' # 0x00d8 -> ARABIC LETTER ZAH
398
+ '\u0639' # 0x00d9 -> ARABIC LETTER AIN
399
+ '\u063a' # 0x00da -> ARABIC LETTER GHAIN
400
+ '[' # 0x00db -> LEFT SQUARE BRACKET, right-left
401
+ '\\' # 0x00dc -> REVERSE SOLIDUS, right-left
402
+ ']' # 0x00dd -> RIGHT SQUARE BRACKET, right-left
403
+ '^' # 0x00de -> CIRCUMFLEX ACCENT, right-left
404
+ '_' # 0x00df -> LOW LINE, right-left
405
+ '\u0640' # 0x00e0 -> ARABIC TATWEEL
406
+ '\u0641' # 0x00e1 -> ARABIC LETTER FEH
407
+ '\u0642' # 0x00e2 -> ARABIC LETTER QAF
408
+ '\u0643' # 0x00e3 -> ARABIC LETTER KAF
409
+ '\u0644' # 0x00e4 -> ARABIC LETTER LAM
410
+ '\u0645' # 0x00e5 -> ARABIC LETTER MEEM
411
+ '\u0646' # 0x00e6 -> ARABIC LETTER NOON
412
+ '\u0647' # 0x00e7 -> ARABIC LETTER HEH
413
+ '\u0648' # 0x00e8 -> ARABIC LETTER WAW
414
+ '\u0649' # 0x00e9 -> ARABIC LETTER ALEF MAKSURA
415
+ '\u064a' # 0x00ea -> ARABIC LETTER YEH
416
+ '\u064b' # 0x00eb -> ARABIC FATHATAN
417
+ '\u064c' # 0x00ec -> ARABIC DAMMATAN
418
+ '\u064d' # 0x00ed -> ARABIC KASRATAN
419
+ '\u064e' # 0x00ee -> ARABIC FATHA
420
+ '\u064f' # 0x00ef -> ARABIC DAMMA
421
+ '\u0650' # 0x00f0 -> ARABIC KASRA
422
+ '\u0651' # 0x00f1 -> ARABIC SHADDA
423
+ '\u0652' # 0x00f2 -> ARABIC SUKUN
424
+ '\u067e' # 0x00f3 -> ARABIC LETTER PEH
425
+ '\u0679' # 0x00f4 -> ARABIC LETTER TTEH
426
+ '\u0686' # 0x00f5 -> ARABIC LETTER TCHEH
427
+ '\u06d5' # 0x00f6 -> ARABIC LETTER AE
428
+ '\u06a4' # 0x00f7 -> ARABIC LETTER VEH
429
+ '\u06af' # 0x00f8 -> ARABIC LETTER GAF
430
+ '\u0688' # 0x00f9 -> ARABIC LETTER DDAL
431
+ '\u0691' # 0x00fa -> ARABIC LETTER RREH
432
+ '{' # 0x00fb -> LEFT CURLY BRACKET, right-left
433
+ '|' # 0x00fc -> VERTICAL LINE, right-left
434
+ '}' # 0x00fd -> RIGHT CURLY BRACKET, right-left
435
+ '\u0698' # 0x00fe -> ARABIC LETTER JEH
436
+ '\u06d2' # 0x00ff -> ARABIC LETTER YEH BARREE
437
+ )
438
+
439
+ ### Encoding Map
440
+
441
+ encoding_map = {
442
+ 0x0000: 0x0000, # CONTROL CHARACTER
443
+ 0x0001: 0x0001, # CONTROL CHARACTER
444
+ 0x0002: 0x0002, # CONTROL CHARACTER
445
+ 0x0003: 0x0003, # CONTROL CHARACTER
446
+ 0x0004: 0x0004, # CONTROL CHARACTER
447
+ 0x0005: 0x0005, # CONTROL CHARACTER
448
+ 0x0006: 0x0006, # CONTROL CHARACTER
449
+ 0x0007: 0x0007, # CONTROL CHARACTER
450
+ 0x0008: 0x0008, # CONTROL CHARACTER
451
+ 0x0009: 0x0009, # CONTROL CHARACTER
452
+ 0x000a: 0x000a, # CONTROL CHARACTER
453
+ 0x000b: 0x000b, # CONTROL CHARACTER
454
+ 0x000c: 0x000c, # CONTROL CHARACTER
455
+ 0x000d: 0x000d, # CONTROL CHARACTER
456
+ 0x000e: 0x000e, # CONTROL CHARACTER
457
+ 0x000f: 0x000f, # CONTROL CHARACTER
458
+ 0x0010: 0x0010, # CONTROL CHARACTER
459
+ 0x0011: 0x0011, # CONTROL CHARACTER
460
+ 0x0012: 0x0012, # CONTROL CHARACTER
461
+ 0x0013: 0x0013, # CONTROL CHARACTER
462
+ 0x0014: 0x0014, # CONTROL CHARACTER
463
+ 0x0015: 0x0015, # CONTROL CHARACTER
464
+ 0x0016: 0x0016, # CONTROL CHARACTER
465
+ 0x0017: 0x0017, # CONTROL CHARACTER
466
+ 0x0018: 0x0018, # CONTROL CHARACTER
467
+ 0x0019: 0x0019, # CONTROL CHARACTER
468
+ 0x001a: 0x001a, # CONTROL CHARACTER
469
+ 0x001b: 0x001b, # CONTROL CHARACTER
470
+ 0x001c: 0x001c, # CONTROL CHARACTER
471
+ 0x001d: 0x001d, # CONTROL CHARACTER
472
+ 0x001e: 0x001e, # CONTROL CHARACTER
473
+ 0x001f: 0x001f, # CONTROL CHARACTER
474
+ 0x0020: 0x0020, # SPACE, left-right
475
+ 0x0020: 0x00a0, # SPACE, right-left
476
+ 0x0021: 0x0021, # EXCLAMATION MARK, left-right
477
+ 0x0021: 0x00a1, # EXCLAMATION MARK, right-left
478
+ 0x0022: 0x0022, # QUOTATION MARK, left-right
479
+ 0x0022: 0x00a2, # QUOTATION MARK, right-left
480
+ 0x0023: 0x0023, # NUMBER SIGN, left-right
481
+ 0x0023: 0x00a3, # NUMBER SIGN, right-left
482
+ 0x0024: 0x0024, # DOLLAR SIGN, left-right
483
+ 0x0024: 0x00a4, # DOLLAR SIGN, right-left
484
+ 0x0025: 0x0025, # PERCENT SIGN, left-right
485
+ 0x0026: 0x0026, # AMPERSAND, left-right
486
+ 0x0026: 0x00a6, # AMPERSAND, right-left
487
+ 0x0027: 0x0027, # APOSTROPHE, left-right
488
+ 0x0027: 0x00a7, # APOSTROPHE, right-left
489
+ 0x0028: 0x0028, # LEFT PARENTHESIS, left-right
490
+ 0x0028: 0x00a8, # LEFT PARENTHESIS, right-left
491
+ 0x0029: 0x0029, # RIGHT PARENTHESIS, left-right
492
+ 0x0029: 0x00a9, # RIGHT PARENTHESIS, right-left
493
+ 0x002a: 0x002a, # ASTERISK, left-right
494
+ 0x002a: 0x00aa, # ASTERISK, right-left
495
+ 0x002b: 0x002b, # PLUS SIGN, left-right
496
+ 0x002b: 0x00ab, # PLUS SIGN, right-left
497
+ 0x002c: 0x002c, # COMMA, left-right; in Arabic-script context, displayed as 0x066C ARABIC THOUSANDS SEPARATOR
498
+ 0x002d: 0x002d, # HYPHEN-MINUS, left-right
499
+ 0x002d: 0x00ad, # HYPHEN-MINUS, right-left
500
+ 0x002e: 0x002e, # FULL STOP, left-right; in Arabic-script context, displayed as 0x066B ARABIC DECIMAL SEPARATOR
501
+ 0x002e: 0x00ae, # FULL STOP, right-left
502
+ 0x002f: 0x002f, # SOLIDUS, left-right
503
+ 0x002f: 0x00af, # SOLIDUS, right-left
504
+ 0x0030: 0x0030, # DIGIT ZERO; in Arabic-script context, displayed as 0x0660 ARABIC-INDIC DIGIT ZERO
505
+ 0x0031: 0x0031, # DIGIT ONE; in Arabic-script context, displayed as 0x0661 ARABIC-INDIC DIGIT ONE
506
+ 0x0032: 0x0032, # DIGIT TWO; in Arabic-script context, displayed as 0x0662 ARABIC-INDIC DIGIT TWO
507
+ 0x0033: 0x0033, # DIGIT THREE; in Arabic-script context, displayed as 0x0663 ARABIC-INDIC DIGIT THREE
508
+ 0x0034: 0x0034, # DIGIT FOUR; in Arabic-script context, displayed as 0x0664 ARABIC-INDIC DIGIT FOUR
509
+ 0x0035: 0x0035, # DIGIT FIVE; in Arabic-script context, displayed as 0x0665 ARABIC-INDIC DIGIT FIVE
510
+ 0x0036: 0x0036, # DIGIT SIX; in Arabic-script context, displayed as 0x0666 ARABIC-INDIC DIGIT SIX
511
+ 0x0037: 0x0037, # DIGIT SEVEN; in Arabic-script context, displayed as 0x0667 ARABIC-INDIC DIGIT SEVEN
512
+ 0x0038: 0x0038, # DIGIT EIGHT; in Arabic-script context, displayed as 0x0668 ARABIC-INDIC DIGIT EIGHT
513
+ 0x0039: 0x0039, # DIGIT NINE; in Arabic-script context, displayed as 0x0669 ARABIC-INDIC DIGIT NINE
514
+ 0x003a: 0x003a, # COLON, left-right
515
+ 0x003a: 0x00ba, # COLON, right-left
516
+ 0x003b: 0x003b, # SEMICOLON, left-right
517
+ 0x003c: 0x003c, # LESS-THAN SIGN, left-right
518
+ 0x003c: 0x00bc, # LESS-THAN SIGN, right-left
519
+ 0x003d: 0x003d, # EQUALS SIGN, left-right
520
+ 0x003d: 0x00bd, # EQUALS SIGN, right-left
521
+ 0x003e: 0x003e, # GREATER-THAN SIGN, left-right
522
+ 0x003e: 0x00be, # GREATER-THAN SIGN, right-left
523
+ 0x003f: 0x003f, # QUESTION MARK, left-right
524
+ 0x0040: 0x0040, # COMMERCIAL AT
525
+ 0x0041: 0x0041, # LATIN CAPITAL LETTER A
526
+ 0x0042: 0x0042, # LATIN CAPITAL LETTER B
527
+ 0x0043: 0x0043, # LATIN CAPITAL LETTER C
528
+ 0x0044: 0x0044, # LATIN CAPITAL LETTER D
529
+ 0x0045: 0x0045, # LATIN CAPITAL LETTER E
530
+ 0x0046: 0x0046, # LATIN CAPITAL LETTER F
531
+ 0x0047: 0x0047, # LATIN CAPITAL LETTER G
532
+ 0x0048: 0x0048, # LATIN CAPITAL LETTER H
533
+ 0x0049: 0x0049, # LATIN CAPITAL LETTER I
534
+ 0x004a: 0x004a, # LATIN CAPITAL LETTER J
535
+ 0x004b: 0x004b, # LATIN CAPITAL LETTER K
536
+ 0x004c: 0x004c, # LATIN CAPITAL LETTER L
537
+ 0x004d: 0x004d, # LATIN CAPITAL LETTER M
538
+ 0x004e: 0x004e, # LATIN CAPITAL LETTER N
539
+ 0x004f: 0x004f, # LATIN CAPITAL LETTER O
540
+ 0x0050: 0x0050, # LATIN CAPITAL LETTER P
541
+ 0x0051: 0x0051, # LATIN CAPITAL LETTER Q
542
+ 0x0052: 0x0052, # LATIN CAPITAL LETTER R
543
+ 0x0053: 0x0053, # LATIN CAPITAL LETTER S
544
+ 0x0054: 0x0054, # LATIN CAPITAL LETTER T
545
+ 0x0055: 0x0055, # LATIN CAPITAL LETTER U
546
+ 0x0056: 0x0056, # LATIN CAPITAL LETTER V
547
+ 0x0057: 0x0057, # LATIN CAPITAL LETTER W
548
+ 0x0058: 0x0058, # LATIN CAPITAL LETTER X
549
+ 0x0059: 0x0059, # LATIN CAPITAL LETTER Y
550
+ 0x005a: 0x005a, # LATIN CAPITAL LETTER Z
551
+ 0x005b: 0x005b, # LEFT SQUARE BRACKET, left-right
552
+ 0x005b: 0x00db, # LEFT SQUARE BRACKET, right-left
553
+ 0x005c: 0x005c, # REVERSE SOLIDUS, left-right
554
+ 0x005c: 0x00dc, # REVERSE SOLIDUS, right-left
555
+ 0x005d: 0x005d, # RIGHT SQUARE BRACKET, left-right
556
+ 0x005d: 0x00dd, # RIGHT SQUARE BRACKET, right-left
557
+ 0x005e: 0x005e, # CIRCUMFLEX ACCENT, left-right
558
+ 0x005e: 0x00de, # CIRCUMFLEX ACCENT, right-left
559
+ 0x005f: 0x005f, # LOW LINE, left-right
560
+ 0x005f: 0x00df, # LOW LINE, right-left
561
+ 0x0060: 0x0060, # GRAVE ACCENT
562
+ 0x0061: 0x0061, # LATIN SMALL LETTER A
563
+ 0x0062: 0x0062, # LATIN SMALL LETTER B
564
+ 0x0063: 0x0063, # LATIN SMALL LETTER C
565
+ 0x0064: 0x0064, # LATIN SMALL LETTER D
566
+ 0x0065: 0x0065, # LATIN SMALL LETTER E
567
+ 0x0066: 0x0066, # LATIN SMALL LETTER F
568
+ 0x0067: 0x0067, # LATIN SMALL LETTER G
569
+ 0x0068: 0x0068, # LATIN SMALL LETTER H
570
+ 0x0069: 0x0069, # LATIN SMALL LETTER I
571
+ 0x006a: 0x006a, # LATIN SMALL LETTER J
572
+ 0x006b: 0x006b, # LATIN SMALL LETTER K
573
+ 0x006c: 0x006c, # LATIN SMALL LETTER L
574
+ 0x006d: 0x006d, # LATIN SMALL LETTER M
575
+ 0x006e: 0x006e, # LATIN SMALL LETTER N
576
+ 0x006f: 0x006f, # LATIN SMALL LETTER O
577
+ 0x0070: 0x0070, # LATIN SMALL LETTER P
578
+ 0x0071: 0x0071, # LATIN SMALL LETTER Q
579
+ 0x0072: 0x0072, # LATIN SMALL LETTER R
580
+ 0x0073: 0x0073, # LATIN SMALL LETTER S
581
+ 0x0074: 0x0074, # LATIN SMALL LETTER T
582
+ 0x0075: 0x0075, # LATIN SMALL LETTER U
583
+ 0x0076: 0x0076, # LATIN SMALL LETTER V
584
+ 0x0077: 0x0077, # LATIN SMALL LETTER W
585
+ 0x0078: 0x0078, # LATIN SMALL LETTER X
586
+ 0x0079: 0x0079, # LATIN SMALL LETTER Y
587
+ 0x007a: 0x007a, # LATIN SMALL LETTER Z
588
+ 0x007b: 0x007b, # LEFT CURLY BRACKET, left-right
589
+ 0x007b: 0x00fb, # LEFT CURLY BRACKET, right-left
590
+ 0x007c: 0x007c, # VERTICAL LINE, left-right
591
+ 0x007c: 0x00fc, # VERTICAL LINE, right-left
592
+ 0x007d: 0x007d, # RIGHT CURLY BRACKET, left-right
593
+ 0x007d: 0x00fd, # RIGHT CURLY BRACKET, right-left
594
+ 0x007e: 0x007e, # TILDE
595
+ 0x007f: 0x007f, # CONTROL CHARACTER
596
+ 0x00a0: 0x0081, # NO-BREAK SPACE, right-left
597
+ 0x00ab: 0x008c, # LEFT-POINTING DOUBLE ANGLE QUOTATION MARK, right-left
598
+ 0x00bb: 0x0098, # RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK, right-left
599
+ 0x00c4: 0x0080, # LATIN CAPITAL LETTER A WITH DIAERESIS
600
+ 0x00c7: 0x0082, # LATIN CAPITAL LETTER C WITH CEDILLA
601
+ 0x00c9: 0x0083, # LATIN CAPITAL LETTER E WITH ACUTE
602
+ 0x00d1: 0x0084, # LATIN CAPITAL LETTER N WITH TILDE
603
+ 0x00d6: 0x0085, # LATIN CAPITAL LETTER O WITH DIAERESIS
604
+ 0x00dc: 0x0086, # LATIN CAPITAL LETTER U WITH DIAERESIS
605
+ 0x00e0: 0x0088, # LATIN SMALL LETTER A WITH GRAVE
606
+ 0x00e1: 0x0087, # LATIN SMALL LETTER A WITH ACUTE
607
+ 0x00e2: 0x0089, # LATIN SMALL LETTER A WITH CIRCUMFLEX
608
+ 0x00e4: 0x008a, # LATIN SMALL LETTER A WITH DIAERESIS
609
+ 0x00e7: 0x008d, # LATIN SMALL LETTER C WITH CEDILLA
610
+ 0x00e8: 0x008f, # LATIN SMALL LETTER E WITH GRAVE
611
+ 0x00e9: 0x008e, # LATIN SMALL LETTER E WITH ACUTE
612
+ 0x00ea: 0x0090, # LATIN SMALL LETTER E WITH CIRCUMFLEX
613
+ 0x00eb: 0x0091, # LATIN SMALL LETTER E WITH DIAERESIS
614
+ 0x00ed: 0x0092, # LATIN SMALL LETTER I WITH ACUTE
615
+ 0x00ee: 0x0094, # LATIN SMALL LETTER I WITH CIRCUMFLEX
616
+ 0x00ef: 0x0095, # LATIN SMALL LETTER I WITH DIAERESIS
617
+ 0x00f1: 0x0096, # LATIN SMALL LETTER N WITH TILDE
618
+ 0x00f3: 0x0097, # LATIN SMALL LETTER O WITH ACUTE
619
+ 0x00f4: 0x0099, # LATIN SMALL LETTER O WITH CIRCUMFLEX
620
+ 0x00f6: 0x009a, # LATIN SMALL LETTER O WITH DIAERESIS
621
+ 0x00f7: 0x009b, # DIVISION SIGN, right-left
622
+ 0x00f9: 0x009d, # LATIN SMALL LETTER U WITH GRAVE
623
+ 0x00fa: 0x009c, # LATIN SMALL LETTER U WITH ACUTE
624
+ 0x00fb: 0x009e, # LATIN SMALL LETTER U WITH CIRCUMFLEX
625
+ 0x00fc: 0x009f, # LATIN SMALL LETTER U WITH DIAERESIS
626
+ 0x060c: 0x00ac, # ARABIC COMMA
627
+ 0x061b: 0x00bb, # ARABIC SEMICOLON
628
+ 0x061f: 0x00bf, # ARABIC QUESTION MARK
629
+ 0x0621: 0x00c1, # ARABIC LETTER HAMZA
630
+ 0x0622: 0x00c2, # ARABIC LETTER ALEF WITH MADDA ABOVE
631
+ 0x0623: 0x00c3, # ARABIC LETTER ALEF WITH HAMZA ABOVE
632
+ 0x0624: 0x00c4, # ARABIC LETTER WAW WITH HAMZA ABOVE
633
+ 0x0625: 0x00c5, # ARABIC LETTER ALEF WITH HAMZA BELOW
634
+ 0x0626: 0x00c6, # ARABIC LETTER YEH WITH HAMZA ABOVE
635
+ 0x0627: 0x00c7, # ARABIC LETTER ALEF
636
+ 0x0628: 0x00c8, # ARABIC LETTER BEH
637
+ 0x0629: 0x00c9, # ARABIC LETTER TEH MARBUTA
638
+ 0x062a: 0x00ca, # ARABIC LETTER TEH
639
+ 0x062b: 0x00cb, # ARABIC LETTER THEH
640
+ 0x062c: 0x00cc, # ARABIC LETTER JEEM
641
+ 0x062d: 0x00cd, # ARABIC LETTER HAH
642
+ 0x062e: 0x00ce, # ARABIC LETTER KHAH
643
+ 0x062f: 0x00cf, # ARABIC LETTER DAL
644
+ 0x0630: 0x00d0, # ARABIC LETTER THAL
645
+ 0x0631: 0x00d1, # ARABIC LETTER REH
646
+ 0x0632: 0x00d2, # ARABIC LETTER ZAIN
647
+ 0x0633: 0x00d3, # ARABIC LETTER SEEN
648
+ 0x0634: 0x00d4, # ARABIC LETTER SHEEN
649
+ 0x0635: 0x00d5, # ARABIC LETTER SAD
650
+ 0x0636: 0x00d6, # ARABIC LETTER DAD
651
+ 0x0637: 0x00d7, # ARABIC LETTER TAH
652
+ 0x0638: 0x00d8, # ARABIC LETTER ZAH
653
+ 0x0639: 0x00d9, # ARABIC LETTER AIN
654
+ 0x063a: 0x00da, # ARABIC LETTER GHAIN
655
+ 0x0640: 0x00e0, # ARABIC TATWEEL
656
+ 0x0641: 0x00e1, # ARABIC LETTER FEH
657
+ 0x0642: 0x00e2, # ARABIC LETTER QAF
658
+ 0x0643: 0x00e3, # ARABIC LETTER KAF
659
+ 0x0644: 0x00e4, # ARABIC LETTER LAM
660
+ 0x0645: 0x00e5, # ARABIC LETTER MEEM
661
+ 0x0646: 0x00e6, # ARABIC LETTER NOON
662
+ 0x0647: 0x00e7, # ARABIC LETTER HEH
663
+ 0x0648: 0x00e8, # ARABIC LETTER WAW
664
+ 0x0649: 0x00e9, # ARABIC LETTER ALEF MAKSURA
665
+ 0x064a: 0x00ea, # ARABIC LETTER YEH
666
+ 0x064b: 0x00eb, # ARABIC FATHATAN
667
+ 0x064c: 0x00ec, # ARABIC DAMMATAN
668
+ 0x064d: 0x00ed, # ARABIC KASRATAN
669
+ 0x064e: 0x00ee, # ARABIC FATHA
670
+ 0x064f: 0x00ef, # ARABIC DAMMA
671
+ 0x0650: 0x00f0, # ARABIC KASRA
672
+ 0x0651: 0x00f1, # ARABIC SHADDA
673
+ 0x0652: 0x00f2, # ARABIC SUKUN
674
+ 0x0660: 0x00b0, # ARABIC-INDIC DIGIT ZERO, right-left (need override)
675
+ 0x0661: 0x00b1, # ARABIC-INDIC DIGIT ONE, right-left (need override)
676
+ 0x0662: 0x00b2, # ARABIC-INDIC DIGIT TWO, right-left (need override)
677
+ 0x0663: 0x00b3, # ARABIC-INDIC DIGIT THREE, right-left (need override)
678
+ 0x0664: 0x00b4, # ARABIC-INDIC DIGIT FOUR, right-left (need override)
679
+ 0x0665: 0x00b5, # ARABIC-INDIC DIGIT FIVE, right-left (need override)
680
+ 0x0666: 0x00b6, # ARABIC-INDIC DIGIT SIX, right-left (need override)
681
+ 0x0667: 0x00b7, # ARABIC-INDIC DIGIT SEVEN, right-left (need override)
682
+ 0x0668: 0x00b8, # ARABIC-INDIC DIGIT EIGHT, right-left (need override)
683
+ 0x0669: 0x00b9, # ARABIC-INDIC DIGIT NINE, right-left (need override)
684
+ 0x066a: 0x00a5, # ARABIC PERCENT SIGN
685
+ 0x0679: 0x00f4, # ARABIC LETTER TTEH
686
+ 0x067e: 0x00f3, # ARABIC LETTER PEH
687
+ 0x0686: 0x00f5, # ARABIC LETTER TCHEH
688
+ 0x0688: 0x00f9, # ARABIC LETTER DDAL
689
+ 0x0691: 0x00fa, # ARABIC LETTER RREH
690
+ 0x0698: 0x00fe, # ARABIC LETTER JEH
691
+ 0x06a4: 0x00f7, # ARABIC LETTER VEH
692
+ 0x06af: 0x00f8, # ARABIC LETTER GAF
693
+ 0x06ba: 0x008b, # ARABIC LETTER NOON GHUNNA
694
+ 0x06d2: 0x00ff, # ARABIC LETTER YEH BARREE
695
+ 0x06d5: 0x00f6, # ARABIC LETTER AE
696
+ 0x2026: 0x0093, # HORIZONTAL ELLIPSIS, right-left
697
+ 0x274a: 0x00c0, # EIGHT TEARDROP-SPOKED PROPELLER ASTERISK, right-left
698
+ }
parrot/lib/python3.10/encodings/mac_croatian.py ADDED
@@ -0,0 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python Character Mapping Codec mac_croatian generated from 'MAPPINGS/VENDORS/APPLE/CROATIAN.TXT' with gencodec.py.
2
+
3
+ """#"
4
+
5
+ import codecs
6
+
7
+ ### Codec APIs
8
+
9
+ class Codec(codecs.Codec):
10
+
11
+ def encode(self,input,errors='strict'):
12
+ return codecs.charmap_encode(input,errors,encoding_table)
13
+
14
+ def decode(self,input,errors='strict'):
15
+ return codecs.charmap_decode(input,errors,decoding_table)
16
+
17
+ class IncrementalEncoder(codecs.IncrementalEncoder):
18
+ def encode(self, input, final=False):
19
+ return codecs.charmap_encode(input,self.errors,encoding_table)[0]
20
+
21
+ class IncrementalDecoder(codecs.IncrementalDecoder):
22
+ def decode(self, input, final=False):
23
+ return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
+
25
+ class StreamWriter(Codec,codecs.StreamWriter):
26
+ pass
27
+
28
+ class StreamReader(Codec,codecs.StreamReader):
29
+ pass
30
+
31
+ ### encodings module API
32
+
33
+ def getregentry():
34
+ return codecs.CodecInfo(
35
+ name='mac-croatian',
36
+ encode=Codec().encode,
37
+ decode=Codec().decode,
38
+ incrementalencoder=IncrementalEncoder,
39
+ incrementaldecoder=IncrementalDecoder,
40
+ streamreader=StreamReader,
41
+ streamwriter=StreamWriter,
42
+ )
43
+
44
+
45
+ ### Decoding Table
46
+
47
+ decoding_table = (
48
+ '\x00' # 0x00 -> CONTROL CHARACTER
49
+ '\x01' # 0x01 -> CONTROL CHARACTER
50
+ '\x02' # 0x02 -> CONTROL CHARACTER
51
+ '\x03' # 0x03 -> CONTROL CHARACTER
52
+ '\x04' # 0x04 -> CONTROL CHARACTER
53
+ '\x05' # 0x05 -> CONTROL CHARACTER
54
+ '\x06' # 0x06 -> CONTROL CHARACTER
55
+ '\x07' # 0x07 -> CONTROL CHARACTER
56
+ '\x08' # 0x08 -> CONTROL CHARACTER
57
+ '\t' # 0x09 -> CONTROL CHARACTER
58
+ '\n' # 0x0A -> CONTROL CHARACTER
59
+ '\x0b' # 0x0B -> CONTROL CHARACTER
60
+ '\x0c' # 0x0C -> CONTROL CHARACTER
61
+ '\r' # 0x0D -> CONTROL CHARACTER
62
+ '\x0e' # 0x0E -> CONTROL CHARACTER
63
+ '\x0f' # 0x0F -> CONTROL CHARACTER
64
+ '\x10' # 0x10 -> CONTROL CHARACTER
65
+ '\x11' # 0x11 -> CONTROL CHARACTER
66
+ '\x12' # 0x12 -> CONTROL CHARACTER
67
+ '\x13' # 0x13 -> CONTROL CHARACTER
68
+ '\x14' # 0x14 -> CONTROL CHARACTER
69
+ '\x15' # 0x15 -> CONTROL CHARACTER
70
+ '\x16' # 0x16 -> CONTROL CHARACTER
71
+ '\x17' # 0x17 -> CONTROL CHARACTER
72
+ '\x18' # 0x18 -> CONTROL CHARACTER
73
+ '\x19' # 0x19 -> CONTROL CHARACTER
74
+ '\x1a' # 0x1A -> CONTROL CHARACTER
75
+ '\x1b' # 0x1B -> CONTROL CHARACTER
76
+ '\x1c' # 0x1C -> CONTROL CHARACTER
77
+ '\x1d' # 0x1D -> CONTROL CHARACTER
78
+ '\x1e' # 0x1E -> CONTROL CHARACTER
79
+ '\x1f' # 0x1F -> CONTROL CHARACTER
80
+ ' ' # 0x20 -> SPACE
81
+ '!' # 0x21 -> EXCLAMATION MARK
82
+ '"' # 0x22 -> QUOTATION MARK
83
+ '#' # 0x23 -> NUMBER SIGN
84
+ '$' # 0x24 -> DOLLAR SIGN
85
+ '%' # 0x25 -> PERCENT SIGN
86
+ '&' # 0x26 -> AMPERSAND
87
+ "'" # 0x27 -> APOSTROPHE
88
+ '(' # 0x28 -> LEFT PARENTHESIS
89
+ ')' # 0x29 -> RIGHT PARENTHESIS
90
+ '*' # 0x2A -> ASTERISK
91
+ '+' # 0x2B -> PLUS SIGN
92
+ ',' # 0x2C -> COMMA
93
+ '-' # 0x2D -> HYPHEN-MINUS
94
+ '.' # 0x2E -> FULL STOP
95
+ '/' # 0x2F -> SOLIDUS
96
+ '0' # 0x30 -> DIGIT ZERO
97
+ '1' # 0x31 -> DIGIT ONE
98
+ '2' # 0x32 -> DIGIT TWO
99
+ '3' # 0x33 -> DIGIT THREE
100
+ '4' # 0x34 -> DIGIT FOUR
101
+ '5' # 0x35 -> DIGIT FIVE
102
+ '6' # 0x36 -> DIGIT SIX
103
+ '7' # 0x37 -> DIGIT SEVEN
104
+ '8' # 0x38 -> DIGIT EIGHT
105
+ '9' # 0x39 -> DIGIT NINE
106
+ ':' # 0x3A -> COLON
107
+ ';' # 0x3B -> SEMICOLON
108
+ '<' # 0x3C -> LESS-THAN SIGN
109
+ '=' # 0x3D -> EQUALS SIGN
110
+ '>' # 0x3E -> GREATER-THAN SIGN
111
+ '?' # 0x3F -> QUESTION MARK
112
+ '@' # 0x40 -> COMMERCIAL AT
113
+ 'A' # 0x41 -> LATIN CAPITAL LETTER A
114
+ 'B' # 0x42 -> LATIN CAPITAL LETTER B
115
+ 'C' # 0x43 -> LATIN CAPITAL LETTER C
116
+ 'D' # 0x44 -> LATIN CAPITAL LETTER D
117
+ 'E' # 0x45 -> LATIN CAPITAL LETTER E
118
+ 'F' # 0x46 -> LATIN CAPITAL LETTER F
119
+ 'G' # 0x47 -> LATIN CAPITAL LETTER G
120
+ 'H' # 0x48 -> LATIN CAPITAL LETTER H
121
+ 'I' # 0x49 -> LATIN CAPITAL LETTER I
122
+ 'J' # 0x4A -> LATIN CAPITAL LETTER J
123
+ 'K' # 0x4B -> LATIN CAPITAL LETTER K
124
+ 'L' # 0x4C -> LATIN CAPITAL LETTER L
125
+ 'M' # 0x4D -> LATIN CAPITAL LETTER M
126
+ 'N' # 0x4E -> LATIN CAPITAL LETTER N
127
+ 'O' # 0x4F -> LATIN CAPITAL LETTER O
128
+ 'P' # 0x50 -> LATIN CAPITAL LETTER P
129
+ 'Q' # 0x51 -> LATIN CAPITAL LETTER Q
130
+ 'R' # 0x52 -> LATIN CAPITAL LETTER R
131
+ 'S' # 0x53 -> LATIN CAPITAL LETTER S
132
+ 'T' # 0x54 -> LATIN CAPITAL LETTER T
133
+ 'U' # 0x55 -> LATIN CAPITAL LETTER U
134
+ 'V' # 0x56 -> LATIN CAPITAL LETTER V
135
+ 'W' # 0x57 -> LATIN CAPITAL LETTER W
136
+ 'X' # 0x58 -> LATIN CAPITAL LETTER X
137
+ 'Y' # 0x59 -> LATIN CAPITAL LETTER Y
138
+ 'Z' # 0x5A -> LATIN CAPITAL LETTER Z
139
+ '[' # 0x5B -> LEFT SQUARE BRACKET
140
+ '\\' # 0x5C -> REVERSE SOLIDUS
141
+ ']' # 0x5D -> RIGHT SQUARE BRACKET
142
+ '^' # 0x5E -> CIRCUMFLEX ACCENT
143
+ '_' # 0x5F -> LOW LINE
144
+ '`' # 0x60 -> GRAVE ACCENT
145
+ 'a' # 0x61 -> LATIN SMALL LETTER A
146
+ 'b' # 0x62 -> LATIN SMALL LETTER B
147
+ 'c' # 0x63 -> LATIN SMALL LETTER C
148
+ 'd' # 0x64 -> LATIN SMALL LETTER D
149
+ 'e' # 0x65 -> LATIN SMALL LETTER E
150
+ 'f' # 0x66 -> LATIN SMALL LETTER F
151
+ 'g' # 0x67 -> LATIN SMALL LETTER G
152
+ 'h' # 0x68 -> LATIN SMALL LETTER H
153
+ 'i' # 0x69 -> LATIN SMALL LETTER I
154
+ 'j' # 0x6A -> LATIN SMALL LETTER J
155
+ 'k' # 0x6B -> LATIN SMALL LETTER K
156
+ 'l' # 0x6C -> LATIN SMALL LETTER L
157
+ 'm' # 0x6D -> LATIN SMALL LETTER M
158
+ 'n' # 0x6E -> LATIN SMALL LETTER N
159
+ 'o' # 0x6F -> LATIN SMALL LETTER O
160
+ 'p' # 0x70 -> LATIN SMALL LETTER P
161
+ 'q' # 0x71 -> LATIN SMALL LETTER Q
162
+ 'r' # 0x72 -> LATIN SMALL LETTER R
163
+ 's' # 0x73 -> LATIN SMALL LETTER S
164
+ 't' # 0x74 -> LATIN SMALL LETTER T
165
+ 'u' # 0x75 -> LATIN SMALL LETTER U
166
+ 'v' # 0x76 -> LATIN SMALL LETTER V
167
+ 'w' # 0x77 -> LATIN SMALL LETTER W
168
+ 'x' # 0x78 -> LATIN SMALL LETTER X
169
+ 'y' # 0x79 -> LATIN SMALL LETTER Y
170
+ 'z' # 0x7A -> LATIN SMALL LETTER Z
171
+ '{' # 0x7B -> LEFT CURLY BRACKET
172
+ '|' # 0x7C -> VERTICAL LINE
173
+ '}' # 0x7D -> RIGHT CURLY BRACKET
174
+ '~' # 0x7E -> TILDE
175
+ '\x7f' # 0x7F -> CONTROL CHARACTER
176
+ '\xc4' # 0x80 -> LATIN CAPITAL LETTER A WITH DIAERESIS
177
+ '\xc5' # 0x81 -> LATIN CAPITAL LETTER A WITH RING ABOVE
178
+ '\xc7' # 0x82 -> LATIN CAPITAL LETTER C WITH CEDILLA
179
+ '\xc9' # 0x83 -> LATIN CAPITAL LETTER E WITH ACUTE
180
+ '\xd1' # 0x84 -> LATIN CAPITAL LETTER N WITH TILDE
181
+ '\xd6' # 0x85 -> LATIN CAPITAL LETTER O WITH DIAERESIS
182
+ '\xdc' # 0x86 -> LATIN CAPITAL LETTER U WITH DIAERESIS
183
+ '\xe1' # 0x87 -> LATIN SMALL LETTER A WITH ACUTE
184
+ '\xe0' # 0x88 -> LATIN SMALL LETTER A WITH GRAVE
185
+ '\xe2' # 0x89 -> LATIN SMALL LETTER A WITH CIRCUMFLEX
186
+ '\xe4' # 0x8A -> LATIN SMALL LETTER A WITH DIAERESIS
187
+ '\xe3' # 0x8B -> LATIN SMALL LETTER A WITH TILDE
188
+ '\xe5' # 0x8C -> LATIN SMALL LETTER A WITH RING ABOVE
189
+ '\xe7' # 0x8D -> LATIN SMALL LETTER C WITH CEDILLA
190
+ '\xe9' # 0x8E -> LATIN SMALL LETTER E WITH ACUTE
191
+ '\xe8' # 0x8F -> LATIN SMALL LETTER E WITH GRAVE
192
+ '\xea' # 0x90 -> LATIN SMALL LETTER E WITH CIRCUMFLEX
193
+ '\xeb' # 0x91 -> LATIN SMALL LETTER E WITH DIAERESIS
194
+ '\xed' # 0x92 -> LATIN SMALL LETTER I WITH ACUTE
195
+ '\xec' # 0x93 -> LATIN SMALL LETTER I WITH GRAVE
196
+ '\xee' # 0x94 -> LATIN SMALL LETTER I WITH CIRCUMFLEX
197
+ '\xef' # 0x95 -> LATIN SMALL LETTER I WITH DIAERESIS
198
+ '\xf1' # 0x96 -> LATIN SMALL LETTER N WITH TILDE
199
+ '\xf3' # 0x97 -> LATIN SMALL LETTER O WITH ACUTE
200
+ '\xf2' # 0x98 -> LATIN SMALL LETTER O WITH GRAVE
201
+ '\xf4' # 0x99 -> LATIN SMALL LETTER O WITH CIRCUMFLEX
202
+ '\xf6' # 0x9A -> LATIN SMALL LETTER O WITH DIAERESIS
203
+ '\xf5' # 0x9B -> LATIN SMALL LETTER O WITH TILDE
204
+ '\xfa' # 0x9C -> LATIN SMALL LETTER U WITH ACUTE
205
+ '\xf9' # 0x9D -> LATIN SMALL LETTER U WITH GRAVE
206
+ '\xfb' # 0x9E -> LATIN SMALL LETTER U WITH CIRCUMFLEX
207
+ '\xfc' # 0x9F -> LATIN SMALL LETTER U WITH DIAERESIS
208
+ '\u2020' # 0xA0 -> DAGGER
209
+ '\xb0' # 0xA1 -> DEGREE SIGN
210
+ '\xa2' # 0xA2 -> CENT SIGN
211
+ '\xa3' # 0xA3 -> POUND SIGN
212
+ '\xa7' # 0xA4 -> SECTION SIGN
213
+ '\u2022' # 0xA5 -> BULLET
214
+ '\xb6' # 0xA6 -> PILCROW SIGN
215
+ '\xdf' # 0xA7 -> LATIN SMALL LETTER SHARP S
216
+ '\xae' # 0xA8 -> REGISTERED SIGN
217
+ '\u0160' # 0xA9 -> LATIN CAPITAL LETTER S WITH CARON
218
+ '\u2122' # 0xAA -> TRADE MARK SIGN
219
+ '\xb4' # 0xAB -> ACUTE ACCENT
220
+ '\xa8' # 0xAC -> DIAERESIS
221
+ '\u2260' # 0xAD -> NOT EQUAL TO
222
+ '\u017d' # 0xAE -> LATIN CAPITAL LETTER Z WITH CARON
223
+ '\xd8' # 0xAF -> LATIN CAPITAL LETTER O WITH STROKE
224
+ '\u221e' # 0xB0 -> INFINITY
225
+ '\xb1' # 0xB1 -> PLUS-MINUS SIGN
226
+ '\u2264' # 0xB2 -> LESS-THAN OR EQUAL TO
227
+ '\u2265' # 0xB3 -> GREATER-THAN OR EQUAL TO
228
+ '\u2206' # 0xB4 -> INCREMENT
229
+ '\xb5' # 0xB5 -> MICRO SIGN
230
+ '\u2202' # 0xB6 -> PARTIAL DIFFERENTIAL
231
+ '\u2211' # 0xB7 -> N-ARY SUMMATION
232
+ '\u220f' # 0xB8 -> N-ARY PRODUCT
233
+ '\u0161' # 0xB9 -> LATIN SMALL LETTER S WITH CARON
234
+ '\u222b' # 0xBA -> INTEGRAL
235
+ '\xaa' # 0xBB -> FEMININE ORDINAL INDICATOR
236
+ '\xba' # 0xBC -> MASCULINE ORDINAL INDICATOR
237
+ '\u03a9' # 0xBD -> GREEK CAPITAL LETTER OMEGA
238
+ '\u017e' # 0xBE -> LATIN SMALL LETTER Z WITH CARON
239
+ '\xf8' # 0xBF -> LATIN SMALL LETTER O WITH STROKE
240
+ '\xbf' # 0xC0 -> INVERTED QUESTION MARK
241
+ '\xa1' # 0xC1 -> INVERTED EXCLAMATION MARK
242
+ '\xac' # 0xC2 -> NOT SIGN
243
+ '\u221a' # 0xC3 -> SQUARE ROOT
244
+ '\u0192' # 0xC4 -> LATIN SMALL LETTER F WITH HOOK
245
+ '\u2248' # 0xC5 -> ALMOST EQUAL TO
246
+ '\u0106' # 0xC6 -> LATIN CAPITAL LETTER C WITH ACUTE
247
+ '\xab' # 0xC7 -> LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
248
+ '\u010c' # 0xC8 -> LATIN CAPITAL LETTER C WITH CARON
249
+ '\u2026' # 0xC9 -> HORIZONTAL ELLIPSIS
250
+ '\xa0' # 0xCA -> NO-BREAK SPACE
251
+ '\xc0' # 0xCB -> LATIN CAPITAL LETTER A WITH GRAVE
252
+ '\xc3' # 0xCC -> LATIN CAPITAL LETTER A WITH TILDE
253
+ '\xd5' # 0xCD -> LATIN CAPITAL LETTER O WITH TILDE
254
+ '\u0152' # 0xCE -> LATIN CAPITAL LIGATURE OE
255
+ '\u0153' # 0xCF -> LATIN SMALL LIGATURE OE
256
+ '\u0110' # 0xD0 -> LATIN CAPITAL LETTER D WITH STROKE
257
+ '\u2014' # 0xD1 -> EM DASH
258
+ '\u201c' # 0xD2 -> LEFT DOUBLE QUOTATION MARK
259
+ '\u201d' # 0xD3 -> RIGHT DOUBLE QUOTATION MARK
260
+ '\u2018' # 0xD4 -> LEFT SINGLE QUOTATION MARK
261
+ '\u2019' # 0xD5 -> RIGHT SINGLE QUOTATION MARK
262
+ '\xf7' # 0xD6 -> DIVISION SIGN
263
+ '\u25ca' # 0xD7 -> LOZENGE
264
+ '\uf8ff' # 0xD8 -> Apple logo
265
+ '\xa9' # 0xD9 -> COPYRIGHT SIGN
266
+ '\u2044' # 0xDA -> FRACTION SLASH
267
+ '\u20ac' # 0xDB -> EURO SIGN
268
+ '\u2039' # 0xDC -> SINGLE LEFT-POINTING ANGLE QUOTATION MARK
269
+ '\u203a' # 0xDD -> SINGLE RIGHT-POINTING ANGLE QUOTATION MARK
270
+ '\xc6' # 0xDE -> LATIN CAPITAL LETTER AE
271
+ '\xbb' # 0xDF -> RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
272
+ '\u2013' # 0xE0 -> EN DASH
273
+ '\xb7' # 0xE1 -> MIDDLE DOT
274
+ '\u201a' # 0xE2 -> SINGLE LOW-9 QUOTATION MARK
275
+ '\u201e' # 0xE3 -> DOUBLE LOW-9 QUOTATION MARK
276
+ '\u2030' # 0xE4 -> PER MILLE SIGN
277
+ '\xc2' # 0xE5 -> LATIN CAPITAL LETTER A WITH CIRCUMFLEX
278
+ '\u0107' # 0xE6 -> LATIN SMALL LETTER C WITH ACUTE
279
+ '\xc1' # 0xE7 -> LATIN CAPITAL LETTER A WITH ACUTE
280
+ '\u010d' # 0xE8 -> LATIN SMALL LETTER C WITH CARON
281
+ '\xc8' # 0xE9 -> LATIN CAPITAL LETTER E WITH GRAVE
282
+ '\xcd' # 0xEA -> LATIN CAPITAL LETTER I WITH ACUTE
283
+ '\xce' # 0xEB -> LATIN CAPITAL LETTER I WITH CIRCUMFLEX
284
+ '\xcf' # 0xEC -> LATIN CAPITAL LETTER I WITH DIAERESIS
285
+ '\xcc' # 0xED -> LATIN CAPITAL LETTER I WITH GRAVE
286
+ '\xd3' # 0xEE -> LATIN CAPITAL LETTER O WITH ACUTE
287
+ '\xd4' # 0xEF -> LATIN CAPITAL LETTER O WITH CIRCUMFLEX
288
+ '\u0111' # 0xF0 -> LATIN SMALL LETTER D WITH STROKE
289
+ '\xd2' # 0xF1 -> LATIN CAPITAL LETTER O WITH GRAVE
290
+ '\xda' # 0xF2 -> LATIN CAPITAL LETTER U WITH ACUTE
291
+ '\xdb' # 0xF3 -> LATIN CAPITAL LETTER U WITH CIRCUMFLEX
292
+ '\xd9' # 0xF4 -> LATIN CAPITAL LETTER U WITH GRAVE
293
+ '\u0131' # 0xF5 -> LATIN SMALL LETTER DOTLESS I
294
+ '\u02c6' # 0xF6 -> MODIFIER LETTER CIRCUMFLEX ACCENT
295
+ '\u02dc' # 0xF7 -> SMALL TILDE
296
+ '\xaf' # 0xF8 -> MACRON
297
+ '\u03c0' # 0xF9 -> GREEK SMALL LETTER PI
298
+ '\xcb' # 0xFA -> LATIN CAPITAL LETTER E WITH DIAERESIS
299
+ '\u02da' # 0xFB -> RING ABOVE
300
+ '\xb8' # 0xFC -> CEDILLA
301
+ '\xca' # 0xFD -> LATIN CAPITAL LETTER E WITH CIRCUMFLEX
302
+ '\xe6' # 0xFE -> LATIN SMALL LETTER AE
303
+ '\u02c7' # 0xFF -> CARON
304
+ )
305
+
306
+ ### Encoding table
307
+ encoding_table=codecs.charmap_build(decoding_table)
parrot/lib/python3.10/encodings/mac_greek.py ADDED
@@ -0,0 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python Character Mapping Codec mac_greek generated from 'MAPPINGS/VENDORS/APPLE/GREEK.TXT' with gencodec.py.
2
+
3
+ """#"
4
+
5
+ import codecs
6
+
7
+ ### Codec APIs
8
+
9
+ class Codec(codecs.Codec):
10
+
11
+ def encode(self,input,errors='strict'):
12
+ return codecs.charmap_encode(input,errors,encoding_table)
13
+
14
+ def decode(self,input,errors='strict'):
15
+ return codecs.charmap_decode(input,errors,decoding_table)
16
+
17
+ class IncrementalEncoder(codecs.IncrementalEncoder):
18
+ def encode(self, input, final=False):
19
+ return codecs.charmap_encode(input,self.errors,encoding_table)[0]
20
+
21
+ class IncrementalDecoder(codecs.IncrementalDecoder):
22
+ def decode(self, input, final=False):
23
+ return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
+
25
+ class StreamWriter(Codec,codecs.StreamWriter):
26
+ pass
27
+
28
+ class StreamReader(Codec,codecs.StreamReader):
29
+ pass
30
+
31
+ ### encodings module API
32
+
33
+ def getregentry():
34
+ return codecs.CodecInfo(
35
+ name='mac-greek',
36
+ encode=Codec().encode,
37
+ decode=Codec().decode,
38
+ incrementalencoder=IncrementalEncoder,
39
+ incrementaldecoder=IncrementalDecoder,
40
+ streamreader=StreamReader,
41
+ streamwriter=StreamWriter,
42
+ )
43
+
44
+
45
+ ### Decoding Table
46
+
47
+ decoding_table = (
48
+ '\x00' # 0x00 -> CONTROL CHARACTER
49
+ '\x01' # 0x01 -> CONTROL CHARACTER
50
+ '\x02' # 0x02 -> CONTROL CHARACTER
51
+ '\x03' # 0x03 -> CONTROL CHARACTER
52
+ '\x04' # 0x04 -> CONTROL CHARACTER
53
+ '\x05' # 0x05 -> CONTROL CHARACTER
54
+ '\x06' # 0x06 -> CONTROL CHARACTER
55
+ '\x07' # 0x07 -> CONTROL CHARACTER
56
+ '\x08' # 0x08 -> CONTROL CHARACTER
57
+ '\t' # 0x09 -> CONTROL CHARACTER
58
+ '\n' # 0x0A -> CONTROL CHARACTER
59
+ '\x0b' # 0x0B -> CONTROL CHARACTER
60
+ '\x0c' # 0x0C -> CONTROL CHARACTER
61
+ '\r' # 0x0D -> CONTROL CHARACTER
62
+ '\x0e' # 0x0E -> CONTROL CHARACTER
63
+ '\x0f' # 0x0F -> CONTROL CHARACTER
64
+ '\x10' # 0x10 -> CONTROL CHARACTER
65
+ '\x11' # 0x11 -> CONTROL CHARACTER
66
+ '\x12' # 0x12 -> CONTROL CHARACTER
67
+ '\x13' # 0x13 -> CONTROL CHARACTER
68
+ '\x14' # 0x14 -> CONTROL CHARACTER
69
+ '\x15' # 0x15 -> CONTROL CHARACTER
70
+ '\x16' # 0x16 -> CONTROL CHARACTER
71
+ '\x17' # 0x17 -> CONTROL CHARACTER
72
+ '\x18' # 0x18 -> CONTROL CHARACTER
73
+ '\x19' # 0x19 -> CONTROL CHARACTER
74
+ '\x1a' # 0x1A -> CONTROL CHARACTER
75
+ '\x1b' # 0x1B -> CONTROL CHARACTER
76
+ '\x1c' # 0x1C -> CONTROL CHARACTER
77
+ '\x1d' # 0x1D -> CONTROL CHARACTER
78
+ '\x1e' # 0x1E -> CONTROL CHARACTER
79
+ '\x1f' # 0x1F -> CONTROL CHARACTER
80
+ ' ' # 0x20 -> SPACE
81
+ '!' # 0x21 -> EXCLAMATION MARK
82
+ '"' # 0x22 -> QUOTATION MARK
83
+ '#' # 0x23 -> NUMBER SIGN
84
+ '$' # 0x24 -> DOLLAR SIGN
85
+ '%' # 0x25 -> PERCENT SIGN
86
+ '&' # 0x26 -> AMPERSAND
87
+ "'" # 0x27 -> APOSTROPHE
88
+ '(' # 0x28 -> LEFT PARENTHESIS
89
+ ')' # 0x29 -> RIGHT PARENTHESIS
90
+ '*' # 0x2A -> ASTERISK
91
+ '+' # 0x2B -> PLUS SIGN
92
+ ',' # 0x2C -> COMMA
93
+ '-' # 0x2D -> HYPHEN-MINUS
94
+ '.' # 0x2E -> FULL STOP
95
+ '/' # 0x2F -> SOLIDUS
96
+ '0' # 0x30 -> DIGIT ZERO
97
+ '1' # 0x31 -> DIGIT ONE
98
+ '2' # 0x32 -> DIGIT TWO
99
+ '3' # 0x33 -> DIGIT THREE
100
+ '4' # 0x34 -> DIGIT FOUR
101
+ '5' # 0x35 -> DIGIT FIVE
102
+ '6' # 0x36 -> DIGIT SIX
103
+ '7' # 0x37 -> DIGIT SEVEN
104
+ '8' # 0x38 -> DIGIT EIGHT
105
+ '9' # 0x39 -> DIGIT NINE
106
+ ':' # 0x3A -> COLON
107
+ ';' # 0x3B -> SEMICOLON
108
+ '<' # 0x3C -> LESS-THAN SIGN
109
+ '=' # 0x3D -> EQUALS SIGN
110
+ '>' # 0x3E -> GREATER-THAN SIGN
111
+ '?' # 0x3F -> QUESTION MARK
112
+ '@' # 0x40 -> COMMERCIAL AT
113
+ 'A' # 0x41 -> LATIN CAPITAL LETTER A
114
+ 'B' # 0x42 -> LATIN CAPITAL LETTER B
115
+ 'C' # 0x43 -> LATIN CAPITAL LETTER C
116
+ 'D' # 0x44 -> LATIN CAPITAL LETTER D
117
+ 'E' # 0x45 -> LATIN CAPITAL LETTER E
118
+ 'F' # 0x46 -> LATIN CAPITAL LETTER F
119
+ 'G' # 0x47 -> LATIN CAPITAL LETTER G
120
+ 'H' # 0x48 -> LATIN CAPITAL LETTER H
121
+ 'I' # 0x49 -> LATIN CAPITAL LETTER I
122
+ 'J' # 0x4A -> LATIN CAPITAL LETTER J
123
+ 'K' # 0x4B -> LATIN CAPITAL LETTER K
124
+ 'L' # 0x4C -> LATIN CAPITAL LETTER L
125
+ 'M' # 0x4D -> LATIN CAPITAL LETTER M
126
+ 'N' # 0x4E -> LATIN CAPITAL LETTER N
127
+ 'O' # 0x4F -> LATIN CAPITAL LETTER O
128
+ 'P' # 0x50 -> LATIN CAPITAL LETTER P
129
+ 'Q' # 0x51 -> LATIN CAPITAL LETTER Q
130
+ 'R' # 0x52 -> LATIN CAPITAL LETTER R
131
+ 'S' # 0x53 -> LATIN CAPITAL LETTER S
132
+ 'T' # 0x54 -> LATIN CAPITAL LETTER T
133
+ 'U' # 0x55 -> LATIN CAPITAL LETTER U
134
+ 'V' # 0x56 -> LATIN CAPITAL LETTER V
135
+ 'W' # 0x57 -> LATIN CAPITAL LETTER W
136
+ 'X' # 0x58 -> LATIN CAPITAL LETTER X
137
+ 'Y' # 0x59 -> LATIN CAPITAL LETTER Y
138
+ 'Z' # 0x5A -> LATIN CAPITAL LETTER Z
139
+ '[' # 0x5B -> LEFT SQUARE BRACKET
140
+ '\\' # 0x5C -> REVERSE SOLIDUS
141
+ ']' # 0x5D -> RIGHT SQUARE BRACKET
142
+ '^' # 0x5E -> CIRCUMFLEX ACCENT
143
+ '_' # 0x5F -> LOW LINE
144
+ '`' # 0x60 -> GRAVE ACCENT
145
+ 'a' # 0x61 -> LATIN SMALL LETTER A
146
+ 'b' # 0x62 -> LATIN SMALL LETTER B
147
+ 'c' # 0x63 -> LATIN SMALL LETTER C
148
+ 'd' # 0x64 -> LATIN SMALL LETTER D
149
+ 'e' # 0x65 -> LATIN SMALL LETTER E
150
+ 'f' # 0x66 -> LATIN SMALL LETTER F
151
+ 'g' # 0x67 -> LATIN SMALL LETTER G
152
+ 'h' # 0x68 -> LATIN SMALL LETTER H
153
+ 'i' # 0x69 -> LATIN SMALL LETTER I
154
+ 'j' # 0x6A -> LATIN SMALL LETTER J
155
+ 'k' # 0x6B -> LATIN SMALL LETTER K
156
+ 'l' # 0x6C -> LATIN SMALL LETTER L
157
+ 'm' # 0x6D -> LATIN SMALL LETTER M
158
+ 'n' # 0x6E -> LATIN SMALL LETTER N
159
+ 'o' # 0x6F -> LATIN SMALL LETTER O
160
+ 'p' # 0x70 -> LATIN SMALL LETTER P
161
+ 'q' # 0x71 -> LATIN SMALL LETTER Q
162
+ 'r' # 0x72 -> LATIN SMALL LETTER R
163
+ 's' # 0x73 -> LATIN SMALL LETTER S
164
+ 't' # 0x74 -> LATIN SMALL LETTER T
165
+ 'u' # 0x75 -> LATIN SMALL LETTER U
166
+ 'v' # 0x76 -> LATIN SMALL LETTER V
167
+ 'w' # 0x77 -> LATIN SMALL LETTER W
168
+ 'x' # 0x78 -> LATIN SMALL LETTER X
169
+ 'y' # 0x79 -> LATIN SMALL LETTER Y
170
+ 'z' # 0x7A -> LATIN SMALL LETTER Z
171
+ '{' # 0x7B -> LEFT CURLY BRACKET
172
+ '|' # 0x7C -> VERTICAL LINE
173
+ '}' # 0x7D -> RIGHT CURLY BRACKET
174
+ '~' # 0x7E -> TILDE
175
+ '\x7f' # 0x7F -> CONTROL CHARACTER
176
+ '\xc4' # 0x80 -> LATIN CAPITAL LETTER A WITH DIAERESIS
177
+ '\xb9' # 0x81 -> SUPERSCRIPT ONE
178
+ '\xb2' # 0x82 -> SUPERSCRIPT TWO
179
+ '\xc9' # 0x83 -> LATIN CAPITAL LETTER E WITH ACUTE
180
+ '\xb3' # 0x84 -> SUPERSCRIPT THREE
181
+ '\xd6' # 0x85 -> LATIN CAPITAL LETTER O WITH DIAERESIS
182
+ '\xdc' # 0x86 -> LATIN CAPITAL LETTER U WITH DIAERESIS
183
+ '\u0385' # 0x87 -> GREEK DIALYTIKA TONOS
184
+ '\xe0' # 0x88 -> LATIN SMALL LETTER A WITH GRAVE
185
+ '\xe2' # 0x89 -> LATIN SMALL LETTER A WITH CIRCUMFLEX
186
+ '\xe4' # 0x8A -> LATIN SMALL LETTER A WITH DIAERESIS
187
+ '\u0384' # 0x8B -> GREEK TONOS
188
+ '\xa8' # 0x8C -> DIAERESIS
189
+ '\xe7' # 0x8D -> LATIN SMALL LETTER C WITH CEDILLA
190
+ '\xe9' # 0x8E -> LATIN SMALL LETTER E WITH ACUTE
191
+ '\xe8' # 0x8F -> LATIN SMALL LETTER E WITH GRAVE
192
+ '\xea' # 0x90 -> LATIN SMALL LETTER E WITH CIRCUMFLEX
193
+ '\xeb' # 0x91 -> LATIN SMALL LETTER E WITH DIAERESIS
194
+ '\xa3' # 0x92 -> POUND SIGN
195
+ '\u2122' # 0x93 -> TRADE MARK SIGN
196
+ '\xee' # 0x94 -> LATIN SMALL LETTER I WITH CIRCUMFLEX
197
+ '\xef' # 0x95 -> LATIN SMALL LETTER I WITH DIAERESIS
198
+ '\u2022' # 0x96 -> BULLET
199
+ '\xbd' # 0x97 -> VULGAR FRACTION ONE HALF
200
+ '\u2030' # 0x98 -> PER MILLE SIGN
201
+ '\xf4' # 0x99 -> LATIN SMALL LETTER O WITH CIRCUMFLEX
202
+ '\xf6' # 0x9A -> LATIN SMALL LETTER O WITH DIAERESIS
203
+ '\xa6' # 0x9B -> BROKEN BAR
204
+ '\u20ac' # 0x9C -> EURO SIGN # before Mac OS 9.2.2, was SOFT HYPHEN
205
+ '\xf9' # 0x9D -> LATIN SMALL LETTER U WITH GRAVE
206
+ '\xfb' # 0x9E -> LATIN SMALL LETTER U WITH CIRCUMFLEX
207
+ '\xfc' # 0x9F -> LATIN SMALL LETTER U WITH DIAERESIS
208
+ '\u2020' # 0xA0 -> DAGGER
209
+ '\u0393' # 0xA1 -> GREEK CAPITAL LETTER GAMMA
210
+ '\u0394' # 0xA2 -> GREEK CAPITAL LETTER DELTA
211
+ '\u0398' # 0xA3 -> GREEK CAPITAL LETTER THETA
212
+ '\u039b' # 0xA4 -> GREEK CAPITAL LETTER LAMDA
213
+ '\u039e' # 0xA5 -> GREEK CAPITAL LETTER XI
214
+ '\u03a0' # 0xA6 -> GREEK CAPITAL LETTER PI
215
+ '\xdf' # 0xA7 -> LATIN SMALL LETTER SHARP S
216
+ '\xae' # 0xA8 -> REGISTERED SIGN
217
+ '\xa9' # 0xA9 -> COPYRIGHT SIGN
218
+ '\u03a3' # 0xAA -> GREEK CAPITAL LETTER SIGMA
219
+ '\u03aa' # 0xAB -> GREEK CAPITAL LETTER IOTA WITH DIALYTIKA
220
+ '\xa7' # 0xAC -> SECTION SIGN
221
+ '\u2260' # 0xAD -> NOT EQUAL TO
222
+ '\xb0' # 0xAE -> DEGREE SIGN
223
+ '\xb7' # 0xAF -> MIDDLE DOT
224
+ '\u0391' # 0xB0 -> GREEK CAPITAL LETTER ALPHA
225
+ '\xb1' # 0xB1 -> PLUS-MINUS SIGN
226
+ '\u2264' # 0xB2 -> LESS-THAN OR EQUAL TO
227
+ '\u2265' # 0xB3 -> GREATER-THAN OR EQUAL TO
228
+ '\xa5' # 0xB4 -> YEN SIGN
229
+ '\u0392' # 0xB5 -> GREEK CAPITAL LETTER BETA
230
+ '\u0395' # 0xB6 -> GREEK CAPITAL LETTER EPSILON
231
+ '\u0396' # 0xB7 -> GREEK CAPITAL LETTER ZETA
232
+ '\u0397' # 0xB8 -> GREEK CAPITAL LETTER ETA
233
+ '\u0399' # 0xB9 -> GREEK CAPITAL LETTER IOTA
234
+ '\u039a' # 0xBA -> GREEK CAPITAL LETTER KAPPA
235
+ '\u039c' # 0xBB -> GREEK CAPITAL LETTER MU
236
+ '\u03a6' # 0xBC -> GREEK CAPITAL LETTER PHI
237
+ '\u03ab' # 0xBD -> GREEK CAPITAL LETTER UPSILON WITH DIALYTIKA
238
+ '\u03a8' # 0xBE -> GREEK CAPITAL LETTER PSI
239
+ '\u03a9' # 0xBF -> GREEK CAPITAL LETTER OMEGA
240
+ '\u03ac' # 0xC0 -> GREEK SMALL LETTER ALPHA WITH TONOS
241
+ '\u039d' # 0xC1 -> GREEK CAPITAL LETTER NU
242
+ '\xac' # 0xC2 -> NOT SIGN
243
+ '\u039f' # 0xC3 -> GREEK CAPITAL LETTER OMICRON
244
+ '\u03a1' # 0xC4 -> GREEK CAPITAL LETTER RHO
245
+ '\u2248' # 0xC5 -> ALMOST EQUAL TO
246
+ '\u03a4' # 0xC6 -> GREEK CAPITAL LETTER TAU
247
+ '\xab' # 0xC7 -> LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
248
+ '\xbb' # 0xC8 -> RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
249
+ '\u2026' # 0xC9 -> HORIZONTAL ELLIPSIS
250
+ '\xa0' # 0xCA -> NO-BREAK SPACE
251
+ '\u03a5' # 0xCB -> GREEK CAPITAL LETTER UPSILON
252
+ '\u03a7' # 0xCC -> GREEK CAPITAL LETTER CHI
253
+ '\u0386' # 0xCD -> GREEK CAPITAL LETTER ALPHA WITH TONOS
254
+ '\u0388' # 0xCE -> GREEK CAPITAL LETTER EPSILON WITH TONOS
255
+ '\u0153' # 0xCF -> LATIN SMALL LIGATURE OE
256
+ '\u2013' # 0xD0 -> EN DASH
257
+ '\u2015' # 0xD1 -> HORIZONTAL BAR
258
+ '\u201c' # 0xD2 -> LEFT DOUBLE QUOTATION MARK
259
+ '\u201d' # 0xD3 -> RIGHT DOUBLE QUOTATION MARK
260
+ '\u2018' # 0xD4 -> LEFT SINGLE QUOTATION MARK
261
+ '\u2019' # 0xD5 -> RIGHT SINGLE QUOTATION MARK
262
+ '\xf7' # 0xD6 -> DIVISION SIGN
263
+ '\u0389' # 0xD7 -> GREEK CAPITAL LETTER ETA WITH TONOS
264
+ '\u038a' # 0xD8 -> GREEK CAPITAL LETTER IOTA WITH TONOS
265
+ '\u038c' # 0xD9 -> GREEK CAPITAL LETTER OMICRON WITH TONOS
266
+ '\u038e' # 0xDA -> GREEK CAPITAL LETTER UPSILON WITH TONOS
267
+ '\u03ad' # 0xDB -> GREEK SMALL LETTER EPSILON WITH TONOS
268
+ '\u03ae' # 0xDC -> GREEK SMALL LETTER ETA WITH TONOS
269
+ '\u03af' # 0xDD -> GREEK SMALL LETTER IOTA WITH TONOS
270
+ '\u03cc' # 0xDE -> GREEK SMALL LETTER OMICRON WITH TONOS
271
+ '\u038f' # 0xDF -> GREEK CAPITAL LETTER OMEGA WITH TONOS
272
+ '\u03cd' # 0xE0 -> GREEK SMALL LETTER UPSILON WITH TONOS
273
+ '\u03b1' # 0xE1 -> GREEK SMALL LETTER ALPHA
274
+ '\u03b2' # 0xE2 -> GREEK SMALL LETTER BETA
275
+ '\u03c8' # 0xE3 -> GREEK SMALL LETTER PSI
276
+ '\u03b4' # 0xE4 -> GREEK SMALL LETTER DELTA
277
+ '\u03b5' # 0xE5 -> GREEK SMALL LETTER EPSILON
278
+ '\u03c6' # 0xE6 -> GREEK SMALL LETTER PHI
279
+ '\u03b3' # 0xE7 -> GREEK SMALL LETTER GAMMA
280
+ '\u03b7' # 0xE8 -> GREEK SMALL LETTER ETA
281
+ '\u03b9' # 0xE9 -> GREEK SMALL LETTER IOTA
282
+ '\u03be' # 0xEA -> GREEK SMALL LETTER XI
283
+ '\u03ba' # 0xEB -> GREEK SMALL LETTER KAPPA
284
+ '\u03bb' # 0xEC -> GREEK SMALL LETTER LAMDA
285
+ '\u03bc' # 0xED -> GREEK SMALL LETTER MU
286
+ '\u03bd' # 0xEE -> GREEK SMALL LETTER NU
287
+ '\u03bf' # 0xEF -> GREEK SMALL LETTER OMICRON
288
+ '\u03c0' # 0xF0 -> GREEK SMALL LETTER PI
289
+ '\u03ce' # 0xF1 -> GREEK SMALL LETTER OMEGA WITH TONOS
290
+ '\u03c1' # 0xF2 -> GREEK SMALL LETTER RHO
291
+ '\u03c3' # 0xF3 -> GREEK SMALL LETTER SIGMA
292
+ '\u03c4' # 0xF4 -> GREEK SMALL LETTER TAU
293
+ '\u03b8' # 0xF5 -> GREEK SMALL LETTER THETA
294
+ '\u03c9' # 0xF6 -> GREEK SMALL LETTER OMEGA
295
+ '\u03c2' # 0xF7 -> GREEK SMALL LETTER FINAL SIGMA
296
+ '\u03c7' # 0xF8 -> GREEK SMALL LETTER CHI
297
+ '\u03c5' # 0xF9 -> GREEK SMALL LETTER UPSILON
298
+ '\u03b6' # 0xFA -> GREEK SMALL LETTER ZETA
299
+ '\u03ca' # 0xFB -> GREEK SMALL LETTER IOTA WITH DIALYTIKA
300
+ '\u03cb' # 0xFC -> GREEK SMALL LETTER UPSILON WITH DIALYTIKA
301
+ '\u0390' # 0xFD -> GREEK SMALL LETTER IOTA WITH DIALYTIKA AND TONOS
302
+ '\u03b0' # 0xFE -> GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND TONOS
303
+ '\xad' # 0xFF -> SOFT HYPHEN # before Mac OS 9.2.2, was undefined
304
+ )
305
+
306
+ ### Encoding table
307
+ encoding_table=codecs.charmap_build(decoding_table)
parrot/lib/python3.10/encodings/mac_romanian.py ADDED
@@ -0,0 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python Character Mapping Codec mac_romanian generated from 'MAPPINGS/VENDORS/APPLE/ROMANIAN.TXT' with gencodec.py.
2
+
3
+ """#"
4
+
5
+ import codecs
6
+
7
+ ### Codec APIs
8
+
9
+ class Codec(codecs.Codec):
10
+
11
+ def encode(self,input,errors='strict'):
12
+ return codecs.charmap_encode(input,errors,encoding_table)
13
+
14
+ def decode(self,input,errors='strict'):
15
+ return codecs.charmap_decode(input,errors,decoding_table)
16
+
17
+ class IncrementalEncoder(codecs.IncrementalEncoder):
18
+ def encode(self, input, final=False):
19
+ return codecs.charmap_encode(input,self.errors,encoding_table)[0]
20
+
21
+ class IncrementalDecoder(codecs.IncrementalDecoder):
22
+ def decode(self, input, final=False):
23
+ return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
+
25
+ class StreamWriter(Codec,codecs.StreamWriter):
26
+ pass
27
+
28
+ class StreamReader(Codec,codecs.StreamReader):
29
+ pass
30
+
31
+ ### encodings module API
32
+
33
+ def getregentry():
34
+ return codecs.CodecInfo(
35
+ name='mac-romanian',
36
+ encode=Codec().encode,
37
+ decode=Codec().decode,
38
+ incrementalencoder=IncrementalEncoder,
39
+ incrementaldecoder=IncrementalDecoder,
40
+ streamreader=StreamReader,
41
+ streamwriter=StreamWriter,
42
+ )
43
+
44
+
45
+ ### Decoding Table
46
+
47
+ decoding_table = (
48
+ '\x00' # 0x00 -> CONTROL CHARACTER
49
+ '\x01' # 0x01 -> CONTROL CHARACTER
50
+ '\x02' # 0x02 -> CONTROL CHARACTER
51
+ '\x03' # 0x03 -> CONTROL CHARACTER
52
+ '\x04' # 0x04 -> CONTROL CHARACTER
53
+ '\x05' # 0x05 -> CONTROL CHARACTER
54
+ '\x06' # 0x06 -> CONTROL CHARACTER
55
+ '\x07' # 0x07 -> CONTROL CHARACTER
56
+ '\x08' # 0x08 -> CONTROL CHARACTER
57
+ '\t' # 0x09 -> CONTROL CHARACTER
58
+ '\n' # 0x0A -> CONTROL CHARACTER
59
+ '\x0b' # 0x0B -> CONTROL CHARACTER
60
+ '\x0c' # 0x0C -> CONTROL CHARACTER
61
+ '\r' # 0x0D -> CONTROL CHARACTER
62
+ '\x0e' # 0x0E -> CONTROL CHARACTER
63
+ '\x0f' # 0x0F -> CONTROL CHARACTER
64
+ '\x10' # 0x10 -> CONTROL CHARACTER
65
+ '\x11' # 0x11 -> CONTROL CHARACTER
66
+ '\x12' # 0x12 -> CONTROL CHARACTER
67
+ '\x13' # 0x13 -> CONTROL CHARACTER
68
+ '\x14' # 0x14 -> CONTROL CHARACTER
69
+ '\x15' # 0x15 -> CONTROL CHARACTER
70
+ '\x16' # 0x16 -> CONTROL CHARACTER
71
+ '\x17' # 0x17 -> CONTROL CHARACTER
72
+ '\x18' # 0x18 -> CONTROL CHARACTER
73
+ '\x19' # 0x19 -> CONTROL CHARACTER
74
+ '\x1a' # 0x1A -> CONTROL CHARACTER
75
+ '\x1b' # 0x1B -> CONTROL CHARACTER
76
+ '\x1c' # 0x1C -> CONTROL CHARACTER
77
+ '\x1d' # 0x1D -> CONTROL CHARACTER
78
+ '\x1e' # 0x1E -> CONTROL CHARACTER
79
+ '\x1f' # 0x1F -> CONTROL CHARACTER
80
+ ' ' # 0x20 -> SPACE
81
+ '!' # 0x21 -> EXCLAMATION MARK
82
+ '"' # 0x22 -> QUOTATION MARK
83
+ '#' # 0x23 -> NUMBER SIGN
84
+ '$' # 0x24 -> DOLLAR SIGN
85
+ '%' # 0x25 -> PERCENT SIGN
86
+ '&' # 0x26 -> AMPERSAND
87
+ "'" # 0x27 -> APOSTROPHE
88
+ '(' # 0x28 -> LEFT PARENTHESIS
89
+ ')' # 0x29 -> RIGHT PARENTHESIS
90
+ '*' # 0x2A -> ASTERISK
91
+ '+' # 0x2B -> PLUS SIGN
92
+ ',' # 0x2C -> COMMA
93
+ '-' # 0x2D -> HYPHEN-MINUS
94
+ '.' # 0x2E -> FULL STOP
95
+ '/' # 0x2F -> SOLIDUS
96
+ '0' # 0x30 -> DIGIT ZERO
97
+ '1' # 0x31 -> DIGIT ONE
98
+ '2' # 0x32 -> DIGIT TWO
99
+ '3' # 0x33 -> DIGIT THREE
100
+ '4' # 0x34 -> DIGIT FOUR
101
+ '5' # 0x35 -> DIGIT FIVE
102
+ '6' # 0x36 -> DIGIT SIX
103
+ '7' # 0x37 -> DIGIT SEVEN
104
+ '8' # 0x38 -> DIGIT EIGHT
105
+ '9' # 0x39 -> DIGIT NINE
106
+ ':' # 0x3A -> COLON
107
+ ';' # 0x3B -> SEMICOLON
108
+ '<' # 0x3C -> LESS-THAN SIGN
109
+ '=' # 0x3D -> EQUALS SIGN
110
+ '>' # 0x3E -> GREATER-THAN SIGN
111
+ '?' # 0x3F -> QUESTION MARK
112
+ '@' # 0x40 -> COMMERCIAL AT
113
+ 'A' # 0x41 -> LATIN CAPITAL LETTER A
114
+ 'B' # 0x42 -> LATIN CAPITAL LETTER B
115
+ 'C' # 0x43 -> LATIN CAPITAL LETTER C
116
+ 'D' # 0x44 -> LATIN CAPITAL LETTER D
117
+ 'E' # 0x45 -> LATIN CAPITAL LETTER E
118
+ 'F' # 0x46 -> LATIN CAPITAL LETTER F
119
+ 'G' # 0x47 -> LATIN CAPITAL LETTER G
120
+ 'H' # 0x48 -> LATIN CAPITAL LETTER H
121
+ 'I' # 0x49 -> LATIN CAPITAL LETTER I
122
+ 'J' # 0x4A -> LATIN CAPITAL LETTER J
123
+ 'K' # 0x4B -> LATIN CAPITAL LETTER K
124
+ 'L' # 0x4C -> LATIN CAPITAL LETTER L
125
+ 'M' # 0x4D -> LATIN CAPITAL LETTER M
126
+ 'N' # 0x4E -> LATIN CAPITAL LETTER N
127
+ 'O' # 0x4F -> LATIN CAPITAL LETTER O
128
+ 'P' # 0x50 -> LATIN CAPITAL LETTER P
129
+ 'Q' # 0x51 -> LATIN CAPITAL LETTER Q
130
+ 'R' # 0x52 -> LATIN CAPITAL LETTER R
131
+ 'S' # 0x53 -> LATIN CAPITAL LETTER S
132
+ 'T' # 0x54 -> LATIN CAPITAL LETTER T
133
+ 'U' # 0x55 -> LATIN CAPITAL LETTER U
134
+ 'V' # 0x56 -> LATIN CAPITAL LETTER V
135
+ 'W' # 0x57 -> LATIN CAPITAL LETTER W
136
+ 'X' # 0x58 -> LATIN CAPITAL LETTER X
137
+ 'Y' # 0x59 -> LATIN CAPITAL LETTER Y
138
+ 'Z' # 0x5A -> LATIN CAPITAL LETTER Z
139
+ '[' # 0x5B -> LEFT SQUARE BRACKET
140
+ '\\' # 0x5C -> REVERSE SOLIDUS
141
+ ']' # 0x5D -> RIGHT SQUARE BRACKET
142
+ '^' # 0x5E -> CIRCUMFLEX ACCENT
143
+ '_' # 0x5F -> LOW LINE
144
+ '`' # 0x60 -> GRAVE ACCENT
145
+ 'a' # 0x61 -> LATIN SMALL LETTER A
146
+ 'b' # 0x62 -> LATIN SMALL LETTER B
147
+ 'c' # 0x63 -> LATIN SMALL LETTER C
148
+ 'd' # 0x64 -> LATIN SMALL LETTER D
149
+ 'e' # 0x65 -> LATIN SMALL LETTER E
150
+ 'f' # 0x66 -> LATIN SMALL LETTER F
151
+ 'g' # 0x67 -> LATIN SMALL LETTER G
152
+ 'h' # 0x68 -> LATIN SMALL LETTER H
153
+ 'i' # 0x69 -> LATIN SMALL LETTER I
154
+ 'j' # 0x6A -> LATIN SMALL LETTER J
155
+ 'k' # 0x6B -> LATIN SMALL LETTER K
156
+ 'l' # 0x6C -> LATIN SMALL LETTER L
157
+ 'm' # 0x6D -> LATIN SMALL LETTER M
158
+ 'n' # 0x6E -> LATIN SMALL LETTER N
159
+ 'o' # 0x6F -> LATIN SMALL LETTER O
160
+ 'p' # 0x70 -> LATIN SMALL LETTER P
161
+ 'q' # 0x71 -> LATIN SMALL LETTER Q
162
+ 'r' # 0x72 -> LATIN SMALL LETTER R
163
+ 's' # 0x73 -> LATIN SMALL LETTER S
164
+ 't' # 0x74 -> LATIN SMALL LETTER T
165
+ 'u' # 0x75 -> LATIN SMALL LETTER U
166
+ 'v' # 0x76 -> LATIN SMALL LETTER V
167
+ 'w' # 0x77 -> LATIN SMALL LETTER W
168
+ 'x' # 0x78 -> LATIN SMALL LETTER X
169
+ 'y' # 0x79 -> LATIN SMALL LETTER Y
170
+ 'z' # 0x7A -> LATIN SMALL LETTER Z
171
+ '{' # 0x7B -> LEFT CURLY BRACKET
172
+ '|' # 0x7C -> VERTICAL LINE
173
+ '}' # 0x7D -> RIGHT CURLY BRACKET
174
+ '~' # 0x7E -> TILDE
175
+ '\x7f' # 0x7F -> CONTROL CHARACTER
176
+ '\xc4' # 0x80 -> LATIN CAPITAL LETTER A WITH DIAERESIS
177
+ '\xc5' # 0x81 -> LATIN CAPITAL LETTER A WITH RING ABOVE
178
+ '\xc7' # 0x82 -> LATIN CAPITAL LETTER C WITH CEDILLA
179
+ '\xc9' # 0x83 -> LATIN CAPITAL LETTER E WITH ACUTE
180
+ '\xd1' # 0x84 -> LATIN CAPITAL LETTER N WITH TILDE
181
+ '\xd6' # 0x85 -> LATIN CAPITAL LETTER O WITH DIAERESIS
182
+ '\xdc' # 0x86 -> LATIN CAPITAL LETTER U WITH DIAERESIS
183
+ '\xe1' # 0x87 -> LATIN SMALL LETTER A WITH ACUTE
184
+ '\xe0' # 0x88 -> LATIN SMALL LETTER A WITH GRAVE
185
+ '\xe2' # 0x89 -> LATIN SMALL LETTER A WITH CIRCUMFLEX
186
+ '\xe4' # 0x8A -> LATIN SMALL LETTER A WITH DIAERESIS
187
+ '\xe3' # 0x8B -> LATIN SMALL LETTER A WITH TILDE
188
+ '\xe5' # 0x8C -> LATIN SMALL LETTER A WITH RING ABOVE
189
+ '\xe7' # 0x8D -> LATIN SMALL LETTER C WITH CEDILLA
190
+ '\xe9' # 0x8E -> LATIN SMALL LETTER E WITH ACUTE
191
+ '\xe8' # 0x8F -> LATIN SMALL LETTER E WITH GRAVE
192
+ '\xea' # 0x90 -> LATIN SMALL LETTER E WITH CIRCUMFLEX
193
+ '\xeb' # 0x91 -> LATIN SMALL LETTER E WITH DIAERESIS
194
+ '\xed' # 0x92 -> LATIN SMALL LETTER I WITH ACUTE
195
+ '\xec' # 0x93 -> LATIN SMALL LETTER I WITH GRAVE
196
+ '\xee' # 0x94 -> LATIN SMALL LETTER I WITH CIRCUMFLEX
197
+ '\xef' # 0x95 -> LATIN SMALL LETTER I WITH DIAERESIS
198
+ '\xf1' # 0x96 -> LATIN SMALL LETTER N WITH TILDE
199
+ '\xf3' # 0x97 -> LATIN SMALL LETTER O WITH ACUTE
200
+ '\xf2' # 0x98 -> LATIN SMALL LETTER O WITH GRAVE
201
+ '\xf4' # 0x99 -> LATIN SMALL LETTER O WITH CIRCUMFLEX
202
+ '\xf6' # 0x9A -> LATIN SMALL LETTER O WITH DIAERESIS
203
+ '\xf5' # 0x9B -> LATIN SMALL LETTER O WITH TILDE
204
+ '\xfa' # 0x9C -> LATIN SMALL LETTER U WITH ACUTE
205
+ '\xf9' # 0x9D -> LATIN SMALL LETTER U WITH GRAVE
206
+ '\xfb' # 0x9E -> LATIN SMALL LETTER U WITH CIRCUMFLEX
207
+ '\xfc' # 0x9F -> LATIN SMALL LETTER U WITH DIAERESIS
208
+ '\u2020' # 0xA0 -> DAGGER
209
+ '\xb0' # 0xA1 -> DEGREE SIGN
210
+ '\xa2' # 0xA2 -> CENT SIGN
211
+ '\xa3' # 0xA3 -> POUND SIGN
212
+ '\xa7' # 0xA4 -> SECTION SIGN
213
+ '\u2022' # 0xA5 -> BULLET
214
+ '\xb6' # 0xA6 -> PILCROW SIGN
215
+ '\xdf' # 0xA7 -> LATIN SMALL LETTER SHARP S
216
+ '\xae' # 0xA8 -> REGISTERED SIGN
217
+ '\xa9' # 0xA9 -> COPYRIGHT SIGN
218
+ '\u2122' # 0xAA -> TRADE MARK SIGN
219
+ '\xb4' # 0xAB -> ACUTE ACCENT
220
+ '\xa8' # 0xAC -> DIAERESIS
221
+ '\u2260' # 0xAD -> NOT EQUAL TO
222
+ '\u0102' # 0xAE -> LATIN CAPITAL LETTER A WITH BREVE
223
+ '\u0218' # 0xAF -> LATIN CAPITAL LETTER S WITH COMMA BELOW # for Unicode 3.0 and later
224
+ '\u221e' # 0xB0 -> INFINITY
225
+ '\xb1' # 0xB1 -> PLUS-MINUS SIGN
226
+ '\u2264' # 0xB2 -> LESS-THAN OR EQUAL TO
227
+ '\u2265' # 0xB3 -> GREATER-THAN OR EQUAL TO
228
+ '\xa5' # 0xB4 -> YEN SIGN
229
+ '\xb5' # 0xB5 -> MICRO SIGN
230
+ '\u2202' # 0xB6 -> PARTIAL DIFFERENTIAL
231
+ '\u2211' # 0xB7 -> N-ARY SUMMATION
232
+ '\u220f' # 0xB8 -> N-ARY PRODUCT
233
+ '\u03c0' # 0xB9 -> GREEK SMALL LETTER PI
234
+ '\u222b' # 0xBA -> INTEGRAL
235
+ '\xaa' # 0xBB -> FEMININE ORDINAL INDICATOR
236
+ '\xba' # 0xBC -> MASCULINE ORDINAL INDICATOR
237
+ '\u03a9' # 0xBD -> GREEK CAPITAL LETTER OMEGA
238
+ '\u0103' # 0xBE -> LATIN SMALL LETTER A WITH BREVE
239
+ '\u0219' # 0xBF -> LATIN SMALL LETTER S WITH COMMA BELOW # for Unicode 3.0 and later
240
+ '\xbf' # 0xC0 -> INVERTED QUESTION MARK
241
+ '\xa1' # 0xC1 -> INVERTED EXCLAMATION MARK
242
+ '\xac' # 0xC2 -> NOT SIGN
243
+ '\u221a' # 0xC3 -> SQUARE ROOT
244
+ '\u0192' # 0xC4 -> LATIN SMALL LETTER F WITH HOOK
245
+ '\u2248' # 0xC5 -> ALMOST EQUAL TO
246
+ '\u2206' # 0xC6 -> INCREMENT
247
+ '\xab' # 0xC7 -> LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
248
+ '\xbb' # 0xC8 -> RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
249
+ '\u2026' # 0xC9 -> HORIZONTAL ELLIPSIS
250
+ '\xa0' # 0xCA -> NO-BREAK SPACE
251
+ '\xc0' # 0xCB -> LATIN CAPITAL LETTER A WITH GRAVE
252
+ '\xc3' # 0xCC -> LATIN CAPITAL LETTER A WITH TILDE
253
+ '\xd5' # 0xCD -> LATIN CAPITAL LETTER O WITH TILDE
254
+ '\u0152' # 0xCE -> LATIN CAPITAL LIGATURE OE
255
+ '\u0153' # 0xCF -> LATIN SMALL LIGATURE OE
256
+ '\u2013' # 0xD0 -> EN DASH
257
+ '\u2014' # 0xD1 -> EM DASH
258
+ '\u201c' # 0xD2 -> LEFT DOUBLE QUOTATION MARK
259
+ '\u201d' # 0xD3 -> RIGHT DOUBLE QUOTATION MARK
260
+ '\u2018' # 0xD4 -> LEFT SINGLE QUOTATION MARK
261
+ '\u2019' # 0xD5 -> RIGHT SINGLE QUOTATION MARK
262
+ '\xf7' # 0xD6 -> DIVISION SIGN
263
+ '\u25ca' # 0xD7 -> LOZENGE
264
+ '\xff' # 0xD8 -> LATIN SMALL LETTER Y WITH DIAERESIS
265
+ '\u0178' # 0xD9 -> LATIN CAPITAL LETTER Y WITH DIAERESIS
266
+ '\u2044' # 0xDA -> FRACTION SLASH
267
+ '\u20ac' # 0xDB -> EURO SIGN
268
+ '\u2039' # 0xDC -> SINGLE LEFT-POINTING ANGLE QUOTATION MARK
269
+ '\u203a' # 0xDD -> SINGLE RIGHT-POINTING ANGLE QUOTATION MARK
270
+ '\u021a' # 0xDE -> LATIN CAPITAL LETTER T WITH COMMA BELOW # for Unicode 3.0 and later
271
+ '\u021b' # 0xDF -> LATIN SMALL LETTER T WITH COMMA BELOW # for Unicode 3.0 and later
272
+ '\u2021' # 0xE0 -> DOUBLE DAGGER
273
+ '\xb7' # 0xE1 -> MIDDLE DOT
274
+ '\u201a' # 0xE2 -> SINGLE LOW-9 QUOTATION MARK
275
+ '\u201e' # 0xE3 -> DOUBLE LOW-9 QUOTATION MARK
276
+ '\u2030' # 0xE4 -> PER MILLE SIGN
277
+ '\xc2' # 0xE5 -> LATIN CAPITAL LETTER A WITH CIRCUMFLEX
278
+ '\xca' # 0xE6 -> LATIN CAPITAL LETTER E WITH CIRCUMFLEX
279
+ '\xc1' # 0xE7 -> LATIN CAPITAL LETTER A WITH ACUTE
280
+ '\xcb' # 0xE8 -> LATIN CAPITAL LETTER E WITH DIAERESIS
281
+ '\xc8' # 0xE9 -> LATIN CAPITAL LETTER E WITH GRAVE
282
+ '\xcd' # 0xEA -> LATIN CAPITAL LETTER I WITH ACUTE
283
+ '\xce' # 0xEB -> LATIN CAPITAL LETTER I WITH CIRCUMFLEX
284
+ '\xcf' # 0xEC -> LATIN CAPITAL LETTER I WITH DIAERESIS
285
+ '\xcc' # 0xED -> LATIN CAPITAL LETTER I WITH GRAVE
286
+ '\xd3' # 0xEE -> LATIN CAPITAL LETTER O WITH ACUTE
287
+ '\xd4' # 0xEF -> LATIN CAPITAL LETTER O WITH CIRCUMFLEX
288
+ '\uf8ff' # 0xF0 -> Apple logo
289
+ '\xd2' # 0xF1 -> LATIN CAPITAL LETTER O WITH GRAVE
290
+ '\xda' # 0xF2 -> LATIN CAPITAL LETTER U WITH ACUTE
291
+ '\xdb' # 0xF3 -> LATIN CAPITAL LETTER U WITH CIRCUMFLEX
292
+ '\xd9' # 0xF4 -> LATIN CAPITAL LETTER U WITH GRAVE
293
+ '\u0131' # 0xF5 -> LATIN SMALL LETTER DOTLESS I
294
+ '\u02c6' # 0xF6 -> MODIFIER LETTER CIRCUMFLEX ACCENT
295
+ '\u02dc' # 0xF7 -> SMALL TILDE
296
+ '\xaf' # 0xF8 -> MACRON
297
+ '\u02d8' # 0xF9 -> BREVE
298
+ '\u02d9' # 0xFA -> DOT ABOVE
299
+ '\u02da' # 0xFB -> RING ABOVE
300
+ '\xb8' # 0xFC -> CEDILLA
301
+ '\u02dd' # 0xFD -> DOUBLE ACUTE ACCENT
302
+ '\u02db' # 0xFE -> OGONEK
303
+ '\u02c7' # 0xFF -> CARON
304
+ )
305
+
306
+ ### Encoding table
307
+ encoding_table=codecs.charmap_build(decoding_table)
parrot/lib/python3.10/encodings/punycode.py ADDED
@@ -0,0 +1,237 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Codec for the Punicode encoding, as specified in RFC 3492
2
+
3
+ Written by Martin v. Löwis.
4
+ """
5
+
6
+ import codecs
7
+
8
+ ##################### Encoding #####################################
9
+
10
+ def segregate(str):
11
+ """3.1 Basic code point segregation"""
12
+ base = bytearray()
13
+ extended = set()
14
+ for c in str:
15
+ if ord(c) < 128:
16
+ base.append(ord(c))
17
+ else:
18
+ extended.add(c)
19
+ extended = sorted(extended)
20
+ return bytes(base), extended
21
+
22
+ def selective_len(str, max):
23
+ """Return the length of str, considering only characters below max."""
24
+ res = 0
25
+ for c in str:
26
+ if ord(c) < max:
27
+ res += 1
28
+ return res
29
+
30
+ def selective_find(str, char, index, pos):
31
+ """Return a pair (index, pos), indicating the next occurrence of
32
+ char in str. index is the position of the character considering
33
+ only ordinals up to and including char, and pos is the position in
34
+ the full string. index/pos is the starting position in the full
35
+ string."""
36
+
37
+ l = len(str)
38
+ while 1:
39
+ pos += 1
40
+ if pos == l:
41
+ return (-1, -1)
42
+ c = str[pos]
43
+ if c == char:
44
+ return index+1, pos
45
+ elif c < char:
46
+ index += 1
47
+
48
+ def insertion_unsort(str, extended):
49
+ """3.2 Insertion unsort coding"""
50
+ oldchar = 0x80
51
+ result = []
52
+ oldindex = -1
53
+ for c in extended:
54
+ index = pos = -1
55
+ char = ord(c)
56
+ curlen = selective_len(str, char)
57
+ delta = (curlen+1) * (char - oldchar)
58
+ while 1:
59
+ index,pos = selective_find(str,c,index,pos)
60
+ if index == -1:
61
+ break
62
+ delta += index - oldindex
63
+ result.append(delta-1)
64
+ oldindex = index
65
+ delta = 0
66
+ oldchar = char
67
+
68
+ return result
69
+
70
+ def T(j, bias):
71
+ # Punycode parameters: tmin = 1, tmax = 26, base = 36
72
+ res = 36 * (j + 1) - bias
73
+ if res < 1: return 1
74
+ if res > 26: return 26
75
+ return res
76
+
77
+ digits = b"abcdefghijklmnopqrstuvwxyz0123456789"
78
+ def generate_generalized_integer(N, bias):
79
+ """3.3 Generalized variable-length integers"""
80
+ result = bytearray()
81
+ j = 0
82
+ while 1:
83
+ t = T(j, bias)
84
+ if N < t:
85
+ result.append(digits[N])
86
+ return bytes(result)
87
+ result.append(digits[t + ((N - t) % (36 - t))])
88
+ N = (N - t) // (36 - t)
89
+ j += 1
90
+
91
+ def adapt(delta, first, numchars):
92
+ if first:
93
+ delta //= 700
94
+ else:
95
+ delta //= 2
96
+ delta += delta // numchars
97
+ # ((base - tmin) * tmax) // 2 == 455
98
+ divisions = 0
99
+ while delta > 455:
100
+ delta = delta // 35 # base - tmin
101
+ divisions += 36
102
+ bias = divisions + (36 * delta // (delta + 38))
103
+ return bias
104
+
105
+
106
+ def generate_integers(baselen, deltas):
107
+ """3.4 Bias adaptation"""
108
+ # Punycode parameters: initial bias = 72, damp = 700, skew = 38
109
+ result = bytearray()
110
+ bias = 72
111
+ for points, delta in enumerate(deltas):
112
+ s = generate_generalized_integer(delta, bias)
113
+ result.extend(s)
114
+ bias = adapt(delta, points==0, baselen+points+1)
115
+ return bytes(result)
116
+
117
+ def punycode_encode(text):
118
+ base, extended = segregate(text)
119
+ deltas = insertion_unsort(text, extended)
120
+ extended = generate_integers(len(base), deltas)
121
+ if base:
122
+ return base + b"-" + extended
123
+ return extended
124
+
125
+ ##################### Decoding #####################################
126
+
127
+ def decode_generalized_number(extended, extpos, bias, errors):
128
+ """3.3 Generalized variable-length integers"""
129
+ result = 0
130
+ w = 1
131
+ j = 0
132
+ while 1:
133
+ try:
134
+ char = ord(extended[extpos])
135
+ except IndexError:
136
+ if errors == "strict":
137
+ raise UnicodeError("incomplete punicode string")
138
+ return extpos + 1, None
139
+ extpos += 1
140
+ if 0x41 <= char <= 0x5A: # A-Z
141
+ digit = char - 0x41
142
+ elif 0x30 <= char <= 0x39:
143
+ digit = char - 22 # 0x30-26
144
+ elif errors == "strict":
145
+ raise UnicodeError("Invalid extended code point '%s'"
146
+ % extended[extpos-1])
147
+ else:
148
+ return extpos, None
149
+ t = T(j, bias)
150
+ result += digit * w
151
+ if digit < t:
152
+ return extpos, result
153
+ w = w * (36 - t)
154
+ j += 1
155
+
156
+
157
+ def insertion_sort(base, extended, errors):
158
+ """3.2 Insertion unsort coding"""
159
+ char = 0x80
160
+ pos = -1
161
+ bias = 72
162
+ extpos = 0
163
+ while extpos < len(extended):
164
+ newpos, delta = decode_generalized_number(extended, extpos,
165
+ bias, errors)
166
+ if delta is None:
167
+ # There was an error in decoding. We can't continue because
168
+ # synchronization is lost.
169
+ return base
170
+ pos += delta+1
171
+ char += pos // (len(base) + 1)
172
+ if char > 0x10FFFF:
173
+ if errors == "strict":
174
+ raise UnicodeError("Invalid character U+%x" % char)
175
+ char = ord('?')
176
+ pos = pos % (len(base) + 1)
177
+ base = base[:pos] + chr(char) + base[pos:]
178
+ bias = adapt(delta, (extpos == 0), len(base))
179
+ extpos = newpos
180
+ return base
181
+
182
+ def punycode_decode(text, errors):
183
+ if isinstance(text, str):
184
+ text = text.encode("ascii")
185
+ if isinstance(text, memoryview):
186
+ text = bytes(text)
187
+ pos = text.rfind(b"-")
188
+ if pos == -1:
189
+ base = ""
190
+ extended = str(text, "ascii").upper()
191
+ else:
192
+ base = str(text[:pos], "ascii", errors)
193
+ extended = str(text[pos+1:], "ascii").upper()
194
+ return insertion_sort(base, extended, errors)
195
+
196
+ ### Codec APIs
197
+
198
+ class Codec(codecs.Codec):
199
+
200
+ def encode(self, input, errors='strict'):
201
+ res = punycode_encode(input)
202
+ return res, len(input)
203
+
204
+ def decode(self, input, errors='strict'):
205
+ if errors not in ('strict', 'replace', 'ignore'):
206
+ raise UnicodeError("Unsupported error handling "+errors)
207
+ res = punycode_decode(input, errors)
208
+ return res, len(input)
209
+
210
+ class IncrementalEncoder(codecs.IncrementalEncoder):
211
+ def encode(self, input, final=False):
212
+ return punycode_encode(input)
213
+
214
+ class IncrementalDecoder(codecs.IncrementalDecoder):
215
+ def decode(self, input, final=False):
216
+ if self.errors not in ('strict', 'replace', 'ignore'):
217
+ raise UnicodeError("Unsupported error handling "+self.errors)
218
+ return punycode_decode(input, self.errors)
219
+
220
+ class StreamWriter(Codec,codecs.StreamWriter):
221
+ pass
222
+
223
+ class StreamReader(Codec,codecs.StreamReader):
224
+ pass
225
+
226
+ ### encodings module API
227
+
228
+ def getregentry():
229
+ return codecs.CodecInfo(
230
+ name='punycode',
231
+ encode=Codec().encode,
232
+ decode=Codec().decode,
233
+ incrementalencoder=IncrementalEncoder,
234
+ incrementaldecoder=IncrementalDecoder,
235
+ streamwriter=StreamWriter,
236
+ streamreader=StreamReader,
237
+ )
parrot/lib/python3.10/encodings/raw_unicode_escape.py ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python 'raw-unicode-escape' Codec
2
+
3
+
4
+ Written by Marc-Andre Lemburg (mal@lemburg.com).
5
+
6
+ (c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
7
+
8
+ """
9
+ import codecs
10
+
11
+ ### Codec APIs
12
+
13
+ class Codec(codecs.Codec):
14
+
15
+ # Note: Binding these as C functions will result in the class not
16
+ # converting them to methods. This is intended.
17
+ encode = codecs.raw_unicode_escape_encode
18
+ decode = codecs.raw_unicode_escape_decode
19
+
20
+ class IncrementalEncoder(codecs.IncrementalEncoder):
21
+ def encode(self, input, final=False):
22
+ return codecs.raw_unicode_escape_encode(input, self.errors)[0]
23
+
24
+ class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
25
+ def _buffer_decode(self, input, errors, final):
26
+ return codecs.raw_unicode_escape_decode(input, errors, final)
27
+
28
+ class StreamWriter(Codec,codecs.StreamWriter):
29
+ pass
30
+
31
+ class StreamReader(Codec,codecs.StreamReader):
32
+ def decode(self, input, errors='strict'):
33
+ return codecs.raw_unicode_escape_decode(input, errors, False)
34
+
35
+ ### encodings module API
36
+
37
+ def getregentry():
38
+ return codecs.CodecInfo(
39
+ name='raw-unicode-escape',
40
+ encode=Codec.encode,
41
+ decode=Codec.decode,
42
+ incrementalencoder=IncrementalEncoder,
43
+ incrementaldecoder=IncrementalDecoder,
44
+ streamwriter=StreamWriter,
45
+ streamreader=StreamReader,
46
+ )
parrot/lib/python3.10/encodings/shift_jis_2004.py ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # shift_jis_2004.py: Python Unicode Codec for SHIFT_JIS_2004
3
+ #
4
+ # Written by Hye-Shik Chang <perky@FreeBSD.org>
5
+ #
6
+
7
+ import _codecs_jp, codecs
8
+ import _multibytecodec as mbc
9
+
10
+ codec = _codecs_jp.getcodec('shift_jis_2004')
11
+
12
+ class Codec(codecs.Codec):
13
+ encode = codec.encode
14
+ decode = codec.decode
15
+
16
+ class IncrementalEncoder(mbc.MultibyteIncrementalEncoder,
17
+ codecs.IncrementalEncoder):
18
+ codec = codec
19
+
20
+ class IncrementalDecoder(mbc.MultibyteIncrementalDecoder,
21
+ codecs.IncrementalDecoder):
22
+ codec = codec
23
+
24
+ class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader):
25
+ codec = codec
26
+
27
+ class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
28
+ codec = codec
29
+
30
+ def getregentry():
31
+ return codecs.CodecInfo(
32
+ name='shift_jis_2004',
33
+ encode=Codec().encode,
34
+ decode=Codec().decode,
35
+ incrementalencoder=IncrementalEncoder,
36
+ incrementaldecoder=IncrementalDecoder,
37
+ streamreader=StreamReader,
38
+ streamwriter=StreamWriter,
39
+ )
parrot/lib/python3.10/encodings/undefined.py ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python 'undefined' Codec
2
+
3
+ This codec will always raise a ValueError exception when being
4
+ used. It is intended for use by the site.py file to switch off
5
+ automatic string to Unicode coercion.
6
+
7
+ Written by Marc-Andre Lemburg (mal@lemburg.com).
8
+
9
+ (c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
10
+
11
+ """
12
+ import codecs
13
+
14
+ ### Codec APIs
15
+
16
+ class Codec(codecs.Codec):
17
+
18
+ def encode(self,input,errors='strict'):
19
+ raise UnicodeError("undefined encoding")
20
+
21
+ def decode(self,input,errors='strict'):
22
+ raise UnicodeError("undefined encoding")
23
+
24
+ class IncrementalEncoder(codecs.IncrementalEncoder):
25
+ def encode(self, input, final=False):
26
+ raise UnicodeError("undefined encoding")
27
+
28
+ class IncrementalDecoder(codecs.IncrementalDecoder):
29
+ def decode(self, input, final=False):
30
+ raise UnicodeError("undefined encoding")
31
+
32
+ class StreamWriter(Codec,codecs.StreamWriter):
33
+ pass
34
+
35
+ class StreamReader(Codec,codecs.StreamReader):
36
+ pass
37
+
38
+ ### encodings module API
39
+
40
+ def getregentry():
41
+ return codecs.CodecInfo(
42
+ name='undefined',
43
+ encode=Codec().encode,
44
+ decode=Codec().decode,
45
+ incrementalencoder=IncrementalEncoder,
46
+ incrementaldecoder=IncrementalDecoder,
47
+ streamwriter=StreamWriter,
48
+ streamreader=StreamReader,
49
+ )
parrot/lib/python3.10/encodings/utf_16.py ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python 'utf-16' Codec
2
+
3
+
4
+ Written by Marc-Andre Lemburg (mal@lemburg.com).
5
+
6
+ (c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
7
+
8
+ """
9
+ import codecs, sys
10
+
11
+ ### Codec APIs
12
+
13
+ encode = codecs.utf_16_encode
14
+
15
+ def decode(input, errors='strict'):
16
+ return codecs.utf_16_decode(input, errors, True)
17
+
18
+ class IncrementalEncoder(codecs.IncrementalEncoder):
19
+ def __init__(self, errors='strict'):
20
+ codecs.IncrementalEncoder.__init__(self, errors)
21
+ self.encoder = None
22
+
23
+ def encode(self, input, final=False):
24
+ if self.encoder is None:
25
+ result = codecs.utf_16_encode(input, self.errors)[0]
26
+ if sys.byteorder == 'little':
27
+ self.encoder = codecs.utf_16_le_encode
28
+ else:
29
+ self.encoder = codecs.utf_16_be_encode
30
+ return result
31
+ return self.encoder(input, self.errors)[0]
32
+
33
+ def reset(self):
34
+ codecs.IncrementalEncoder.reset(self)
35
+ self.encoder = None
36
+
37
+ def getstate(self):
38
+ # state info we return to the caller:
39
+ # 0: stream is in natural order for this platform
40
+ # 2: endianness hasn't been determined yet
41
+ # (we're never writing in unnatural order)
42
+ return (2 if self.encoder is None else 0)
43
+
44
+ def setstate(self, state):
45
+ if state:
46
+ self.encoder = None
47
+ else:
48
+ if sys.byteorder == 'little':
49
+ self.encoder = codecs.utf_16_le_encode
50
+ else:
51
+ self.encoder = codecs.utf_16_be_encode
52
+
53
+ class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
54
+ def __init__(self, errors='strict'):
55
+ codecs.BufferedIncrementalDecoder.__init__(self, errors)
56
+ self.decoder = None
57
+
58
+ def _buffer_decode(self, input, errors, final):
59
+ if self.decoder is None:
60
+ (output, consumed, byteorder) = \
61
+ codecs.utf_16_ex_decode(input, errors, 0, final)
62
+ if byteorder == -1:
63
+ self.decoder = codecs.utf_16_le_decode
64
+ elif byteorder == 1:
65
+ self.decoder = codecs.utf_16_be_decode
66
+ elif consumed >= 2:
67
+ raise UnicodeError("UTF-16 stream does not start with BOM")
68
+ return (output, consumed)
69
+ return self.decoder(input, self.errors, final)
70
+
71
+ def reset(self):
72
+ codecs.BufferedIncrementalDecoder.reset(self)
73
+ self.decoder = None
74
+
75
+ def getstate(self):
76
+ # additional state info from the base class must be None here,
77
+ # as it isn't passed along to the caller
78
+ state = codecs.BufferedIncrementalDecoder.getstate(self)[0]
79
+ # additional state info we pass to the caller:
80
+ # 0: stream is in natural order for this platform
81
+ # 1: stream is in unnatural order
82
+ # 2: endianness hasn't been determined yet
83
+ if self.decoder is None:
84
+ return (state, 2)
85
+ addstate = int((sys.byteorder == "big") !=
86
+ (self.decoder is codecs.utf_16_be_decode))
87
+ return (state, addstate)
88
+
89
+ def setstate(self, state):
90
+ # state[1] will be ignored by BufferedIncrementalDecoder.setstate()
91
+ codecs.BufferedIncrementalDecoder.setstate(self, state)
92
+ state = state[1]
93
+ if state == 0:
94
+ self.decoder = (codecs.utf_16_be_decode
95
+ if sys.byteorder == "big"
96
+ else codecs.utf_16_le_decode)
97
+ elif state == 1:
98
+ self.decoder = (codecs.utf_16_le_decode
99
+ if sys.byteorder == "big"
100
+ else codecs.utf_16_be_decode)
101
+ else:
102
+ self.decoder = None
103
+
104
+ class StreamWriter(codecs.StreamWriter):
105
+ def __init__(self, stream, errors='strict'):
106
+ codecs.StreamWriter.__init__(self, stream, errors)
107
+ self.encoder = None
108
+
109
+ def reset(self):
110
+ codecs.StreamWriter.reset(self)
111
+ self.encoder = None
112
+
113
+ def encode(self, input, errors='strict'):
114
+ if self.encoder is None:
115
+ result = codecs.utf_16_encode(input, errors)
116
+ if sys.byteorder == 'little':
117
+ self.encoder = codecs.utf_16_le_encode
118
+ else:
119
+ self.encoder = codecs.utf_16_be_encode
120
+ return result
121
+ else:
122
+ return self.encoder(input, errors)
123
+
124
+ class StreamReader(codecs.StreamReader):
125
+
126
+ def reset(self):
127
+ codecs.StreamReader.reset(self)
128
+ try:
129
+ del self.decode
130
+ except AttributeError:
131
+ pass
132
+
133
+ def decode(self, input, errors='strict'):
134
+ (object, consumed, byteorder) = \
135
+ codecs.utf_16_ex_decode(input, errors, 0, False)
136
+ if byteorder == -1:
137
+ self.decode = codecs.utf_16_le_decode
138
+ elif byteorder == 1:
139
+ self.decode = codecs.utf_16_be_decode
140
+ elif consumed>=2:
141
+ raise UnicodeError("UTF-16 stream does not start with BOM")
142
+ return (object, consumed)
143
+
144
+ ### encodings module API
145
+
146
+ def getregentry():
147
+ return codecs.CodecInfo(
148
+ name='utf-16',
149
+ encode=encode,
150
+ decode=decode,
151
+ incrementalencoder=IncrementalEncoder,
152
+ incrementaldecoder=IncrementalDecoder,
153
+ streamreader=StreamReader,
154
+ streamwriter=StreamWriter,
155
+ )
parrot/lib/python3.10/encodings/utf_16_le.py ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python 'utf-16-le' Codec
2
+
3
+
4
+ Written by Marc-Andre Lemburg (mal@lemburg.com).
5
+
6
+ (c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
7
+
8
+ """
9
+ import codecs
10
+
11
+ ### Codec APIs
12
+
13
+ encode = codecs.utf_16_le_encode
14
+
15
+ def decode(input, errors='strict'):
16
+ return codecs.utf_16_le_decode(input, errors, True)
17
+
18
+ class IncrementalEncoder(codecs.IncrementalEncoder):
19
+ def encode(self, input, final=False):
20
+ return codecs.utf_16_le_encode(input, self.errors)[0]
21
+
22
+ class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
23
+ _buffer_decode = codecs.utf_16_le_decode
24
+
25
+ class StreamWriter(codecs.StreamWriter):
26
+ encode = codecs.utf_16_le_encode
27
+
28
+ class StreamReader(codecs.StreamReader):
29
+ decode = codecs.utf_16_le_decode
30
+
31
+ ### encodings module API
32
+
33
+ def getregentry():
34
+ return codecs.CodecInfo(
35
+ name='utf-16-le',
36
+ encode=encode,
37
+ decode=decode,
38
+ incrementalencoder=IncrementalEncoder,
39
+ incrementaldecoder=IncrementalDecoder,
40
+ streamreader=StreamReader,
41
+ streamwriter=StreamWriter,
42
+ )
parrot/lib/python3.10/encodings/utf_7.py ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ Python 'utf-7' Codec
2
+
3
+ Written by Brian Quinlan (brian@sweetapp.com).
4
+ """
5
+ import codecs
6
+
7
+ ### Codec APIs
8
+
9
+ encode = codecs.utf_7_encode
10
+
11
+ def decode(input, errors='strict'):
12
+ return codecs.utf_7_decode(input, errors, True)
13
+
14
+ class IncrementalEncoder(codecs.IncrementalEncoder):
15
+ def encode(self, input, final=False):
16
+ return codecs.utf_7_encode(input, self.errors)[0]
17
+
18
+ class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
19
+ _buffer_decode = codecs.utf_7_decode
20
+
21
+ class StreamWriter(codecs.StreamWriter):
22
+ encode = codecs.utf_7_encode
23
+
24
+ class StreamReader(codecs.StreamReader):
25
+ decode = codecs.utf_7_decode
26
+
27
+ ### encodings module API
28
+
29
+ def getregentry():
30
+ return codecs.CodecInfo(
31
+ name='utf-7',
32
+ encode=encode,
33
+ decode=decode,
34
+ incrementalencoder=IncrementalEncoder,
35
+ incrementaldecoder=IncrementalDecoder,
36
+ streamreader=StreamReader,
37
+ streamwriter=StreamWriter,
38
+ )
parrot/lib/python3.10/encodings/uu_codec.py ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Python 'uu_codec' Codec - UU content transfer encoding.
2
+
3
+ This codec de/encodes from bytes to bytes.
4
+
5
+ Written by Marc-Andre Lemburg (mal@lemburg.com). Some details were
6
+ adapted from uu.py which was written by Lance Ellinghouse and
7
+ modified by Jack Jansen and Fredrik Lundh.
8
+ """
9
+
10
+ import codecs
11
+ import binascii
12
+ from io import BytesIO
13
+
14
+ ### Codec APIs
15
+
16
+ def uu_encode(input, errors='strict', filename='<data>', mode=0o666):
17
+ assert errors == 'strict'
18
+ infile = BytesIO(input)
19
+ outfile = BytesIO()
20
+ read = infile.read
21
+ write = outfile.write
22
+
23
+ # Remove newline chars from filename
24
+ filename = filename.replace('\n','\\n')
25
+ filename = filename.replace('\r','\\r')
26
+
27
+ # Encode
28
+ write(('begin %o %s\n' % (mode & 0o777, filename)).encode('ascii'))
29
+ chunk = read(45)
30
+ while chunk:
31
+ write(binascii.b2a_uu(chunk))
32
+ chunk = read(45)
33
+ write(b' \nend\n')
34
+
35
+ return (outfile.getvalue(), len(input))
36
+
37
+ def uu_decode(input, errors='strict'):
38
+ assert errors == 'strict'
39
+ infile = BytesIO(input)
40
+ outfile = BytesIO()
41
+ readline = infile.readline
42
+ write = outfile.write
43
+
44
+ # Find start of encoded data
45
+ while 1:
46
+ s = readline()
47
+ if not s:
48
+ raise ValueError('Missing "begin" line in input data')
49
+ if s[:5] == b'begin':
50
+ break
51
+
52
+ # Decode
53
+ while True:
54
+ s = readline()
55
+ if not s or s == b'end\n':
56
+ break
57
+ try:
58
+ data = binascii.a2b_uu(s)
59
+ except binascii.Error as v:
60
+ # Workaround for broken uuencoders by /Fredrik Lundh
61
+ nbytes = (((s[0]-32) & 63) * 4 + 5) // 3
62
+ data = binascii.a2b_uu(s[:nbytes])
63
+ #sys.stderr.write("Warning: %s\n" % str(v))
64
+ write(data)
65
+ if not s:
66
+ raise ValueError('Truncated input data')
67
+
68
+ return (outfile.getvalue(), len(input))
69
+
70
+ class Codec(codecs.Codec):
71
+ def encode(self, input, errors='strict'):
72
+ return uu_encode(input, errors)
73
+
74
+ def decode(self, input, errors='strict'):
75
+ return uu_decode(input, errors)
76
+
77
+ class IncrementalEncoder(codecs.IncrementalEncoder):
78
+ def encode(self, input, final=False):
79
+ return uu_encode(input, self.errors)[0]
80
+
81
+ class IncrementalDecoder(codecs.IncrementalDecoder):
82
+ def decode(self, input, final=False):
83
+ return uu_decode(input, self.errors)[0]
84
+
85
+ class StreamWriter(Codec, codecs.StreamWriter):
86
+ charbuffertype = bytes
87
+
88
+ class StreamReader(Codec, codecs.StreamReader):
89
+ charbuffertype = bytes
90
+
91
+ ### encodings module API
92
+
93
+ def getregentry():
94
+ return codecs.CodecInfo(
95
+ name='uu',
96
+ encode=uu_encode,
97
+ decode=uu_decode,
98
+ incrementalencoder=IncrementalEncoder,
99
+ incrementaldecoder=IncrementalDecoder,
100
+ streamreader=StreamReader,
101
+ streamwriter=StreamWriter,
102
+ _is_text_encoding=False,
103
+ )
parrot/lib/python3.10/encodings/zlib_codec.py ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Python 'zlib_codec' Codec - zlib compression encoding.
2
+
3
+ This codec de/encodes from bytes to bytes.
4
+
5
+ Written by Marc-Andre Lemburg (mal@lemburg.com).
6
+ """
7
+
8
+ import codecs
9
+ import zlib # this codec needs the optional zlib module !
10
+
11
+ ### Codec APIs
12
+
13
+ def zlib_encode(input, errors='strict'):
14
+ assert errors == 'strict'
15
+ return (zlib.compress(input), len(input))
16
+
17
+ def zlib_decode(input, errors='strict'):
18
+ assert errors == 'strict'
19
+ return (zlib.decompress(input), len(input))
20
+
21
+ class Codec(codecs.Codec):
22
+ def encode(self, input, errors='strict'):
23
+ return zlib_encode(input, errors)
24
+ def decode(self, input, errors='strict'):
25
+ return zlib_decode(input, errors)
26
+
27
+ class IncrementalEncoder(codecs.IncrementalEncoder):
28
+ def __init__(self, errors='strict'):
29
+ assert errors == 'strict'
30
+ self.errors = errors
31
+ self.compressobj = zlib.compressobj()
32
+
33
+ def encode(self, input, final=False):
34
+ if final:
35
+ c = self.compressobj.compress(input)
36
+ return c + self.compressobj.flush()
37
+ else:
38
+ return self.compressobj.compress(input)
39
+
40
+ def reset(self):
41
+ self.compressobj = zlib.compressobj()
42
+
43
+ class IncrementalDecoder(codecs.IncrementalDecoder):
44
+ def __init__(self, errors='strict'):
45
+ assert errors == 'strict'
46
+ self.errors = errors
47
+ self.decompressobj = zlib.decompressobj()
48
+
49
+ def decode(self, input, final=False):
50
+ if final:
51
+ c = self.decompressobj.decompress(input)
52
+ return c + self.decompressobj.flush()
53
+ else:
54
+ return self.decompressobj.decompress(input)
55
+
56
+ def reset(self):
57
+ self.decompressobj = zlib.decompressobj()
58
+
59
+ class StreamWriter(Codec, codecs.StreamWriter):
60
+ charbuffertype = bytes
61
+
62
+ class StreamReader(Codec, codecs.StreamReader):
63
+ charbuffertype = bytes
64
+
65
+ ### encodings module API
66
+
67
+ def getregentry():
68
+ return codecs.CodecInfo(
69
+ name='zlib',
70
+ encode=zlib_encode,
71
+ decode=zlib_decode,
72
+ incrementalencoder=IncrementalEncoder,
73
+ incrementaldecoder=IncrementalDecoder,
74
+ streamreader=StreamReader,
75
+ streamwriter=StreamWriter,
76
+ _is_text_encoding=False,
77
+ )
parrot/lib/python3.10/idlelib/ChangeLog ADDED
@@ -0,0 +1,1591 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Please refer to the IDLEfork and IDLE CVS repositories for
2
+ change details subsequent to the 0.8.1 release.
3
+
4
+
5
+ IDLEfork ChangeLog
6
+ ==================
7
+
8
+ 2001-07-20 11:35 elguavas
9
+
10
+ * README.txt, NEWS.txt: bring up to date for 0.8.1 release
11
+
12
+ 2001-07-19 16:40 elguavas
13
+
14
+ * IDLEFORK.html: replaced by IDLEFORK-index.html
15
+
16
+ 2001-07-19 16:39 elguavas
17
+
18
+ * IDLEFORK-index.html: updated placeholder idlefork homepage
19
+
20
+ 2001-07-19 14:49 elguavas
21
+
22
+ * ChangeLog, EditorWindow.py, INSTALLATION, NEWS.txt, README.txt,
23
+ TODO.txt, idlever.py:
24
+ minor tidy-ups ready for 0.8.1 alpha tarball release
25
+
26
+ 2001-07-17 15:12 kbk
27
+
28
+ * INSTALLATION, setup.py: INSTALLATION: Remove the coexist.patch
29
+ instructions
30
+
31
+ **************** setup.py:
32
+
33
+ Remove the idles script, add some words on IDLE Fork to the
34
+ long_description, and clean up some line spacing.
35
+
36
+ 2001-07-17 15:01 kbk
37
+
38
+ * coexist.patch: Put this in the attic, at least for now...
39
+
40
+ 2001-07-17 14:59 kbk
41
+
42
+ * PyShell.py, idle, idles: Implement idle command interface as
43
+ suggested by GvR [idle-dev] 16 July **************** PyShell: Added
44
+ functionality:
45
+
46
+ usage: idle.py [-c command] [-d] [-i] [-r script] [-s] [-t title]
47
+ [arg] ...
48
+
49
+ idle file(s) (without options) edit the file(s)
50
+
51
+ -c cmd run the command in a shell -d enable the
52
+ debugger -i open an interactive shell -i file(s) open a
53
+ shell and also an editor window for each file -r script run a file
54
+ as a script in a shell -s run $IDLESTARTUP or
55
+ $PYTHONSTARTUP before anything else -t title set title of shell
56
+ window
57
+
58
+ Remaining arguments are applied to the command (-c) or script (-r).
59
+
60
+ ****************** idles: Removed the idles script, not needed
61
+
62
+ ****************** idle: Removed the IdleConf references, not
63
+ required anymore
64
+
65
+ 2001-07-16 17:08 kbk
66
+
67
+ * INSTALLATION, coexist.patch: Added installation instructions.
68
+
69
+ Added a patch which modifies idlefork so that it can co-exist with
70
+ "official" IDLE in the site-packages directory. This patch is not
71
+ necessary if only idlefork IDLE is installed. See INSTALLATION for
72
+ further details.
73
+
74
+ 2001-07-16 15:50 kbk
75
+
76
+ * idles: Add a script "idles" which opens a Python Shell window.
77
+
78
+ The default behaviour of idlefork idle is to open an editor window
79
+ instead of a shell. Complex expressions may be run in a fresh
80
+ environment by selecting "run". There are times, however, when a
81
+ shell is desired. Though one can be started by "idle -t 'foo'",
82
+ this script is more convenient. In addition, a shell and an editor
83
+ window can be started in parallel by "idles -e foo.py".
84
+
85
+ 2001-07-16 15:25 kbk
86
+
87
+ * PyShell.py: Call out IDLE Fork in startup message.
88
+
89
+ 2001-07-16 14:00 kbk
90
+
91
+ * PyShell.py, setup.py: Add a script "idles" which opens a Python
92
+ Shell window.
93
+
94
+ The default behaviour of idlefork idle is to open an editor window
95
+ instead of a shell. Complex expressions may be run in a fresh
96
+ environment by selecting "run". There are times, however, when a
97
+ shell is desired. Though one can be started by "idle -t 'foo'",
98
+ this script is more convenient. In addition, a shell and an editor
99
+ window can be started in parallel by "idles -e foo.py".
100
+
101
+ 2001-07-15 03:06 kbk
102
+
103
+ * pyclbr.py, tabnanny.py: tabnanny and pyclbr are now found in /Lib
104
+
105
+ 2001-07-15 02:29 kbk
106
+
107
+ * BrowserControl.py: Remove, was retained for 1.5.2 support
108
+
109
+ 2001-07-14 15:48 kbk
110
+
111
+ * setup.py: Installing Idle to site-packages via Distutils does not
112
+ copy the Idle help.txt file.
113
+
114
+ Ref SF Python Patch 422471
115
+
116
+ 2001-07-14 15:26 kbk
117
+
118
+ * keydefs.py: py-cvs-2001_07_13 (Rev 1.3) merge
119
+
120
+ "Make copy, cut and paste events case insensitive. Reported by
121
+ Patrick K. O'Brien on idle-dev. (Should other bindings follow
122
+ suit?)" --GvR
123
+
124
+ 2001-07-14 15:21 kbk
125
+
126
+ * idle.py: py-cvs-2001_07_13 (Rev 1.4) merge
127
+
128
+ "Move the action of loading the configuration to the IdleConf
129
+ module rather than the idle.py script. This has advantages and
130
+ disadvantages; the biggest advantage being that we can more easily
131
+ have an alternative main program." --GvR
132
+
133
+ 2001-07-14 15:18 kbk
134
+
135
+ * extend.txt: py-cvs-2001_07_13 (Rev 1.4) merge
136
+
137
+ "Quick update to the extension mechanism (extend.py is gone, long
138
+ live config.txt)" --GvR
139
+
140
+ 2001-07-14 15:15 kbk
141
+
142
+ * StackViewer.py: py-cvs-2001_07_13 (Rev 1.16) merge
143
+
144
+ "Refactored, with some future plans in mind. This now uses the new
145
+ gotofileline() method defined in FileList.py" --GvR
146
+
147
+ 2001-07-14 15:10 kbk
148
+
149
+ * PyShell.py: py-cvs-2001_07_13 (Rev 1.34) merge
150
+
151
+ "Amazing. A very subtle change in policy in descr-branch actually
152
+ found a bug here. Here's the deal: Class PyShell derives from
153
+ class OutputWindow. Method PyShell.close() wants to invoke its
154
+ parent method, but because PyShell long ago was inherited from
155
+ class PyShellEditorWindow, it invokes
156
+ PyShelEditorWindow.close(self). Now, class PyShellEditorWindow
157
+ itself derives from class OutputWindow, and inherits the close()
158
+ method from there without overriding it. Under the old rules,
159
+ PyShellEditorWindow.close would return an unbound method restricted
160
+ to the class that defined the implementation of close(), which was
161
+ OutputWindow.close. Under the new rules, the unbound method is
162
+ restricted to the class whose method was requested, that is
163
+ PyShellEditorWindow, and this was correctly trapped as an error."
164
+ --GvR
165
+
166
+ 2001-07-14 14:59 kbk
167
+
168
+ * PyParse.py: py-cvs-2001_07_13 (Rel 1.9) merge
169
+
170
+ "Taught IDLE's autoident parser that "yield" is a keyword that
171
+ begins a stmt. Along w/ the preceding change to keyword.py, making
172
+ all this work w/ a future-stmt just looks harder and harder."
173
+ --tim_one
174
+
175
+ (From Rel 1.8: "Hack to make this still work with Python 1.5.2.
176
+ ;-( " --fdrake)
177
+
178
+ 2001-07-14 14:51 kbk
179
+
180
+ * IdleConf.py: py-cvs-2001_07_13 (Rel 1.7) merge
181
+
182
+ "Move the action of loading the configuration to the IdleConf
183
+ module rather than the idle.py script. This has advantages and
184
+ disadvantages; the biggest advantage being that we can more easily
185
+ have an alternative main program." --GvR
186
+
187
+ 2001-07-14 14:45 kbk
188
+
189
+ * FileList.py: py-cvs-2000_07_13 (Rev 1.9) merge
190
+
191
+ "Delete goodname() method, which is unused. Add gotofileline(), a
192
+ convenience method which I intend to use in a variant. Rename
193
+ test() to _test()." --GvR
194
+
195
+ This was an interesting merge. The join completely missed removing
196
+ goodname(), which was adjacent, but outside of, a small conflict.
197
+ I only caught it by comparing the 1.1.3.2/1.1.3.3 diff. CVS ain't
198
+ infallible.
199
+
200
+ 2001-07-14 13:58 kbk
201
+
202
+ * EditorWindow.py: py-cvs-2000_07_13 (Rev 1.38) merge "Remove
203
+ legacy support for the BrowserControl module; the webbrowser module
204
+ has been included since Python 2.0, and that is the preferred
205
+ interface." --fdrake
206
+
207
+ 2001-07-14 13:32 kbk
208
+
209
+ * EditorWindow.py, FileList.py, IdleConf.py, PyParse.py,
210
+ PyShell.py, StackViewer.py, extend.txt, idle.py, keydefs.py: Import
211
+ the 2001 July 13 23:59 GMT version of Python CVS IDLE on the
212
+ existing 1.1.3 vendor branch named py-cvs-vendor-branch. Release
213
+ tag is py-cvs-2001_07_13.
214
+
215
+ 2001-07-14 12:02 kbk
216
+
217
+ * Icons/python.gif: py-cvs-rel2_1 (Rev 1.2) merge Copied py-cvs rev
218
+ 1.2 changed file to idlefork MAIN
219
+
220
+ 2001-07-14 11:58 kbk
221
+
222
+ * Icons/minusnode.gif: py-cvs-rel2_1 (Rev 1.2) merge Copied py-cvs
223
+ 1.2 changed file to idlefork MAIN
224
+
225
+ 2001-07-14 11:23 kbk
226
+
227
+ * ScrolledList.py: py-cvs-rel2_1 (rev 1.5) merge - whitespace
228
+ normalization
229
+
230
+ 2001-07-14 11:20 kbk
231
+
232
+ * Separator.py: py-cvs-rel2_1 (Rev 1.3) merge - whitespace
233
+ normalization
234
+
235
+ 2001-07-14 11:16 kbk
236
+
237
+ * StackViewer.py: py-cvs-rel2_1 (Rev 1.15) merge - whitespace
238
+ normalization
239
+
240
+ 2001-07-14 11:14 kbk
241
+
242
+ * ToolTip.py: py-cvs-rel2_1 (Rev 1.2) merge - whitespace
243
+ normalization
244
+
245
+ 2001-07-14 10:13 kbk
246
+
247
+ * PyShell.py: cvs-py-rel2_1 (Rev 1.29 - 1.33) merge
248
+
249
+ Merged the following py-cvs revs without conflict: 1.29 Reduce
250
+ copyright text output at startup 1.30 Delay setting sys.args until
251
+ Tkinter is fully initialized 1.31 Whitespace normalization 1.32
252
+ Turn syntax warning into error when interactive 1.33 Fix warning
253
+ initialization bug
254
+
255
+ Note that module is extensively modified wrt py-cvs
256
+
257
+ 2001-07-14 06:33 kbk
258
+
259
+ * PyParse.py: py-cvs-rel2_1 (Rev 1.6 - 1.8) merge Fix autoindent
260
+ bug and deflect Unicode from text.get()
261
+
262
+ 2001-07-14 06:00 kbk
263
+
264
+ * Percolator.py: py-cvs-rel2_1 (Rev 1.3) "move "from Tkinter import
265
+ *" to module level" --jhylton
266
+
267
+ 2001-07-14 05:57 kbk
268
+
269
+ * PathBrowser.py: py-cvs-rel2_1 (Rev 1.6) merge - whitespace
270
+ normalization
271
+
272
+ 2001-07-14 05:49 kbk
273
+
274
+ * ParenMatch.py: cvs-py-rel2_1 (Rev 1.5) merge - whitespace
275
+ normalization
276
+
277
+ 2001-07-14 03:57 kbk
278
+
279
+ * ObjectBrowser.py: py-cvs-rel2_1 (Rev 1.3) merge "Make the test
280
+ program work outside IDLE." -- GvR
281
+
282
+ 2001-07-14 03:52 kbk
283
+
284
+ * MultiStatusBar.py: py-cvs-rel2_1 (Rev 1.2) merge - whitespace
285
+ normalization
286
+
287
+ 2001-07-14 03:44 kbk
288
+
289
+ * MultiScrolledLists.py: py-cvs-rel2_1 (Rev 1.2) merge - whitespace
290
+ normalization
291
+
292
+ 2001-07-14 03:40 kbk
293
+
294
+ * IdleHistory.py: py-cvs-rel2_1 (Rev 1.4) merge - whitespace
295
+ normalization
296
+
297
+ 2001-07-14 03:38 kbk
298
+
299
+ * IdleConf.py: py-cvs-rel2_1 (Rev 1.6) merge - whitespace
300
+ normalization
301
+
302
+ 2001-07-13 14:18 kbk
303
+
304
+ * IOBinding.py: py-cvs-rel2_1 (Rev 1.4) merge - move "import *" to
305
+ module level
306
+
307
+ 2001-07-13 14:12 kbk
308
+
309
+ * FormatParagraph.py: py-cvs-rel2_1 (Rev 1.9) merge - whitespace
310
+ normalization
311
+
312
+ 2001-07-13 14:07 kbk
313
+
314
+ * FileList.py: py-cvs-rel2_1 (Rev 1.8) merge - whitespace
315
+ normalization
316
+
317
+ 2001-07-13 13:35 kbk
318
+
319
+ * EditorWindow.py: py-cvs-rel2_1 (Rev 1.33 - 1.37) merge
320
+
321
+ VP IDLE version depended on VP's ExecBinding.py and spawn.py to get
322
+ the path to the Windows Doc directory (relative to python.exe).
323
+ Removed this conflicting code in favor of py-cvs updates which on
324
+ Windows use a hard coded path relative to the location of this
325
+ module. py-cvs updates include support for webbrowser.py. Module
326
+ still has BrowserControl.py for 1.5.2 support.
327
+
328
+ At this point, the differences wrt py-cvs relate to menu
329
+ functionality.
330
+
331
+ 2001-07-13 11:30 kbk
332
+
333
+ * ConfigParser.py: py-cvs-rel2_1 merge - Remove, lives in /Lib
334
+
335
+ 2001-07-13 10:10 kbk
336
+
337
+ * Delegator.py: py-cvs-rel2_1 (Rev 1.3) merge - whitespace
338
+ normalization
339
+
340
+ 2001-07-13 10:07 kbk
341
+
342
+ * Debugger.py: py-cvs-rel2_1 (Rev 1.15) merge - whitespace
343
+ normalization
344
+
345
+ 2001-07-13 10:04 kbk
346
+
347
+ * ColorDelegator.py: py-cvs-rel2_1 (Rev 1.11 and 1.12) merge
348
+ Colorize "as" after "import" / use DEBUG instead of __debug__
349
+
350
+ 2001-07-13 09:54 kbk
351
+
352
+ * ClassBrowser.py: py-cvs-rel2_1 (Rev 1.12) merge - whitespace
353
+ normalization
354
+
355
+ 2001-07-13 09:41 kbk
356
+
357
+ * BrowserControl.py: py-cvs-rel2_1 (Rev 1.1) merge - New File -
358
+ Force HEAD to trunk with -f Note: browser.py was renamed
359
+ BrowserControl.py 10 May 2000. It provides a collection of classes
360
+ and convenience functions to control external browsers "for 1.5.2
361
+ support". It was removed from py-cvs 18 April 2001.
362
+
363
+ 2001-07-13 09:10 kbk
364
+
365
+ * CallTips.py: py-cvs-rel2_1 (Rev 1.8) merge - whitespace
366
+ normalization
367
+
368
+ 2001-07-13 08:26 kbk
369
+
370
+ * CallTipWindow.py: py-cvs-rel2_1 (Rev 1.3) merge - whitespace
371
+ normalization
372
+
373
+ 2001-07-13 08:13 kbk
374
+
375
+ * AutoExpand.py: py-cvs-rel1_2 (Rev 1.4) merge, "Add Alt-slash to
376
+ Unix keydefs (I somehow need it on RH 6.2). Get rid of assignment
377
+ to unused self.text.wordlist." --GvR
378
+
379
+ 2001-07-12 16:54 elguavas
380
+
381
+ * ReplaceDialog.py: py-cvs merge, python 1.5.2 compatibility
382
+
383
+ 2001-07-12 16:46 elguavas
384
+
385
+ * ScriptBinding.py: py-cvs merge, better error dialog
386
+
387
+ 2001-07-12 16:38 elguavas
388
+
389
+ * TODO.txt: py-cvs merge, additions
390
+
391
+ 2001-07-12 15:35 elguavas
392
+
393
+ * WindowList.py: py-cvs merge, correct indentation
394
+
395
+ 2001-07-12 15:24 elguavas
396
+
397
+ * config.txt: py-cvs merge, correct typo
398
+
399
+ 2001-07-12 15:21 elguavas
400
+
401
+ * help.txt: py-cvs merge, update colour changing info
402
+
403
+ 2001-07-12 14:51 elguavas
404
+
405
+ * idle.py: py-cvs merge, idle_dir loading changed
406
+
407
+ 2001-07-12 14:44 elguavas
408
+
409
+ * idlever.py: py-cvs merge, version update
410
+
411
+ 2001-07-11 12:53 kbk
412
+
413
+ * BrowserControl.py: Initial revision
414
+
415
+ 2001-07-11 12:53 kbk
416
+
417
+ * AutoExpand.py, BrowserControl.py, CallTipWindow.py, CallTips.py,
418
+ ClassBrowser.py, ColorDelegator.py, Debugger.py, Delegator.py,
419
+ EditorWindow.py, FileList.py, FormatParagraph.py, IOBinding.py,
420
+ IdleConf.py, IdleHistory.py, MultiScrolledLists.py,
421
+ MultiStatusBar.py, ObjectBrowser.py, OutputWindow.py,
422
+ ParenMatch.py, PathBrowser.py, Percolator.py, PyParse.py,
423
+ PyShell.py, RemoteInterp.py, ReplaceDialog.py, ScriptBinding.py,
424
+ ScrolledList.py, Separator.py, StackViewer.py, TODO.txt,
425
+ ToolTip.py, WindowList.py, config.txt, help.txt, idle, idle.bat,
426
+ idle.py, idlever.py, setup.py, Icons/minusnode.gif,
427
+ Icons/python.gif: Import the release 2.1 version of Python CVS IDLE
428
+ on the existing 1.1.3 vendor branch named py-cvs-vendor-branch,
429
+ with release tag py-cvs-rel2_1.
430
+
431
+ 2001-07-11 12:34 kbk
432
+
433
+ * AutoExpand.py, AutoIndent.py, Bindings.py, CallTipWindow.py,
434
+ CallTips.py, ChangeLog, ClassBrowser.py, ColorDelegator.py,
435
+ Debugger.py, Delegator.py, EditorWindow.py, FileList.py,
436
+ FormatParagraph.py, FrameViewer.py, GrepDialog.py, IOBinding.py,
437
+ IdleConf.py, IdleHistory.py, MultiScrolledLists.py,
438
+ MultiStatusBar.py, NEWS.txt, ObjectBrowser.py, OldStackViewer.py,
439
+ OutputWindow.py, ParenMatch.py, PathBrowser.py, Percolator.py,
440
+ PyParse.py, PyShell.py, README.txt, RemoteInterp.py,
441
+ ReplaceDialog.py, ScriptBinding.py, ScrolledList.py,
442
+ SearchBinding.py, SearchDialog.py, SearchDialogBase.py,
443
+ SearchEngine.py, Separator.py, StackViewer.py, TODO.txt,
444
+ ToolTip.py, TreeWidget.py, UndoDelegator.py, WidgetRedirector.py,
445
+ WindowList.py, ZoomHeight.py, __init__.py, config-unix.txt,
446
+ config-win.txt, config.txt, eventparse.py, extend.txt, help.txt,
447
+ idle.bat, idle.py, idle.pyw, idlever.py, keydefs.py, pyclbr.py,
448
+ tabnanny.py, testcode.py, Icons/folder.gif, Icons/minusnode.gif,
449
+ Icons/openfolder.gif, Icons/plusnode.gif, Icons/python.gif,
450
+ Icons/tk.gif: Import the 9 March 2000 version of Python CVS IDLE as
451
+ 1.1.3 vendor branch named py-cvs-vendor-branch.
452
+
453
+ 2001-07-04 13:43 kbk
454
+
455
+ * Icons/: folder.gif, minusnode.gif, openfolder.gif, plusnode.gif,
456
+ python.gif, tk.gif: Null commit with -f option to force an uprev
457
+ and put HEADs firmly on the trunk.
458
+
459
+ 2001-07-04 13:15 kbk
460
+
461
+ * AutoExpand.py, AutoIndent.py, Bindings.py, CallTipWindow.py,
462
+ CallTips.py, ChangeLog, ClassBrowser.py, ColorDelegator.py,
463
+ ConfigParser.py, Debugger.py, Delegator.py, EditorWindow.py,
464
+ ExecBinding.py, FileList.py, FormatParagraph.py, FrameViewer.py,
465
+ GrepDialog.py, IDLEFORK.html, IOBinding.py, IdleConf.py,
466
+ IdleHistory.py, MultiScrolledLists.py, MultiStatusBar.py, NEWS.txt,
467
+ ObjectBrowser.py, OldStackViewer.py, OutputWindow.py,
468
+ ParenMatch.py, PathBrowser.py, Percolator.py, PyParse.py,
469
+ PyShell.py, README.txt, Remote.py, RemoteInterp.py,
470
+ ReplaceDialog.py, ScriptBinding.py, ScrolledList.py,
471
+ SearchBinding.py, SearchDialog.py, SearchDialogBase.py,
472
+ SearchEngine.py, Separator.py, StackViewer.py, TODO.txt,
473
+ ToolTip.py, TreeWidget.py, UndoDelegator.py, WidgetRedirector.py,
474
+ WindowList.py, ZoomHeight.py, __init__.py, config-unix.txt,
475
+ config-win.txt, config.txt, eventparse.py, extend.txt, help.txt,
476
+ idle, idle.bat, idle.py, idle.pyw, idlever.py, keydefs.py,
477
+ loader.py, protocol.py, pyclbr.py, setup.py, spawn.py, tabnanny.py,
478
+ testcode.py: Null commit with -f option to force an uprev and put
479
+ HEADs firmly on the trunk.
480
+
481
+ 2001-06-27 10:24 elguavas
482
+
483
+ * IDLEFORK.html: updated contact details
484
+
485
+ 2001-06-25 17:23 elguavas
486
+
487
+ * idle, RemoteInterp.py, setup.py: Initial revision
488
+
489
+ 2001-06-25 17:23 elguavas
490
+
491
+ * idle, RemoteInterp.py, setup.py: import current python cvs idle
492
+ as a vendor branch
493
+
494
+ 2001-06-24 15:10 elguavas
495
+
496
+ * IDLEFORK.html: tiny change to test new syncmail setup
497
+
498
+ 2001-06-24 14:41 elguavas
499
+
500
+ * IDLEFORK.html: change to new developer contact, also a test
501
+ commit for new syncmail setup
502
+
503
+ 2001-06-23 18:15 elguavas
504
+
505
+ * IDLEFORK.html: tiny test update for revitalised idle-fork
506
+
507
+ 2000-09-24 17:29 nriley
508
+
509
+ * protocol.py: Fixes for Python 1.6 compatibility - socket bind and
510
+ connect get a tuple instead two arguments.
511
+
512
+ 2000-09-24 17:28 nriley
513
+
514
+ * spawn.py: Change for Python 1.6 compatibility - UNIX's 'os'
515
+ module defines 'spawnv' now, so we check for 'fork' first.
516
+
517
+ 2000-08-15 22:51 nowonder
518
+
519
+ * IDLEFORK.html:
520
+ corrected email address
521
+
522
+ 2000-08-15 22:47 nowonder
523
+
524
+ * IDLEFORK.html:
525
+ added .html file for http://idlefork.sourceforge.net
526
+
527
+ 2000-08-15 11:13 dscherer
528
+
529
+ * AutoExpand.py, AutoIndent.py, Bindings.py, CallTipWindow.py,
530
+ CallTips.py, __init__.py, ChangeLog, ClassBrowser.py,
531
+ ColorDelegator.py, ConfigParser.py, Debugger.py, Delegator.py,
532
+ FileList.py, FormatParagraph.py, FrameViewer.py, GrepDialog.py,
533
+ IOBinding.py, IdleConf.py, IdleHistory.py, MultiScrolledLists.py,
534
+ MultiStatusBar.py, NEWS.txt, ObjectBrowser.py, OldStackViewer.py,
535
+ OutputWindow.py, ParenMatch.py, PathBrowser.py, Percolator.py,
536
+ PyParse.py, PyShell.py, README.txt, ReplaceDialog.py,
537
+ ScriptBinding.py, ScrolledList.py, SearchBinding.py,
538
+ SearchDialog.py, SearchDialogBase.py, SearchEngine.py,
539
+ Separator.py, StackViewer.py, TODO.txt, ToolTip.py, TreeWidget.py,
540
+ UndoDelegator.py, WidgetRedirector.py, WindowList.py, help.txt,
541
+ ZoomHeight.py, config-unix.txt, config-win.txt, config.txt,
542
+ eventparse.py, extend.txt, idle.bat, idle.py, idle.pyw, idlever.py,
543
+ keydefs.py, loader.py, pyclbr.py, tabnanny.py, testcode.py,
544
+ EditorWindow.py, ExecBinding.py, Remote.py, protocol.py, spawn.py,
545
+ Icons/folder.gif, Icons/minusnode.gif, Icons/openfolder.gif,
546
+ Icons/plusnode.gif, Icons/python.gif, Icons/tk.gif: Initial
547
+ revision
548
+
549
+ 2000-08-15 11:13 dscherer
550
+
551
+ * AutoExpand.py, AutoIndent.py, Bindings.py, CallTipWindow.py,
552
+ CallTips.py, __init__.py, ChangeLog, ClassBrowser.py,
553
+ ColorDelegator.py, ConfigParser.py, Debugger.py, Delegator.py,
554
+ FileList.py, FormatParagraph.py, FrameViewer.py, GrepDialog.py,
555
+ IOBinding.py, IdleConf.py, IdleHistory.py, MultiScrolledLists.py,
556
+ MultiStatusBar.py, NEWS.txt, ObjectBrowser.py, OldStackViewer.py,
557
+ OutputWindow.py, ParenMatch.py, PathBrowser.py, Percolator.py,
558
+ PyParse.py, PyShell.py, README.txt, ReplaceDialog.py,
559
+ ScriptBinding.py, ScrolledList.py, SearchBinding.py,
560
+ SearchDialog.py, SearchDialogBase.py, SearchEngine.py,
561
+ Separator.py, StackViewer.py, TODO.txt, ToolTip.py, TreeWidget.py,
562
+ UndoDelegator.py, WidgetRedirector.py, WindowList.py, help.txt,
563
+ ZoomHeight.py, config-unix.txt, config-win.txt, config.txt,
564
+ eventparse.py, extend.txt, idle.bat, idle.py, idle.pyw, idlever.py,
565
+ keydefs.py, loader.py, pyclbr.py, tabnanny.py, testcode.py,
566
+ EditorWindow.py, ExecBinding.py, Remote.py, protocol.py, spawn.py,
567
+ Icons/folder.gif, Icons/minusnode.gif, Icons/openfolder.gif,
568
+ Icons/plusnode.gif, Icons/python.gif, Icons/tk.gif: Modified IDLE
569
+ from VPython 0.2
570
+
571
+
572
+ original IDLE ChangeLog:
573
+ ========================
574
+
575
+ Tue Feb 15 18:08:19 2000 Guido van Rossum <guido@cnri.reston.va.us>
576
+
577
+ * NEWS.txt: Notice status bar and stack viewer.
578
+
579
+ * EditorWindow.py: Support for Moshe's status bar.
580
+
581
+ * MultiStatusBar.py: Status bar code -- by Moshe Zadka.
582
+
583
+ * OldStackViewer.py:
584
+ Adding the old stack viewer implementation back, for the debugger.
585
+
586
+ * StackViewer.py: New stack viewer, uses a tree widget.
587
+ (XXX: the debugger doesn't yet use this.)
588
+
589
+ * WindowList.py:
590
+ Correct a typo and remove an unqualified except that was hiding the error.
591
+
592
+ * ClassBrowser.py: Add an XXX comment about the ClassBrowser AIP.
593
+
594
+ * ChangeLog: Updated change log.
595
+
596
+ * NEWS.txt: News update. Probably incomplete; what else is new?
597
+
598
+ * README.txt:
599
+ Updated for pending IDLE 0.5 release (still very rough -- just getting
600
+ it out in a more convenient format than CVS).
601
+
602
+ * TODO.txt: Tiny addition.
603
+
604
+ Thu Sep 9 14:16:02 1999 Guido van Rossum <guido@cnri.reston.va.us>
605
+
606
+ * TODO.txt: A few new TODO entries.
607
+
608
+ Thu Aug 26 23:06:22 1999 Guido van Rossum <guido@cnri.reston.va.us>
609
+
610
+ * Bindings.py: Add Python Documentation entry to Help menu.
611
+
612
+ * EditorWindow.py:
613
+ Find the help.txt file relative to __file__ or ".", not in sys.path.
614
+ (Suggested by Moshe Zadka, but implemented differently.)
615
+
616
+ Add <<python-docs>> event which, on Unix, brings up Netscape pointing
617
+ to http://www.python.doc/current/ (a local copy would be nice but its
618
+ location can't be predicted). Windows solution TBD.
619
+
620
+ Wed Aug 11 14:55:43 1999 Guido van Rossum <guido@cnri.reston.va.us>
621
+
622
+ * TreeWidget.py:
623
+ Moshe noticed an inconsistency in his comment, so I'm rephrasing it to
624
+ be clearer.
625
+
626
+ * TreeWidget.py:
627
+ Patch inspired by Moshe Zadka to search for the Icons directory in the
628
+ same directory as __file__, rather than searching for it along sys.path.
629
+ This works better when idle is a package.
630
+
631
+ Thu Jul 15 13:11:02 1999 Guido van Rossum <guido@cnri.reston.va.us>
632
+
633
+ * TODO.txt: New wishes.
634
+
635
+ Sat Jul 10 13:17:35 1999 Guido van Rossum <guido@cnri.reston.va.us>
636
+
637
+ * IdlePrefs.py:
638
+ Make the color for stderr red (i.e. the standard warning/danger/stop
639
+ color) rather than green. Suggested by Sam Schulenburg.
640
+
641
+ Fri Jun 25 17:26:34 1999 Guido van Rossum <guido@cnri.reston.va.us>
642
+
643
+ * PyShell.py: Close debugger when closing. This may break a cycle.
644
+
645
+ * Debugger.py: Break cycle on close.
646
+
647
+ * ClassBrowser.py: Destroy the tree when closing.
648
+
649
+ * TreeWidget.py: Add destroy() method to recursively destroy a tree.
650
+
651
+ * PyShell.py: Extend _close() to break cycles.
652
+ Break some other cycles too (and destroy the root when done).
653
+
654
+ * EditorWindow.py:
655
+ Add _close() method that does the actual cleanup (close() asks the
656
+ user what they want first if there's unsaved stuff, and may cancel).
657
+ It closes more than before.
658
+
659
+ Add unload_extensions() method to unload all extensions; called from
660
+ _close(). It calls an extension's close() method if it has one.
661
+
662
+ * Percolator.py: Add close() method that breaks cycles.
663
+
664
+ * WidgetRedirector.py: Add unregister() method.
665
+ Unregister everything at closing.
666
+ Don't call close() in __del__, rely on explicit call to close().
667
+
668
+ * IOBinding.py, FormatParagraph.py, CallTips.py:
669
+ Add close() method that breaks a cycle.
670
+
671
+ Fri Jun 11 15:03:00 1999 Guido van Rossum <guido@cnri.reston.va.us>
672
+
673
+ * AutoIndent.py, EditorWindow.py, FormatParagraph.py:
674
+ Tim Peters smart.patch:
675
+
676
+ EditorWindow.py:
677
+
678
+ + Added get_tabwidth & set_tabwidth "virtual text" methods, that get/set the
679
+ widget's view of what a tab means.
680
+
681
+ + Moved TK_TABWIDTH_DEFAULT here from AutoIndent.
682
+
683
+ + Renamed Mark's get_selection_index to get_selection_indices (sorry, Mark,
684
+ but the name was plain wrong <wink>).
685
+
686
+ FormatParagraph.py: renamed use of get_selection_index.
687
+
688
+ AutoIndent.py:
689
+
690
+ + Moved TK_TABWIDTH_DEFAULT to EditorWindow.
691
+
692
+ + Rewrote set_indentation_params to use new VTW get/set_tabwidth methods.
693
+
694
+ + Changed smart_backspace_event to delete whitespace back to closest
695
+ preceding virtual tab stop or real character (note that this may require
696
+ inserting characters if backspacing over a tab!).
697
+
698
+ + Nuked almost references to the selection tag, in favor of using
699
+ get_selection_indices. The sole exception is in set_region, for which no
700
+ "set_selection" abstraction has yet been agreed upon.
701
+
702
+ + Had too much fun using the spiffy new features of the format-paragraph
703
+ cmd.
704
+
705
+ Thu Jun 10 17:48:02 1999 Guido van Rossum <guido@cnri.reston.va.us>
706
+
707
+ * FormatParagraph.py:
708
+ Code by Mark Hammond to format paragraphs embedded in comments.
709
+ Read the comments (which I reformatted using the new feature :-)
710
+ for some limitations.
711
+
712
+ * EditorWindow.py:
713
+ Added abstraction get_selection_index() (Mark Hammond). Also
714
+ reformatted some comment blocks to show off a cool feature I'm about
715
+ to check in next.
716
+
717
+ * ClassBrowser.py:
718
+ Adapt to the new pyclbr's support of listing top-level functions. If
719
+ this functionality is not present (e.g. when used with a vintage
720
+ Python 1.5.2 installation) top-level functions are not listed.
721
+
722
+ (Hmm... Any distribution of IDLE 0.5 should probably include a copy
723
+ of the new pyclbr.py!)
724
+
725
+ * AutoIndent.py:
726
+ Fix off-by-one error in Tim's recent change to comment_region(): the
727
+ list of lines returned by get_region() contains an empty line at the
728
+ end representing the start of the next line, and this shouldn't be
729
+ commented out!
730
+
731
+ * CallTips.py:
732
+ Mark Hammond writes: Here is another change that allows it to work for
733
+ class creation - tries to locate an __init__ function. Also updated
734
+ the test code to reflect your new "***" change.
735
+
736
+ * CallTipWindow.py:
737
+ Mark Hammond writes: Tim's suggestion of copying the font for the
738
+ CallTipWindow from the text control makes sense, and actually makes
739
+ the control look better IMO.
740
+
741
+ Wed Jun 9 20:34:57 1999 Guido van Rossum <guido@cnri.reston.va.us>
742
+
743
+ * CallTips.py:
744
+ Append "..." if the appropriate flag (for varargs) in co_flags is set.
745
+ Ditto "***" for kwargs.
746
+
747
+ Tue Jun 8 13:06:07 1999 Guido van Rossum <guido@cnri.reston.va.us>
748
+
749
+ * ReplaceDialog.py:
750
+ Hmm... Tim didn't turn "replace all" into a single undo block.
751
+ I think I like it better if it os, so here.
752
+
753
+ * ReplaceDialog.py: Tim Peters: made replacement atomic for undo/redo.
754
+
755
+ * AutoIndent.py: Tim Peters:
756
+
757
+ + Set usetabs=1. Editing pyclbr.py was driving me nuts <0.6 wink>.
758
+ usetabs=1 is the Emacs pymode default too, and thanks to indentwidth !=
759
+ tabwidth magical usetabs disabling, new files are still created with tabs
760
+ turned off. The only implication is that if you open a file whose first
761
+ indent is a single tab, IDLE will now magically use tabs for that file (and
762
+ set indentwidth to 8). Note that the whole scheme doesn't work right for
763
+ PythonWin, though, since Windows users typically set tabwidth to 4; Mark
764
+ probably has to hide the IDLE algorithm from them (which he already knows).
765
+
766
+ + Changed comment_region_event to stick "##" in front of every line. The
767
+ "holes" previously left on blank lines were visually confusing (made it
768
+ needlessly hard to figure out what to uncomment later).
769
+
770
+ Mon Jun 7 15:38:40 1999 Guido van Rossum <guido@cnri.reston.va.us>
771
+
772
+ * TreeWidget.py, ObjectBrowser.py:
773
+ Remove unnecessary reference to pyclbr from test() code.
774
+
775
+ * PyParse.py: Tim Peters:
776
+
777
+ Smarter logic for finding a parse synch point.
778
+
779
+ Does a half to a fifth the work in normal cases; don't notice the speedup,
780
+ but makes more breathing room for other extensions.
781
+
782
+ Speeds terrible cases by at least a factor of 10. "Terrible" == e.g. you put
783
+ """ at the start of Tkinter.py, undo it, zoom to the bottom, and start
784
+ typing in code. Used to take about 8 seconds for ENTER to respond, now some
785
+ large fraction of a second. The new code gets indented correctly, despite
786
+ that it all remains "string colored" until the colorizer catches up (after
787
+ which, ENTER appears instantaneous again).
788
+
789
+ Fri Jun 4 19:21:19 1999 Guido van Rossum <guido@cnri.reston.va.us>
790
+
791
+ * extend.py: Might as well enable CallTips by default.
792
+ If there are too many complaints I'll remove it again or fix it.
793
+
794
+ Thu Jun 3 14:32:16 1999 Guido van Rossum <guido@cnri.reston.va.us>
795
+
796
+ * AutoIndent.py, EditorWindow.py, PyParse.py:
797
+ New offerings by Tim Peters; he writes:
798
+
799
+ IDLE is now the first Python editor in the Universe not confused by my
800
+ doctest.py <wink>.
801
+
802
+ As threatened, this defines IDLE's is_char_in_string function as a
803
+ method of EditorWindow. You just need to define one similarly in
804
+ whatever it is you pass as editwin to AutoIndent; looking at the
805
+ EditorWindow.py part of the patch should make this clear.
806
+
807
+ * GrepDialog.py: Enclose pattern in quotes in status message.
808
+
809
+ * CallTips.py:
810
+ Mark Hammond fixed some comments and improved the way the tip text is
811
+ constructed.
812
+
813
+ Wed Jun 2 18:18:57 1999 Guido van Rossum <guido@cnri.reston.va.us>
814
+
815
+ * CallTips.py:
816
+ My fix to Mark's code: restore the universal check on <KeyRelease>.
817
+ Always cancel on <Key-Escape> or <ButtonPress>.
818
+
819
+ * CallTips.py:
820
+ A version that Mark Hammond posted to the newsgroup. Has some newer
821
+ stuff for getting the tip. Had to fix the Key-( and Key-) events
822
+ for Unix. Will have to re-apply my patch for catching KeyRelease and
823
+ ButtonRelease events.
824
+
825
+ * CallTipWindow.py, CallTips.py:
826
+ Call tips by Mark Hammond (plus tiny fix by me.)
827
+
828
+ * IdleHistory.py:
829
+ Changes by Mark Hammond: (1) support optional output_sep argument to
830
+ the constructor so he can eliminate the sys.ps2 that PythonWin leaves
831
+ in the source; (2) remove duplicate history items.
832
+
833
+ * AutoIndent.py:
834
+ Changes by Mark Hammond to allow using IDLE extensions in PythonWin as
835
+ well: make three dialog routines instance variables.
836
+
837
+ * EditorWindow.py:
838
+ Change by Mark Hammond to allow using IDLE extensions in PythonWin as
839
+ well: make three dialog routines instance variables.
840
+
841
+ Tue Jun 1 20:06:44 1999 Guido van Rossum <guido@cnri.reston.va.us>
842
+
843
+ * AutoIndent.py: Hah! A fix of my own to Tim's code!
844
+ Unix bindings for <<toggle-tabs>> and <<change-indentwidth>> were
845
+ missing, and somehow that meant the events were never generated,
846
+ even though they were in the menu. The new Unix bindings are now
847
+ the same as the Windows bindings (M-t and M-u).
848
+
849
+ * AutoIndent.py, PyParse.py, PyShell.py: Tim Peters again:
850
+
851
+ The new version (attached) is fast enough all the time in every real module
852
+ I have <whew!>. You can make it slow by, e.g., creating an open list with
853
+ 5,000 90-character identifiers (+ trailing comma) each on its own line, then
854
+ adding an item to the end -- but that still consumes less than a second on
855
+ my P5-166. Response time in real code appears instantaneous.
856
+
857
+ Fixed some bugs.
858
+
859
+ New feature: when hitting ENTER and the cursor is beyond the line's leading
860
+ indentation, whitespace is removed on both sides of the cursor; before
861
+ whitespace was removed only on the left; e.g., assuming the cursor is
862
+ between the comma and the space:
863
+
864
+ def something(arg1, arg2):
865
+ ^ cursor to the left of here, and hit ENTER
866
+ arg2): # new line used to end up here
867
+ arg2): # but now lines up the way you expect
868
+
869
+ New hack: AutoIndent has grown a context_use_ps1 Boolean config option,
870
+ defaulting to 0 (false) and set to 1 (only) by PyShell. Reason: handling
871
+ the fancy stuff requires looking backward for a parsing synch point; ps1
872
+ lines are the only sensible thing to look for in a shell window, but are a
873
+ bad thing to look for in a file window (ps1 lines show up in my module
874
+ docstrings often). PythonWin's shell should set this true too.
875
+
876
+ Persistent problem: strings containing def/class can still screw things up
877
+ completely. No improvement. Simplest workaround is on the user's head, and
878
+ consists of inserting e.g.
879
+
880
+ def _(): pass
881
+
882
+ (or any other def/class) after the end of the multiline string that's
883
+ screwing them up. This is especially irksome because IDLE's syntax coloring
884
+ is *not* confused, so when this happens the colors don't match the
885
+ indentation behavior they see.
886
+
887
+ * AutoIndent.py: Tim Peters again:
888
+
889
+ [Tim, after adding some bracket smarts to AutoIndent.py]
890
+ > ...
891
+ > What it can't possibly do without reparsing large gobs of text is
892
+ > suggest a reasonable indent level after you've *closed* a bracket
893
+ > left open on some previous line.
894
+ > ...
895
+
896
+ The attached can, and actually fast enough to use -- most of the time. The
897
+ code is tricky beyond belief to achieve that, but it works so far; e.g.,
898
+
899
+ return len(string.expandtabs(str[self.stmt_start :
900
+ ^ indents to caret
901
+ i],
902
+ ^ indents to caret
903
+ self.tabwidth)) + 1
904
+ ^ indents to caret
905
+
906
+ It's about as smart as pymode now, wrt both bracket and backslash
907
+ continuation rules. It does require reparsing large gobs of text, and if it
908
+ happens to find something that looks like a "def" or "class" or sys.ps1
909
+ buried in a multiline string, but didn't suck up enough preceding text to
910
+ see the start of the string, it's completely hosed. I can't repair that --
911
+ it's just too slow to reparse from the start of the file all the time.
912
+
913
+ AutoIndent has grown a new num_context_lines tuple attribute that controls
914
+ how far to look back, and-- like other params --this could/should be made
915
+ user-overridable at startup and per-file on the fly.
916
+
917
+ * PyParse.py: New file by Tim Peters:
918
+
919
+ One new file in the attached, PyParse.py. The LineStudier (whatever it was
920
+ called <wink>) class was removed from AutoIndent; PyParse subsumes its
921
+ functionality.
922
+
923
+ * AutoIndent.py: Tim Peters keeps revising this module (more to come):
924
+
925
+ Removed "New tabwidth" menu binding.
926
+
927
+ Added "a tab means how many spaces?" dialog to block tabify and untabify. I
928
+ think prompting for this is good now: they're usually at-most-once-per-file
929
+ commands, and IDLE can't let them change tabwidth from the Tk default
930
+ anymore, so IDLE can no longer presume to have any idea what a tab means.
931
+
932
+ Irony: for the purpose of keeping comments aligned via tabs, Tk's
933
+ non-default approach is much nicer than the Emacs/Notepad/Codewright/vi/etc
934
+ approach.
935
+
936
+ * EditorWindow.py:
937
+ 1. Catch NameError on import (could be raised by case mismatch on Windows).
938
+ 2. No longer need to reset pyclbr cache and show watch cursor when calling
939
+ ClassBrowser -- the ClassBrowser takes care of pyclbr and the TreeWidget
940
+ takes care of the watch cursor.
941
+ 3. Reset the focus to the current window after error message about class
942
+ browser on buffer without filename.
943
+
944
+ * Icons/minusnode.gif, Icons/plusnode.gif: Missed a few.
945
+
946
+ * ClassBrowser.py, PathBrowser.py: Rewritten based on TreeWidget.py
947
+
948
+ * ObjectBrowser.py: Object browser, based on TreeWidget.py.
949
+
950
+ * TreeWidget.py: Tree widget done right.
951
+
952
+ * ToolTip.py: As yet unused code for tool tips.
953
+
954
+ * ScriptBinding.py:
955
+ Ensure sys.argv[0] is the script name on Run Script.
956
+
957
+ * ZoomHeight.py: Move zoom height functionality to separate function.
958
+
959
+ * Icons/folder.gif, Icons/openfolder.gif, Icons/python.gif, Icons/tk.gif:
960
+ A few icons used by ../TreeWidget.py and its callers.
961
+
962
+ * AutoIndent.py: New version by Tim Peters improves block opening test.
963
+
964
+ Fri May 21 04:46:17 1999 Guido van Rossum <guido@cnri.reston.va.us>
965
+
966
+ * Attic/History.py, PyShell.py: Rename History to IdleHistory.
967
+ Add isatty() to pseudo files.
968
+
969
+ * StackViewer.py: Make initial stack viewer wider
970
+
971
+ * TODO.txt: New wishes
972
+
973
+ * AutoIndent.py, EditorWindow.py, PyShell.py:
974
+ Much improved autoindent and handling of tabs,
975
+ by Tim Peters.
976
+
977
+ Mon May 3 15:49:52 1999 Guido van Rossum <guido@cnri.reston.va.us>
978
+
979
+ * AutoIndent.py, EditorWindow.py, FormatParagraph.py, UndoDelegator.py:
980
+ Tim Peters writes:
981
+
982
+ I'm still unsure, but couldn't stand the virtual event trickery so tried a
983
+ different sin (adding undo_block_start/stop methods to the Text instance in
984
+ EditorWindow.py). Like it or not, it's efficient and works <wink>. Better
985
+ idea?
986
+
987
+ Give the attached a whirl. Even if you hate the implementation, I think
988
+ you'll like the results. Think I caught all the "block edit" cmds,
989
+ including Format Paragraph, plus subtler ones involving smart indents and
990
+ backspacing.
991
+
992
+ * WidgetRedirector.py: Tim Peters writes:
993
+
994
+ [W]hile trying to dope out how redirection works, stumbled into two
995
+ possible glitches. In the first, it doesn't appear to make sense to try to
996
+ rename a command that's already been destroyed; in the second, the name
997
+ "previous" doesn't really bring to mind "ignore the previous value" <wink>.
998
+
999
+ Fri Apr 30 19:39:25 1999 Guido van Rossum <guido@cnri.reston.va.us>
1000
+
1001
+ * __init__.py: Support for using idle as a package.
1002
+
1003
+ * PathBrowser.py:
1004
+ Avoid listing files more than once (e.g. foomodule.so has two hits:
1005
+ once for foo + module.so, once for foomodule + .so).
1006
+
1007
+ Mon Apr 26 22:20:38 1999 Guido van Rossum <guido@cnri.reston.va.us>
1008
+
1009
+ * ChangeLog, ColorDelegator.py, PyShell.py: Tim Peters strikes again:
1010
+
1011
+ Ho ho ho -- that's trickier than it sounded! The colorizer is working with
1012
+ "line.col" strings instead of Text marks, and the absolute coordinates of
1013
+ the point of interest can change across the self.update call (voice of
1014
+ baffled experience, when two quick backspaces no longer fooled it, but a
1015
+ backspace followed by a quick ENTER did <wink>).
1016
+
1017
+ Anyway, the attached appears to do the trick. CPU usage goes way up when
1018
+ typing quickly into a long triple-quoted string, but the latency is fine for
1019
+ me (a relatively fast typist on a relatively slow machine). Most of the
1020
+ changes here are left over from reducing the # of vrbl names to help me
1021
+ reason about the logic better; I hope the code is a *little* easier to
1022
+
1023
+ Fri Apr 23 14:01:25 1999 Guido van Rossum <guido@cnri.reston.va.us>
1024
+
1025
+ * EditorWindow.py:
1026
+ Provide full arguments to __import__ so it works in packagized IDLE.
1027
+
1028
+ Thu Apr 22 23:20:17 1999 Guido van Rossum <guido@cnri.reston.va.us>
1029
+
1030
+ * help.txt:
1031
+ Bunch of updates necessary due to recent changes; added docs for File
1032
+ menu, command line and color preferences.
1033
+
1034
+ * Bindings.py: Remove obsolete 'script' menu.
1035
+
1036
+ * TODO.txt: Several wishes fulfilled.
1037
+
1038
+ * OutputWindow.py:
1039
+ Moved classes OnDemandOutputWindow and PseudoFile here,
1040
+ from ScriptBinding.py where they are no longer needed.
1041
+
1042
+ * ScriptBinding.py:
1043
+ Mostly rewritten. Instead of the old Run module and Debug module,
1044
+ there are two new commands:
1045
+
1046
+ Import module (F5) imports or reloads the module and also adds its
1047
+ name to the __main__ namespace. This gets executed in the PyShell
1048
+ window under control of its debug settings.
1049
+
1050
+ Run script (Control-F5) is similar but executes the contents of the
1051
+ file directly in the __main__ namespace.
1052
+
1053
+ * PyShell.py: Nits: document use of $IDLESTARTUP; display idle version
1054
+
1055
+ * idlever.py: New version to celebrate new command line
1056
+
1057
+ * OutputWindow.py: Added flush(), for completeness.
1058
+
1059
+ * PyShell.py:
1060
+ A lot of changes to make the command line more useful. You can now do:
1061
+ idle.py -e file ... -- to edit files
1062
+ idle.py script arg ... -- to run a script
1063
+ idle.py -c cmd arg ... -- to run a command
1064
+ Other options, see also the usage message (also new!) for more details:
1065
+ -d -- enable debugger
1066
+ -s -- run $IDLESTARTUP or $PYTHONSTARTUP
1067
+ -t title -- set Python Shell window's title
1068
+ sys.argv is set accordingly, unless -e is used.
1069
+ sys.path is absolutized, and all relevant paths are inserted into it.
1070
+
1071
+ Other changes:
1072
+ - the environment in which commands are executed is now the
1073
+ __main__ module
1074
+ - explicitly save sys.stdout etc., don't restore from sys.__stdout__
1075
+ - new interpreter methods execsource(), execfile(), stuffsource()
1076
+ - a few small nits
1077
+
1078
+ * TODO.txt:
1079
+ Some more TODO items. Made up my mind about command line args,
1080
+ Run/Import, __main__.
1081
+
1082
+ * ColorDelegator.py:
1083
+ Super-elegant patch by Tim Peters that speeds up colorization
1084
+ dramatically (up to 15 times he claims). Works by reading more than
1085
+ one line at a time, up to 100-line chunks (starting with one line and
1086
+ then doubling up to the limit). On a typical machine (e.g. Tim's
1087
+ P5-166) this doesn't reduce interactive responsiveness in a noticeable
1088
+ way.
1089
+
1090
+ Wed Apr 21 15:49:34 1999 Guido van Rossum <guido@cnri.reston.va.us>
1091
+
1092
+ * ColorDelegator.py:
1093
+ Patch by Tim Peters to speed up colorizing of big multiline strings.
1094
+
1095
+ Tue Apr 20 17:32:52 1999 Guido van Rossum <guido@cnri.reston.va.us>
1096
+
1097
+ * extend.txt:
1098
+ For an event 'foo-bar', the corresponding method must be called
1099
+ foo_bar_event(). Therefore, fix the references to zoom_height() in
1100
+ the example.
1101
+
1102
+ * IdlePrefs.py: Restored the original IDLE color scheme.
1103
+
1104
+ * PyShell.py, IdlePrefs.py, ColorDelegator.py, EditorWindow.py:
1105
+ Color preferences code by Loren Luke (massaged by me somewhat)
1106
+
1107
+ * SearchEngine.py:
1108
+ Patch by Mark Favas: it fixes the search engine behaviour where an
1109
+ unsuccessful search wraps around and re-searches that part of the file
1110
+ between the start of the search and the end of the file - only really
1111
+ an issue for very large files, but... (also removes a redundant
1112
+ m.span() call).
1113
+
1114
+ Mon Apr 19 16:26:02 1999 Guido van Rossum <guido@cnri.reston.va.us>
1115
+
1116
+ * TODO.txt: A few wishes are now fulfilled.
1117
+
1118
+ * AutoIndent.py: Tim Peters implements some of my wishes:
1119
+
1120
+ o Makes the tab key intelligently insert spaces when appropriate
1121
+ (see Help list banter twixt David Ascher and me; idea stolen from
1122
+ every other editor on earth <wink>).
1123
+
1124
+ o newline_and_indent_event trims trailing whitespace on the old
1125
+ line (pymode and Codewright).
1126
+
1127
+ o newline_and_indent_event no longer fooled by trailing whitespace or
1128
+ comment after ":" (pymode, PTUI).
1129
+
1130
+ o newline_and_indent_event now reduces the new line's indentation after
1131
+ return, break, continue, raise and pass stmts (pymode).
1132
+
1133
+ The last two are easy to fool in the presence of strings &
1134
+ continuations, but pymode requires Emacs's high-powered C parsing
1135
+ functions to avoid that in finite time.
1136
+
1137
+ ======================================================================
1138
+ Python release 1.5.2c1, IDLE version 0.4
1139
+ ======================================================================
1140
+
1141
+ Wed Apr 7 18:41:59 1999 Guido van Rossum <guido@cnri.reston.va.us>
1142
+
1143
+ * README.txt, NEWS.txt: New version.
1144
+
1145
+ * idlever.py: Version bump awaiting impending new release.
1146
+ (Not much has changed :-( )
1147
+
1148
+ Mon Mar 29 14:52:28 1999 Guido van Rossum <guido@cnri.reston.va.us>
1149
+
1150
+ * ScriptBinding.py, PyShell.py:
1151
+ At Tim Peters' recommendation, add a dummy flush() method to
1152
+ PseudoFile.
1153
+
1154
+ Thu Mar 11 23:21:23 1999 Guido van Rossum <guido@cnri.reston.va.us>
1155
+
1156
+ * PathBrowser.py: Don't crash when sys.path contains an empty string.
1157
+
1158
+ * Attic/Outline.py: This file was never supposed to be part of IDLE.
1159
+
1160
+ * PathBrowser.py:
1161
+ - Don't crash in the case where a superclass is a string instead of a
1162
+ pyclbr.Class object; this can happen when the superclass is
1163
+ unrecognizable (to pyclbr), e.g. when module renaming is used.
1164
+
1165
+ - Show a watch cursor when calling pyclbr (since it may take a while
1166
+ recursively parsing imported modules!).
1167
+
1168
+ Wed Mar 10 05:18:02 1999 Guido van Rossum <guido@cnri.reston.va.us>
1169
+
1170
+ * EditorWindow.py, Bindings.py: Add PathBrowser to File module
1171
+
1172
+ * PathBrowser.py: "Path browser" - 4 scrolled lists displaying:
1173
+ directories on sys.path
1174
+ modules in selected directory
1175
+ classes in selected module
1176
+ methods of selected class
1177
+
1178
+ Single clicking in a directory, module or class item updates the next
1179
+ column with info about the selected item. Double clicking in a
1180
+ module, class or method item opens the file (and selects the clicked
1181
+ item if it is a class or method).
1182
+
1183
+ I guess eventually I should be using a tree widget for this, but the
1184
+ ones I've seen don't work well enough, so for now I use the old
1185
+ Smalltalk or NeXT style multi-column hierarchical browser.
1186
+
1187
+ * MultiScrolledLists.py:
1188
+ New utility: multiple scrolled lists in parallel
1189
+
1190
+ * ScrolledList.py: - White background.
1191
+ - Display "(None)" (or text of your choosing) when empty.
1192
+ - Don't set the focus.
1193
+
1194
+ ======================================================================
1195
+ Python release 1.5.2b2, IDLE version 0.3
1196
+ ======================================================================
1197
+
1198
+ Wed Feb 17 22:47:41 1999 Guido van Rossum <guido@cnri.reston.va.us>
1199
+
1200
+ * NEWS.txt: News in 0.3.
1201
+
1202
+ * README.txt, idlever.py: Bump version to 0.3.
1203
+
1204
+ * EditorWindow.py:
1205
+ After all, we don't need to call the callbacks ourselves!
1206
+
1207
+ * WindowList.py:
1208
+ When deleting, call the callbacks *after* deleting the window from our list!
1209
+
1210
+ * EditorWindow.py:
1211
+ Fix up the Windows menu via the new callback mechanism instead of
1212
+ depending on menu post commands (which don't work when the menu is
1213
+ torn off).
1214
+
1215
+ * WindowList.py:
1216
+ Support callbacks to patch up Windows menus everywhere.
1217
+
1218
+ * ChangeLog: Oh, why not. Checking in the Emacs-generated change log.
1219
+
1220
+ Tue Feb 16 22:34:17 1999 Guido van Rossum <guido@cnri.reston.va.us>
1221
+
1222
+ * ScriptBinding.py:
1223
+ Only pop up the stack viewer when requested in the Debug menu.
1224
+
1225
+ Mon Feb 8 22:27:49 1999 Guido van Rossum <guido@cnri.reston.va.us>
1226
+
1227
+ * WindowList.py: Don't crash if a window no longer exists.
1228
+
1229
+ * TODO.txt: Restructured a bit.
1230
+
1231
+ Mon Feb 1 23:06:17 1999 Guido van Rossum <guido@cnri.reston.va.us>
1232
+
1233
+ * PyShell.py: Add current dir or paths of file args to sys.path.
1234
+
1235
+ * Debugger.py: Add canonic() function -- for brand new bdb.py feature.
1236
+
1237
+ * StackViewer.py: Protect against accessing an empty stack.
1238
+
1239
+ Fri Jan 29 20:44:45 1999 Guido van Rossum <guido@cnri.reston.va.us>
1240
+
1241
+ * ZoomHeight.py:
1242
+ Use only the height to decide whether to zoom in or out.
1243
+
1244
+ Thu Jan 28 22:24:30 1999 Guido van Rossum <guido@cnri.reston.va.us>
1245
+
1246
+ * EditorWindow.py, FileList.py:
1247
+ Make sure the Tcl variables are shared between windows.
1248
+
1249
+ * PyShell.py, EditorWindow.py, Bindings.py:
1250
+ Move menu/key binding code from Bindings.py to EditorWindow.py,
1251
+ with changed APIs -- it makes much more sense there.
1252
+ Also add a new feature: if the first character of a menu label is
1253
+ a '!', it gets a checkbox. Checkboxes are bound to Boolean Tcl variables
1254
+ that can be accessed through the new getvar/setvar/getrawvar API;
1255
+ the variable is named after the event to which the menu is bound.
1256
+
1257
+ * Debugger.py: Add Quit button to the debugger window.
1258
+
1259
+ * SearchDialog.py:
1260
+ When find_again() finds exactly the current selection, it's a failure.
1261
+
1262
+ * idle.py, Attic/idle: Rename idle -> idle.py
1263
+
1264
+ Mon Jan 18 15:18:57 1999 Guido van Rossum <guido@cnri.reston.va.us>
1265
+
1266
+ * EditorWindow.py, WindowList.py: Only deiconify when iconic.
1267
+
1268
+ * TODO.txt: Misc
1269
+
1270
+ Tue Jan 12 22:14:34 1999 Guido van Rossum <guido@cnri.reston.va.us>
1271
+
1272
+ * testcode.py, Attic/test.py:
1273
+ Renamed test.py to testcode.py so one can import Python's
1274
+ test package from inside IDLE. (Suggested by Jack Jansen.)
1275
+
1276
+ * EditorWindow.py, ColorDelegator.py:
1277
+ Hack to close a window that is colorizing.
1278
+
1279
+ * Separator.py: Vladimir Marangozov's patch:
1280
+ The separator dances too much and seems to jump by arbitrary amounts
1281
+ in arbitrary directions when I try to move it for resizing the frames.
1282
+ This patch makes it more quiet.
1283
+
1284
+ Mon Jan 11 14:52:40 1999 Guido van Rossum <guido@cnri.reston.va.us>
1285
+
1286
+ * TODO.txt: Some requests have been fulfilled.
1287
+
1288
+ * EditorWindow.py:
1289
+ Set the cursor to a watch when opening the class browser (which may
1290
+ take quite a while, browsing multiple files).
1291
+
1292
+ Newer, better center() -- but assumes no wrapping.
1293
+
1294
+ * SearchBinding.py:
1295
+ Got rid of debug print statement in goto_line_event().
1296
+
1297
+ * ScriptBinding.py:
1298
+ I think I like it better if it prints the traceback even when it displays
1299
+ the stack viewer.
1300
+
1301
+ * Debugger.py: Bind ESC to close-window.
1302
+
1303
+ * ClassBrowser.py: Use a HSeparator between the classes and the items.
1304
+ Make the list of classes wider by default (40 chars).
1305
+ Bind ESC to close-window.
1306
+
1307
+ * Separator.py:
1308
+ Separator classes (draggable divider between two panes).
1309
+
1310
+ Sat Jan 9 22:01:33 1999 Guido van Rossum <guido@cnri.reston.va.us>
1311
+
1312
+ * WindowList.py:
1313
+ Don't traceback when wakeup() is called when the window has been destroyed.
1314
+ This can happen when a torn-of Windows menu references closed windows.
1315
+ And Tim Peters claims that the Windows menu is his favorite to tear off...
1316
+
1317
+ * EditorWindow.py: Allow tearing off of the Windows menu.
1318
+
1319
+ * StackViewer.py: Close on ESC.
1320
+
1321
+ * help.txt: Updated a bunch of things (it was mostly still 0.1!)
1322
+
1323
+ * extend.py: Added ScriptBinding to standard bindings.
1324
+
1325
+ * ScriptBinding.py:
1326
+ This now actually works. See doc string. It can run a module (i.e.
1327
+ import or reload) or debug it (same with debugger control). Output
1328
+ goes to a fresh output window, only created when needed.
1329
+
1330
+ ======================================================================
1331
+ Python release 1.5.2b1, IDLE version 0.2
1332
+ ======================================================================
1333
+
1334
+ Fri Jan 8 17:26:02 1999 Guido van Rossum <guido@cnri.reston.va.us>
1335
+
1336
+ * README.txt, NEWS.txt: What's new in this release.
1337
+
1338
+ * Bindings.py, PyShell.py:
1339
+ Paul Prescod's patches to allow the stack viewer to pop up when a
1340
+ traceback is printed.
1341
+
1342
+ Thu Jan 7 00:12:15 1999 Guido van Rossum <guido@cnri.reston.va.us>
1343
+
1344
+ * FormatParagraph.py:
1345
+ Change paragraph width limit to 70 (like Emacs M-Q).
1346
+
1347
+ * README.txt:
1348
+ Separating TODO from README. Slight reformulation of features. No
1349
+ exact release date.
1350
+
1351
+ * TODO.txt: Separating TODO from README.
1352
+
1353
+ Mon Jan 4 21:19:09 1999 Guido van Rossum <guido@cnri.reston.va.us>
1354
+
1355
+ * FormatParagraph.py:
1356
+ Hm. There was a boundary condition error at the end of the file too.
1357
+
1358
+ * SearchBinding.py: Hm. Add Unix binding for replace, too.
1359
+
1360
+ * keydefs.py: Ran eventparse.py again.
1361
+
1362
+ * FormatParagraph.py: Added Unix Meta-q key binding;
1363
+ fix find_paragraph when at start of file.
1364
+
1365
+ * AutoExpand.py: Added Meta-/ binding for Unix as alt for Alt-/.
1366
+
1367
+ * SearchBinding.py:
1368
+ Add unix binding for grep (otherwise the menu entry doesn't work!)
1369
+
1370
+ * ZoomHeight.py: Adjusted Unix height to work with fvwm96. :=(
1371
+
1372
+ * GrepDialog.py: Need to import sys!
1373
+
1374
+ * help.txt, extend.txt, README.txt: Formatted some paragraphs
1375
+
1376
+ * extend.py, FormatParagraph.py:
1377
+ Add new extension to reformat a (text) paragraph.
1378
+
1379
+ * ZoomHeight.py: Typo in Win specific height setting.
1380
+
1381
+ Sun Jan 3 00:47:35 1999 Guido van Rossum <guido@cnri.reston.va.us>
1382
+
1383
+ * AutoIndent.py: Added something like Tim Peters' backspace patch.
1384
+
1385
+ * ZoomHeight.py: Adapted to Unix (i.e., more hardcoded constants).
1386
+
1387
+ Sat Jan 2 21:28:54 1999 Guido van Rossum <guido@cnri.reston.va.us>
1388
+
1389
+ * keydefs.py, idlever.py, idle.pyw, idle.bat, help.txt, extend.txt, extend.py, eventparse.py, ZoomHeight.py, WindowList.py, UndoDelegator.py, StackViewer.py, SearchEngine.py, SearchDialogBase.py, SearchDialog.py, ScrolledList.py, SearchBinding.py, ScriptBinding.py, ReplaceDialog.py, Attic/README, README.txt, PyShell.py, Attic/PopupMenu.py, OutputWindow.py, IOBinding.py, Attic/HelpWindow.py, History.py, GrepDialog.py, FileList.py, FrameViewer.py, EditorWindow.py, Debugger.py, Delegator.py, ColorDelegator.py, Bindings.py, ClassBrowser.py, AutoExpand.py, AutoIndent.py:
1390
+ Checking in IDLE 0.2.
1391
+
1392
+ Much has changed -- too much, in fact, to write down.
1393
+ The big news is that there's a standard way to write IDLE extensions;
1394
+ see extend.txt. Some sample extensions have been provided, and
1395
+ some existing code has been converted to extensions. Probably the
1396
+ biggest new user feature is a new search dialog with more options,
1397
+ search and replace, and even search in files (grep).
1398
+
1399
+ This is exactly as downloaded from my laptop after returning
1400
+ from the holidays -- it hasn't even been tested on Unix yet.
1401
+
1402
+ Fri Dec 18 15:52:54 1998 Guido van Rossum <guido@cnri.reston.va.us>
1403
+
1404
+ * FileList.py, ClassBrowser.py:
1405
+ Fix the class browser to work even when the file is not on sys.path.
1406
+
1407
+ Tue Dec 8 20:39:36 1998 Guido van Rossum <guido@cnri.reston.va.us>
1408
+
1409
+ * Attic/turtle.py: Moved to Python 1.5.2/Lib
1410
+
1411
+ Fri Nov 27 03:19:20 1998 Guido van Rossum <guido@cnri.reston.va.us>
1412
+
1413
+ * help.txt: Typo
1414
+
1415
+ * EditorWindow.py, FileList.py: Support underlining of menu labels
1416
+
1417
+ * Bindings.py:
1418
+ New approach, separate tables for menus (platform-independent) and key
1419
+ definitions (platform-specific), and generating accelerator strings
1420
+ automatically from the key definitions.
1421
+
1422
+ Mon Nov 16 18:37:42 1998 Guido van Rossum <guido@cnri.reston.va.us>
1423
+
1424
+ * Attic/README: Clarify portability and main program.
1425
+
1426
+ * Attic/README: Added intro for 0.1 release and append Grail notes.
1427
+
1428
+ Mon Oct 26 18:49:00 1998 Guido van Rossum <guido@cnri.reston.va.us>
1429
+
1430
+ * Attic/turtle.py: root is now a global called _root
1431
+
1432
+ Sat Oct 24 16:38:38 1998 Guido van Rossum <guido@cnri.reston.va.us>
1433
+
1434
+ * Attic/turtle.py: Raise the root window on reset().
1435
+ Different action on WM_DELETE_WINDOW is more likely to do the right thing,
1436
+ allowing us to destroy old windows.
1437
+
1438
+ * Attic/turtle.py:
1439
+ Split the goto() function in two: _goto() is the internal one,
1440
+ using Canvas coordinates, and goto() uses turtle coordinates
1441
+ and accepts variable argument lists.
1442
+
1443
+ * Attic/turtle.py: Cope with destruction of the window
1444
+
1445
+ * Attic/turtle.py: Turtle graphics
1446
+
1447
+ * Debugger.py: Use of Breakpoint class should be bdb.Breakpoint.
1448
+
1449
+ Mon Oct 19 03:33:40 1998 Guido van Rossum <guido@cnri.reston.va.us>
1450
+
1451
+ * SearchBinding.py:
1452
+ Speed up the search a bit -- don't drag a mark around...
1453
+
1454
+ * PyShell.py:
1455
+ Change our special entries from <console#N> to <pyshell#N>.
1456
+ Patch linecache.checkcache() to keep our special entries alive.
1457
+ Add popup menu to all editor windows to set a breakpoint.
1458
+
1459
+ * Debugger.py:
1460
+ Use and pass through the 'force' flag to set_dict() where appropriate.
1461
+ Default source and globals checkboxes to false.
1462
+ Don't interact in user_return().
1463
+ Add primitive set_breakpoint() method.
1464
+
1465
+ * ColorDelegator.py:
1466
+ Raise priority of 'sel' tag so its foreground (on Windows) will take
1467
+ priority over text colorization (which on Windows is almost the
1468
+ same color as the selection background).
1469
+
1470
+ Define a tag and color for breakpoints ("BREAK").
1471
+
1472
+ * Attic/PopupMenu.py: Disable "Open stack viewer" and "help" commands.
1473
+
1474
+ * StackViewer.py:
1475
+ Add optional 'force' argument (default 0) to load_dict().
1476
+ If set, redo the display even if it's the same dict.
1477
+
1478
+ Fri Oct 16 21:10:12 1998 Guido van Rossum <guido@cnri.reston.va.us>
1479
+
1480
+ * StackViewer.py: Do nothing when loading the same dict as before.
1481
+
1482
+ * PyShell.py: Details for debugger interface.
1483
+
1484
+ * Debugger.py:
1485
+ Restructured and more consistent. Save checkboxes across instantiations.
1486
+
1487
+ * EditorWindow.py, Attic/README, Bindings.py:
1488
+ Get rid of conflicting ^X binding. Use ^W.
1489
+
1490
+ * Debugger.py, StackViewer.py:
1491
+ Debugger can now show local and global variables.
1492
+
1493
+ * Debugger.py: Oops
1494
+
1495
+ * Debugger.py, PyShell.py: Better debugger support (show stack etc).
1496
+
1497
+ * Attic/PopupMenu.py: Follow renames in StackViewer module
1498
+
1499
+ * StackViewer.py:
1500
+ Rename classes to StackViewer (the widget) and StackBrowser (the toplevel).
1501
+
1502
+ * ScrolledList.py: Add close() method
1503
+
1504
+ * EditorWindow.py: Clarify 'Open Module' dialog text
1505
+
1506
+ * StackViewer.py: Restructured into a browser and a widget.
1507
+
1508
+ Thu Oct 15 23:27:08 1998 Guido van Rossum <guido@cnri.reston.va.us>
1509
+
1510
+ * ClassBrowser.py, ScrolledList.py:
1511
+ Generalized the scrolled list which is the base for the class and
1512
+ method browser into a separate class in its own module.
1513
+
1514
+ * Attic/test.py: Cosmetic change
1515
+
1516
+ * Debugger.py: Don't show function name if there is none
1517
+
1518
+ Wed Oct 14 03:43:05 1998 Guido van Rossum <guido@cnri.reston.va.us>
1519
+
1520
+ * Debugger.py, PyShell.py: Polish the Debugger GUI a bit.
1521
+ Closing it now also does the right thing.
1522
+
1523
+ Tue Oct 13 23:51:13 1998 Guido van Rossum <guido@cnri.reston.va.us>
1524
+
1525
+ * Debugger.py, PyShell.py, Bindings.py:
1526
+ Ad primitive debugger interface (so far it will step and show you the
1527
+ source, but it doesn't yet show the stack).
1528
+
1529
+ * Attic/README: Misc
1530
+
1531
+ * StackViewer.py: Whoops -- referenced self.top before it was set.
1532
+
1533
+ * help.txt: Added history and completion commands.
1534
+
1535
+ * help.txt: Updated
1536
+
1537
+ * FileList.py: Add class browser functionality.
1538
+
1539
+ * StackViewer.py:
1540
+ Add a close() method and bind to WM_DELETE_WINDOW protocol
1541
+
1542
+ * PyShell.py: Clear the linecache before printing a traceback
1543
+
1544
+ * Bindings.py: Added class browser binding.
1545
+
1546
+ * ClassBrowser.py: Much improved, much left to do.
1547
+
1548
+ * PyShell.py: Make the return key do what I mean more often.
1549
+
1550
+ * ClassBrowser.py:
1551
+ Adding the beginnings of a Class browser. Incomplete, yet.
1552
+
1553
+ * EditorWindow.py, Bindings.py:
1554
+ Add new command, "Open module". You select or type a module name,
1555
+ and it opens the source.
1556
+
1557
+ Mon Oct 12 23:59:27 1998 Guido van Rossum <guido@cnri.reston.va.us>
1558
+
1559
+ * PyShell.py: Subsume functionality from Popup menu in Debug menu.
1560
+ Other stuff so the PyShell window can be resurrected from the Windows menu.
1561
+
1562
+ * FileList.py: Get rid of PopUp menu.
1563
+ Create a simple Windows menu. (Imperfect when Untitled windows exist.)
1564
+ Add wakeup() method: deiconify, raise, focus.
1565
+
1566
+ * EditorWindow.py: Generalize menu creation.
1567
+
1568
+ * Bindings.py: Add Debug and Help menu items.
1569
+
1570
+ * EditorWindow.py: Added a menu bar to every window.
1571
+
1572
+ * Bindings.py: Add menu configuration to the event configuration.
1573
+
1574
+ * Attic/PopupMenu.py: Pass a root to the help window.
1575
+
1576
+ * SearchBinding.py:
1577
+ Add parent argument to 'go to line number' dialog box.
1578
+
1579
+ Sat Oct 10 19:15:32 1998 Guido van Rossum <guido@cnri.reston.va.us>
1580
+
1581
+ * StackViewer.py:
1582
+ Add a label at the top showing (very basic) help for the stack viewer.
1583
+ Add a label at the bottom showing the exception info.
1584
+
1585
+ * Attic/test.py, Attic/idle: Add Unix main script and test program.
1586
+
1587
+ * idle.pyw, help.txt, WidgetRedirector.py, UndoDelegator.py, StackViewer.py, SearchBinding.py, Attic/README, PyShell.py, Attic/PopupMenu.py, Percolator.py, Outline.py, IOBinding.py, History.py, Attic/HelpWindow.py, FrameViewer.py, FileList.py, EditorWindow.py, Delegator.py, ColorDelegator.py, Bindings.py, AutoIndent.py, AutoExpand.py:
1588
+ Initial checking of Tk-based Python IDE.
1589
+ Features: text editor with syntax coloring and undo;
1590
+ subclassed into interactive Python shell which adds history.
1591
+
parrot/lib/python3.10/idlelib/NEWS2x.txt ADDED
@@ -0,0 +1,660 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ What's New in IDLE 2.7? (Merged into 3.1 before 2.7 release.)
2
+ =======================
3
+ *Release date: XX-XXX-2010*
4
+
5
+ - idle.py modified and simplified to better support developing experimental
6
+ versions of IDLE which are not installed in the standard location.
7
+
8
+ - OutputWindow/PyShell right click menu "Go to file/line" wasn't working with
9
+ file paths containing spaces. Bug 5559.
10
+
11
+ - Windows: Version string for the .chm help file changed, file not being
12
+ accessed Patch 5783 Guilherme Polo
13
+
14
+ - Allow multiple IDLE GUI/subprocess pairs to exist simultaneously. Thanks to
15
+ David Scherer for suggesting the use of an ephemeral port for the GUI.
16
+ Patch 1529142 Weeble.
17
+
18
+ - Remove port spec from run.py and fix bug where subprocess fails to
19
+ extract port from command line when warnings are present.
20
+
21
+ - Tk 8.5 Text widget requires 'wordprocessor' tabstyle attr to handle
22
+ mixed space/tab properly. Issue 5129, patch by Guilherme Polo.
23
+
24
+ - Issue #3549: On MacOS the preferences menu was not present
25
+
26
+ - IDLE would print a "Unhandled server exception!" message when internal
27
+ debugging is enabled.
28
+
29
+ - Issue #4455: IDLE failed to display the windows list when two windows have
30
+ the same title.
31
+
32
+ - Issue #4383: When IDLE cannot make the connection to its subprocess, it would
33
+ fail to properly display the error message.
34
+
35
+ - help() was not paging to the shell. Issue1650.
36
+
37
+ - CodeContext was not importing.
38
+
39
+ - Corrected two 3.0 compatibility errors reported by Mark Summerfield:
40
+ http://mail.python.org/pipermail/python-3000/2007-December/011491.html
41
+
42
+ - Shell was not colorizing due to bug introduced at r57998, Bug 1586.
43
+
44
+ - Issue #1585: IDLE uses non-existent xrange() function.
45
+
46
+ - Windows EOL sequence not converted correctly, encoding error.
47
+ Caused file save to fail. Bug 1130.
48
+
49
+ - IDLE converted to Python 3000 syntax.
50
+
51
+ - Strings became Unicode.
52
+
53
+ - CallTips module now uses the inspect module to produce the argspec.
54
+
55
+ - IDLE modules now use absolute import instead of implied relative import.
56
+
57
+ - atexit call replaces sys.exitfunc. The functionality of delete-exitfunc flag
58
+ in config-main.cfg remains unchanged: if set, registered exit functions will
59
+ be cleared before IDLE exits.
60
+
61
+
62
+ What's New in IDLE 2.6
63
+ ======================
64
+ *Release date: 01-Oct-2008*, merged into 3.0 releases detailed above (3.0rc2)
65
+
66
+ - Issue #2665: On Windows, an IDLE installation upgraded from an old version
67
+ would not start if a custom theme was defined.
68
+
69
+ - Home / Control-A toggles between left margin and end of leading white
70
+ space. issue1196903, patch by Jeff Shute.
71
+
72
+ - Improved AutoCompleteWindow logic. issue2062, patch by Tal Einat.
73
+
74
+ - Autocompletion of filenames now support alternate separators, e.g. the
75
+ '/' char on Windows. issue2061 Patch by Tal Einat.
76
+
77
+ - Configured selection highlighting colors were ignored; updating highlighting
78
+ in the config dialog would cause non-Python files to be colored as if they
79
+ were Python source; improve use of ColorDelagator. Patch 1334. Tal Einat.
80
+
81
+ - ScriptBinding event handlers weren't returning 'break'. Patch 2050, Tal Einat
82
+
83
+ - There was an error on exit if no sys.exitfunc was defined. Issue 1647.
84
+
85
+ - Could not open files in .idlerc directory if latter was hidden on Windows.
86
+ Issue 1743, Issue 1862.
87
+
88
+ - Configure Dialog: improved layout for keybinding. Patch 1457 Tal Einat.
89
+
90
+ - tabpage.py updated: tabbedPages.py now supports multiple dynamic rows
91
+ of tabs. Patch 1612746 Tal Einat.
92
+
93
+ - Add confirmation dialog before printing. Patch 1717170 Tal Einat.
94
+
95
+ - Show paste position if > 80 col. Patch 1659326 Tal Einat.
96
+
97
+ - Update cursor color without restarting. Patch 1725576 Tal Einat.
98
+
99
+ - Allow keyboard interrupt only when user code is executing in subprocess.
100
+ Patch 1225 Tal Einat (reworked from IDLE-Spoon).
101
+
102
+ - configDialog cleanup. Patch 1730217 Tal Einat.
103
+
104
+ - textView cleanup. Patch 1718043 Tal Einat.
105
+
106
+ - Clean up EditorWindow close.
107
+
108
+ - Patch 1693258: Fix for duplicate "preferences" menu-OS X. Backport of r56204.
109
+
110
+ - OSX: Avoid crash for those versions of Tcl/Tk which don't have a console
111
+
112
+ - Bug in idlelib.MultiCall: Options dialog was crashing IDLE if there was an
113
+ option in config-extensions w/o a value. Patch #1672481, Tal Einat
114
+
115
+ - Corrected some bugs in AutoComplete. Also, Page Up/Down in ACW implemented;
116
+ mouse and cursor selection in ACWindow implemented; double Tab inserts
117
+ current selection and closes ACW (similar to double-click and Return); scroll
118
+ wheel now works in ACW. Added AutoComplete instructions to IDLE Help.
119
+
120
+ - AutoCompleteWindow moved below input line, will move above if there
121
+ isn't enough space. Patch 1621265 Tal Einat
122
+
123
+ - Calltips now 'handle' tuples in the argument list (display '<tuple>' :)
124
+ Suggested solution by Christos Georgiou, Bug 791968.
125
+
126
+ - Add 'raw' support to configHandler. Patch 1650174 Tal Einat.
127
+
128
+ - Avoid hang when encountering a duplicate in a completion list. Bug 1571112.
129
+
130
+ - Patch #1362975: Rework CodeContext indentation algorithm to
131
+ avoid hard-coding pixel widths.
132
+
133
+ - Bug #813342: Start the IDLE subprocess with -Qnew if the parent
134
+ is started with that option.
135
+
136
+ - Honor the "Cancel" action in the save dialog (Debian bug #299092)
137
+
138
+ - Some syntax errors were being caught by tokenize during the tabnanny
139
+ check, resulting in obscure error messages. Do the syntax check
140
+ first. Bug 1562716, 1562719
141
+
142
+ - IDLE's version number takes a big jump to match the version number of
143
+ the Python release of which it's a part.
144
+
145
+
146
+ What's New in IDLE 1.2?
147
+ =======================
148
+ *Release date: 19-SEP-2006*
149
+
150
+ - File menu hotkeys: there were three 'p' assignments. Reassign the
151
+ 'Save Copy As' and 'Print' hotkeys to 'y' and 't'. Change the
152
+ Shell hotkey from 's' to 'l'.
153
+
154
+ - IDLE honors new quit() and exit() commands from site.py Quitter() object.
155
+ Patch 1540892, Jim Jewett
156
+
157
+ - The 'with' statement is now a Code Context block opener.
158
+ Patch 1540851, Jim Jewett
159
+
160
+ - Retrieval of previous shell command was not always preserving indentation
161
+ (since 1.2a1) Patch 1528468 Tal Einat.
162
+
163
+ - Changing tokenize (39046) to detect dedent broke tabnanny check (since 1.2a1)
164
+
165
+ - ToggleTab dialog was setting indent to 8 even if cancelled (since 1.2a1).
166
+
167
+ - When used w/o subprocess, all exceptions were preceded by an error
168
+ message claiming they were IDLE internal errors (since 1.2a1).
169
+
170
+ - Bug #1525817: Don't truncate short lines in IDLE's tool tips.
171
+
172
+ - Bug #1517990: IDLE keybindings on MacOS X now work correctly
173
+
174
+ - Bug #1517996: IDLE now longer shows the default Tk menu when a
175
+ path browser, class browser or debugger is the frontmost window on MacOS X
176
+
177
+ - EditorWindow.test() was failing. Bug 1417598
178
+
179
+ - EditorWindow failed when used stand-alone if sys.ps1 not set.
180
+ Bug 1010370 Dave Florek
181
+
182
+ - Tooltips failed on new-syle class __init__ args. Bug 1027566 Loren Guthrie
183
+
184
+ - Avoid occasional failure to detect closing paren properly.
185
+ Patch 1407280 Tal Einat
186
+
187
+ - Rebinding Tab key was inserting 'tab' instead of 'Tab'. Bug 1179168.
188
+
189
+ - Colorizer now handles #<builtin> correctly, also unicode strings and
190
+ 'as' keyword in comment directly following import command. Closes 1325071.
191
+ Patch 1479219 Tal Einat
192
+
193
+ - Patch #1162825: Support non-ASCII characters in IDLE window titles.
194
+
195
+ - Source file f.flush() after writing; trying to avoid lossage if user
196
+ kills GUI.
197
+
198
+ - Options / Keys / Advanced dialog made functional. Also, allow binding
199
+ of 'movement' keys.
200
+
201
+ - 'syntax' patch adds improved calltips and a new class attribute listbox.
202
+ MultiCall module allows binding multiple actions to an event.
203
+ Patch 906702 Noam Raphael
204
+
205
+ - Better indentation after first line of string continuation.
206
+ IDLEfork Patch 681992, Noam Raphael
207
+
208
+ - Fixed CodeContext alignment problem, following suggestion from Tal Einat.
209
+
210
+ - Increased performance in CodeContext extension Patch 936169 Noam Raphael
211
+
212
+ - Mac line endings were incorrect when pasting code from some browsers
213
+ when using X11 and the Fink distribution. Python Bug 1263656.
214
+
215
+ - <Enter> when cursor is on a previous command retrieves that command. Instead
216
+ of replacing the input line, the previous command is now appended to the
217
+ input line. Indentation is preserved, and undo is enabled.
218
+ Patch 1196917 Jeff Shute
219
+
220
+ - Clarify "tab/space" Error Dialog and "Tab Width" Dialog associated with
221
+ the Untabify command.
222
+
223
+ - Corrected "tab/space" Error Dialog to show correct menu for Untabify.
224
+ Patch 1196980 Jeff Shute
225
+
226
+ - New files are colorized by default, and colorizing is removed when
227
+ saving as non-Python files. Patch 1196895 Jeff Shute
228
+ Closes Python Bugs 775012 and 800432, partial fix IDLEfork 763524
229
+
230
+ - Improve subprocess link error notification.
231
+
232
+ - run.py: use Queue's blocking feature instead of sleeping in the main
233
+ loop. Patch # 1190163 Michiel de Hoon
234
+
235
+ - Add config-main option to make the 'history' feature non-cyclic.
236
+ Default remains cyclic. Python Patch 914546 Noam Raphael.
237
+
238
+ - Removed ability to configure tabs indent from Options dialog. This 'feature'
239
+ has never worked and no one has complained. It is still possible to set a
240
+ default tabs (v. spaces) indent 'manually' via config-main.def (or to turn on
241
+ tabs for the current EditorWindow via the Format menu) but IDLE will
242
+ encourage indentation via spaces.
243
+
244
+ - Enable setting the indentation width using the Options dialog.
245
+ Bug # 783877
246
+
247
+ - Add keybindings for del-word-left and del-word-right.
248
+
249
+ - Discourage using an indent width other than 8 when using tabs to indent
250
+ Python code.
251
+
252
+ - Restore use of EditorWindow.set_indentation_params(), was dead code since
253
+ Autoindent was merged into EditorWindow. This allows IDLE to conform to the
254
+ indentation width of a loaded file. (But it still will not switch to tabs
255
+ even if the file uses tabs.) Any change in indent width is local to that
256
+ window.
257
+
258
+ - Add Tabnanny check before Run/F5, not just when Checking module.
259
+
260
+ - If an extension can't be loaded, print warning and skip it instead of
261
+ erroring out.
262
+
263
+ - Improve error handling when .idlerc can't be created (warn and exit).
264
+
265
+ - The GUI was hanging if the shell window was closed while a raw_input()
266
+ was pending. Restored the quit() of the readline() mainloop().
267
+ http://mail.python.org/pipermail/idle-dev/2004-December/002307.html
268
+
269
+ - The remote procedure call module rpc.py can now access data attributes of
270
+ remote registered objects. Changes to these attributes are local, however.
271
+
272
+
273
+ What's New in IDLE 1.1?
274
+ =======================
275
+ *Release date: 30-NOV-2004*
276
+
277
+ - On OpenBSD, terminating IDLE with ctrl-c from the command line caused a
278
+ stuck subprocess MainThread because only the SocketThread was exiting.
279
+
280
+ - Saving a Keyset w/o making changes (by using the "Save as New Custom Key Set"
281
+ button) caused IDLE to fail on restart (no new keyset was created in
282
+ config-keys.cfg). Also true for Theme/highlights. Python Bug 1064535.
283
+
284
+ - A change to the linecache.py API caused IDLE to exit when an exception was
285
+ raised while running without the subprocess (-n switch). Python Bug 1063840.
286
+
287
+ - When paragraph reformat width was made configurable, a bug was
288
+ introduced that caused reformatting of comment blocks to ignore how
289
+ far the block was indented, effectively adding the indentation width
290
+ to the reformat width. This has been repaired, and the reformat
291
+ width is again a bound on the total width of reformatted lines.
292
+
293
+ - Improve keyboard focus binding, especially in Windows menu. Improve
294
+ window raising, especially in the Windows menu and in the debugger.
295
+ IDLEfork 763524.
296
+
297
+ - If user passes a non-existent filename on the commandline, just
298
+ open a new file, don't raise a dialog. IDLEfork 854928.
299
+
300
+ - EditorWindow.py was not finding the .chm help file on Windows. Typo
301
+ at Rev 1.54. Python Bug 990954
302
+
303
+ - checking sys.platform for substring 'win' was breaking IDLE docs on Mac
304
+ (darwin). Also, Mac Safari browser requires full file:// URIs. SF 900580.
305
+
306
+ - Redirect the warning stream to the shell during the ScriptBinding check of
307
+ user code and format the warning similarly to an exception for both that
308
+ check and for runtime warnings raised in the subprocess.
309
+
310
+ - CodeContext hint pane visibility state is now persistent across sessions.
311
+ The pane no longer appears in the shell window. Added capability to limit
312
+ extensions to shell window or editor windows. Noam Raphael addition
313
+ to Patch 936169.
314
+
315
+ - Paragraph reformat width is now a configurable parameter in the
316
+ Options GUI.
317
+
318
+ - New Extension: CodeContext. Provides block structuring hints for code
319
+ which has scrolled above an edit window. Patch 936169 Noam Raphael.
320
+
321
+ - If nulls somehow got into the strings in recent-files.lst
322
+ EditorWindow.update_recent_files_list() was failing. Python Bug 931336.
323
+
324
+ - If the normal background is changed via Configure/Highlighting, it will
325
+ update immediately, thanks to the previously mentioned patch by Nigel Rowe.
326
+
327
+ - Add a highlight theme for builtin keywords. Python Patch 805830 Nigel Rowe
328
+ This also fixed IDLEfork bug [ 693418 ] Normal text background color not
329
+ refreshed and Python bug [897872 ] Unknown color name on HP-UX
330
+
331
+ - rpc.py:SocketIO - Large modules were generating large pickles when downloaded
332
+ to the execution server. The return of the OK response from the subprocess
333
+ initialization was interfering and causing the sending socket to be not
334
+ ready. Add an IO ready test to fix this. Moved the polling IO ready test
335
+ into pollpacket().
336
+
337
+ - Fix typo in rpc.py, s/b "pickle.PicklingError" not "pickle.UnpicklingError".
338
+
339
+ - Added a Tk error dialog to run.py inform the user if the subprocess can't
340
+ connect to the user GUI process. Added a timeout to the GUI's listening
341
+ socket. Added Tk error dialogs to PyShell.py to announce a failure to bind
342
+ the port or connect to the subprocess. Clean up error handling during
343
+ connection initiation phase. This is an update of Python Patch 778323.
344
+
345
+ - Print correct exception even if source file changed since shell was
346
+ restarted. IDLEfork Patch 869012 Noam Raphael
347
+
348
+ - Keybindings with the Shift modifier now work correctly. So do bindings which
349
+ use the Space key. Limit unmodified user keybindings to the function keys.
350
+ Python Bug 775353, IDLEfork Bugs 755647, 761557
351
+
352
+ - After an exception, run.py was not setting the exception vector. Noam
353
+ Raphael suggested correcting this so pdb's postmortem pm() would work.
354
+ IDLEfork Patch 844675
355
+
356
+ - IDLE now does not fail to save the file anymore if the Tk buffer is not a
357
+ Unicode string, yet eol_convention is. Python Bugs 774680, 788378
358
+
359
+ - IDLE didn't start correctly when Python was installed in "Program Files" on
360
+ W2K and XP. Python Bugs 780451, 784183
361
+
362
+ - config-main.def documentation incorrectly referred to idle- instead of
363
+ config- filenames. SF 782759 Also added note about .idlerc location.
364
+
365
+
366
+ What's New in IDLE 1.0?
367
+ =======================
368
+ *Release date: 29-Jul-2003*
369
+
370
+ - Added a banner to the shell discussing warnings possibly raised by personal
371
+ firewall software. Added same comment to README.txt.
372
+
373
+ - Calltip error when docstring was None Python Bug 775541
374
+
375
+ - Updated extend.txt, help.txt, and config-extensions.def to correctly
376
+ reflect the current status of the configuration system. Python Bug 768469
377
+
378
+ - Fixed: Call Tip Trimming May Loop Forever. Python Patch 769142 (Daniels)
379
+
380
+ - Replaced apply(f, args, kwds) with f(*args, **kwargs) to improve performance
381
+ Python Patch 768187
382
+
383
+ - Break or continue statements outside a loop were causing IDLE crash
384
+ Python Bug 767794
385
+
386
+ - Convert Unicode strings from readline to IOBinding.encoding. Also set
387
+ sys.std{in|out|err}.encoding, for both the local and the subprocess case.
388
+ SF IDLEfork patch 682347.
389
+
390
+ - Extend AboutDialog.ViewFile() to support file encodings. Make the CREDITS
391
+ file Latin-1.
392
+
393
+ - Updated the About dialog to reflect re-integration into Python. Provide
394
+ buttons to display Python's NEWS, License, and Credits, plus additional
395
+ buttons for IDLE's README and NEWS.
396
+
397
+ - TextViewer() now has a third parameter which allows inserting text into the
398
+ viewer instead of reading from a file.
399
+
400
+ - (Created the .../Lib/idlelib directory in the Python CVS, which is a clone of
401
+ IDLEfork modified to install in the Python environment. The code in the
402
+ interrupt module has been moved to thread.interrupt_main(). )
403
+
404
+ - Printing the Shell window was failing if it was not saved first SF 748975
405
+
406
+ - When using the Search in Files dialog, if the user had a selection
407
+ highlighted in his Editor window, insert it into the dialog search field.
408
+
409
+ - The Python Shell entry was disappearing from the Windows menu.
410
+
411
+ - Update the Windows file list when a file name change occurs
412
+
413
+ - Change to File / Open Module: always pop up the dialog, using the current
414
+ selection as the default value. This is easier to use habitually.
415
+
416
+ - Avoided a problem with starting the subprocess when 'localhost' doesn't
417
+ resolve to the user's loopback interface. SF 747772
418
+
419
+ - Fixed an issue with highlighted errors never de-colorizing. SF 747677. Also
420
+ improved notification of Tabnanny Token Error.
421
+
422
+ - File / New will by default save in the directory of the Edit window from
423
+ which it was initiated. SF 748973 Guido van Rossum patch.
424
+
425
+
426
+ What's New in IDLEfork 0.9b1?
427
+ =============================
428
+ *Release date: 02-Jun-2003*
429
+
430
+ - The current working directory of the execution environment (and shell
431
+ following completion of execution) is now that of the module being run.
432
+
433
+ - Added the delete-exitfunc option to config-main.def. (This option is not
434
+ included in the Options dialog.) Setting this to True (the default) will
435
+ cause IDLE to not run sys.exitfunc/atexit when the subprocess exits.
436
+
437
+ - IDLE now preserves the line ending codes when editing a file produced on
438
+ a different platform. SF 661759, SF 538584
439
+
440
+ - Reduced default editor font size to 10 point and increased window height
441
+ to provide a better initial impression on Windows.
442
+
443
+ - Options / Fonts/Tabs / Set Base Editor Font: List box was not highlighting
444
+ the default font when first installed on Windows. SF 661676
445
+
446
+ - Added Autosave feature: when user runs code from edit window, if the file
447
+ has been modified IDLE will silently save it if Autosave is enabled. The
448
+ option is set in the Options dialog, and the default is to prompt the
449
+ user to save the file. SF 661318 Bruce Sherwood patch.
450
+
451
+ - Improved the RESTART annotation in the shell window when the user restarts
452
+ the shell while it is generating output. Also improved annotation when user
453
+ repeatedly hammers the Ctrl-F6 restart.
454
+
455
+ - Allow IDLE to run when not installed and cwd is not the IDLE directory
456
+ SF Patch 686254 "Run IDLEfork from any directory without set-up" - Raphael
457
+
458
+ - When a module is run from an EditorWindow: if its directory is not in
459
+ sys.path, prepend it. This allows the module to import other modules in
460
+ the same directory. Do the same for a script run from the command line.
461
+
462
+ - Correctly restart the subprocess if it is running user code and the user
463
+ attempts to run some other module or restarts the shell. Do the same if
464
+ the link is broken and it is possible to restart the subprocess and re-
465
+ connect to the GUI. SF RFE 661321.
466
+
467
+ - Improved exception reporting when running commands or scripts from the
468
+ command line.
469
+
470
+ - Added a -n command line switch to start IDLE without the subprocess.
471
+ Removed the Shell menu when running in that mode. Updated help messages.
472
+
473
+ - Added a comment to the shell startup header to indicate when IDLE is not
474
+ using the subprocess.
475
+
476
+ - Restore the ability to run without the subprocess. This can be important for
477
+ some platforms or configurations. (Running without the subprocess allows the
478
+ debugger to trace through parts of IDLE itself, which may or may not be
479
+ desirable, depending on your point of view. In addition, the traditional
480
+ reload/import tricks must be use if user source code is changed.) This is
481
+ helpful for developing IDLE using IDLE, because one instance can be used to
482
+ edit the code and a separate instance run to test changes. (Multiple
483
+ concurrent IDLE instances with subprocesses is a future feature)
484
+
485
+ - Improve the error message a user gets when saving a file with non-ASCII
486
+ characters and no source encoding is specified. Done by adding a dialog
487
+ 'EncodingMessage', which contains the line to add in a fixed-font entry
488
+ widget, and which has a button to add that line to the file automatically.
489
+ Also, add a configuration option 'EditorWindow/encoding', which has three
490
+ possible values: none, utf-8, and locale. None is the default: IDLE will show
491
+ this dialog when non-ASCII characters are encountered. utf-8 means that files
492
+ with non-ASCII characters are saved as utf-8-with-bom. locale means that
493
+ files are saved in the locale's encoding; the dialog is only displayed if the
494
+ source contains characters outside the locale's charset. SF 710733 - Loewis
495
+
496
+ - Improved I/O response by tweaking the wait parameter in various
497
+ calls to signal.signal().
498
+
499
+ - Implemented a threaded subprocess which allows interrupting a pass
500
+ loop in user code using the 'interrupt' extension. User code runs
501
+ in MainThread, while the RPCServer is handled by SockThread. This is
502
+ necessary because Windows doesn't support signals.
503
+
504
+ - Implemented the 'interrupt' extension module, which allows a subthread
505
+ to raise a KeyboardInterrupt in the main thread.
506
+
507
+ - Attempting to save the shell raised an error related to saving
508
+ breakpoints, which are not implemented in the shell
509
+
510
+ - Provide a correct message when 'exit' or 'quit' are entered at the
511
+ IDLE command prompt SF 695861
512
+
513
+ - Eliminate extra blank line in shell output caused by not flushing
514
+ stdout when user code ends with an unterminated print. SF 695861
515
+
516
+ - Moved responsibility for exception formatting (i.e. pruning IDLE internal
517
+ calls) out of rpc.py into the client and server.
518
+
519
+ - Exit IDLE cleanly even when doing subprocess I/O
520
+
521
+ - Handle subprocess interrupt with an RPC message.
522
+
523
+ - Restart the subprocess if it terminates itself. (VPython programs do that)
524
+
525
+ - Support subclassing of exceptions, including in the shell, by moving the
526
+ exception formatting to the subprocess.
527
+
528
+
529
+ What's New in IDLEfork 0.9 Alpha 2?
530
+ ===================================
531
+ *Release date: 27-Jan-2003*
532
+
533
+ - Updated INSTALL.txt to claify use of the python2 rpm.
534
+
535
+ - Improved formatting in IDLE Help.
536
+
537
+ - Run menu: Replace "Run Script" with "Run Module".
538
+
539
+ - Code encountering an unhandled exception under the debugger now shows
540
+ the correct traceback, with IDLE internal levels pruned out.
541
+
542
+ - If an exception occurs entirely in IDLE, don't prune the IDLE internal
543
+ modules from the traceback displayed.
544
+
545
+ - Class Browser and Path Browser now use Alt-Key-2 for vertical zoom.
546
+
547
+ - IDLE icons will now install correctly even when setup.py is run from the
548
+ build directory
549
+
550
+ - Class Browser now compatible with Python2.3 version of pyclbr.py
551
+
552
+ - Left cursor move in presence of selected text now moves from left end
553
+ of the selection.
554
+
555
+ - Add Meta keybindings to "IDLE Classic Windows" to handle reversed
556
+ Alt/Meta on some Linux distros.
557
+
558
+ - Change default: IDLE now starts with Python Shell.
559
+
560
+ - Removed the File Path from the Additional Help Sources scrolled list.
561
+
562
+ - Add capability to access Additional Help Sources on the web if the
563
+ Help File Path begins with //http or www. (Otherwise local path is
564
+ validated, as before.)
565
+
566
+ - Additional Help Sources were not being posted on the Help menu in the
567
+ order entered. Implement sorting the list by [HelpFiles] 'option'
568
+ number.
569
+
570
+ - Add Browse button to New Help Source dialog. Arrange to start in
571
+ Python/Doc if platform is Windows, otherwise start in current directory.
572
+
573
+ - Put the Additional Help Sources directly on the Help menu instead of in
574
+ an Extra Help cascade menu. Rearrange the Help menu so the Additional
575
+ Help Sources come last. Update help.txt appropriately.
576
+
577
+ - Fix Tk root pop-ups in configSectionNameDialog.py and configDialog.py
578
+
579
+ - Uniform capitalization in General tab of ConfigDialog, update the doc string.
580
+
581
+ - Fix bug in ConfigDialog where SaveAllChangedConfig() was unexpectedly
582
+ deleting Additional Help Sources from the user's config file.
583
+
584
+ - Make configHelpSourceEdit OK button the default and bind <Return>
585
+
586
+ - Fix Tk root pop-ups in configHelpSourceEdit: error dialogs not attached
587
+ to parents.
588
+
589
+ - Use os.startfile() to open both Additional Help and Python Help on the
590
+ Windows platform. The application associated with the file type will act as
591
+ the viewer. Windows help files (.chm) are now supported via the
592
+ Settings/General/Additional Help facility.
593
+
594
+ - If Python Help files are installed locally on Linux, use them instead of
595
+ accessing python.org.
596
+
597
+ - Make the methods for finding the Python help docs more robust, and make
598
+ them work in the installed configuration, also.
599
+
600
+ - On the Save Before Run dialog, make the OK button the default. One
601
+ less mouse action!
602
+
603
+ - Add a method: EditorWindow.get_geometry() for future use in implementing
604
+ window location persistence.
605
+
606
+ - Removed the "Help/Advice" menu entry. Thanks, David! We'll remember!
607
+
608
+ - Change the "Classic Windows" theme's paste key to be <ctrl-v>.
609
+
610
+ - Rearrange the Shell menu to put Stack Viewer entries adjacent.
611
+
612
+ - Add the ability to restart the subprocess interpreter from the shell window;
613
+ add an associated menu entry "Shell/Restart" with binding Control-F6. Update
614
+ IDLE help.
615
+
616
+ - Upon a restart, annotate the shell window with a "restart boundary". Add a
617
+ shell window menu "Shell/View Restart" with binding F6 to jump to the most
618
+ recent restart boundary.
619
+
620
+ - Add Shell menu to Python Shell; change "Settings" to "Options".
621
+
622
+ - Remove incorrect comment in setup.py: IDLEfork is now installed as a package.
623
+
624
+ - Add INSTALL.txt, HISTORY.txt, NEWS.txt to installed configuration.
625
+
626
+ - In installer text, fix reference to Visual Python, should be VPython.
627
+ Properly credit David Scherer.
628
+
629
+ - Modified idle, idle.py, idle.pyw to improve exception handling.
630
+
631
+
632
+ What's New in IDLEfork 0.9 Alpha 1?
633
+ ===================================
634
+ *Release date: 31-Dec-2002*
635
+
636
+ - First release of major new functionality. For further details refer to
637
+ Idle-dev and/or the Sourceforge CVS.
638
+
639
+ - Adapted to the Mac platform.
640
+
641
+ - Overhauled the IDLE startup options and revised the idle -h help message,
642
+ which provides details of command line usage.
643
+
644
+ - Multiple bug fixes and usability enhancements.
645
+
646
+ - Introduced the new RPC implementation, which includes a debugger. The output
647
+ of user code is to the shell, and the shell may be used to inspect the
648
+ environment after the run has finished. (In version 0.8.1 the shell
649
+ environment was separate from the environment of the user code.)
650
+
651
+ - Introduced the configuration GUI and a new About dialog.
652
+
653
+ - Removed David Scherer's Remote Procedure Call code and replaced with Guido
654
+ van Rossum's. GvR code has support for the IDLE debugger and uses the shell
655
+ to inspect the environment of code Run from an Edit window. Files removed:
656
+ ExecBinding.py, loader.py, protocol.py, Remote.py, spawn.py
657
+
658
+ --------------------------------------------------------------------
659
+ Refer to HISTORY.txt for additional information on earlier releases.
660
+ --------------------------------------------------------------------
parrot/lib/python3.10/idlelib/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (759 Bytes). View file
 
parrot/lib/python3.10/idlelib/__pycache__/autocomplete_w.cpython-310.pyc ADDED
Binary file (11.6 kB). View file
 
parrot/lib/python3.10/idlelib/__pycache__/debugobj.cpython-310.pyc ADDED
Binary file (5.23 kB). View file
 
parrot/lib/python3.10/idlelib/__pycache__/history.cpython-310.pyc ADDED
Binary file (3.65 kB). View file
 
parrot/lib/python3.10/idlelib/__pycache__/idle.cpython-310.pyc ADDED
Binary file (326 Bytes). View file
 
parrot/lib/python3.10/idlelib/__pycache__/pathbrowser.cpython-310.pyc ADDED
Binary file (3.78 kB). View file
 
parrot/lib/python3.10/idlelib/__pycache__/pyparse.cpython-310.pyc ADDED
Binary file (12.3 kB). View file
 
parrot/lib/python3.10/idlelib/__pycache__/searchbase.cpython-310.pyc ADDED
Binary file (8.33 kB). View file