зеркало из https://github.com/mozilla/gecko-dev.git
Bug 304951 - error in chardet's Hebrew language model. patch from Shy Shalom <shoosh20012001@hotmail.com>, r=smontagu, sr=roc.
This commit is contained in:
Родитель
f98e12557e
Коммит
a72e1fcea5
|
@ -39,18 +39,27 @@
|
||||||
|
|
||||||
#include "nsSBCharSetProber.h"
|
#include "nsSBCharSetProber.h"
|
||||||
|
|
||||||
|
|
||||||
|
/****************************************************************
|
||||||
|
255: Control characters that usually does not exist in any text
|
||||||
|
254: Carriage/Return
|
||||||
|
253: symbol (punctuation) that does not belong to word
|
||||||
|
252: 0 - 9
|
||||||
|
|
||||||
|
*****************************************************************/
|
||||||
|
|
||||||
//Windows-1255 language model
|
//Windows-1255 language model
|
||||||
//Character Mapping Table:
|
//Character Mapping Table:
|
||||||
unsigned char win1255_CharToOrderMap[] =
|
unsigned char win1255_CharToOrderMap[] =
|
||||||
{
|
{
|
||||||
129,130,131,132,133,134,135,136,137,138,255,139,140,255,141,142,
|
255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, //00
|
||||||
143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,
|
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, //10
|
||||||
0,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,
|
+253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, //20
|
||||||
174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,
|
252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, //30
|
||||||
190, 69, 91, 79, 80, 92, 89, 97, 90, 68,111,112, 82, 73, 95, 85,
|
253, 69, 91, 79, 80, 92, 89, 97, 90, 68,111,112, 82, 73, 95, 85, //40
|
||||||
78,121, 86, 71, 67,102,107, 84,114,103,115,191,192,193,194,195,
|
78,121, 86, 71, 67,102,107, 84,114,103,115,253,253,253,253,253, //50
|
||||||
196, 50, 74, 60, 61, 42, 76, 70, 64, 53,105, 93, 56, 65, 54, 49,
|
253, 50, 74, 60, 61, 42, 76, 70, 64, 53,105, 93, 56, 65, 54, 49, //60
|
||||||
66,110, 51, 43, 44, 63, 81, 77, 98, 75,108,197,198,199,200,201,
|
66,110, 51, 43, 44, 63, 81, 77, 98, 75,108,253,253,253,253,253, //70
|
||||||
124,202,203,204,205, 40, 58,206,207,208,209,210,211,212,213,214,
|
124,202,203,204,205, 40, 58,206,207,208,209,210,211,212,213,214,
|
||||||
215, 83, 52, 47, 46, 72, 32, 94,216,113,217,109,218,219,220,221,
|
215, 83, 52, 47, 46, 72, 32, 94,216,113,217,109,218,219,220,221,
|
||||||
34,116,222,118,100,223,224,117,119,104,125,225,226, 87, 99,227,
|
34,116,222,118,100,223,224,117,119,104,125,225,226, 87, 99,227,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче