Bug 66044

Summary: HTML5 export filter with MathML support
Product: LibreOffice Reporter: Frédéric Wang <fred.wang>
Component: filters and storageAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: enhancement CC: 79045_79045, adam, c_strobbe-fdo, ilmari.lauhakangas, jc, m.weghorn, stephane.guillou, vsfoote
Priority: medium Keywords: accessibility
Version: 4.2.0.0.alpha0+ Master   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=95861
https://bugs.documentfoundation.org/show_bug.cgi?id=66037
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 101912, 108799, 118765    
Attachments: Test ODT with formula object

Description Frédéric Wang 2013-06-22 10:35:06 UTC
LibreOffice is able to export document in XHTML format and to save them as HTML4.
However, HTML5 is now becoming the new standard to publish Web pages and an export filter for that could be implemented.

This is especially interesting to be able to include mathematical formulas in Web pages using MathML, as currently done by the XHTML export filter.
Comment 1 Owen Genat (retired) 2013-12-07 07:28:55 UTC
Agreed and confirmed. Status set to NEW. No such facility has ever existed so Version set to Inherited From OOo.

(In response to comment #0)
> LibreOffice is able to export document in XHTML format and to save them as HTML4.

Draw and Impress can also export to HTML4.
Comment 2 Owen Genat (retired) 2014-01-06 10:23:32 UTC
Setting version back from "Inherited From OOo" to what it was prior (for bugs marked enhancement), for QA tracking purposes. My mistake. Apologies.
Comment 3 Raniere Silva 2014-05-16 13:19:50 UTC
Math already can export MathML [1].

[1] https://wiki.documentfoundation.org/images/3/37/MG40-MathGuide.pdf
Comment 4 Buovjaga 2015-04-25 10:01:26 UTC
See showcase and description in bug 90704
Comment 5 Buovjaga 2015-04-25 10:02:34 UTC
*** Bug 90704 has been marked as a duplicate of this bug. ***
Comment 6 Stéphane Guillou (stragu) 2021-06-23 12:43:14 UTC
Reproduced with:

Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: e3086b58eb5427d520b86c185f9d911bb6f7a3a0
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-06-21_15:37:11
Calc: threaded

Save as > HTML exports the formula as a .gif
(whereas XHTML export uses MathML)

Adding Accessibility meta as exporting a formula as an image rather than a MathML makes it unavailable to screen readers, and the style cannot be modified for improved readability:

"MathML is important for accessibility and web standards because it allows equations to be stored as structured text. It can be reformatted with CSS, expanded with good resolution for low-vision users. Most importantly, is that if a screen reader can process MathML, a blind users can navigate and review parts of an equation, such as the top portion of a complex fraction."

Source: https://accessibility.psu.edu/math/mathml/
Comment 7 Stéphane Guillou (stragu) 2021-06-23 12:44:16 UTC
Created attachment 173106 [details]
Test ODT with formula object

Adding an example formula object in an ODT file to easily test "Save as > HTML".