Wednesday, February 04, 2004

itex2MML Binary for Windows

I'd expect anyone looking for this to have spotted the link the binary posted on Jacques Distler's blog, but just in case not, I'll post the link here again:

itex2MML for Windows (Compiled with GCC 3.3.1 on Cygwin)

The zip archive contains both the binary and the "cygwin1.dll" shared library required to run it. You should only need the shared library if you aren't planning to install Cygwin and run itex2MML from within it. Use of the program is straightforward: just run
itex2MML.exe < input.xhtml > output.xhtml
to obtain a file with the itex markup translated into MathML. Remember to use the following doctype
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"       "" >
<html xmlns="" xml:lang="en">

before the <head> tag, and to serve any pages with MathML content with a MIME-type of "application/xhtml+xml" if you want Mozilla to display the equations as they were meant to be seen.