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)); }
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); } }