Esempio n. 1
0
        /// <summary>
        /// 將指定的 BrailleWord 內容完整複製給自己。
        /// </summary>
        /// <param name="brWord"></param>
        public void Copy(BrailleWord brWord)
        {
            System.Diagnostics.Debug.Assert(brWord != null, "參數 brWord 不可為 NULL!");

            m_Text     = brWord.Text;
            m_Language = brWord.Language;

            m_CellList.Clear();
            foreach (BrailleCell brCell in brWord.CellList.Items)
            {
                m_CellList.Add(brCell);
            }

            m_PhoneticCode = brWord.PhoneticCode;
            m_IsPolyphonic = brWord.m_IsPolyphonic;

/*
 *          // 複製所有注音字根與點字串列, for 向下相容.
 *          if (brWord.PhoneticCodes != null)
 *          {
 *              m_PhoneticCodes.Clear();
 *              m_PhoneticCodes.AddRange(brWord.PhoneticCodes);
 *              m_ActivePhoneticIndex = brWord.ActivePhoneticIndex;
 *          }
 */
        }
Esempio n. 2
0
        public BrailleWord()
        {
            m_Text     = "";
            m_Language = BrailleLanguage.Neutral;
            m_CellList = new BrailleCellList();

            m_PhoneticCodes       = new List <string>();
            m_ActivePhoneticIndex = -1;

            m_DontBreakLineHere = false;

            m_IsContextTag  = false;
            m_NoDigitCell   = false;
            m_IsEngPhonetic = false;
        }
Esempio n. 3
0
 public BrailleWord(string aWord, string phCode, string brCode) : this(aWord, brCode)
 {
     m_Language = BrailleLanguage.Chinese;
     m_PhoneticCodes.Add(phCode);
     m_ActivePhoneticIndex = 0;
 }