|
1 | 1 | ######################## BEGIN LICENSE BLOCK ######################## |
2 | 2 | # The Original Code is Mozilla Communicator client code. |
3 | | -# |
| 3 | +# |
4 | 4 | # The Initial Developer of the Original Code is |
5 | 5 | # Netscape Communications Corporation. |
6 | 6 | # Portions created by the Initial Developer are Copyright (C) 1998 |
7 | 7 | # the Initial Developer. All Rights Reserved. |
8 | | -# |
| 8 | +# |
9 | 9 | # Contributor(s): |
10 | 10 | # Mark Pilgrim - port to Python |
11 | 11 | # |
12 | 12 | # This library is free software; you can redistribute it and/or |
13 | 13 | # modify it under the terms of the GNU Lesser General Public |
14 | 14 | # License as published by the Free Software Foundation; either |
15 | 15 | # version 2.1 of the License, or (at your option) any later version. |
16 | | -# |
| 16 | +# |
17 | 17 | # This library is distributed in the hope that it will be useful, |
18 | 18 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
19 | 19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
20 | 20 | # Lesser General Public License for more details. |
21 | | -# |
| 21 | +# |
22 | 22 | # You should have received a copy of the GNU Lesser General Public |
23 | 23 | # License along with this library; if not, write to the Free Software |
24 | 24 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA |
25 | 25 | # 02110-1301 USA |
26 | 26 | ######################### END LICENSE BLOCK ######################### |
27 | 27 |
|
28 | 28 | # Big5 frequency table |
29 | | -# by Taiwan's Mandarin Promotion Council |
| 29 | +# by Taiwan's Mandarin Promotion Council |
30 | 30 | # <http://www.edu.tw:81/mandr/> |
31 | | -# |
| 31 | +# |
32 | 32 | # 128 --> 0.42261 |
33 | 33 | # 256 --> 0.57851 |
34 | 34 | # 512 --> 0.74851 |
35 | 35 | # 1024 --> 0.89384 |
36 | 36 | # 2048 --> 0.97583 |
37 | | -# |
| 37 | +# |
38 | 38 | # Ideal Distribution Ratio = 0.74851/(1-0.74851) =2.98 |
39 | 39 | # Random Distribution Ration = 512/(5401-512)=0.105 |
40 | | -# |
| 40 | +# |
41 | 41 | # Typical Distribution Ratio about 25% of Ideal one, still much higher than RDR |
42 | 42 |
|
43 | 43 | BIG5_TYPICAL_DISTRIBUTION_RATIO = 0.75 |
44 | 44 |
|
45 | 45 | #Char to FreqOrder table |
46 | 46 | BIG5_TABLE_SIZE = 5376 |
47 | 47 |
|
48 | | -Big5CharToFreqOrder = ( \ |
| 48 | +Big5CharToFreqOrder = ( |
49 | 49 | 1,1801,1506, 255,1431, 198, 9, 82, 6,5008, 177, 202,3681,1256,2821, 110, # 16 |
50 | 50 | 3814, 33,3274, 261, 76, 44,2114, 16,2946,2187,1176, 659,3971, 26,3451,2653, # 32 |
51 | 51 | 1198,3972,3350,4202, 410,2215, 302, 590, 361,1964, 8, 204, 58,4510,5009,1932, # 48 |
|
921 | 921 | 13936,13937,13938,13939,13940,13941,13942,13943,13944,13945,13946,13947,13948,13949,13950,13951, #13952 |
922 | 922 | 13952,13953,13954,13955,13956,13957,13958,13959,13960,13961,13962,13963,13964,13965,13966,13967, #13968 |
923 | 923 | 13968,13969,13970,13971,13972) #13973 |
| 924 | + |
| 925 | +# flake8: noqa |
0 commit comments