ThirdParty/CharDet/chardet/mbcssm.py

changeset 5310
f2b774d78b4a
parent 3537
7662053c3906
child 5714
90c57b50600f
equal deleted inserted replaced
5309:79b6a38edfc7 5310:f2b774d78b4a
351 2,2,2,2,2,2,2,2, # 58 - 5f 351 2,2,2,2,2,2,2,2, # 58 - 5f
352 2,2,2,2,2,2,2,2, # 60 - 67 352 2,2,2,2,2,2,2,2, # 60 - 67
353 2,2,2,2,2,2,2,2, # 68 - 6f 353 2,2,2,2,2,2,2,2, # 68 - 6f
354 2,2,2,2,2,2,2,2, # 70 - 77 354 2,2,2,2,2,2,2,2, # 70 - 77
355 2,2,2,2,2,2,2,1, # 78 - 7f 355 2,2,2,2,2,2,2,1, # 78 - 7f
356 3,3,3,3,3,3,3,3, # 80 - 87 356 3,3,3,3,3,2,2,3, # 80 - 87
357 3,3,3,3,3,3,3,3, # 88 - 8f 357 3,3,3,3,3,3,3,3, # 88 - 8f
358 3,3,3,3,3,3,3,3, # 90 - 97 358 3,3,3,3,3,3,3,3, # 90 - 97
359 3,3,3,3,3,3,3,3, # 98 - 9f 359 3,3,3,3,3,3,3,3, # 98 - 9f
360 #0xa0 is illegal in sjis encoding, but some pages does 360 #0xa0 is illegal in sjis encoding, but some pages does
361 #contain such byte. We need to be more error forgiven. 361 #contain such byte. We need to be more error forgiven.
367 2,2,2,2,2,2,2,2, # c8 - cf 367 2,2,2,2,2,2,2,2, # c8 - cf
368 2,2,2,2,2,2,2,2, # d0 - d7 368 2,2,2,2,2,2,2,2, # d0 - d7
369 2,2,2,2,2,2,2,2, # d8 - df 369 2,2,2,2,2,2,2,2, # d8 - df
370 3,3,3,3,3,3,3,3, # e0 - e7 370 3,3,3,3,3,3,3,3, # e0 - e7
371 3,3,3,3,3,4,4,4, # e8 - ef 371 3,3,3,3,3,4,4,4, # e8 - ef
372 4,4,4,4,4,4,4,4, # f0 - f7 372 3,3,3,3,3,3,3,3, # f0 - f7
373 4,4,4,4,4,0,0,0 # f8 - ff 373 3,3,3,3,3,0,0,0) # f8 - ff
374 )
375 374
376 375
377 SJIS_st = ( 376 SJIS_st = (
378 eError,eStart,eStart, 3,eError,eError,eError,eError,#00-07 377 eError,eStart,eStart, 3,eError,eError,eError,eError,#00-07
379 eError,eError,eError,eError,eItsMe,eItsMe,eItsMe,eItsMe,#08-0f 378 eError,eError,eError,eError,eItsMe,eItsMe,eItsMe,eItsMe,#08-0f
569 UTF8SMModel = {'classTable': UTF8_cls, 568 UTF8SMModel = {'classTable': UTF8_cls,
570 'classFactor': 16, 569 'classFactor': 16,
571 'stateTable': UTF8_st, 570 'stateTable': UTF8_st,
572 'charLenTable': UTF8CharLenTable, 571 'charLenTable': UTF8CharLenTable,
573 'name': 'UTF-8'} 572 'name': 'UTF-8'}
574
575 # flake8: noqa

eric ide

mercurial