PyXR

c:\python24\lib \ encodings \ iso8859_16.py



0001 """ Python Character Mapping Codec generated from '8859-16.TXT' with gencodec.py.
0002 
0003     Generated from mapping found in
0004     ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-16.TXT
0005 
0006 """#"
0007 
0008 import codecs
0009 
0010 ### Codec APIs
0011 
0012 class Codec(codecs.Codec):
0013 
0014     def encode(self,input,errors='strict'):
0015 
0016         return codecs.charmap_encode(input,errors,encoding_map)
0017 
0018     def decode(self,input,errors='strict'):
0019 
0020         return codecs.charmap_decode(input,errors,decoding_map)
0021 
0022 class StreamWriter(Codec,codecs.StreamWriter):
0023     pass
0024 
0025 class StreamReader(Codec,codecs.StreamReader):
0026     pass
0027 
0028 ### encodings module API
0029 
0030 def getregentry():
0031 
0032     return (Codec().encode,Codec().decode,StreamReader,StreamWriter)
0033 
0034 ### Decoding Map
0035 
0036 decoding_map = codecs.make_identity_dict(range(256))
0037 decoding_map.update({
0038         0x00a1: 0x0104, #       LATIN CAPITAL LETTER A WITH OGONEK
0039         0x00a2: 0x0105, #       LATIN SMALL LETTER A WITH OGONEK
0040         0x00a3: 0x0141, #       LATIN CAPITAL LETTER L WITH STROKE
0041         0x00a4: 0x20ac, #       EURO SIGN
0042         0x00a5: 0x201e, #       DOUBLE LOW-9 QUOTATION MARK
0043         0x00a6: 0x0160, #       LATIN CAPITAL LETTER S WITH CARON
0044         0x00a8: 0x0161, #       LATIN SMALL LETTER S WITH CARON
0045         0x00aa: 0x0218, #       LATIN CAPITAL LETTER S WITH COMMA BELOW
0046         0x00ac: 0x0179, #       LATIN CAPITAL LETTER Z WITH ACUTE
0047         0x00ae: 0x017a, #       LATIN SMALL LETTER Z WITH ACUTE
0048         0x00af: 0x017b, #       LATIN CAPITAL LETTER Z WITH DOT ABOVE
0049         0x00b2: 0x010c, #       LATIN CAPITAL LETTER C WITH CARON
0050         0x00b3: 0x0142, #       LATIN SMALL LETTER L WITH STROKE
0051         0x00b4: 0x017d, #       LATIN CAPITAL LETTER Z WITH CARON
0052         0x00b5: 0x201d, #       RIGHT DOUBLE QUOTATION MARK
0053         0x00b8: 0x017e, #       LATIN SMALL LETTER Z WITH CARON
0054         0x00b9: 0x010d, #       LATIN SMALL LETTER C WITH CARON
0055         0x00ba: 0x0219, #       LATIN SMALL LETTER S WITH COMMA BELOW
0056         0x00bc: 0x0152, #       LATIN CAPITAL LIGATURE OE
0057         0x00bd: 0x0153, #       LATIN SMALL LIGATURE OE
0058         0x00be: 0x0178, #       LATIN CAPITAL LETTER Y WITH DIAERESIS
0059         0x00bf: 0x017c, #       LATIN SMALL LETTER Z WITH DOT ABOVE
0060         0x00c3: 0x0102, #       LATIN CAPITAL LETTER A WITH BREVE
0061         0x00c5: 0x0106, #       LATIN CAPITAL LETTER C WITH ACUTE
0062         0x00d0: 0x0110, #       LATIN CAPITAL LETTER D WITH STROKE
0063         0x00d1: 0x0143, #       LATIN CAPITAL LETTER N WITH ACUTE
0064         0x00d5: 0x0150, #       LATIN CAPITAL LETTER O WITH DOUBLE ACUTE
0065         0x00d7: 0x015a, #       LATIN CAPITAL LETTER S WITH ACUTE
0066         0x00d8: 0x0170, #       LATIN CAPITAL LETTER U WITH DOUBLE ACUTE
0067         0x00dd: 0x0118, #       LATIN CAPITAL LETTER E WITH OGONEK
0068         0x00de: 0x021a, #       LATIN CAPITAL LETTER T WITH COMMA BELOW
0069         0x00e3: 0x0103, #       LATIN SMALL LETTER A WITH BREVE
0070         0x00e5: 0x0107, #       LATIN SMALL LETTER C WITH ACUTE
0071         0x00f0: 0x0111, #       LATIN SMALL LETTER D WITH STROKE
0072         0x00f1: 0x0144, #       LATIN SMALL LETTER N WITH ACUTE
0073         0x00f5: 0x0151, #       LATIN SMALL LETTER O WITH DOUBLE ACUTE
0074         0x00f7: 0x015b, #       LATIN SMALL LETTER S WITH ACUTE
0075         0x00f8: 0x0171, #       LATIN SMALL LETTER U WITH DOUBLE ACUTE
0076         0x00fd: 0x0119, #       LATIN SMALL LETTER E WITH OGONEK
0077         0x00fe: 0x021b, #       LATIN SMALL LETTER T WITH COMMA BELOW
0078 })
0079 
0080 ### Encoding Map
0081 
0082 encoding_map = codecs.make_encoding_map(decoding_map)
0083 

Generated by PyXR 0.9.4
SourceForge.net Logo