Exemple #1
0
 public BurmeseBreakEngine()
     : base(BreakIterator.KIND_WORD, BreakIterator.KIND_LINE)
 {
     SetCharacters(fBurmeseWordSet);
     // Initialize dictionary
     fDictionary = DictionaryData.LoadDictionaryFor("Mymr");
 }
Exemple #2
0
 public LaoBreakEngine()
     : base(BreakIterator.KIND_WORD, BreakIterator.KIND_LINE)
 {
     SetCharacters(fLaoWordSet);
     // Initialize dictionary
     fDictionary = DictionaryData.LoadDictionaryFor("Laoo");
 }
Exemple #3
0
 public KhmerBreakEngine()
     : base(BreakIterator.KIND_WORD, BreakIterator.KIND_LINE)
 {
     SetCharacters(fKhmerWordSet);
     // Initialize dictionary
     fDictionary = DictionaryData.LoadDictionaryFor("Khmr");
 }
Exemple #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);
     }
 }