25 #ifndef UTF8TRANSLITERATOR_H
26 #define UTF8TRANSLITERATOR_H
30 SE_IPA,
SE_BASICLATIN,
SE_SBL,
SE_TC,
SE_BETA,
SE_BGREEK,
SE_SERA,
SE_HUGOYE,
SE_UNGEGN,
SE_ISO,
SE_ALALC,
SE_BGN,
32 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,
39 #define NUMTARGETSCRIPTS 2 //NUMSCRIPTS-3//6
43 #include <unicode/unistr.h>
45 #include <unicode/translit.h>
58 typedef std::map<const icu::UnicodeString, SWTransData>
SWTransMap;
59 typedef std::pair<icu::UnicodeString, SWTransData>
SWTransPair;
70 static const char optName[];
71 static const char optTip[];
74 #ifdef ICU_CUSTOM_RESOURCE_BUILDING
75 static const char SW_RB_RULE_BASED_IDS[];
76 static const char SW_RB_RULE[];
77 static const char SW_RESDATA[];
79 UErrorCode utf8status;
81 void load(UErrorCode &status);
82 void registerTrans(
const UnicodeString& ID,
const UnicodeString& resource, UTransDirection dir, UErrorCode &status);
83 bool checkTrans(
const UnicodeString& ID, UErrorCode &status);
85 bool addTrans(
const char* newTrans,
SWBuf* transList);
86 icu::Transliterator *createTrans(
const icu::UnicodeString& ID, UTransDirection dir, UErrorCode &status);
#define SWORD_NAMESPACE_START
virtual const char * getOptionTip()
std::list< SWBuf > StringList
std::map< const icu::UnicodeString, SWTransData > SWTransMap
virtual StringList getOptionValues()
virtual char processText(SWBuf &text, const SWKey *key=0, const SWModule *module=0)=0
virtual const char * getOptionName()
virtual void setOptionValue(const char *ival)
std::pair< icu::UnicodeString, SWTransData > SWTransPair
#define SWORD_NAMESPACE_END
virtual const char * getOptionValue()
icu::UnicodeString resource