home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_492 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-08-06  |  7.8 KB  |  430 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. import codecs
  5.  
  6. class Codec(codecs.Codec):
  7.     
  8.     def encode(self, input, errors = 'strict'):
  9.         return codecs.charmap_encode(input, errors, encoding_map)
  10.  
  11.     
  12.     def decode(self, input, errors = 'strict'):
  13.         return codecs.charmap_decode(input, errors, decoding_table)
  14.  
  15.  
  16.  
  17. class IncrementalEncoder(codecs.IncrementalEncoder):
  18.     
  19.     def encode(self, input, final = False):
  20.         return codecs.charmap_encode(input, self.errors, encoding_map)[0]
  21.  
  22.  
  23.  
  24. class IncrementalDecoder(codecs.IncrementalDecoder):
  25.     
  26.     def decode(self, input, final = False):
  27.         return codecs.charmap_decode(input, self.errors, decoding_table)[0]
  28.  
  29.  
  30.  
  31. class StreamWriter(Codec, codecs.StreamWriter):
  32.     pass
  33.  
  34.  
  35. class StreamReader(Codec, codecs.StreamReader):
  36.     pass
  37.  
  38.  
  39. def getregentry():
  40.     return codecs.CodecInfo(name = 'cp866', encode = Codec().encode, decode = Codec().decode, incrementalencoder = IncrementalEncoder, incrementaldecoder = IncrementalDecoder, streamreader = StreamReader, streamwriter = StreamWriter)
  41.  
  42. decoding_map = codecs.make_identity_dict(range(256))
  43. decoding_map.update({
  44.     128: 1040,
  45.     129: 1041,
  46.     130: 1042,
  47.     131: 1043,
  48.     132: 1044,
  49.     133: 1045,
  50.     134: 1046,
  51.     135: 1047,
  52.     136: 1048,
  53.     137: 1049,
  54.     138: 1050,
  55.     139: 1051,
  56.     140: 1052,
  57.     141: 1053,
  58.     142: 1054,
  59.     143: 1055,
  60.     144: 1056,
  61.     145: 1057,
  62.     146: 1058,
  63.     147: 1059,
  64.     148: 1060,
  65.     149: 1061,
  66.     150: 1062,
  67.     151: 1063,
  68.     152: 1064,
  69.     153: 1065,
  70.     154: 1066,
  71.     155: 1067,
  72.     156: 1068,
  73.     157: 1069,
  74.     158: 1070,
  75.     159: 1071,
  76.     160: 1072,
  77.     161: 1073,
  78.     162: 1074,
  79.     163: 1075,
  80.     164: 1076,
  81.     165: 1077,
  82.     166: 1078,
  83.     167: 1079,
  84.     168: 1080,
  85.     169: 1081,
  86.     170: 1082,
  87.     171: 1083,
  88.     172: 1084,
  89.     173: 1085,
  90.     174: 1086,
  91.     175: 1087,
  92.     176: 9617,
  93.     177: 9618,
  94.     178: 9619,
  95.     179: 9474,
  96.     180: 9508,
  97.     181: 9569,
  98.     182: 9570,
  99.     183: 9558,
  100.     184: 9557,
  101.     185: 9571,
  102.     186: 9553,
  103.     187: 9559,
  104.     188: 9565,
  105.     189: 9564,
  106.     190: 9563,
  107.     191: 9488,
  108.     192: 9492,
  109.     193: 9524,
  110.     194: 9516,
  111.     195: 9500,
  112.     196: 9472,
  113.     197: 9532,
  114.     198: 9566,
  115.     199: 9567,
  116.     200: 9562,
  117.     201: 9556,
  118.     202: 9577,
  119.     203: 9574,
  120.     204: 9568,
  121.     205: 9552,
  122.     206: 9580,
  123.     207: 9575,
  124.     208: 9576,
  125.     209: 9572,
  126.     210: 9573,
  127.     211: 9561,
  128.     212: 9560,
  129.     213: 9554,
  130.     214: 9555,
  131.     215: 9579,
  132.     216: 9578,
  133.     217: 9496,
  134.     218: 9484,
  135.     219: 9608,
  136.     220: 9604,
  137.     221: 9612,
  138.     222: 9616,
  139.     223: 9600,
  140.     224: 1088,
  141.     225: 1089,
  142.     226: 1090,
  143.     227: 1091,
  144.     228: 1092,
  145.     229: 1093,
  146.     230: 1094,
  147.     231: 1095,
  148.     232: 1096,
  149.     233: 1097,
  150.     234: 1098,
  151.     235: 1099,
  152.     236: 1100,
  153.     237: 1101,
  154.     238: 1102,
  155.     239: 1103,
  156.     240: 1025,
  157.     241: 1105,
  158.     242: 1028,
  159.     243: 1108,
  160.     244: 1031,
  161.     245: 1111,
  162.     246: 1038,
  163.     247: 1118,
  164.     248: 176,
  165.     249: 8729,
  166.     250: 183,
  167.     251: 8730,
  168.     252: 8470,
  169.     253: 164,
  170.     254: 9632,
  171.     255: 160 })
  172. decoding_table = u'\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 !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f╨É╨æ╨Æ╨ô╨ö╨ò╨û╨ù╨ÿ╨Ö╨Ü╨¢╨£╨¥╨₧╨ƒ╨á╨í╨ó╨ú╨ñ╨Ñ╨ª╨º╨¿╨⌐╨¬╨½╨¼╨¡╨«╨»╨░╨▒╨▓╨│╨┤╨╡╨╢╨╖╨╕╨╣╨║╨╗╨╝╨╜╨╛╨┐ΓûæΓûÆΓûôΓöéΓöñΓòíΓòóΓòûΓòòΓòúΓòæΓòùΓò¥Γò£Γò¢ΓöÉΓööΓö┤Γö¼Γö£ΓöÇΓö╝Γò₧ΓòƒΓòÜΓòöΓò⌐ΓòªΓòáΓòÉΓò¼ΓòºΓò¿ΓòñΓòÑΓòÖΓòÿΓòÆΓòôΓò½Γò¬ΓöÿΓöîΓûêΓûäΓûîΓûÉΓûÇ╤Ç╤ü╤é╤â╤ä╤à╤å╤ç╤ê╤ë╤è╤ï╤î╤ì╤Ä╤Å╨ü╤æ╨ä╤ö╨ç╤ù╨Ä╤₧┬░ΓêÖ┬╖ΓêÜΓäû┬ñΓûá┬á'
  173. encoding_map = {
  174.     0: 0,
  175.     1: 1,
  176.     2: 2,
  177.     3: 3,
  178.     4: 4,
  179.     5: 5,
  180.     6: 6,
  181.     7: 7,
  182.     8: 8,
  183.     9: 9,
  184.     10: 10,
  185.     11: 11,
  186.     12: 12,
  187.     13: 13,
  188.     14: 14,
  189.     15: 15,
  190.     16: 16,
  191.     17: 17,
  192.     18: 18,
  193.     19: 19,
  194.     20: 20,
  195.     21: 21,
  196.     22: 22,
  197.     23: 23,
  198.     24: 24,
  199.     25: 25,
  200.     26: 26,
  201.     27: 27,
  202.     28: 28,
  203.     29: 29,
  204.     30: 30,
  205.     31: 31,
  206.     32: 32,
  207.     33: 33,
  208.     34: 34,
  209.     35: 35,
  210.     36: 36,
  211.     37: 37,
  212.     38: 38,
  213.     39: 39,
  214.     40: 40,
  215.     41: 41,
  216.     42: 42,
  217.     43: 43,
  218.     44: 44,
  219.     45: 45,
  220.     46: 46,
  221.     47: 47,
  222.     48: 48,
  223.     49: 49,
  224.     50: 50,
  225.     51: 51,
  226.     52: 52,
  227.     53: 53,
  228.     54: 54,
  229.     55: 55,
  230.     56: 56,
  231.     57: 57,
  232.     58: 58,
  233.     59: 59,
  234.     60: 60,
  235.     61: 61,
  236.     62: 62,
  237.     63: 63,
  238.     64: 64,
  239.     65: 65,
  240.     66: 66,
  241.     67: 67,
  242.     68: 68,
  243.     69: 69,
  244.     70: 70,
  245.     71: 71,
  246.     72: 72,
  247.     73: 73,
  248.     74: 74,
  249.     75: 75,
  250.     76: 76,
  251.     77: 77,
  252.     78: 78,
  253.     79: 79,
  254.     80: 80,
  255.     81: 81,
  256.     82: 82,
  257.     83: 83,
  258.     84: 84,
  259.     85: 85,
  260.     86: 86,
  261.     87: 87,
  262.     88: 88,
  263.     89: 89,
  264.     90: 90,
  265.     91: 91,
  266.     92: 92,
  267.     93: 93,
  268.     94: 94,
  269.     95: 95,
  270.     96: 96,
  271.     97: 97,
  272.     98: 98,
  273.     99: 99,
  274.     100: 100,
  275.     101: 101,
  276.     102: 102,
  277.     103: 103,
  278.     104: 104,
  279.     105: 105,
  280.     106: 106,
  281.     107: 107,
  282.     108: 108,
  283.     109: 109,
  284.     110: 110,
  285.     111: 111,
  286.     112: 112,
  287.     113: 113,
  288.     114: 114,
  289.     115: 115,
  290.     116: 116,
  291.     117: 117,
  292.     118: 118,
  293.     119: 119,
  294.     120: 120,
  295.     121: 121,
  296.     122: 122,
  297.     123: 123,
  298.     124: 124,
  299.     125: 125,
  300.     126: 126,
  301.     127: 127,
  302.     160: 255,
  303.     164: 253,
  304.     176: 248,
  305.     183: 250,
  306.     1025: 240,
  307.     1028: 242,
  308.     1031: 244,
  309.     1038: 246,
  310.     1040: 128,
  311.     1041: 129,
  312.     1042: 130,
  313.     1043: 131,
  314.     1044: 132,
  315.     1045: 133,
  316.     1046: 134,
  317.     1047: 135,
  318.     1048: 136,
  319.     1049: 137,
  320.     1050: 138,
  321.     1051: 139,
  322.     1052: 140,
  323.     1053: 141,
  324.     1054: 142,
  325.     1055: 143,
  326.     1056: 144,
  327.     1057: 145,
  328.     1058: 146,
  329.     1059: 147,
  330.     1060: 148,
  331.     1061: 149,
  332.     1062: 150,
  333.     1063: 151,
  334.     1064: 152,
  335.     1065: 153,
  336.     1066: 154,
  337.     1067: 155,
  338.     1068: 156,
  339.     1069: 157,
  340.     1070: 158,
  341.     1071: 159,
  342.     1072: 160,
  343.     1073: 161,
  344.     1074: 162,
  345.     1075: 163,
  346.     1076: 164,
  347.     1077: 165,
  348.     1078: 166,
  349.     1079: 167,
  350.     1080: 168,
  351.     1081: 169,
  352.     1082: 170,
  353.     1083: 171,
  354.     1084: 172,
  355.     1085: 173,
  356.     1086: 174,
  357.     1087: 175,
  358.     1088: 224,
  359.     1089: 225,
  360.     1090: 226,
  361.     1091: 227,
  362.     1092: 228,
  363.     1093: 229,
  364.     1094: 230,
  365.     1095: 231,
  366.     1096: 232,
  367.     1097: 233,
  368.     1098: 234,
  369.     1099: 235,
  370.     1100: 236,
  371.     1101: 237,
  372.     1102: 238,
  373.     1103: 239,
  374.     1105: 241,
  375.     1108: 243,
  376.     1111: 245,
  377.     1118: 247,
  378.     8470: 252,
  379.     8729: 249,
  380.     8730: 251,
  381.     9472: 196,
  382.     9474: 179,
  383.     9484: 218,
  384.     9488: 191,
  385.     9492: 192,
  386.     9496: 217,
  387.     9500: 195,
  388.     9508: 180,
  389.     9516: 194,
  390.     9524: 193,
  391.     9532: 197,
  392.     9552: 205,
  393.     9553: 186,
  394.     9554: 213,
  395.     9555: 214,
  396.     9556: 201,
  397.     9557: 184,
  398.     9558: 183,
  399.     9559: 187,
  400.     9560: 212,
  401.     9561: 211,
  402.     9562: 200,
  403.     9563: 190,
  404.     9564: 189,
  405.     9565: 188,
  406.     9566: 198,
  407.     9567: 199,
  408.     9568: 204,
  409.     9569: 181,
  410.     9570: 182,
  411.     9571: 185,
  412.     9572: 209,
  413.     9573: 210,
  414.     9574: 203,
  415.     9575: 207,
  416.     9576: 208,
  417.     9577: 202,
  418.     9578: 216,
  419.     9579: 215,
  420.     9580: 206,
  421.     9600: 223,
  422.     9604: 220,
  423.     9608: 219,
  424.     9612: 221,
  425.     9616: 222,
  426.     9617: 176,
  427.     9618: 177,
  428.     9619: 178,
  429.     9632: 254 }
  430.