MathML 和 Java

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1784786/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-29 17:58:09  来源:igfitidea点击:

MathML and Java

javaandroidmathlibrariesmathml

提问by Tom R

I've been doing some research for a mathematical Android related project I'd like to embark upon and I stumbled across for the first time MathML.

我一直在为一个我想着手的数学 Android 相关项目做一些研究,并且我第一次偶然发现了 MathML。

Does anyone know of any Java libraries which can do any (preferably all) of the following things?

有谁知道任何可以做以下任何(最好是所有)事情的 Java 库?

  1. Parse MathML
  2. Output MathML by parsing standard mathematical notation
  3. Render MathML (particularly important)
  4. Do any other cool maths-ey things (like re-arrange equations in terms of different things)
  1. 解析数学ML
  2. 通过解析标准数学符号输出 MathML
  3. Render MathML(特别重要)
  4. 做任何其他很酷的数学事情(比如根据不同的东西重新排列方程)

Number 3 is probably the most important, and number 4 the least.

数字 3 可能是最重要的,而数字 4 最不重要。

Thanks in advance.

提前致谢。

回答by axelclk

I've used JEuclidfor rendering MathML in my Symjaproject (Java symbolic math system - point 4 of your list). JEuclid may be too slow (especially at startup) to render MathML on a mobile phone.

我在我的Symja项目(Java 符号数学系统 - 列表的第 4 点)中使用了JEuclid来渲染 MathML 。JEuclid 可能太慢(尤其是在启动时),无法在手机上呈现 MathML。

Other alternatives for rendering math expressions with TeX:

使用 TeX 渲染数学表达式的其他替代方法:

and for re-arranging equations or as general Java math libraries:

并用于重新排列方程或作为通用 Java 数学库:

Calculator projects for Android:

安卓计算器项目:

回答by cjstehno

The W3C MathML Implementations page (http://www.w3.org/Math/Software/mathml_software_cat_editors.html) has a few that mention Java-based tools... that might be a good place to start looking.

W3C MathML 实现页面 ( http://www.w3.org/Math/Software/mathml_software_cat_editors.html) 有一些提到基于 Java 的工具......这可能是开始寻找的好地方。

Good luck.

祝你好运。

回答by JohnnySoftware

JScience (jscience.org) looks like it has some experimental support for MathML being introduced.

JScience ( jscience.org) 看起来对引入的 MathML 有一些实验支持。

I would like to say I am extremely impressed with the features the JScience author has chosen and proven able to support with his powerful Java library.

我想说,我对 JScience 作者选择并证明能够用他强大的 Java 库支持的功能印象非常深刻。

It is a pretty amazing piece of craftsmanship. If you are doing any significant amount of sophisticated mathematics in your Java programs, or just want to create a utility to punt around with then you should take a look at this library. It might even give you some ideas for things you never thought about doing before because they were "too hard".

这是一件非常了不起的手工艺。如果您正在 Java 程序中进行大量复杂的数学运算,或者只是想创建一个实用程序来玩,那么您应该看看这个库。它甚至可能会给你一些你以前从未想过要做的事情的想法,因为它们“太难了”。

There is an open source project named MathEclipsethat might interest you too.

您可能也会感兴趣一个名为MathEclipse 的开源项目。

回答by poundifdef

I have used this for your Point #3 above (rendering): http://jeuclid.sourceforge.net/

我已经将它用于上面的第 3 点(渲染):http: //jeuclid.sourceforge.net/

It does a pretty nifty job taking MathML and creating a JPG, PNG, etc. It will also display the equations in a GUI (and I'm guessing you can look at the GUI code and incorporate that into your own project)

它在使用 MathML 和创建 JPG、PNG 等方面做得非常好。它还可以在 GUI 中显示方程(我猜你可以查看 GUI 代码并将其合并到你自己的项目中)

回答by duffymo

It depends on having a browser that will render MathML, of course.

当然,这取决于拥有可以呈现 MathML 的浏览器。

An alternative would be to try jsMath, a JavaScript library that uses TeX to render equations.

另一种方法是尝试jsMath,这是一个使用 TeX 渲染方程的 JavaScript 库。