Ejemplo n.º 1
0
			internal static ITsString GetTssStringValue(ParagraphAnnotatorForParagraphBuilder tapb, int iSegment, int iSegForm, out int ws)
			{
				ITsString tssStringValue = tapb.GetSegment(iSegment).GetBaselineText(iSegForm);
				ws = TsStringUtils.GetWsAtOffset(tssStringValue, 0);
				return tssStringValue;
			}
Ejemplo n.º 2
0
			/// <summary>
			/// TODO: Finish implementing this.
			/// </summary>
			/// <returns></returns>
			public List<int> ExportRealSegmentAnnotationsFromDefn()
			{
				List<int> realSegments = new List<int>();
				foreach (int hvoPara in m_text.ContentsOA.ParagraphsOS.HvoArray)
				{
					ParagraphBuilder pb = GetParagraphBuilder(hvoPara);
					ParagraphAnnotatorForParagraphBuilder papb = new ParagraphAnnotatorForParagraphBuilder(pb);
					int iseg = 0;
					foreach (XmlNode segNode in pb.SegmentNodes())
					{
						int hvoSeg = papb.GetSegment(iseg);
						// export this into a real annotation by converting it to a real annotation.
					}
				}
				return realSegments;
			}