W3C定义的数学标记语言(MathML)虽然可解决Web中应用数学公式的问题,但是支持它的浏览器很少;而W3C定义的可伸缩矢量图形(SVG)得到了更多浏览器的支持,并成为标准。为此,对数学公式从MathML转换为SVG的方法进行了研究,对公式表现形式进行分析,结合SVG规范研究公式组成元素和布局的转换方法,给出了相应转换算法,并对表义形式的转换进行了分析。
Though the W3C defined math marked language(MathML) solves the application problem of math formula in Web page, a few browsers support MathML. However, scalable vector graph(SVG) which is also defined by W3C obtains more and more browsers' support, and becomes a standard format. This paper studied on a method which transformed math formula from MathML to SVG format, analyzed the display form, researched the transformation method of elements and layout based on SVG, presented a transformation algorithm, and analyzed the transformation of semantic form.