123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307 |
- """ Python Character Mapping Codec iso8859_14 generated from 'MAPPINGS/ISO8859/8859-14.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-14',
- 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'
- '\u1e02'
- '\u1e03'
- '\xa3'
- '\u010a'
- '\u010b'
- '\u1e0a'
- '\xa7'
- '\u1e80'
- '\xa9'
- '\u1e82'
- '\u1e0b'
- '\u1ef2'
- '\xad'
- '\xae'
- '\u0178'
- '\u1e1e'
- '\u1e1f'
- '\u0120'
- '\u0121'
- '\u1e40'
- '\u1e41'
- '\xb6'
- '\u1e56'
- '\u1e81'
- '\u1e57'
- '\u1e83'
- '\u1e60'
- '\u1ef3'
- '\u1e84'
- '\u1e85'
- '\u1e61'
- '\xc0'
- '\xc1'
- '\xc2'
- '\xc3'
- '\xc4'
- '\xc5'
- '\xc6'
- '\xc7'
- '\xc8'
- '\xc9'
- '\xca'
- '\xcb'
- '\xcc'
- '\xcd'
- '\xce'
- '\xcf'
- '\u0174'
- '\xd1'
- '\xd2'
- '\xd3'
- '\xd4'
- '\xd5'
- '\xd6'
- '\u1e6a'
- '\xd8'
- '\xd9'
- '\xda'
- '\xdb'
- '\xdc'
- '\xdd'
- '\u0176'
- '\xdf'
- '\xe0'
- '\xe1'
- '\xe2'
- '\xe3'
- '\xe4'
- '\xe5'
- '\xe6'
- '\xe7'
- '\xe8'
- '\xe9'
- '\xea'
- '\xeb'
- '\xec'
- '\xed'
- '\xee'
- '\xef'
- '\u0175'
- '\xf1'
- '\xf2'
- '\xf3'
- '\xf4'
- '\xf5'
- '\xf6'
- '\u1e6b'
- '\xf8'
- '\xf9'
- '\xfa'
- '\xfb'
- '\xfc'
- '\xfd'
- '\u0177'
- '\xff'
- )
- encoding_table=codecs.charmap_build(decoding_table)
|