Hi,
Nice work you have done with Docx4j!
I need to convert html with MathML to docx but during conversion MathML tags are striped.
How could I make this work?
Hope you can help me.
Thanks
Milqn
jason wrote:There is XSLT for converting OMML to MathML, but maybe not for the converse.
Google reveals python and npm libraries called mathml2omml (and there may be others); if one of these work well enough on your MathML, you could integrate them into docx4j-ImportXHTML.
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>MathML in XHTML</title>
</head>
<body>
<p>
Follows:
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mfrac>
<mn>1</mn>
<msqrt>
<mn>2</mn>
</msqrt>
</mfrac>
</math>
</p>
</body>
</html>
Users browsing this forum: Majestic-12 [Bot] and 1 guest