Esempio n. 1
0
 public BurmeseBreakEngine()
     : base(BreakIterator.KIND_WORD, BreakIterator.KIND_LINE)
 {
     SetCharacters(fBurmeseWordSet);
     // Initialize dictionary
     fDictionary = DictionaryData.LoadDictionaryFor("Mymr");
 }
Esempio n. 2
0
 public LaoBreakEngine()
     : base(BreakIterator.KIND_WORD, BreakIterator.KIND_LINE)
 {
     SetCharacters(fLaoWordSet);
     // Initialize dictionary
     fDictionary = DictionaryData.LoadDictionaryFor("Laoo");
 }
Esempio n. 3
0
 public KhmerBreakEngine()
     : base(BreakIterator.KIND_WORD, BreakIterator.KIND_LINE)
 {
     SetCharacters(fKhmerWordSet);
     // Initialize dictionary
     fDictionary = DictionaryData.LoadDictionaryFor("Khmr");
 }
Esempio n. 4
0
 public CjkBreakEngine(bool korean)
     : base(BreakIterator.KIND_WORD)
 {
     fDictionary = DictionaryData.LoadDictionaryFor("Hira");
     if (korean)
     {
         SetCharacters(fHangulWordSet);
     }
     else
     { //Chinese and Japanese
         UnicodeSet cjSet = new UnicodeSet();
         cjSet.AddAll(fHanWordSet);
         cjSet.AddAll(fKatakanaWordSet);
         cjSet.AddAll(fHiraganaWordSet);
         cjSet.Add(0xFF70); // HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK
         cjSet.Add(0x30FC); // KATAKANA-HIRAGANA PROLONGED SOUND MARK
         SetCharacters(cjSet);
     }
 }