Bug Hunting Session
Bug 125668 - FILEOPEN: PPTX: Equations are not converted correctly
Summary: FILEOPEN: PPTX: Equations are not converted correctly
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
(earliest affected)
Hardware: All All
: medium normal
Assignee: Not Assigned
Keywords: filter:pptx
: 125123 (view as bug list)
Depends on:
Blocks: OLE-Objects
  Show dependency treegraph
Reported: 2019-06-03 19:13 UTC by Devon Powell
Modified: 2019-11-15 11:38 UTC (History)
9 users (show)

See Also:
Crash report or crash signature:

Equation and text formatting (359.88 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2019-06-03 19:14 UTC, Devon Powell
LibreOffice converted (34.23 KB, image/jpeg)
2019-06-03 19:15 UTC, Devon Powell
comparison MSO 2010 and LibreOffice 6.4 Master (62.59 KB, image/png)
2019-11-14 10:58 UTC, Xisco Faulí

Note You need to log in before you can comment on or make changes to this bug.
Description Devon Powell 2019-06-03 19:13:36 UTC
Equations created through MS Equation Too are not converted correctly. Text conversion is also distorted.

Steps to Reproduce:
1.Open attached .pptx document with LibreOffice Impress.

Actual Results:
Formula and text formatting is incorrect

Expected Results:
Formula and text formatting are expected to be correct. 

Reproducible: Always

User Profile Reset: No

Additional Info:
Comment 1 Devon Powell 2019-06-03 19:14:44 UTC
Created attachment 151885 [details]
Equation and text formatting
Comment 2 Devon Powell 2019-06-03 19:15:17 UTC
Created attachment 151886 [details]
LibreOffice converted
Comment 3 V Stuart Foote 2019-06-04 05:42:29 UTC
Confirming on current master/6.4.0alpha0 and builds on Windows 10

There are several issues.

First is font mishandling--because the OOXML is using Cambria Math and assigning Unicode SMP codepoints from the Mathematical Alphanumeric Symbols block. Specifically U+1d465 Mathamatical Italic Small X. Since the LibreOffice formula editor defaults to Liberation Serif for variables it has no coverage of the block, nor is there any font fallback, and the variable from the OLE formula shows a blank when rendered.

But an easy workaround, setting LO formula editor to use the same font as MS Office Equation editor -- Cambria Math, the variable(s) will show on the document canvas.

The other issues on slide one and two of attachment 151885 [details], where a text box using bullets is holding the OLE formulas. 

1) The import filter incorrectly positions and sizes the OLE to the full size of the imported Text box--stretching the formula. Should either keep defaults for LO Formula editor, or better read the font size from the object in XML

2) On filter import LibreOffice displays both the Text box bullets, but also the fallback image (media/image5.png on slide one, and media/image6.png on slide two). And slide two shows "double struck" for the text bullet as the import is positioned incorrectly, that is bug 117658 -- the import filter should do one or the other. Either import the just the image, or import just the bullets of the Text box.

3) On slide two, the Formula OLE for the bullet is not rendered, so only see the fallback image. But by deleting the initial text bullet it allows the Formula OLE to render. So the import filter is not handling the OLE in the text box when other text bullets are present.
Comment 4 V Stuart Foote 2019-06-04 06:08:38 UTC
So handling the formula import from OOXML was done by Michael S. in

And the text boxes with multiple bullets are not parsed, explaining 3).
Comment 5 Xisco Faulí 2019-11-14 10:58:52 UTC
Created attachment 155808 [details]
comparison MSO 2010 and LibreOffice 6.4 Master
Comment 6 Xisco Faulí 2019-11-15 11:37:16 UTC
*** Bug 125123 has been marked as a duplicate of this bug. ***