20 Sep 21:52
Embedding MathML with JEuclid.
From: Peter Wainwright <prw <at> ceiriog.eclipse.co.uk>
Subject: Embedding MathML with JEuclid.
Newsgroups: gmane.text.xml.fop.user
Date: 2006-09-20 19:54:20 GMT
Subject: Embedding MathML with JEuclid.
Newsgroups: gmane.text.xml.fop.user
Date: 2006-09-20 19:54:20 GMT
I have been working with very recent SVN/CVS versions of FOP, Batik and JEuclid. I have embedded a small fragment of MathML in an XSL-FO document (actually output from Docbook source by xsltproc): <fo:instream-foreign-object> <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"> <mml:mrow> <mml:mo>∑</mml:mo> <mml:mn>4</mml:mn> <mml:mo>+</mml:mo> <mml:mi>x</mml:mi> </mml:mrow> </mml:math> </fo:instream-foreign-object> I needed two patches to the examples/mathml directory to get this to work: First, the constructor for MathBase and DOMMathBuilder have changed in recent JEuclid (fop-svn-jeuclid-svn.patch). Secondly, the scaling of the image is completely wrong, because of the extreme complexity of the dimension handling. I have found great difficulty in understanding this because of the levels of nesting, the interaction of JEuclid, Batik and FOP, and the fact that attributes such as height and width are copied so frequently from one object to another. Width and height(Continue reading)
RSS Feed