KDECore
LangCyrillicModel.cpp
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 00002 /* -*- C++ -*- 00003 * Copyright (C) 1998 <developer@mozilla.org> 00004 * 00005 * 00006 * Permission is hereby granted, free of charge, to any person obtaining 00007 * a copy of this software and associated documentation files (the 00008 * "Software"), to deal in the Software without restriction, including 00009 * without limitation the rights to use, copy, modify, merge, publish, 00010 * distribute, sublicense, and/or sell copies of the Software, and to 00011 * permit persons to whom the Software is furnished to do so, subject to 00012 * the following conditions: 00013 * 00014 * The above copyright notice and this permission notice shall be included 00015 * in all copies or substantial portions of the Software. 00016 * 00017 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00018 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00019 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 00020 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 00021 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 00022 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 00023 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00024 */ 00025 00026 #include "nsSBCharSetProber.h" 00027 00028 00029 namespace kencodingprober { 00030 //KOI8-R language model 00031 //Character Mapping Table: 00032 static const unsigned char KOI8R_CharToOrderMap[] = 00033 { 00034 255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, //00 00035 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, //10 00036 +253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, //20 00037 252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, //30 00038 253,142,143,144,145,146,147,148,149,150,151,152, 74,153, 75,154, //40 00039 155,156,157,158,159,160,161,162,163,164,165,253,253,253,253,253, //50 00040 253, 71,172, 66,173, 65,174, 76,175, 64,176,177, 77, 72,178, 69, //60 00041 67,179, 78, 73,180,181, 79,182,183,184,185,253,253,253,253,253, //70 00042 191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206, //80 00043 207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222, //90 00044 223,224,225, 68,226,227,228,229,230,231,232,233,234,235,236,237, //a0 00045 238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253, //b0 00046 27, 3, 21, 28, 13, 2, 39, 19, 26, 4, 23, 11, 8, 12, 5, 1, //c0 00047 15, 16, 9, 7, 6, 14, 24, 10, 17, 18, 20, 25, 30, 29, 22, 54, //d0 00048 59, 37, 44, 58, 41, 48, 53, 46, 55, 42, 60, 36, 49, 38, 31, 34, //e0 00049 35, 43, 45, 32, 40, 52, 56, 33, 61, 62, 51, 57, 47, 63, 50, 70, //f0 00050 }; 00051 00052 static const unsigned char win1251_CharToOrderMap[] = 00053 { 00054 255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, //00 00055 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, //10 00056 +253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, //20 00057 252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, //30 00058 253,142,143,144,145,146,147,148,149,150,151,152, 74,153, 75,154, //40 00059 155,156,157,158,159,160,161,162,163,164,165,253,253,253,253,253, //50 00060 253, 71,172, 66,173, 65,174, 76,175, 64,176,177, 77, 72,178, 69, //60 00061 67,179, 78, 73,180,181, 79,182,183,184,185,253,253,253,253,253, //70 00062 191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206, 00063 207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222, 00064 223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238, 00065 239,240,241,242,243,244,245,246, 68,247,248,249,250,251,252,253, 00066 37, 44, 33, 46, 41, 48, 56, 51, 42, 60, 36, 49, 38, 31, 34, 35, 00067 45, 32, 40, 52, 53, 55, 58, 50, 57, 63, 70, 62, 61, 47, 59, 43, 00068 3, 21, 10, 19, 13, 2, 24, 20, 4, 23, 11, 8, 12, 5, 1, 15, 00069 9, 7, 6, 14, 39, 26, 28, 22, 25, 29, 54, 18, 17, 30, 27, 16, 00070 }; 00071 00072 const unsigned char latin5_CharToOrderMap[] = 00073 { 00074 255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, //00 00075 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, //10 00076 +253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, //20 00077 252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, //30 00078 253,142,143,144,145,146,147,148,149,150,151,152, 74,153, 75,154, //40 00079 155,156,157,158,159,160,161,162,163,164,165,253,253,253,253,253, //50 00080 253, 71,172, 66,173, 65,174, 76,175, 64,176,177, 77, 72,178, 69, //60 00081 67,179, 78, 73,180,181, 79,182,183,184,185,253,253,253,253,253, //70 00082 191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206, 00083 207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222, 00084 223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238, 00085 37, 44, 33, 46, 41, 48, 56, 51, 42, 60, 36, 49, 38, 31, 34, 35, 00086 45, 32, 40, 52, 53, 55, 58, 50, 57, 63, 70, 62, 61, 47, 59, 43, 00087 3, 21, 10, 19, 13, 2, 24, 20, 4, 23, 11, 8, 12, 5, 1, 15, 00088 9, 7, 6, 14, 39, 26, 28, 22, 25, 29, 54, 18, 17, 30, 27, 16, 00089 239, 68,240,241,242,243,244,245,246,247,248,249,250,251,252,255, 00090 }; 00091 00092 const unsigned char macCyrillic_CharToOrderMap[] = 00093 { 00094 255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, //00 00095 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, //10 00096 +253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, //20 00097 252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, //30 00098 253,142,143,144,145,146,147,148,149,150,151,152, 74,153, 75,154, //40 00099 155,156,157,158,159,160,161,162,163,164,165,253,253,253,253,253, //50 00100 253, 71,172, 66,173, 65,174, 76,175, 64,176,177, 77, 72,178, 69, //60 00101 67,179, 78, 73,180,181, 79,182,183,184,185,253,253,253,253,253, //70 00102 37, 44, 33, 46, 41, 48, 56, 51, 42, 60, 36, 49, 38, 31, 34, 35, 00103 45, 32, 40, 52, 53, 55, 58, 50, 57, 63, 70, 62, 61, 47, 59, 43, 00104 191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206, 00105 207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222, 00106 223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238, 00107 239,240,241,242,243,244,245,246,247,248,249,250,251,252, 68, 16, 00108 3, 21, 10, 19, 13, 2, 24, 20, 4, 23, 11, 8, 12, 5, 1, 15, 00109 9, 7, 6, 14, 39, 26, 28, 22, 25, 29, 54, 18, 17, 30, 27,255, 00110 }; 00111 00112 const unsigned char IBM855_CharToOrderMap[] = 00113 { 00114 255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, //00 00115 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, //10 00116 +253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, //20 00117 252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, //30 00118 253,142,143,144,145,146,147,148,149,150,151,152, 74,153, 75,154, //40 00119 155,156,157,158,159,160,161,162,163,164,165,253,253,253,253,253, //50 00120 253, 71,172, 66,173, 65,174, 76,175, 64,176,177, 77, 72,178, 69, //60 00121 67,179, 78, 73,180,181, 79,182,183,184,185,253,253,253,253,253, //70 00122 191,192,193,194, 68,195,196,197,198,199,200,201,202,203,204,205, 00123 206,207,208,209,210,211,212,213,214,215,216,217, 27, 59, 54, 70, 00124 3, 37, 21, 44, 28, 58, 13, 41, 2, 48, 39, 53, 19, 46,218,219, 00125 220,221,222,223,224, 26, 55, 4, 42,225,226,227,228, 23, 60,229, 00126 230,231,232,233,234,235, 11, 36,236,237,238,239,240,241,242,243, 00127 8, 49, 12, 38, 5, 31, 1, 34, 15,244,245,246,247, 35, 16,248, 00128 43, 9, 45, 7, 32, 6, 40, 14, 52, 24, 56, 10, 33, 17, 61,249, 00129 250, 18, 62, 20, 51, 25, 57, 30, 47, 29, 63, 22, 50,251,252,255, 00130 }; 00131 00132 const unsigned char IBM866_CharToOrderMap[] = 00133 { 00134 255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, //00 00135 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, //10 00136 +253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, //20 00137 252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, //30 00138 253,142,143,144,145,146,147,148,149,150,151,152, 74,153, 75,154, //40 00139 155,156,157,158,159,160,161,162,163,164,165,253,253,253,253,253, //50 00140 253, 71,172, 66,173, 65,174, 76,175, 64,176,177, 77, 72,178, 69, //60 00141 67,179, 78, 73,180,181, 79,182,183,184,185,253,253,253,253,253, //70 00142 37, 44, 33, 46, 41, 48, 56, 51, 42, 60, 36, 49, 38, 31, 34, 35, 00143 45, 32, 40, 52, 53, 55, 58, 50, 57, 63, 70, 62, 61, 47, 59, 43, 00144 3, 21, 10, 19, 13, 2, 24, 20, 4, 23, 11, 8, 12, 5, 1, 15, 00145 191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206, 00146 207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222, 00147 223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238, 00148 9, 7, 6, 14, 39, 26, 28, 22, 25, 29, 54, 18, 17, 30, 27, 16, 00149 239, 68,240,241,242,243,244,245,246,247,248,249,250,251,252,255, 00150 }; 00151 00152 //Model Table: 00153 //total sequences: 100% 00154 //first 512 sequences: 97.6601% 00155 //first 1024 sequences: 2.3389% 00156 //rest sequences: 0.1237% 00157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,1, 00280 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, 00281 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, 00282 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, 00283 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, 00284 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, 00285 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, 00286 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, 00287 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, 00288 }; 00289 00290 00291 SequenceModel Koi8rModel = 00292 { 00293 KOI8R_CharToOrderMap, 00294 RussianLangModel, 00295 (float)0.976601, 00296 false, 00297 "KOI8-R" 00298 }; 00299 00300 SequenceModel Win1251Model = 00301 { 00302 win1251_CharToOrderMap, 00303 RussianLangModel, 00304 (float)0.976601, 00305 false, 00306 "windows-1251" 00307 }; 00308 00309 SequenceModel Latin5Model = 00310 { 00311 latin5_CharToOrderMap, 00312 RussianLangModel, 00313 (float)0.976601, 00314 false, 00315 "ISO-8859-5" 00316 }; 00317 00318 SequenceModel MacCyrillicModel = 00319 { 00320 macCyrillic_CharToOrderMap, 00321 RussianLangModel, 00322 (float)0.976601, 00323 false, 00324 "x-mac-cyrillic" 00325 }; 00326 00327 SequenceModel Ibm866Model = 00328 { 00329 IBM866_CharToOrderMap, 00330 RussianLangModel, 00331 (float)0.976601, 00332 false, 00333 "IBM866" 00334 }; 00335 00336 SequenceModel Ibm855Model = 00337 { 00338 IBM855_CharToOrderMap, 00339 RussianLangModel, 00340 (float)0.976601, 00341 false, 00342 "IBM855" 00343 }; 00344 } 00345 00346
KDE 4.6 API Reference