public override void AddString(ITsString tss)
{
// Ignore directionality markers on export.
if (tss.Text == "\x200F" || tss.Text == "\x200E")
return;
if (m_fDoingHomographNumber)
{
m_tssPendingHomographNumber = tss;
}
else if (m_fDoingVariantTypes)
{
// For now just concatenate all the variant types info into one string (including separators [+,]).
// NOTE: We'll need to re-evaluate this when we want this (and homograph item) to be
// standard enough to import (see LT-9664).
m_writer.WriteString(GetText(tss));
}
else if (m_fDoingHeadword)
{
if (m_fAwaitingHeadwordForm)
{
//prefix marker
m_sPendingPrefix = GetText(tss);
}
else
{
// suffix, etc.; just write, we've done the lang attribute
m_writer.WriteString(GetText(tss));
}
}
else if (m_fDoingInterlinName)
{
WriteLangAndContent(GetWsFromTsString(tss), tss);
}
else if (m_vc.IsDoingRealWordForm)
{
WriteItem("txt", tss);
}
else if (m_vc.IsAddingSegmentReference)
{
WriteItem("segnum", tss);
}
base.AddString (tss);
}