Last two days,I encountereda technical problem. When I extracted
MathML from GIF image generated by MathType, there were always junk characters in the MathML text.
I had discussed this problem with my colleague, he told me to replace the MathML text with image.But I thought it was not a perfect solution. Then I tried
to get help on the Web. As usual, I searched something in Google. I found an answer in similar question on stackOverFlow :"convert MathML to MathType in MS Word".
Fortunately, Bob Mathew who is the developer for MathType answered the question.
Right away, I submitted a question as follows:
I want to convert MathType equation saved as GIF format for MathML. Firstly, I opened these GIF files and saved them within MathType 6.7. As a result, MathML text is inserted into the end of GIF files. However, when I extracted MathML text from these GIF
files using Perl script, I found some garbled characters in the MathML text as following text:
<mn>xxx</mn>
In the above line, a garbled character is inserted before 'mn' label. Is this MathType 's BUG? How can I work around this problem? I have uploaded my test GIF files. URL is:http://ubuntuone.com/p/1352/
Then I @ Bob in StackOverFlow. About an hour later,Afwings answered my question and asked me to upload the full block of MathML. Maybe Afwings is nickname for Bob Mathew(Afwings is Bob indeed!
11/07/08). Then I uploaded related MathML text and GIF image. Eventually, Afwings gave me the perfect answer, as below:
MathML text is embedded into a GIF file as an Application Extension Record, which consists of a 14-byte header (Application Extension Descriptor), followed by the MTEF data. The header contains:
Byte Introducer = 0x21;
Byte ExtensionLabel = 0xFF;
Byte BlockSize = 0x0B;
Byte ApplicationId[8] = "MathType";
Byte AuthenticationCode[3] = "003";
The data follows this header and is written as a series of blocks each containing 255 bytes or less. Each block starts with a single byte count followed by the data. The end is marked as a block with length 0.
The header is unique enough that the easiest way to extract the data might be to scan the file for the 14-byte header, then expect the MathML data blocks to follow. Properly decoding the GIF records isn't that hard either, but obviously requires you read
the GIF specification.
It's a wonderful experience for me. The process for the problem-solvingdemonstratesthe
power ofsocial networking which link me to the suitable solver for the problem, and cloud computing through which I uploaded related information into cloud. Meanwhile, it showsthe
importance of English that make me have the ability to find answer inabroader space across the wall.
分享到:
相关推荐
Image quality (or noise evaluation) of computer-generated images is slightly different, since image generation is different and databases are not yet developed. In this short book, we address this ...
We demonstrate how our approach can be made significantly more efficient than traditional Siamese Networks by forward propagating a batch of images through a single network and backpropagating ...
The measure of image (videos) quality remains a research challenge and a very active field of investigation considering image processing. One solution consists of providing a subjective score to the ...
Customize the Code Generated by the Resources Designer_CS。
from a single image and generated from a code consisting of a small number of parameters. We are inspired by work both on learned depth from images, and auto-encoders. Our approach is suitable for use...
possible to reliably detect if an image is generated by a particular network. We furthermore visualize how well the generator utilizes its output resolution, and identify a capacity problem, ...
We consider dual frames generated by actions of countable discrete groups on a Hilbert space. Module frames in a class of modules over a group algebra are shown to coincide with a class of ordinary ...
learning the mapping from the image features to the preference label as one of classification. In particular, we investigate the utilization of a multiple kernel learning algorithm based on group ...
With pluggable mechanisms, you will learn how to visualize data and the results of analysis in beautiful maps that can be batch-generated and embedded into documents or web pages. Finally, you will ...
高斯分布电子束的自身电场及磁场,张世昌,,在诸如自由电子激光器和电子回旋脉塞的自由电子器件中,电子束的自身场对电子的运动有实质性影响,从而影响到器件的性能。本文依
At its core Webpack allows us to use javascript modules within our browser by taking multiple files and assets and combining them into one big file as shown below in this image from the new docs for ...
Uncover the business potential generated by data from IoT devices and bring down business costs Who This Book Is For This book targets developers, IoT professionals, and those in the field of data ...
Html2Image (JAVA)jar包public static byte[] generatePDF(StringReader strReader,String path) { try { FileOutputStream fos = new FileOutputStream(path); ByteArrayOutputStream os = new ...
create_generated_clock 是用来说明generated clock与source clock的相位(边沿)关系,同时根据source clock找到master clock以及source clock 和master clock的关系,最终会确定generated clock和master clock的...
How Machines Learn: An Illustrated Guide to Machine Learning by Helen Edwards English | 30 Aug. 2016 | ASIN: B01LBQLR6M | 63 Pages | PDF (True) | 15.03 MB Artificial intelligence is changing our ...
David Parnas 在 IEEE 上发表的关于测试方面的文章
CDIMAGE 2.52 CD-ROM and DVD-ROM Premastering Utility Copyright (C) Microsoft, 1993-2000. All rights reserved. For Microsoft internal use only. Usage: CDIMAGE [options] sourceroot targetfile -l ...
Customize the Code Generated by the Resources Designer_VB。
CDIMAGE 2.52 CD-ROM and DVD-ROM Premastering Utility Copyright (C) Microsoft, 1993-2000. All rights reserved. For Microsoft internal use only. Usage: CDIMAGE [options] sourceroot targetfile -l ...
该文件是opencv计算机视觉库移植opencv,并在Linux系统下编译时所需要的几个文件