/// <summary> /// Adds the character to the word. /// </summary> /// <param name="oChar">The character.</param> public void AddChar(TChar oChar) { // Add TChar m_oChars.Add(oChar); // Update word rectangle m_oRectangle.Add(oChar.Rect); // Update word data m_sWordData += oChar.Data; }
/// <summary> /// Creates the hebrew character string. /// </summary> /// <param name="line">The line.</param> /// <param name="newIndexes">The new indexes.</param> /// <param name="lineData">The line data.</param> /// <returns></returns> private static TChar[] CreateHebTCharString(TLine line, int[] newIndexes, string lineData) { TChar[] tempTCharString = new TChar[lineData.Length]; List <TChar> chrlist = new List <TChar>(); chrlist.AddRange(line.Words[0].Chars); for (int i = 1; i < line.Words.Count; i++) { chrlist.Add(new TChar(' ', 100, new TOCRRect())); chrlist.AddRange(line.Words[i].Chars); } for (int i = 0; i < chrlist.Count; i++) { tempTCharString[newIndexes[i]] = chrlist[i]; } return(tempTCharString); }