OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

office message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [office] Enable MathML for browsers

Hi all

I tested saving CSD01 Part 4 from LO in both HTML (File - Save as) and XHTML (File - Export), and the <img/> elements in the HTML appear to have name attributes with the same values as the id attributes on corresponding <span> elements containing MathML expressions. I haven't checked this thoroughly, but the first and last MathML expressions correspond, and a spot-check of equations elsewhere in the spec correspond. So, Regina, maybe you are too pessimistic.

Kind regards,


On 08/10/2019 12:56, Regina Henschel wrote:
Hi all,

from https://www.mathjax.org/#gettingstarted

is the tip to include the following lines in the HTML code

<script src="https://polyfill.io/v3/polyfill.min.js?features=es6";></script> <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js";></script>

For XHTML you need a little change, because attributes without values are not possible:

<script src="https://polyfill.io/v3/polyfill.min.js?features=es6";></script> <script id="MathJax-script" async="async" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js";></script>

I have put it before the </head> tag. Then indeed Google Chrome and Microsoft Edge render MathML. I cannot set Internet Explorer 11 to use script, so for Internet Explorer it does not work for me. I have no environment to test Safari.

The XTML filter in LibreOffice generates the attribute display="block" in the <math> element. I think, that should be changed to display="inline".

I was wrong, that the attribute 'id' in the generated XHTML would be suitable to find the corresponding replacement image. The value from the attribute 'id' is generated from the attribute 'draw:name'. I'm not even sure, that it is unique. It might be the same after copy&paste a formula. To get the replacement image, it would be necessary to bring the 'href' value of the surrounding <draw:frame> element into the XHTML output. Perhaps a comment will work.

Kind regards

To unsubscribe from this mail list, you must leave the OASIS TC that generates this mail. Follow this link to all your TCs in OASIS at:

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]