Debian Codegraph @

components/chsdet/src/mbclass/Big5LangModel.inc

raw
1 const
2 Big5CharLenTable: array [0..4] of Byte = (0, 1, 1, 2, 0);
3
4
5 BIG5_cls: array [0..255] of Byte = (
6 1,1,1,1,1,1,1,1, // 00 - 07 //allow 0x00 as legal value
7 1,1,1,1,1,1,0,0, // 08 - 0f
8 1,1,1,1,1,1,1,1, // 10 - 17
9 1,1,1,0,1,1,1,1, // 18 - 1f
10 1,1,1,1,1,1,1,1, // 20 - 27
11 1,1,1,1,1,1,1,1, // 28 - 2f
12 1,1,1,1,1,1,1,1, // 30 - 37
13 1,1,1,1,1,1,1,1, // 38 - 3f
14 2,2,2,2,2,2,2,2, // 40 - 47
15 2,2,2,2,2,2,2,2, // 48 - 4f
16 2,2,2,2,2,2,2,2, // 50 - 57
17 2,2,2,2,2,2,2,2, // 58 - 5f
18 2,2,2,2,2,2,2,2, // 60 - 67
19 2,2,2,2,2,2,2,2, // 68 - 6f
20 2,2,2,2,2,2,2,2, // 70 - 77
21 2,2,2,2,2,2,2,1, // 78 - 7f
22 4,4,4,4,4,4,4,4, // 80 - 87
23 4,4,4,4,4,4,4,4, // 88 - 8f
24 4,4,4,4,4,4,4,4, // 90 - 97
25 4,4,4,4,4,4,4,4, // 98 - 9f
26 4,3,3,3,3,3,3,3, // a0 - a7
27 3,3,3,3,3,3,3,3, // a8 - af
28 3,3,3,3,3,3,3,3, // b0 - b7
29 3,3,3,3,3,3,3,3, // b8 - bf
30 3,3,3,3,3,3,3,3, // c0 - c7
31 3,3,3,3,3,3,3,3, // c8 - cf
32 3,3,3,3,3,3,3,3, // d0 - d7
33 3,3,3,3,3,3,3,3, // d8 - df
34 3,3,3,3,3,3,3,3, // e0 - e7
35 3,3,3,3,3,3,3,3, // e8 - ef
36 3,3,3,3,3,3,3,3, // f0 - f7
37 3,3,3,3,3,3,3,0 // f8 - ff
38 );
39
40 BIG5_st: array [0..23] of Byte = (
41 Byte(eError),Byte(eStart),Byte(eStart), 3,Byte(eError),Byte(eError),Byte(eError),Byte(eError),//00-07
42 Byte(eError),Byte(eError),Byte(eItsMe),Byte(eItsMe),Byte(eItsMe),Byte(eItsMe),Byte(eItsMe),Byte(eError),//08-0f
43 Byte(eError),Byte(eStart),Byte(eStart),Byte(eStart),Byte(eStart),Byte(eStart),Byte(eStart),Byte(eStart) //10-17
44 );
45
46 Big5LangModel: SMModel = (
47 classTable: @BIG5_cls;
48 classFactor: 5;
49 stateTable: @BIG5_st;
50 charLenTable: @Big5CharLenTable;
51 CharsetID: BIG5_CHARSET;
52 );
53 // Big5LangModel: SMModel = (
54 // classTable: (
55 // idxsft: eIdxSft4bits;
56 // sftmsk: eSftMsk4bits;
57 // bitsft: eBitSft4bits;
58 // unitmsk: eUnitMsk4bits;
59 // data: @BIG5_cls;
60 // );
61 // classFactor: 5;
62 // stateTable: (
63 // idxsft: eIdxSft4bits;
64 // sftmsk: eSftMsk4bits;
65 // bitsft: eBitSft4bits;
66 // unitmsk: eUnitMsk4bits;
67 // data: @BIG5_st;
68 // );
69 // charLenTable: @Big5CharLenTable;
70 // CharsetID: BIG5_CHARSET;
71 // );