| 1 |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
| 2 |
/* ***** BEGIN LICENSE BLOCK ***** |
| 3 |
* Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 4 |
* |
| 5 |
* The contents of this file are subject to the Mozilla Public License Version |
| 6 |
* 1.1 (the "License"); you may not use this file except in compliance with |
| 7 |
* the License. You may obtain a copy of the License at |
| 8 |
* http://www.mozilla.org/MPL/ |
| 9 |
* |
| 10 |
* Software distributed under the License is distributed on an "AS IS" basis, |
| 11 |
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
| 12 |
* for the specific language governing rights and limitations under the |
| 13 |
* License. |
| 14 |
* |
| 15 |
* The Original Code is Mozilla Communicator client code. |
| 16 |
* |
| 17 |
* The Initial Developer of the Original Code is |
| 18 |
* Netscape Communications Corporation. |
| 19 |
* Portions created by the Initial Developer are Copyright (C) 1998 |
| 20 |
* the Initial Developer. All Rights Reserved. |
| 21 |
* |
| 22 |
* Contributor(s): |
| 23 |
* |
| 24 |
* Alternatively, the contents of this file may be used under the terms of |
| 25 |
* either the GNU General Public License Version 2 or later (the "GPL"), or |
| 26 |
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), |
| 27 |
* in which case the provisions of the GPL or the LGPL are applicable instead |
| 28 |
* of those above. If you wish to allow use of your version of this file only |
| 29 |
* under the terms of either the GPL or the LGPL, and not to allow others to |
| 30 |
* use your version of this file under the terms of the MPL, indicate your |
| 31 |
* decision by deleting the provisions above and replace them with the notice |
| 32 |
* and other provisions required by the GPL or the LGPL. If you do not delete |
| 33 |
* the provisions above, a recipient may use your version of this file under |
| 34 |
* the terms of any one of the MPL, the GPL or the LGPL. |
| 35 |
* |
| 36 |
* ***** END LICENSE BLOCK ***** */ |
| 37 |
|
| 38 |
#include "nsSBCharSetProber.h" |
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
//KOI8-R language model |
| 43 |
//Character Mapping Table: |
| 44 |
static const unsigned char KOI8R_CharToOrderMap[] = |
| 45 |
{ |
| 46 |
255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, //00 |
| 47 |
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, //10 |
| 48 |
+253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, //20 |
| 49 |
252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, //30 |
| 50 |
253,142,143,144,145,146,147,148,149,150,151,152, 74,153, 75,154, //40 |
| 51 |
155,156,157,158,159,160,161,162,163,164,165,253,253,253,253,253, //50 |
| 52 |
253, 71,172, 66,173, 65,174, 76,175, 64,176,177, 77, 72,178, 69, //60 |
| 53 |
67,179, 78, 73,180,181, 79,182,183,184,185,253,253,253,253,253, //70 |
| 54 |
191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206, //80 |
| 55 |
207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222, //90 |
| 56 |
223,224,225, 68,226,227,228,229,230,231,232,233,234,235,236,237, //a0 |
| 57 |
238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253, //b0 |
| 58 |
27, 3, 21, 28, 13, 2, 39, 19, 26, 4, 23, 11, 8, 12, 5, 1, //c0 |
| 59 |
15, 16, 9, 7, 6, 14, 24, 10, 17, 18, 20, 25, 30, 29, 22, 54, //d0 |
| 60 |
59, 37, 44, 58, 41, 48, 53, 46, 55, 42, 60, 36, 49, 38, 31, 34, //e0 |
| 61 |
35, 43, 45, 32, 40, 52, 56, 33, 61, 62, 51, 57, 47, 63, 50, 70, //f0 |
| 62 |
}; |
| 63 |
|
| 64 |
static const unsigned char win1251_CharToOrderMap[] = |
| 65 |
{ |
| 66 |
255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, //00 |
| 67 |
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, //10 |
| 68 |
+253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, //20 |
| 69 |
252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, //30 |
| 70 |
253,142,143,144,145,146,147,148,149,150,151,152, 74,153, 75,154, //40 |
| 71 |
155,156,157,158,159,160,161,162,163,164,165,253,253,253,253,253, //50 |
| 72 |
253, 71,172, 66,173, 65,174, 76,175, 64,176,177, 77, 72,178, 69, //60 |
| 73 |
67,179, 78, 73,180,181, 79,182,183,184,185,253,253,253,253,253, //70 |
| 74 |
191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206, |
| 75 |
207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222, |
| 76 |
223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238, |
| 77 |
239,240,241,242,243,244,245,246, 68,247,248,249,250,251,252,253, |
| 78 |
37, 44, 33, 46, 41, 48, 56, 51, 42, 60, 36, 49, 38, 31, 34, 35, |
| 79 |
45, 32, 40, 52, 53, 55, 58, 50, 57, 63, 70, 62, 61, 47, 59, 43, |
| 80 |
3, 21, 10, 19, 13, 2, 24, 20, 4, 23, 11, 8, 12, 5, 1, 15, |
| 81 |
9, 7, 6, 14, 39, 26, 28, 22, 25, 29, 54, 18, 17, 30, 27, 16, |
| 82 |
}; |
| 83 |
|
| 84 |
static const unsigned char latin5_CharToOrderMap[] = |
| 85 |
{ |
| 86 |
255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, //00 |
| 87 |
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, //10 |
| 88 |
+253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, //20 |
| 89 |
252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, //30 |
| 90 |
253,142,143,144,145,146,147,148,149,150,151,152, 74,153, 75,154, //40 |
| 91 |
155,156,157,158,159,160,161,162,163,164,165,253,253,253,253,253, //50 |
| 92 |
253, 71,172, 66,173, 65,174, 76,175, 64,176,177, 77, 72,178, 69, //60 |
| 93 |
67,179, 78, 73,180,181, 79,182,183,184,185,253,253,253,253,253, //70 |
| 94 |
191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206, |
| 95 |
207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222, |
| 96 |
223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238, |
| 97 |
37, 44, 33, 46, 41, 48, 56, 51, 42, 60, 36, 49, 38, 31, 34, 35, |
| 98 |
45, 32, 40, 52, 53, 55, 58, 50, 57, 63, 70, 62, 61, 47, 59, 43, |
| 99 |
3, 21, 10, 19, 13, 2, 24, 20, 4, 23, 11, 8, 12, 5, 1, 15, |
| 100 |
9, 7, 6, 14, 39, 26, 28, 22, 25, 29, 54, 18, 17, 30, 27, 16, |
| 101 |
239, 68,240,241,242,243,244,245,246,247,248,249,250,251,252,255, |
| 102 |
}; |
| 103 |
|
| 104 |
static const unsigned char macCyrillic_CharToOrderMap[] = |
| 105 |
{ |
| 106 |
255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, //00 |
| 107 |
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, //10 |
| 108 |
+253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, //20 |
| 109 |
252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, //30 |
| 110 |
253,142,143,144,145,146,147,148,149,150,151,152, 74,153, 75,154, //40 |
| 111 |
155,156,157,158,159,160,161,162,163,164,165,253,253,253,253,253, //50 |
| 112 |
253, 71,172, 66,173, 65,174, 76,175, 64,176,177, 77, 72,178, 69, //60 |
| 113 |
67,179, 78, 73,180,181, 79,182,183,184,185,253,253,253,253,253, //70 |
| 114 |
37, 44, 33, 46, 41, 48, 56, 51, 42, 60, 36, 49, 38, 31, 34, 35, |
| 115 |
45, 32, 40, 52, 53, 55, 58, 50, 57, 63, 70, 62, 61, 47, 59, 43, |
| 116 |
191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206, |
| 117 |
207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222, |
| 118 |
223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238, |
| 119 |
239,240,241,242,243,244,245,246,247,248,249,250,251,252, 68, 16, |
| 120 |
3, 21, 10, 19, 13, 2, 24, 20, 4, 23, 11, 8, 12, 5, 1, 15, |
| 121 |
9, 7, 6, 14, 39, 26, 28, 22, 25, 29, 54, 18, 17, 30, 27,255, |
| 122 |
}; |
| 123 |
|
| 124 |
static const unsigned char IBM855_CharToOrderMap[] = |
| 125 |
{ |
| 126 |
255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, //00 |
| 127 |
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, //10 |
| 128 |
+253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, //20 |
| 129 |
252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, //30 |
| 130 |
253,142,143,144,145,146,147,148,149,150,151,152, 74,153, 75,154, //40 |
| 131 |
155,156,157,158,159,160,161,162,163,164,165,253,253,253,253,253, //50 |
| 132 |
253, 71,172, 66,173, 65,174, 76,175, 64,176,177, 77, 72,178, 69, //60 |
| 133 |
67,179, 78, 73,180,181, 79,182,183,184,185,253,253,253,253,253, //70 |
| 134 |
191,192,193,194, 68,195,196,197,198,199,200,201,202,203,204,205, |
| 135 |
206,207,208,209,210,211,212,213,214,215,216,217, 27, 59, 54, 70, |
| 136 |
3, 37, 21, 44, 28, 58, 13, 41, 2, 48, 39, 53, 19, 46,218,219, |
| 137 |
220,221,222,223,224, 26, 55, 4, 42,225,226,227,228, 23, 60,229, |
| 138 |
230,231,232,233,234,235, 11, 36,236,237,238,239,240,241,242,243, |
| 139 |
8, 49, 12, 38, 5, 31, 1, 34, 15,244,245,246,247, 35, 16,248, |
| 140 |
43, 9, 45, 7, 32, 6, 40, 14, 52, 24, 56, 10, 33, 17, 61,249, |
| 141 |
250, 18, 62, 20, 51, 25, 57, 30, 47, 29, 63, 22, 50,251,252,255, |
| 142 |
}; |
| 143 |
|
| 144 |
static const unsigned char IBM866_CharToOrderMap[] = |
| 145 |
{ |
| 146 |
255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, //00 |
| 147 |
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, //10 |
| 148 |
+253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, //20 |
| 149 |
252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, //30 |
| 150 |
253,142,143,144,145,146,147,148,149,150,151,152, 74,153, 75,154, //40 |
| 151 |
155,156,157,158,159,160,161,162,163,164,165,253,253,253,253,253, //50 |
| 152 |
253, 71,172, 66,173, 65,174, 76,175, 64,176,177, 77, 72,178, 69, //60 |
| 153 |
67,179, 78, 73,180,181, 79,182,183,184,185,253,253,253,253,253, //70 |
| 154 |
37, 44, 33, 46, 41, 48, 56, 51, 42, 60, 36, 49, 38, 31, 34, 35, |
| 155 |
45, 32, 40, 52, 53, 55, 58, 50, 57, 63, 70, 62, 61, 47, 59, 43, |
| 156 |
3, 21, 10, 19, 13, 2, 24, 20, 4, 23, 11, 8, 12, 5, 1, 15, |
| 157 |
191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206, |
| 158 |
207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222, |
| 159 |
223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238, |
| 160 |
9, 7, 6, 14, 39, 26, 28, 22, 25, 29, 54, 18, 17, 30, 27, 16, |
| 161 |
239, 68,240,241,242,243,244,245,246,247,248,249,250,251,252,255, |
| 162 |
}; |
| 163 |
|
| 164 |
//Model Table: |
| 165 |
//total sequences: 100% |
| 166 |
//first 512 sequences: 97.6601% |
| 167 |
//first 1024 sequences: 2.3389% |
| 168 |
//rest sequences: 0.1237% |
| 169 |
//negative sequences: 0.0009% |
| 170 |
static const char RussianLangModel[] = |
| 171 |
{ |
| 172 |
0,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,1,3,3,3,3,1,3,3,3,2,3,2,3,3, |
| 173 |
3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,3,2,2,2,2,2,0,0,2, |
| 174 |
3,3,3,2,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|
| 288 |
1,0,2,1,2,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0, |
| 289 |
0,0,1,0,1,1,0,0,0,0,1,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0, |
| 290 |
1,0,0,0,0,2,0,1,2,1,0,1,1,1,0,1,0,0,0,1,0,1,0,0,1,0,1,0,0,0,0,1, |
| 291 |
0,0,0,0,0,1,0,0,1,1,0,0,1,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1, |
| 292 |
2,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1, |
| 293 |
1,0,0,0,1,0,0,0,1,1,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,1,0,0,0,0,0, |
| 294 |
2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1, |
| 295 |
1,1,1,0,1,0,1,0,0,1,1,1,1,0,0,0,1,0,0,0,0,1,0,0,0,1,0,1,0,0,0,0, |
| 296 |
1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1, |
| 297 |
1,1,0,1,1,0,1,0,1,0,0,0,0,1,1,0,1,1,0,0,0,0,0,1,0,1,1,0,1,0,0,0, |
| 298 |
0,1,1,1,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
| 299 |
0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0, |
| 300 |
}; |
| 301 |
|
| 302 |
|
| 303 |
const SequenceModel Koi8rModel = |
| 304 |
{ |
| 305 |
KOI8R_CharToOrderMap, |
| 306 |
RussianLangModel, |
| 307 |
(float)0.976601, |
| 308 |
PR_FALSE, |
| 309 |
"KOI8-R" |
| 310 |
}; |
| 311 |
|
| 312 |
const SequenceModel Win1251Model = |
| 313 |
{ |
| 314 |
win1251_CharToOrderMap, |
| 315 |
RussianLangModel, |
| 316 |
(float)0.976601, |
| 317 |
PR_FALSE, |
| 318 |
"windows-1251" |
| 319 |
}; |
| 320 |
|
| 321 |
const SequenceModel Latin5Model = |
| 322 |
{ |
| 323 |
latin5_CharToOrderMap, |
| 324 |
RussianLangModel, |
| 325 |
(float)0.976601, |
| 326 |
PR_FALSE, |
| 327 |
"ISO-8859-5" |
| 328 |
}; |
| 329 |
|
| 330 |
const SequenceModel MacCyrillicModel = |
| 331 |
{ |
| 332 |
macCyrillic_CharToOrderMap, |
| 333 |
RussianLangModel, |
| 334 |
(float)0.976601, |
| 335 |
PR_FALSE, |
| 336 |
"x-mac-cyrillic" |
| 337 |
}; |
| 338 |
|
| 339 |
const SequenceModel Ibm866Model = |
| 340 |
{ |
| 341 |
IBM866_CharToOrderMap, |
| 342 |
RussianLangModel, |
| 343 |
(float)0.976601, |
| 344 |
PR_FALSE, |
| 345 |
"IBM866" |
| 346 |
}; |
| 347 |
|
| 348 |
const SequenceModel Ibm855Model = |
| 349 |
{ |
| 350 |
IBM855_CharToOrderMap, |
| 351 |
RussianLangModel, |
| 352 |
(float)0.976601, |
| 353 |
PR_FALSE, |
| 354 |
"IBM855" |
| 355 |
}; |