Created attachment 176646 [details] munderover_bug.zip Hello there. I'm writing this issue on behalf of ONLYOFFICE DocumentServer team (https://github.com/ONLYOFFICE/DocumentServer) During the development of our product, we think we found some problems with rendering formulas with <munderover> and <munder> tag in MathML We got a sample file, named `MUNDEROVER_without_style.odt` with this content in `Object 1/content.xml` file: ``` <?xml version="1.0" encoding="UTF-8"?> <math display="block" xmlns="http://www.w3.org/1998/Math/MathML"> <semantics> <mrow> <munderover> <mo stretchy="false">∫</mo> <mstyle mathcolor="red"> <mn>0</mn> </mstyle> <mn>1</mn> </munderover> <mstyle mathcolor="green"> <mi>a</mi> </mstyle> </mrow> </semantics> </math> ``` Opening this file in LibreOffice we got ∫ with two limits - 0 is underscript and 1 is overscript This files renders correctly (See left part of screenshot in attachment) But as soon as we try to add color to overscript (making XML file like this, only adding <mstyle mathcolor="blue"> around <mn>1</mn> - we got incorrect file render (see right part of attached screenshot) ``` <?xml version="1.0" encoding="UTF-8"?> <math display="block" xmlns="http://www.w3.org/1998/Math/MathML"> <semantics> <mrow> <munderover> <mo stretchy="false">∫</mo> <mstyle mathcolor="red"> <mn>0</mn> </mstyle> <mstyle mathcolor="blue"> <mn>1</mn> </mstyle> </munderover> <mstyle mathcolor="green"> <mi>a</mi> </mstyle> </mrow> </semantics> </math> ``` In that case, LibreOffice renders this file with both 0 and 1 in overscript We think it has something to do with the conversion of this formula to StarMath The file without style has this StarMath style (copied from opened Libreoffice: > { int csup 1 csub color red 0 color green a } File with style has this StarMath: > { int csup color blue 1 csub color red 0 color green a } Seems that one pair of quotes is missing If we change StarMath of second file to: > { int csup {color blue 1} csub color red 0 color green a } We got correct integral with both underscript and overscript and with the correct color My Eniroment: Kubuntu 20.04 LibreOffice flatpak 7.2.3.2
I can confirm this bug in LO 7.4 alpha. In my opinion, the MathML import should have resulted in: { int csup {color blue 1} csub {color red 0} {color green a} } Whenever there is a "color", "font" or "size" command, it should be enclosed with curly brackets. System info: Version: 7.4.0.0.alpha0+ / LibreOffice Community Build ID: 4351a6ca782e1d2081ba819338ebbf6a2d2ee2b2 CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: kf5 (cairo+xcb) Locale: pt-BR (pt_BR.UTF-8); UI: en-US Calc: CL
Dear Pavel Lobashov, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug