public XElement MakeSvg() { m_mathConfig = new MathConfig(m_configFileName); MathNode currentNode = new MathNode( m_mathDocument.Root.Name.LocalName, m_mathDocument.Root.Attributes().ToDictionary(kvp => kvp.Name.ToString(), kvp => kvp.Value), m_mathConfig, null); ParseMML(m_mathDocument.Root, currentNode, 0); return currentNode.MakeImage(); }
public XElement MakeSvg() { m_mathConfig = new MathConfig(m_configFileName); MathNode currentNode = new MathNode( m_mathDocument.Root.Name.LocalName, m_mathDocument.Root.Attributes().ToDictionary(kvp => kvp.Name.ToString(), kvp => kvp.Value), m_mathConfig, null); ParseMML(m_mathDocument.Root, currentNode, 0); return(currentNode.MakeImage()); }
public XElement MakeSvg() { // need to enforce point as decimal seperator, otherwise it will fail. CultureInfo customCulture = CultureInfo.CurrentCulture.Clone() as CultureInfo; customCulture.NumberFormat.NumberDecimalSeparator = "."; CultureInfo.CurrentCulture = customCulture; m_mathConfig = new MathConfig(m_configFileName); MathNode currentNode = new MathNode( m_mathDocument.Root.Name.LocalName, m_mathDocument.Root.Attributes().ToDictionary(kvp => kvp.Name.ToString(), kvp => kvp.Value), m_mathConfig, null); ParseMML(m_mathDocument.Root, currentNode, 0); return(currentNode.MakeImage()); }