123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307 |
- """ Python Character Mapping Codec iso8859_13 generated from 'MAPPINGS/ISO8859/8859-13.TXT' with gencodec.py.
- """
- import codecs
- class Codec(codecs.Codec):
- def encode(self,input,errors='strict'):
- return codecs.charmap_encode(input,errors,encoding_table)
- def decode(self,input,errors='strict'):
- return codecs.charmap_decode(input,errors,decoding_table)
- class IncrementalEncoder(codecs.IncrementalEncoder):
- def encode(self, input, final=False):
- return codecs.charmap_encode(input,self.errors,encoding_table)[0]
- class IncrementalDecoder(codecs.IncrementalDecoder):
- def decode(self, input, final=False):
- return codecs.charmap_decode(input,self.errors,decoding_table)[0]
- class StreamWriter(Codec,codecs.StreamWriter):
- pass
- class StreamReader(Codec,codecs.StreamReader):
- pass
- def getregentry():
- return codecs.CodecInfo(
- name='iso8859-13',
- encode=Codec().encode,
- decode=Codec().decode,
- incrementalencoder=IncrementalEncoder,
- incrementaldecoder=IncrementalDecoder,
- streamreader=StreamReader,
- streamwriter=StreamWriter,
- )
- decoding_table = (
- '\x00'
- '\x01'
- '\x02'
- '\x03'
- '\x04'
- '\x05'
- '\x06'
- '\x07'
- '\x08'
- '\t'
- '\n'
- '\x0b'
- '\x0c'
- '\r'
- '\x0e'
- '\x0f'
- '\x10'
- '\x11'
- '\x12'
- '\x13'
- '\x14'
- '\x15'
- '\x16'
- '\x17'
- '\x18'
- '\x19'
- '\x1a'
- '\x1b'
- '\x1c'
- '\x1d'
- '\x1e'
- '\x1f'
- ' '
- '!'
- '"'
- '#'
- '$'
- '%'
- '&'
- "'"
- '('
- ')'
- '*'
- '+'
- ','
- '-'
- '.'
- '/'
- '0'
- '1'
- '2'
- '3'
- '4'
- '5'
- '6'
- '7'
- '8'
- '9'
- ':'
- ';'
- '<'
- '='
- '>'
- '?'
- '@'
- 'A'
- 'B'
- 'C'
- 'D'
- 'E'
- 'F'
- 'G'
- 'H'
- 'I'
- 'J'
- 'K'
- 'L'
- 'M'
- 'N'
- 'O'
- 'P'
- 'Q'
- 'R'
- 'S'
- 'T'
- 'U'
- 'V'
- 'W'
- 'X'
- 'Y'
- 'Z'
- '['
- '\\'
- ']'
- '^'
- '_'
- '`'
- 'a'
- 'b'
- 'c'
- 'd'
- 'e'
- 'f'
- 'g'
- 'h'
- 'i'
- 'j'
- 'k'
- 'l'
- 'm'
- 'n'
- 'o'
- 'p'
- 'q'
- 'r'
- 's'
- 't'
- 'u'
- 'v'
- 'w'
- 'x'
- 'y'
- 'z'
- '{'
- '|'
- '}'
- '~'
- '\x7f'
- '\x80'
- '\x81'
- '\x82'
- '\x83'
- '\x84'
- '\x85'
- '\x86'
- '\x87'
- '\x88'
- '\x89'
- '\x8a'
- '\x8b'
- '\x8c'
- '\x8d'
- '\x8e'
- '\x8f'
- '\x90'
- '\x91'
- '\x92'
- '\x93'
- '\x94'
- '\x95'
- '\x96'
- '\x97'
- '\x98'
- '\x99'
- '\x9a'
- '\x9b'
- '\x9c'
- '\x9d'
- '\x9e'
- '\x9f'
- '\xa0'
- '\u201d'
- '\xa2'
- '\xa3'
- '\xa4'
- '\u201e'
- '\xa6'
- '\xa7'
- '\xd8'
- '\xa9'
- '\u0156'
- '\xab'
- '\xac'
- '\xad'
- '\xae'
- '\xc6'
- '\xb0'
- '\xb1'
- '\xb2'
- '\xb3'
- '\u201c'
- '\xb5'
- '\xb6'
- '\xb7'
- '\xf8'
- '\xb9'
- '\u0157'
- '\xbb'
- '\xbc'
- '\xbd'
- '\xbe'
- '\xe6'
- '\u0104'
- '\u012e'
- '\u0100'
- '\u0106'
- '\xc4'
- '\xc5'
- '\u0118'
- '\u0112'
- '\u010c'
- '\xc9'
- '\u0179'
- '\u0116'
- '\u0122'
- '\u0136'
- '\u012a'
- '\u013b'
- '\u0160'
- '\u0143'
- '\u0145'
- '\xd3'
- '\u014c'
- '\xd5'
- '\xd6'
- '\xd7'
- '\u0172'
- '\u0141'
- '\u015a'
- '\u016a'
- '\xdc'
- '\u017b'
- '\u017d'
- '\xdf'
- '\u0105'
- '\u012f'
- '\u0101'
- '\u0107'
- '\xe4'
- '\xe5'
- '\u0119'
- '\u0113'
- '\u010d'
- '\xe9'
- '\u017a'
- '\u0117'
- '\u0123'
- '\u0137'
- '\u012b'
- '\u013c'
- '\u0161'
- '\u0144'
- '\u0146'
- '\xf3'
- '\u014d'
- '\xf5'
- '\xf6'
- '\xf7'
- '\u0173'
- '\u0142'
- '\u015b'
- '\u016b'
- '\xfc'
- '\u017c'
- '\u017e'
- '\u2019'
- )
- encoding_table=codecs.charmap_build(decoding_table)
|