Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


Hi Regina,

On Thu, 30 Jul 2015 23:24:43 +0200, Regina Henschel <rb.henschel@t-online.de> wrote:
I want to look why the MathML import has become so bad in LO (tdf#75171).
I am also curious about tdf#75171.
It is SmTextNode::CreateTextFromNode() that contains the code putting strange
"italic" on single-letter identifiers when importing a MathML.
Applying the attached patch will stop the behavior (and thus make mmlimport
test cases fail).
But I have little idea about why LibO 4.1 was OK while 4.2 and later are NG.

Cheers,
-- Takeshi Abe
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index 9e66810..1b428e1 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -2383,8 +2383,6 @@ void SmTextNode::CreateTextFromNode(OUString &rText)
             //Search for existing functions and remove extraenous keyword
             rText += "func ";
         }
-        else if (bQuoted)
-            rText += "italic ";
 
         if (bQuoted)
             rText += "\"";

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.