[docbook->html] support for MathML
Steven Watanabe <[email protected]>
| Newsgroups | gmane.comp.lib.boost.documentation |
|---|---|
| Organization | Providere Consulting, Inc. |
| Message-ID | <[email protected]> |
AMDG I've just implemented support for LaTeX using MathJax. The next step is to support MathML as well. This would mainly be used by the Math library. I'm running into more problems with this however: * How should the MathML be represented in the DocBook file? Based on what Boost.Math does for the PNG and SVG versions, I tried <imageobject role="mml"> <imagedata fileref="..."/> </imageobject> This doesn't really work very well. - Getting the path correct to load the file from the XSL stylesheet is a pain. I had to add an extra XSL parameter to act as the root. - The DTD is downloaded for each mml file that is loaded. This makes it really slow. Fixing this means adding another entry to boostbook_catalog.xml and more Boost.Build configuration. Altogether, the extra code ends up looking like: In user-config.jam: using mathml : /path/to/mathml2 ; In the Jamfile: path-constant here : . ; <xsl:param>file://$(here)/html It's possible to make the <xsl:param> automatic, but there's no way around the configuration. Do people find this acceptable? I really don't like it, since configuring the documentation tools is already complex enough. I suppose I could create a target that automatically downloads the DTD once. It would also be possible to use inline MML (or inline LaTeX) in the Math docs. This is straightforward to implement, but requires more rejiggering on the Boost.Math side. John? In Christ, Steven Watanabe _______________________________________________ Boost-docs mailing list [email protected] http://lists.boost.org/mailman/listinfo.cgi/boost-docs
signature.asc
(application/pgp-signature, 490 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJOn0DKAAoJEDTBQuhymLHSx9oIAMhCmxGcbNslpHPKBmFr4M0Y zfmMFZPXSScnLLn6hh5hE7aIa3Br0RHjd1KS8AvRNe5u9o9qLK1DN5a42pFImeh5 vc4snIUGc5Ml1SwFbR3lQ4ALmBTR1+7Ps4JbNlPNetI4r1rJzcagf/sBmc4NqzEg U7s0p9L6Eg+HRDl7PR77FbUjgyAjo7844fz7yPGscCN1jlhllJkdhaUCtdmh5iiN eAOQg8rKuoP6+Xf/DvVXQihPDLSCaZcDqHwz31gdxDQ4Y2s573a9jEKA3ux4lpco GBv9g1B2VD9Tn+tlhJpIDMOSaRcRyK0zjwW+VbVhLJAKvctZsEeGFpRCK8c2ilk= =qDC+ -----END PGP SIGNATURE-----