0001 """ Python Character Mapping Codec generated from '8859-11.TXT' with gencodec.py. 0002 0003 Generated from mapping found in 0004 ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-11.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: 0x0e01, # THAI CHARACTER KO KAI 0039 0x00a2: 0x0e02, # THAI CHARACTER KHO KHAI 0040 0x00a3: 0x0e03, # THAI CHARACTER KHO KHUAT 0041 0x00a4: 0x0e04, # THAI CHARACTER KHO KHWAI 0042 0x00a5: 0x0e05, # THAI CHARACTER KHO KHON 0043 0x00a6: 0x0e06, # THAI CHARACTER KHO RAKHANG 0044 0x00a7: 0x0e07, # THAI CHARACTER NGO NGU 0045 0x00a8: 0x0e08, # THAI CHARACTER CHO CHAN 0046 0x00a9: 0x0e09, # THAI CHARACTER CHO CHING 0047 0x00aa: 0x0e0a, # THAI CHARACTER CHO CHANG 0048 0x00ab: 0x0e0b, # THAI CHARACTER SO SO 0049 0x00ac: 0x0e0c, # THAI CHARACTER CHO CHOE 0050 0x00ad: 0x0e0d, # THAI CHARACTER YO YING 0051 0x00ae: 0x0e0e, # THAI CHARACTER DO CHADA 0052 0x00af: 0x0e0f, # THAI CHARACTER TO PATAK 0053 0x00b0: 0x0e10, # THAI CHARACTER THO THAN 0054 0x00b1: 0x0e11, # THAI CHARACTER THO NANGMONTHO 0055 0x00b2: 0x0e12, # THAI CHARACTER THO PHUTHAO 0056 0x00b3: 0x0e13, # THAI CHARACTER NO NEN 0057 0x00b4: 0x0e14, # THAI CHARACTER DO DEK 0058 0x00b5: 0x0e15, # THAI CHARACTER TO TAO 0059 0x00b6: 0x0e16, # THAI CHARACTER THO THUNG 0060 0x00b7: 0x0e17, # THAI CHARACTER THO THAHAN 0061 0x00b8: 0x0e18, # THAI CHARACTER THO THONG 0062 0x00b9: 0x0e19, # THAI CHARACTER NO NU 0063 0x00ba: 0x0e1a, # THAI CHARACTER BO BAIMAI 0064 0x00bb: 0x0e1b, # THAI CHARACTER PO PLA 0065 0x00bc: 0x0e1c, # THAI CHARACTER PHO PHUNG 0066 0x00bd: 0x0e1d, # THAI CHARACTER FO FA 0067 0x00be: 0x0e1e, # THAI CHARACTER PHO PHAN 0068 0x00bf: 0x0e1f, # THAI CHARACTER FO FAN 0069 0x00c0: 0x0e20, # THAI CHARACTER PHO SAMPHAO 0070 0x00c1: 0x0e21, # THAI CHARACTER MO MA 0071 0x00c2: 0x0e22, # THAI CHARACTER YO YAK 0072 0x00c3: 0x0e23, # THAI CHARACTER RO RUA 0073 0x00c4: 0x0e24, # THAI CHARACTER RU 0074 0x00c5: 0x0e25, # THAI CHARACTER LO LING 0075 0x00c6: 0x0e26, # THAI CHARACTER LU 0076 0x00c7: 0x0e27, # THAI CHARACTER WO WAEN 0077 0x00c8: 0x0e28, # THAI CHARACTER SO SALA 0078 0x00c9: 0x0e29, # THAI CHARACTER SO RUSI 0079 0x00ca: 0x0e2a, # THAI CHARACTER SO SUA 0080 0x00cb: 0x0e2b, # THAI CHARACTER HO HIP 0081 0x00cc: 0x0e2c, # THAI CHARACTER LO CHULA 0082 0x00cd: 0x0e2d, # THAI CHARACTER O ANG 0083 0x00ce: 0x0e2e, # THAI CHARACTER HO NOKHUK 0084 0x00cf: 0x0e2f, # THAI CHARACTER PAIYANNOI 0085 0x00d0: 0x0e30, # THAI CHARACTER SARA A 0086 0x00d1: 0x0e31, # THAI CHARACTER MAI HAN-AKAT 0087 0x00d2: 0x0e32, # THAI CHARACTER SARA AA 0088 0x00d3: 0x0e33, # THAI CHARACTER SARA AM 0089 0x00d4: 0x0e34, # THAI CHARACTER SARA I 0090 0x00d5: 0x0e35, # THAI CHARACTER SARA II 0091 0x00d6: 0x0e36, # THAI CHARACTER SARA UE 0092 0x00d7: 0x0e37, # THAI CHARACTER SARA UEE 0093 0x00d8: 0x0e38, # THAI CHARACTER SARA U 0094 0x00d9: 0x0e39, # THAI CHARACTER SARA UU 0095 0x00da: 0x0e3a, # THAI CHARACTER PHINTHU 0096 0x00db: None, 0097 0x00dc: None, 0098 0x00dd: None, 0099 0x00de: None, 0100 0x00df: 0x0e3f, # THAI CURRENCY SYMBOL BAHT 0101 0x00e0: 0x0e40, # THAI CHARACTER SARA E 0102 0x00e1: 0x0e41, # THAI CHARACTER SARA AE 0103 0x00e2: 0x0e42, # THAI CHARACTER SARA O 0104 0x00e3: 0x0e43, # THAI CHARACTER SARA AI MAIMUAN 0105 0x00e4: 0x0e44, # THAI CHARACTER SARA AI MAIMALAI 0106 0x00e5: 0x0e45, # THAI CHARACTER LAKKHANGYAO 0107 0x00e6: 0x0e46, # THAI CHARACTER MAIYAMOK 0108 0x00e7: 0x0e47, # THAI CHARACTER MAITAIKHU 0109 0x00e8: 0x0e48, # THAI CHARACTER MAI EK 0110 0x00e9: 0x0e49, # THAI CHARACTER MAI THO 0111 0x00ea: 0x0e4a, # THAI CHARACTER MAI TRI 0112 0x00eb: 0x0e4b, # THAI CHARACTER MAI CHATTAWA 0113 0x00ec: 0x0e4c, # THAI CHARACTER THANTHAKHAT 0114 0x00ed: 0x0e4d, # THAI CHARACTER NIKHAHIT 0115 0x00ee: 0x0e4e, # THAI CHARACTER YAMAKKAN 0116 0x00ef: 0x0e4f, # THAI CHARACTER FONGMAN 0117 0x00f0: 0x0e50, # THAI DIGIT ZERO 0118 0x00f1: 0x0e51, # THAI DIGIT ONE 0119 0x00f2: 0x0e52, # THAI DIGIT TWO 0120 0x00f3: 0x0e53, # THAI DIGIT THREE 0121 0x00f4: 0x0e54, # THAI DIGIT FOUR 0122 0x00f5: 0x0e55, # THAI DIGIT FIVE 0123 0x00f6: 0x0e56, # THAI DIGIT SIX 0124 0x00f7: 0x0e57, # THAI DIGIT SEVEN 0125 0x00f8: 0x0e58, # THAI DIGIT EIGHT 0126 0x00f9: 0x0e59, # THAI DIGIT NINE 0127 0x00fa: 0x0e5a, # THAI CHARACTER ANGKHANKHU 0128 0x00fb: 0x0e5b, # THAI CHARACTER KHOMUT 0129 0x00fc: None, 0130 0x00fd: None, 0131 0x00fe: None, 0132 0x00ff: None, 0133 }) 0134 0135 ### Encoding Map 0136 0137 encoding_map = codecs.make_encoding_map(decoding_map) 0138
Generated by PyXR 0.9.4