读取 MathType MTEF 格式
我有一个包含一些科学文本的 XML 文件,我希望将其尽可能正确地显示为 HTML。在 XML 中,我发现一些看起来像二进制字符串的文本,可能是由 MathType 生成的。
此类字符串的一个示例如下:
... 假定为独立且正态分布为 (0;σb2MathType@MTEF@5@5@+=feaafiart1ev1aaatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXatLxBI9gBaebbnrfifHhDYfgasaacH8akY=wiFfYdH8Gipec8Eeeu0xXdb ba9frFj0=OqFfea0dXdd9vqai=hGuQ8kuc9pgc9s8qqaq=dirpe0xb9q8qiLsFr0=vr0= vr0dc8meaabaqaciaacaGaaeqabaqabeGadaaakeaaiiGacqWFdpWCdaqhaaWcbaGaemOyaigabaGaeGOmaidaaaaa@30E2@)
和...
有人见过这种格式并知道如何读取它吗?
2011/02/15 更新: 我应该补充我的问题,我需要以编程方式读取这些数据,如果可能的话希望将其转换为 TeX 或类似的。所以到目前为止的答案都朝着正确的方向发展,但还不是我需要做的。我肯定会检查一下 SDK。
I have an XML file containing some scientific text that I want to display as proper as possible as HTML. Within the XML I find some text that looks like a binary string, possibly produced by MathType.
An example of such a string is this one:
... are assumed to be independent and normally distributed as (0;σb2MathType@MTEF@5@5@+=feaafiart1ev1aaatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXatLxBI9gBaebbnrfifHhDYfgasaacH8akY=wiFfYdH8Gipec8Eeeu0xXdbba9frFj0=OqFfea0dXdd9vqai=hGuQ8kuc9pgc9s8qqaq=dirpe0xb9q8qiLsFr0=vr0=vr0dc8meaabaqaciaacaGaaeqabaqabeGadaaakeaaiiGacqWFdpWCdaqhaaWcbaGaemOyaigabaGaeGOmaidaaaaa@30E2@)
and ...
Has anybody seen this format and knows how to read it in?
UPDATE 2011/02/15:
I should add to my question that I need to read in this data programmatically and if possible would like to convert it to TeX or similar. So the answers so far are going in the right direction but are not quite what I need to do yet. I will check out the SDK for sure.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这就是 MTEF 好吧。它不伴随表达式的图形表示,或者在某些情况下不伴随 MathML 或 TeX,这是非常不寻常的。不过,您可以复制整个块并将其粘贴到 MathType 中。如果对上面的 MTEF 字符串执行此操作,您将得到 \sigma _b^2。
That's MTEF all right. It's highly unusual for it to not be accompanied by a graphical representation of the expression, or in some cases MathML or TeX. Still, you can copy the entire chunk and paste it into MathType. If you do that for the above string of MTEF, you get \sigma _b^2.
MTEF 格式记录为我们的 MathType SDK 的一部分。请参阅 www.dessci.com。 MathType 还能够读取这种格式并将其转换为 LaTeX 或 MathML。
The MTEF format is documented as part of our MathType SDK. See www.dessci.com. MathType also has the capability of reading in this format and converting it to LaTeX or MathML.