protected override void WriteTopLevelSpecialElements(XmlWriter writer, XmlReader reader, WritingSystemDefinition ws)
{
base.WriteTopLevelSpecialElements(writer, reader, ws);
var fwWs = (PalasoWritingSystem)ws;
WriteBeginSpecialElement(writer, "fw");
WriteSpecialValue(writer, "fw", "defaultFontFeatures", fwWs.DefaultFontFeatures);
WriteSpecialValue(writer, "fw", "graphiteEnabled", fwWs.IsGraphiteEnabled.ToString());
WriteSpecialValue(writer, "fw", "legacyMapping", fwWs.LegacyMapping);
WriteSpecialValue(writer, "fw", "matchedPairs", fwWs.MatchedPairs);
WriteSpecialValue(writer, "fw", "punctuationPatterns", fwWs.PunctuationPatterns);
WriteSpecialValue(writer, "fw", "quotationMarks", fwWs.QuotationMarks);
WriteSpecialValue(writer, "fw", "regionName", fwWs.RegionName);
WriteSpecialValue(writer, "fw", "scriptName", fwWs.ScriptName);
WriteSpecialValue(writer, "fw", "validChars", fwWs.ValidChars);
WriteSpecialValue(writer, "fw", "variantName", fwWs.VariantName);
var legacyWs = (ILegacyWritingSystemDefinition)fwWs;
if (!string.IsNullOrEmpty(legacyWs.WindowsLcid))
WriteSpecialValue(writer, "fw", "windowsLCID", legacyWs.WindowsLcid);
writer.WriteEndElement();
}
}