WikiTexVC:面向维基百科的MediaWiki原生LaTeX转MathML转换器
WikiTexVC: MediaWiki's native LaTeX to MathML converter for Wikipedia
AI总结:
本研究提出可直接集成到MediaWiki的WikiTexVC方法,实现维基文本LaTeX公式的验证与MathML转换,提升了渲染鲁棒性、可维护性与性能,已开源并应用于德语维基百科,还新增了助力无障碍的公式消歧宏。
摘要:
MediaWiki与维基百科的作者通常使用LaTeX在维基文本标记中定义数学公式。在维基媒体生态系统中,这些公式曾通过一长串级联的网络服务进行处理,最终以SVG渲染后的视觉可读形式交付到用户浏览器。\n 随着基于Chromium的浏览器对MathML Core支持的最新进展,MathML正逐步成为网页中数学符号的事实标准标记语言。以MathML形式传递公式可实现语义标注与机器可读性,用于数学内容的扩展解读,例如供无障碍技术使用。\n 在本研究中,我们提出了WikiTexVC,这是一种用于验证维基文本中的LaTeX公式并将其转换为MathML的全新方法,可直接集成到MediaWiki中。该方法缓解了MediaWiki此前使用的渲染方法在鲁棒性、可维护性和性能方面的缺陷。此外,它无需在后台运行大量网络服务,处理过程直接在MediaWiki实例内完成。我们使用包含超过30万条公式的扩展数据集验证了该方法,这些公式已作为自动化测试纳入MediaWiki的持续集成实例。此外,我们用423条公式开展了评估,将生成的解析树的树编辑距离与其他MathML渲染器进行了对比。我们的方法已开源,可在德语维基百科上使用,且已随最新的MediaWiki版本一同发布。作为在我们的方法中实现语义标注的实际案例,我们提出了一个新宏,可为公式消歧添加内容,以提升视障人士的可访问性。
英文摘要:
MediaWiki and Wikipedia authors usually use LaTeX to define mathematical formulas in the wiki text markup. In the Wikimedia ecosystem, these formulas were processed by a long cascade of web services and finally delivered to users' browsers in rendered form for visually readable representation as SVG. With the latest developments of supporting MathML Core in Chromium-based browsers, MathML continues its path to be a de facto standard markup language for mathematical notation in the web. Conveying formulas in MathML enables semantic annotation and machine readability for extended interpretation of mathematical content, in example for accessibility technologies. With this work, we present WikiTexVC, a novel method for validating LaTeX formulas from wiki texts and converting them to MathML, which is directly integrated into MediaWiki. This mitigates the shortcomings of previously used rendering methods in MediaWiki in terms of robustness, maintainability and performance. In addition, there is no need for a multitude of web services running in the background, but processing takes place directly within MediaWiki instances. We validated this method with an extended dataset of over 300k formulas which have been incorporated as automated tests to the MediaWiki continuous integration instances. Furthermore, we conducted an evaluation with 423 formulas, comparing the tree edit distance for produced parse trees to other MathML renderers. Our method has been made available Open Source and can be used on German Wikipedia and is delivered with recent MediaWiki versions. As a practical example of enabling semantic annotations within our method, we present a new macro that adds content to formula disambiguation to facilitate accessibility for visually impaired people.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。