Bug 129849 - FILEOPEN DOCX: Math Formula size and color lost on import
Summary: FILEOPEN DOCX: Math Formula size and color lost on import
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.1 all versions
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: DOCX-Formula
  Show dependency treegraph
 
Reported: 2020-01-07 08:21 UTC by schlebe
Modified: 2023-12-29 16:09 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
DOCX file + 2 PrintScreen for comparing Word and LibreOffice (72.01 KB, application/x-zip-compressed)
2020-01-07 08:22 UTC, schlebe
Details
Comparison of LibreOffice vs Word 2016 (79.94 KB, image/png)
2021-11-05 01:15 UTC, Luke
Details
Extracted .docx to show problem with imported font color and size (12.80 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2021-11-05 01:22 UTC, Luke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description schlebe 2020-01-07 08:21:38 UTC
Description:
When I read docx file (see attachement) in LibreOffice, formulas are smaller that what is displayed in Word and some colorized variables are rendered in black (color is loss).

Steps to Reproduce:
1. open DOCX file on Word 2016 (or greater)
2. open DOC file on LibreOffice
3. compare visually

Actual Results:
formula are smaller and less professional of what is displayed on Word. All variable font color are black.

Expected Results:
The formula are larger as in Word.
The color stop to be loss. 


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
Comment 1 schlebe 2020-01-07 08:22:30 UTC
Created attachment 156980 [details]
DOCX file + 2 PrintScreen for comparing Word and LibreOffice
Comment 2 Dieter 2020-01-08 09:47:56 UTC
I confirm it with

Version: 6.5.0.0.alpha0+ (x64)
Build ID: e26d89371f0e4f41476c9a99be01d98dedb76776
CPU threads: 4; OS: Windows 10.0 Build 18362; UI render: default; VCL: win; 
Locale: de-DE (de_DE); UI-Language: en-GB
Calc: threaded
Comment 3 Robert Cabane 2020-01-08 13:42:07 UTC
LO saves each formula as MathML, while Word saves them as OMML (Open Math Metalanguage), similar but quite different XML schemes. Upon loading a docx document in LO, the conversion to MathML only arises when the user opens a particular mathematical formula. 
The rendering of each formula is made according to the defaults as defined in the default model for LO. You can edit this model (for your profile), create a formula and change the default font size there, and save the default model (.ott) (and activate it).
Once the default math font size is changed, the ulterior Word documents will user this new size.
Comment 4 Luke 2021-11-05 01:15:49 UTC
Created attachment 176114 [details]
Comparison of LibreOffice vs Word 2016
Comment 5 Luke 2021-11-05 01:22:09 UTC
Created attachment 176115 [details]
Extracted .docx to show problem with imported font color and size

The colors are not imported. And the imported size is too small. The correct font size should be 16 pt.
Comment 6 QA Administrators 2023-11-06 03:13:20 UTC Comment hidden (obsolete)
Comment 7 schlebe 2023-11-16 08:41:08 UTC
The bug always exists !

1. squareroot sign is touching division bar
2. no color
3. height of integral sign is too short

I have installed LibreOffice 3.3 but when I load it to test Extraits.docx file it displays some error's messages about JRE that must be installed.

When DOCX file is loaded I don't see any formula. Both formula expression are empty !

IMPORTANT QUESTION TO TEST CORRECTLY THIS BUG ON VERSION 3.3

Which JRE must I found and install to do a good test ?
Comment 8 Dieter 2023-11-19 14:17:16 UTC
Schlbe, please retest with master or with most recent version (LO 7.6.3). Thank you.
Comment 9 schlebe 2023-11-19 20:35:40 UTC
As requested, I have installed LibreOffice 3.6.3.1 and I have tested issue again.

The problem is already there.

Nothing has been resolved.
Comment 10 Dieter 2023-11-19 21:26:55 UTC
(In reply to schlebe from comment #9)
> As requested, I have installed LibreOffice 3.6.3.1 and I have tested issue
> again.

I assume, you've tested with 7.6.3.1.
Comment 11 schlebe 2023-11-20 06:01:54 UTC
Yes, you assume right.
I have tested using 7.6.3.1.
Comment 12 Piotr 2023-12-29 16:09:28 UTC
I checked with versions: 6.1, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.6, 24.2, in each case the image is black