예제 #1
0
파일: Mml.cs 프로젝트: acivux/SvgMath
		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();
		}
예제 #2
0
파일: Mml.cs 프로젝트: acivux/SvgMath
        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());
        }
예제 #3
0
파일: Mml.cs 프로젝트: jaelys/SvgMath-1
        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());
        }