Пример #1
0
        private bool CanAddEmphasisDots()
        {
            var letterJp = _decoratee as InlineLetterJp;

            if (letterJp == null)
            {
                return(false);
            }

            var letter = letterJp.Letter;

            return(CC.IsHiragana(letter) || CC.IsCJKIdeograph(letter) || CC.IsKatakana(letter));
        }
Пример #2
0
 private static Lang JudgeLang(UChar letter)
 {
     if (CC.IsLatin(letter) || letter.IsAscii) //TODO: 半角空白はここでやるべきか?
     {
         return(Lang.Latin);
     }
     else if (CC.IsCJKIdeograph(letter) || CC.IsHiragana(letter) || CC.IsKatakana(letter))
     {
         return(Lang.Japanese);
     }
     else
     {
         return(Lang.Undef);
     }
 }