https://bugs.documentfoundation.org/show_bug.cgi?id=101022
Bug ID: 101022
Summary: Export of characters from iGreek and Greek Symbol set
generates wrong MathML
Product: LibreOffice
Version: 5.2.0.1 rc
Hardware: x86 (IA32)
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Formula Editor
Assignee: libreoffice-bugs@lists.freedesktop.org
Reporter: rb.hensc...@t-online.de
Created attachment 126310
--> https://bugs.documentfoundation.org/attachment.cgi?id=126310&action=edit
Test for italic
Open attached document. It has the command
{ital %GAMMA} + %GAMMA + %iGAMMA + {nitalic %iGAMMA}
So you should see first and third character in italic and second and forth
character upright.
Export the file to MathML or extract the MathML part from the odf-file and open
the result in a browser. You will see for upright characters. The exported
source is
<mrow>
<mstyle mathvariant="italic">
<mi mathvariant="normal">Γ</mi>
</mstyle>
<mo stretchy="false">+</mo>
<mi mathvariant="normal">Γ</mi>
<mo stretchy="false">+</mo>
<mi mathvariant="normal">Γ</mi>
<mo stretchy="false">+</mo>
<mstyle mathvariant="normal">
<mi mathvariant="normal">Γ</mi>
</mstyle>
</mrow>
The mathvariant-attribute explicitly given in the mi-element overrides the
inherited value from the mystyle-element. Therefore the structure
<mstyle mathvariant="italic">
<mi mathvariant="normal">Γ</mi>
</mstyle>
cannot produce an italic GAMMA.
The %iGAMMA characters are exported with attribute mathvariant="normal", but it
should be mathvariant="italic".
It seems to me, that the attribute mathvariant="normal" is erroneously always
written, without any case distinction.
ODF specifies, that formulas have to be written in MathML. The StarMath
annotation is irrelevant for ODF and is not read by other consumers. Therefore
the MathML export should not be neglected.
I have used Version: 5.2.0.2
Build ID: a7567a46e5d2953c320b13eb88a3981c4f9bd1e0
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default;
Locale: de-DE (de_DE)
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs