[sword-svn] r2088 - in trunk: include src/modules/filters

chrislit at www.crosswire.org chrislit at www.crosswire.org
Wed Sep 26 16:42:44 MST 2007


Author: chrislit
Date: 2007-09-26 16:42:44 -0700 (Wed, 26 Sep 2007)
New Revision: 2088

Modified:
   trunk/include/utf8transliterator.h
   trunk/src/modules/filters/utf8transliterator.cpp
Log:
remove unnecessary transliterators

Modified: trunk/include/utf8transliterator.h
===================================================================
--- trunk/include/utf8transliterator.h	2007-09-23 23:29:04 UTC (rev 2087)
+++ trunk/include/utf8transliterator.h	2007-09-26 23:42:44 UTC (rev 2088)
@@ -21,8 +21,8 @@
 #ifndef UTF8TRANSLITERATOR_H
 #define UTF8TRANSLITERATOR_H
 
-enum scriptEnum {SE_OFF, SE_LATIN, /*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_BGNPCGN, /*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_TENGWAR, SE_CIRTH, /*one-way (from) transliterators*/ SE_JAMO, SE_HAN, SE_KANJI};
-#define NUMSCRIPTS 50
+enum scriptEnum {SE_OFF, SE_LATIN, /*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_BGNPCGN, /*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_TENGWAR, SE_CIRTH,*/ /*one-way (from) transliterators*/ SE_JAMO, SE_HAN, SE_KANJI};
+#define NUMSCRIPTS 48
 #define NUMTARGETSCRIPTS NUMSCRIPTS-3//6
 
 #include <swoptfilter.h>

Modified: trunk/src/modules/filters/utf8transliterator.cpp
===================================================================
--- trunk/src/modules/filters/utf8transliterator.cpp	2007-09-23 23:29:04 UTC (rev 2087)
+++ trunk/src/modules/filters/utf8transliterator.cpp	2007-09-26 23:42:44 UTC (rev 2088)
@@ -68,8 +68,8 @@
         "Ogham",
         "Thaana",
 	"Glagolitic",
-        "Tengwar",
-        "Cirth"
+//        "Tengwar",
+//        "Cirth"
 };
 
 const char UTF8Transliterator::optName[] = "Transliteration";
@@ -771,14 +771,14 @@
 			}
 		}
 
-		if (scripts[SE_TENGWAR]) {
-			addTrans("Tengwar-Latin", &ID);
-			scripts[SE_LATIN] = true;
-		}
-		if (scripts[SE_CIRTH]) {
-			addTrans("Cirth-Latin", &ID);
-			scripts[SE_LATIN] = true;
-		}
+//		if (scripts[SE_TENGWAR]) {
+//			addTrans("Tengwar-Latin", &ID);
+//			scripts[SE_LATIN] = true;
+//		}
+//		if (scripts[SE_CIRTH]) {
+//			addTrans("Cirth-Latin", &ID);
+//			scripts[SE_LATIN] = true;
+//		}
 
 		if (scripts[SE_LATIN]) {
                 switch (option) {
@@ -851,12 +851,12 @@
                         case SE_GLAGOLITIC:
 				addTrans("Latin-Glagolitic", &ID);
                                 break;
-                        case SE_TENGWAR:
-				addTrans("Latin-Tengwar", &ID);
-                                break;
-                        case SE_CIRTH:
-				addTrans("Latin-Cirth", &ID);
-                                break;
+//                        case SE_TENGWAR:
+//				addTrans("Latin-Tengwar", &ID);
+//                                break;
+//                        case SE_CIRTH:
+//				addTrans("Latin-Cirth", &ID);
+//                                break;
                         }
                 }
 




More information about the sword-cvs mailing list