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)
Version:
(earliest affected)
6.2.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:pptx
Depends on:
Blocks: OLE-Objects PPTX-Equations
  Show dependency treegraph
 
Reported: 2019-06-03 19:13 UTC by Devon Powell
Modified: 2024-11-02 07:46 UTC (History)
11 users (show)

See Also:
Crash report or crash signature:


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

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
Description:
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.
2.
3.

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 6.2.4.2 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
https://cgit.freedesktop.org/libreoffice/core/commit/?id=332a796366b7cb91dff41de4b9ffb17843112a3e

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. ***
Comment 7 Timur 2019-12-07 19:07:38 UTC
Let bug 129061 be for inline math (slide 2) and this bug for other issues with formula (slide 1).
Comment 8 QA Administrators 2023-02-15 03:21:02 UTC Comment hidden (obsolete)
Comment 9 Timur 2024-08-19 13:02:11 UTC
Repro 25.2+. Similar to bug 162443 where shape is "Do not autofit", while here it is "shring text on overflow".
Comment 10 Mike Kaganski 2024-11-02 07:46:07 UTC
Can't repro using Version: 24.8.3.1 (X86_64) / LibreOffice Community
Build ID: 65412f067af443213e726c93f137ccc85c9a1e06
CPU threads: 24; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Vulkan; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL threaded