コード例 #1
0
        /// <summary>
        /// 檢查指定的 BrailleWord 是否為國語標點符號。
        /// </summary>
        /// <param name="brWord"></param>
        /// <returns></returns>
        public static bool IsChinesePunctuation(BrailleWord brWord)
        {
            ChineseBrailleTable chtBrlTbl = ChineseBrailleTable.GetInstance();
            string brCode = chtBrlTbl.FindPunctuation(brWord.Text);

            if (String.IsNullOrEmpty(brCode))
            {
                return(false);
            }
            return(true);
        }
コード例 #2
0
 public ChineseWordConverter(ZhuyinReverseConverter zhuyinConverter)
     : base()
 {
     _brailleTable   = ChineseBrailleTable.GetInstance();
     ZhuyinConverter = zhuyinConverter ?? throw new ArgumentNullException(nameof(zhuyinConverter));
 }