The attached PPTX has 2 lines of text and a third line with equation.
Each line has on-click animation.
The text is duplicated and the animation is wrong. This is somehow caused by the equation.
Steps to Reproduce:
1. Open the attached PPTX in Impress
2. Compare with the PDF exported from PowerPoint 2013.
3. Try to play the animations.
The text is duplicated. The animations don't play one by one on click.
No duplicate text.
Separate animations on click.
User Profile Reset: No
Version: 188.8.131.52 (x86)
Build ID: a64200df03143b798afd1ec74a12ab50359878ed
CPU threads: 8; OS: Windows 6.1; UI render: default; VCL: win;
Locale: en-US (en_US); UI-Language: en-US
Created attachment 156147 [details]
PPTX with text, equation and animations
Created attachment 156148 [details]
PDF exported from PowerPoint 2013
So the duplicate equation is fixed in https://cgit.freedesktop.org/libreoffice/core/commit/?id=4038d6c393c3cf6330671124ba69cdba98b24960
However, the same commit has caused the equation x to disappear... I believe we can consider that a regression...
author Miklos Vajna <email@example.com> 2019-11-13 17:41:45 +0100
committer Miklos Vajna <firstname.lastname@example.org> 2019-11-13 18:43:57 +0100
commit 4038d6c393c3cf6330671124ba69cdba98b24960 (patch)
parent ae499df25c01a149dfbb387da17a7f8a232a6a4e (diff)
tdf#117658 PPTX import: fix duplicated math object handling
Bisected with: bibisect-linux64-6.5
Adding Cc: to Miklos Vajna
Created attachment 156149 [details]
Minimal sample document
This is how this "worked" in the past: The PPTX file contains both drawingML / mathML markup for the slide and also a replacement image. We used to read both: the OOXML markup missed the math formula and the replacement image did not.
This is how this is "broken" currently: we now only read the OOXML markup to avoid the duplication, but Impress doesn't support inline formulas (just math objects), so the import can't really do much more than just ignoring the math formula.
Considering this as a regression is fair enough, but I would say the root cause here is missing feature, it's not like I can sit down and just "fix this": if we read both versions, then we have duplication, if we read only the markup then we can have problems when Impress misses some PowerPoint feature and if we only read the replacement image, then we regress because the formula is not editable.
To sum up, the root cause here is really a missing feature, let me tag this as an implementation error, rather than a regression.
This Impress core limitation is even documented in a debug warning in commit 332a796366b7cb91dff41de4b9ffb17843112a3e (oox: import Math objects from PPTX files, 2016-01-21):
warn:oox.drawingml:2141:2141:oox/source/drawingml/shape.cxx:667: losing a Math object...
Miklos, can you please give an example of OOXML element representing inline formula that Impress doesn't support and Math object that Impress does support?
Maybe I can preprocess the pptx and replace inline formulas with math objects.
This bug has an example of a PPTX shape which has both text and math markup, Impress can't handle this.
E.g. bug 117658 has an example PPTX shape which has only math markup, so we can map that to Impress math objects.
*** Bug 125123 has been marked as a duplicate of this bug. ***
*** Bug 105886 has been marked as a duplicate of this bug. ***
Inline math examples in:
- PPTX attachment 131045 [details] from bug 105886, PDF as attachment 131046 [details].
- attachment 113333 [details] from bug 81494, equation𝑡ℎ𝑒 is shown as equation.
- slide 3 of attachment 151079 [details] from bug 124976
*** Bug 81494 has been marked as a duplicate of this bug. ***
*** Bug 124976 has been marked as a duplicate of this bug. ***
Further examples in https://web.archive.org/web/20160721184553/http://www.mmds.org/mmds/v2.1/ch10-graphs1.pptx from bug 102200.
I didn't close as duplicate because it needs to be thoroughly checked.
*** Bug 130026 has been marked as a duplicate of this bug. ***
*** Bug 132692 has been marked as a duplicate of this bug. ***
*** Bug 133232 has been marked as a duplicate of this bug. ***
*** Bug 134001 has been marked as a duplicate of this bug. ***
*** Bug 134068 has been marked as a duplicate of this bug. ***
Still reproducible in
Build ID: 6f1e02c96b887750f974c187a82ecd6236e6a435
CPU threads: 4; OS: Linux 5.7; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
*** Bug 136910 has been marked as a duplicate of this bug. ***
*** Bug 138971 has been marked as a duplicate of this bug. ***
Increasing importance due to the number of duplicates
Can someone (Timur?) who knows what to check have a look at bug 138633 and see if that's also a duplicate? Thanks.
*** Bug 138633 has been marked as a duplicate of this bug. ***
I just wanted to mention that https://bugs.documentfoundation.org/show_bug.cgi?id=138971 contains kind of minimal test files of the same document (one line of text, one formula) in odp, pptx and pdf format (all saved with some version of PP Office 365).
*** Bug 133239 has been marked as a duplicate of this bug. ***