• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDECore

  • sources
  • kde-4.12
  • kdelibs
  • kdecore
  • localization
  • probers
LangCyrillicModel.cpp
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* -*- C++ -*-
3 * Copyright (C) 1998 <developer@mozilla.org>
4 *
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining
7 * a copy of this software and associated documentation files (the
8 * "Software"), to deal in the Software without restriction, including
9 * without limitation the rights to use, copy, modify, merge, publish,
10 * distribute, sublicense, and/or sell copies of the Software, and to
11 * permit persons to whom the Software is furnished to do so, subject to
12 * the following conditions:
13 *
14 * The above copyright notice and this permission notice shall be included
15 * in all copies or substantial portions of the Software.
16 *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
21 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
22 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
23 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 */
25 
26 #include "nsSBCharSetProber.h"
27 
28 
29 namespace kencodingprober {
30 //KOI8-R language model
31 //Character Mapping Table:
32 static const unsigned char KOI8R_CharToOrderMap[] =
33 {
34 255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, //00
35 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, //10
36 +253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, //20
37 252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, //30
38 253,142,143,144,145,146,147,148,149,150,151,152, 74,153, 75,154, //40
39 155,156,157,158,159,160,161,162,163,164,165,253,253,253,253,253, //50
40 253, 71,172, 66,173, 65,174, 76,175, 64,176,177, 77, 72,178, 69, //60
41  67,179, 78, 73,180,181, 79,182,183,184,185,253,253,253,253,253, //70
42 191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206, //80
43 207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222, //90
44 223,224,225, 68,226,227,228,229,230,231,232,233,234,235,236,237, //a0
45 238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253, //b0
46  27, 3, 21, 28, 13, 2, 39, 19, 26, 4, 23, 11, 8, 12, 5, 1, //c0
47  15, 16, 9, 7, 6, 14, 24, 10, 17, 18, 20, 25, 30, 29, 22, 54, //d0
48  59, 37, 44, 58, 41, 48, 53, 46, 55, 42, 60, 36, 49, 38, 31, 34, //e0
49  35, 43, 45, 32, 40, 52, 56, 33, 61, 62, 51, 57, 47, 63, 50, 70, //f0
50 };
51 
52 static const unsigned char win1251_CharToOrderMap[] =
53 {
54 255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, //00
55 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, //10
56 +253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, //20
57 252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, //30
58 253,142,143,144,145,146,147,148,149,150,151,152, 74,153, 75,154, //40
59 155,156,157,158,159,160,161,162,163,164,165,253,253,253,253,253, //50
60 253, 71,172, 66,173, 65,174, 76,175, 64,176,177, 77, 72,178, 69, //60
61  67,179, 78, 73,180,181, 79,182,183,184,185,253,253,253,253,253, //70
62 191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,
63 207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,
64 223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,
65 239,240,241,242,243,244,245,246, 68,247,248,249,250,251,252,253,
66  37, 44, 33, 46, 41, 48, 56, 51, 42, 60, 36, 49, 38, 31, 34, 35,
67  45, 32, 40, 52, 53, 55, 58, 50, 57, 63, 70, 62, 61, 47, 59, 43,
68  3, 21, 10, 19, 13, 2, 24, 20, 4, 23, 11, 8, 12, 5, 1, 15,
69  9, 7, 6, 14, 39, 26, 28, 22, 25, 29, 54, 18, 17, 30, 27, 16,
70 };
71 
72 const unsigned char latin5_CharToOrderMap[] =
73 {
74 255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, //00
75 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, //10
76 +253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, //20
77 252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, //30
78 253,142,143,144,145,146,147,148,149,150,151,152, 74,153, 75,154, //40
79 155,156,157,158,159,160,161,162,163,164,165,253,253,253,253,253, //50
80 253, 71,172, 66,173, 65,174, 76,175, 64,176,177, 77, 72,178, 69, //60
81  67,179, 78, 73,180,181, 79,182,183,184,185,253,253,253,253,253, //70
82 191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,
83 207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,
84 223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,
85  37, 44, 33, 46, 41, 48, 56, 51, 42, 60, 36, 49, 38, 31, 34, 35,
86  45, 32, 40, 52, 53, 55, 58, 50, 57, 63, 70, 62, 61, 47, 59, 43,
87  3, 21, 10, 19, 13, 2, 24, 20, 4, 23, 11, 8, 12, 5, 1, 15,
88  9, 7, 6, 14, 39, 26, 28, 22, 25, 29, 54, 18, 17, 30, 27, 16,
89 239, 68,240,241,242,243,244,245,246,247,248,249,250,251,252,255,
90 };
91 
92 const unsigned char macCyrillic_CharToOrderMap[] =
93 {
94 255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, //00
95 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, //10
96 +253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, //20
97 252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, //30
98 253,142,143,144,145,146,147,148,149,150,151,152, 74,153, 75,154, //40
99 155,156,157,158,159,160,161,162,163,164,165,253,253,253,253,253, //50
100 253, 71,172, 66,173, 65,174, 76,175, 64,176,177, 77, 72,178, 69, //60
101  67,179, 78, 73,180,181, 79,182,183,184,185,253,253,253,253,253, //70
102  37, 44, 33, 46, 41, 48, 56, 51, 42, 60, 36, 49, 38, 31, 34, 35,
103  45, 32, 40, 52, 53, 55, 58, 50, 57, 63, 70, 62, 61, 47, 59, 43,
104 191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,
105 207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,
106 223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,
107 239,240,241,242,243,244,245,246,247,248,249,250,251,252, 68, 16,
108  3, 21, 10, 19, 13, 2, 24, 20, 4, 23, 11, 8, 12, 5, 1, 15,
109  9, 7, 6, 14, 39, 26, 28, 22, 25, 29, 54, 18, 17, 30, 27,255,
110 };
111 
112 const unsigned char IBM855_CharToOrderMap[] =
113 {
114 255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, //00
115 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, //10
116 +253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, //20
117 252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, //30
118 253,142,143,144,145,146,147,148,149,150,151,152, 74,153, 75,154, //40
119 155,156,157,158,159,160,161,162,163,164,165,253,253,253,253,253, //50
120 253, 71,172, 66,173, 65,174, 76,175, 64,176,177, 77, 72,178, 69, //60
121  67,179, 78, 73,180,181, 79,182,183,184,185,253,253,253,253,253, //70
122 191,192,193,194, 68,195,196,197,198,199,200,201,202,203,204,205,
123 206,207,208,209,210,211,212,213,214,215,216,217, 27, 59, 54, 70,
124  3, 37, 21, 44, 28, 58, 13, 41, 2, 48, 39, 53, 19, 46,218,219,
125 220,221,222,223,224, 26, 55, 4, 42,225,226,227,228, 23, 60,229,
126 230,231,232,233,234,235, 11, 36,236,237,238,239,240,241,242,243,
127  8, 49, 12, 38, 5, 31, 1, 34, 15,244,245,246,247, 35, 16,248,
128  43, 9, 45, 7, 32, 6, 40, 14, 52, 24, 56, 10, 33, 17, 61,249,
129 250, 18, 62, 20, 51, 25, 57, 30, 47, 29, 63, 22, 50,251,252,255,
130 };
131 
132 const unsigned char IBM866_CharToOrderMap[] =
133 {
134 255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, //00
135 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, //10
136 +253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, //20
137 252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, //30
138 253,142,143,144,145,146,147,148,149,150,151,152, 74,153, 75,154, //40
139 155,156,157,158,159,160,161,162,163,164,165,253,253,253,253,253, //50
140 253, 71,172, 66,173, 65,174, 76,175, 64,176,177, 77, 72,178, 69, //60
141  67,179, 78, 73,180,181, 79,182,183,184,185,253,253,253,253,253, //70
142  37, 44, 33, 46, 41, 48, 56, 51, 42, 60, 36, 49, 38, 31, 34, 35,
143  45, 32, 40, 52, 53, 55, 58, 50, 57, 63, 70, 62, 61, 47, 59, 43,
144  3, 21, 10, 19, 13, 2, 24, 20, 4, 23, 11, 8, 12, 5, 1, 15,
145 191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,
146 207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,
147 223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,
148  9, 7, 6, 14, 39, 26, 28, 22, 25, 29, 54, 18, 17, 30, 27, 16,
149 239, 68,240,241,242,243,244,245,246,247,248,249,250,251,252,255,
150 };
151 
152 //Model Table:
153 //total sequences: 100%
154 //first 512 sequences: 97.6601%
155 //first 1024 sequences: 2.3389%
156 //rest sequences: 0.1237%
157 //negative sequences: 0.0009%
158 const char RussianLangModel[] =
159 {
160 0,3,3,3,3,3,3,3,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0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,
283 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,
284 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,
285 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,
286 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,
287 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,
288 };
289 
290 
291 SequenceModel Koi8rModel =
292 {
293  KOI8R_CharToOrderMap,
294  RussianLangModel,
295  (float)0.976601,
296  false,
297  "KOI8-R"
298 };
299 
300 SequenceModel Win1251Model =
301 {
302  win1251_CharToOrderMap,
303  RussianLangModel,
304  (float)0.976601,
305  false,
306  "windows-1251"
307 };
308 
309 SequenceModel Latin5Model =
310 {
311  latin5_CharToOrderMap,
312  RussianLangModel,
313  (float)0.976601,
314  false,
315  "ISO-8859-5"
316 };
317 
318 SequenceModel MacCyrillicModel =
319 {
320  macCyrillic_CharToOrderMap,
321  RussianLangModel,
322  (float)0.976601,
323  false,
324  "x-mac-cyrillic"
325 };
326 
327 SequenceModel Ibm866Model =
328 {
329  IBM866_CharToOrderMap,
330  RussianLangModel,
331  (float)0.976601,
332  false,
333  "IBM866"
334 };
335 
336 SequenceModel Ibm855Model =
337 {
338  IBM855_CharToOrderMap,
339  RussianLangModel,
340  (float)0.976601,
341  false,
342  "IBM855"
343 };
344 }
345 
346 
nsSBCharSetProber.h
kencodingprober::Latin5Model
SequenceModel Latin5Model
Definition: LangCyrillicModel.cpp:309
kencodingprober::MacCyrillicModel
SequenceModel MacCyrillicModel
Definition: LangCyrillicModel.cpp:318
kencodingprober::latin5_CharToOrderMap
const unsigned char latin5_CharToOrderMap[]
Definition: LangCyrillicModel.cpp:72
kencodingprober::KOI8R_CharToOrderMap
static const unsigned char KOI8R_CharToOrderMap[]
Definition: LangCyrillicModel.cpp:32
kencodingprober::win1251_CharToOrderMap
static const unsigned char win1251_CharToOrderMap[]
Definition: LangCyrillicModel.cpp:52
kencodingprober::Ibm866Model
SequenceModel Ibm866Model
Definition: LangCyrillicModel.cpp:327
kencodingprober::Koi8rModel
SequenceModel Koi8rModel
Definition: LangCyrillicModel.cpp:291
kencodingprober::RussianLangModel
const char RussianLangModel[]
Definition: LangCyrillicModel.cpp:158
kencodingprober::IBM855_CharToOrderMap
const unsigned char IBM855_CharToOrderMap[]
Definition: LangCyrillicModel.cpp:112
kencodingprober::macCyrillic_CharToOrderMap
const unsigned char macCyrillic_CharToOrderMap[]
Definition: LangCyrillicModel.cpp:92
kencodingprober::IBM866_CharToOrderMap
const unsigned char IBM866_CharToOrderMap[]
Definition: LangCyrillicModel.cpp:132
kencodingprober::SequenceModel
Definition: nsSBCharSetProber.h:41
kencodingprober::Win1251Model
SequenceModel Win1251Model
Definition: LangCyrillicModel.cpp:300
kencodingprober::Ibm855Model
SequenceModel Ibm855Model
Definition: LangCyrillicModel.cpp:336
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal