[sword-svn] r2473 - in trunk: include src/modules/filters
chrislit at crosswire.org
chrislit at crosswire.org
Sun Oct 25 23:06:09 MST 2009
Author: chrislit
Date: 2009-10-25 23:06:09 -0700 (Sun, 25 Oct 2009)
New Revision: 2473
Modified:
trunk/include/utf8transliterator.h
trunk/src/modules/filters/utf8transliterator.cpp
Log:
added Cherokee transliterator
Modified: trunk/include/utf8transliterator.h
===================================================================
--- trunk/include/utf8transliterator.h 2009-10-25 02:48:04 UTC (rev 2472)
+++ trunk/include/utf8transliterator.h 2009-10-26 06:06:09 UTC (rev 2473)
@@ -25,13 +25,13 @@
/*one-way (to) transliterators*/
SE_IPA, SE_BASICLATIN, SE_SBL, SE_TC, SE_BETA, SE_BGREEK, SE_SERA, SE_HUGOYE, SE_UNGEGN, SE_ISO, SE_ALALC, SE_BGN,
/*two-way transliterators*/
-SE_GREEK, SE_HEBREW, SE_CYRILLIC, SE_ARABIC, SE_SYRIAC, SE_KATAKANA, SE_HIRAGANA, SE_HANGUL, SE_DEVANAGARI, SE_TAMIL, SE_BENGALI, SE_GURMUKHI, SE_GUJARATI, SE_ORIYA, SE_TELUGU, SE_KANNADA, SE_MALAYALAM, SE_THAI, SE_GEORGIAN, SE_ARMENIAN, SE_ETHIOPIC, SE_GOTHIC, SE_UGARITIC, SE_COPTIC, SE_MEROITIC, SE_LINEARB, SE_CYPRIOT, SE_RUNIC, SE_OGHAM, SE_THAANA, SE_GLAGOLITIC,
+SE_GREEK, SE_HEBREW, SE_CYRILLIC, SE_ARABIC, SE_SYRIAC, SE_KATAKANA, SE_HIRAGANA, SE_HANGUL, SE_DEVANAGARI, SE_TAMIL, SE_BENGALI, SE_GURMUKHI, SE_GUJARATI, SE_ORIYA, SE_TELUGU, SE_KANNADA, SE_MALAYALAM, SE_THAI, SE_GEORGIAN, SE_ARMENIAN, SE_ETHIOPIC, SE_GOTHIC, SE_UGARITIC, SE_COPTIC, SE_MEROITIC, SE_LINEARB, SE_CYPRIOT, SE_RUNIC, SE_OGHAM, SE_THAANA, SE_GLAGOLITIC, SE_CHEROKEE,
/*SE_TENGWAR, SE_CIRTH,*/
/*one-way (from) transliterators*/
SE_JAMO, SE_HAN, SE_KANJI
};
-#define NUMSCRIPTS 48
+#define NUMSCRIPTS 49
#define NUMTARGETSCRIPTS 2 //NUMSCRIPTS-3//6
#include <swoptfilter.h>
Modified: trunk/src/modules/filters/utf8transliterator.cpp
===================================================================
--- trunk/src/modules/filters/utf8transliterator.cpp 2009-10-25 02:48:04 UTC (rev 2472)
+++ trunk/src/modules/filters/utf8transliterator.cpp 2009-10-26 06:06:09 UTC (rev 2473)
@@ -83,6 +83,7 @@
// "Ogham",
// "Thaana",
// "Glagolitic",
+ // "Cherokee",
};
const char UTF8Transliterator::optName[] = "Transliteration";
@@ -403,6 +404,7 @@
case UBLOCK_OGHAM: scripts[SE_OGHAM] = true; break;
case UBLOCK_THAANA: scripts[SE_THAANA] = true; break;
case UBLOCK_GLAGOLITIC: scripts[SE_GLAGOLITIC] = true; break;
+ case UBLOCK_CHEROKEE: scripts[SE_CHEROKEE] = true; break;
// case UBLOCK_TENGWAR: scripts[SE_TENGWAR] = true; break;
// case UBLOCK_CIRTH: scripts[SE_CIRTH] = true; break;
case UBLOCK_CJK_RADICALS_SUPPLEMENT:
@@ -637,6 +639,10 @@
scripts[SE_LATIN] = true;
}
}
+ if (scripts[SE_CHEROKEE]) {
+ addTrans("Cherokee-Latin", &ID);
+ scripts[SE_LATIN] = true;
+ }
if (scripts[SE_THAI]) {
addTrans("Thai-Latin", &ID);
scripts[SE_LATIN] = true;
@@ -869,6 +875,9 @@
case SE_GLAGOLITIC:
addTrans("Latin-Glagolitic", &ID);
break;
+ case SE_CHEROKEE:
+ addTrans("Latin-Cherokee", &ID);
+ break;
// case SE_TENGWAR:
// addTrans("Latin-Tengwar", &ID);
// break;
More information about the sword-cvs
mailing list