Bug 97356 - implement fallback export of Math object in PPTX
Summary: implement fallback export of Math object in PPTX
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
5.1.0.0.alpha0+ Master
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard: reviewed:2022
Keywords: filter:ooxml
Depends on: 53419
Blocks: PPTX-Equations
  Show dependency treegraph
 
Reported: 2016-01-25 10:14 UTC by Michael Stahl (allotropia)
Modified: 2022-10-11 18:33 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Stahl (allotropia) 2016-01-25 10:14:55 UTC
commit cb890ae43bacd2be24bc74fad2e2e5cce8910995 added OOXML Math export in PPTX files.

unfortunately OOXML Math markup in PPTX isn't actually specified in ECMA-376 3rd ed., and can only be read by PPT 2010, not by PPT 2007.

so we use MCE (Markup Compatibility and Extensibility) to write the Math markup as an "extension" and a fallback.

currently the fallback is empty, but we could write a bitmap image shape instead, which could then be imported by PPT 2007 and older LibreOffice versions.

the implementation is in ShapeExport::WriteMathShape() in oox/source/export/shapes.cxx, see the "TODO: export bitmap shape as fallback"

functions to export bitmap shapes already exist in ShapeExport, and the model of the Math embedded object can be used to retrieve a preview image.
Comment 1 Robinson Tryon (qubit) 2016-02-18 14:51:47 UTC Comment hidden (obsolete)
Comment 2 Jaskaran Singh 2016-03-10 13:33:20 UTC
Hi,
I would like to work on this task. I could not understand the part relating to math embedded object.I would request you to provide some guidance.
Thanks.
Comment 3 Hossein 2022-10-11 18:33:47 UTC
Re-evaluating the EasyHack in 2022

This issue is not suitable for a newcomer, as it needs MS Office 2007 (end of support: 2012/2017*) and MS Office 2010 (end of support: 2015/2020) for testing, in which both are no longer supported.

See mainstream support/extended support:
* https://en.wikipedia.org/wiki/Microsoft_Office_2007
** https://en.wikipedia.org/wiki/Microsoft_Office_2010

I am removing the EasyHack tag from this issue.