Skip to content

Commit

Permalink
LangModels: rename Cyrillic models to Russian models.
Browse files Browse the repository at this point in the history
Our language models are per-lang, not per script.
  • Loading branch information
Jehan committed Dec 4, 2015
1 parent 569509f commit 5691dc5
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set(
CharDistribution.cpp
JpCntx.cpp
LangModels/LangBulgarianModel.cpp
LangModels/LangCyrillicModel.cpp
LangModels/LangRussianModel.cpp
LangModels/LangEsperantoModel.cpp
LangModels/LangFrenchModel.cpp
LangModels/LangGermanModel.cpp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ static const PRUint8 RussianLangModel[] =
};


const SequenceModel Koi8rCyrillicModel =
const SequenceModel Koi8rRussianModel =
{
KOI8R_CharToOrderMap,
RussianLangModel,
Expand All @@ -310,7 +310,7 @@ const SequenceModel Koi8rCyrillicModel =
"KOI8-R"
};

const SequenceModel Win1251CyrillicModel =
const SequenceModel Win1251RussianModel =
{
win1251_CharToOrderMap,
RussianLangModel,
Expand All @@ -320,7 +320,7 @@ const SequenceModel Win1251CyrillicModel =
"WINDOWS-1251"
};

const SequenceModel Latin5CyrillicModel =
const SequenceModel Latin5RussianModel =
{
latin5_CharToOrderMap,
RussianLangModel,
Expand All @@ -330,7 +330,7 @@ const SequenceModel Latin5CyrillicModel =
"ISO-8859-5"
};

const SequenceModel MacCyrillicModel =
const SequenceModel MacCyrillicRussianModel =
{
macCyrillic_CharToOrderMap,
RussianLangModel,
Expand All @@ -340,7 +340,7 @@ const SequenceModel MacCyrillicModel =
"MAC-CYRILLIC"
};

const SequenceModel Ibm866CyrillicModel =
const SequenceModel Ibm866RussianModel =
{
IBM866_CharToOrderMap,
RussianLangModel,
Expand All @@ -350,7 +350,7 @@ const SequenceModel Ibm866CyrillicModel =
"IBM866"
};

const SequenceModel Ibm855CyrillicModel =
const SequenceModel Ibm855RussianModel =
{
IBM855_CharToOrderMap,
RussianLangModel,
Expand Down
12 changes: 6 additions & 6 deletions src/nsSBCSGroupProber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@

nsSBCSGroupProber::nsSBCSGroupProber()
{
mProbers[0] = new nsSingleByteCharSetProber(&Win1251CyrillicModel);
mProbers[1] = new nsSingleByteCharSetProber(&Koi8rCyrillicModel);
mProbers[2] = new nsSingleByteCharSetProber(&Latin5CyrillicModel);
mProbers[3] = new nsSingleByteCharSetProber(&MacCyrillicModel);
mProbers[4] = new nsSingleByteCharSetProber(&Ibm866CyrillicModel);
mProbers[5] = new nsSingleByteCharSetProber(&Ibm855CyrillicModel);
mProbers[0] = new nsSingleByteCharSetProber(&Win1251RussianModel);
mProbers[1] = new nsSingleByteCharSetProber(&Koi8rRussianModel);
mProbers[2] = new nsSingleByteCharSetProber(&Latin5RussianModel);
mProbers[3] = new nsSingleByteCharSetProber(&MacCyrillicRussianModel);
mProbers[4] = new nsSingleByteCharSetProber(&Ibm866RussianModel);
mProbers[5] = new nsSingleByteCharSetProber(&Ibm855RussianModel);

mProbers[6] = new nsSingleByteCharSetProber(&Latin7GreekModel);
mProbers[7] = new nsSingleByteCharSetProber(&Win1253GreekModel);
Expand Down
12 changes: 6 additions & 6 deletions src/nsSBCharSetProber.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ class nsSingleByteCharSetProber : public nsCharSetProber{
};


extern const SequenceModel Koi8rCyrillicModel;
extern const SequenceModel Win1251CyrillicModel;
extern const SequenceModel Latin5CyrillicModel;
extern const SequenceModel MacCyrillicModel;
extern const SequenceModel Ibm866CyrillicModel;
extern const SequenceModel Ibm855CyrillicModel;
extern const SequenceModel Koi8rRussianModel;
extern const SequenceModel Win1251RussianModel;
extern const SequenceModel Latin5RussianModel;
extern const SequenceModel MacCyrillicRussianModel;
extern const SequenceModel Ibm866RussianModel;
extern const SequenceModel Ibm855RussianModel;

extern const SequenceModel Latin7GreekModel;
extern const SequenceModel Win1253GreekModel;
Expand Down

0 comments on commit 5691dc5

Please sign in to comment.