Bug 103430 - Direct attribute mathvariant="normal" is not honored on MathML import
Summary: Direct attribute mathvariant="normal" is not honored on MathML import
Status: CLOSED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Formula Editor (show other bugs)
Version:
(earliest affected)
5.3.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:5.4.0
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-23 15:36 UTC by Regina Henschel
Modified: 2017-01-13 18:10 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
mathvariant="normal" on 'mi' and on 'mo' element (376 bytes, application/mathml+xml)
2016-10-23 15:36 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2016-10-23 15:36:10 UTC
Created attachment 128190 [details]
mathvariant="normal" on 'mi' and on 'mo' element

Open the attached file in Browser and in Math and compare the character 'd'. Notice that the character 'd' should be upright, but is italic in LibreOffice Math.

The elements 'mi' and 'mo' can use the common attribute 'mathvariant'. This is not honored on import. At least for an 'mi' element it can be easily represented in StarMath using the 'nitalic' command. For 'mo' additional work is needed, if the translation to uoper or boper would be tried.
Comment 1 Xisco Faulí 2016-10-23 15:40:30 UTC
Confirmed in

Version: 5.3.0.0.alpha0+
Build ID: 8974b0fafb18f9dd3f2c0e175a3255b80e4c249e
CPU Threads: 4; OS Version: Linux 4.2; UI Render: default; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group

@Takeshi, one for you?
Comment 2 Commit Notification 2016-11-29 01:05:01 UTC
Takeshi Abe committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=2bad9f1cd8da0cd3d8ff33e875eaf10c1fd9d0bf

tdf#103430 Apply mathvariant attribute to <mi> and <mo>

It will be available in 5.4.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 3 Xisco Faulí 2017-01-13 12:31:38 UTC
Hello,
Is this bug fixed?
If so, could you please close it as RESOLVED FIXED?
Comment 4 Regina Henschel 2017-01-13 18:10:34 UTC
Yes it is fixed in Version: 5.4.0.0.alpha0+
Build ID: 5adab0927483d039037b0f93894627e41a2c72f2
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2017-01-09_23:34:00
Locale: de-DE (de_DE); Calc: group