Description: Custom operators defined using "oper", "uoper" and "boper" having more than one letter shows in equation editor, but only first letter is exported in mathml. Steps to Reproduce: Steps to Reproduce: 1. type "uoper OP x" in formula editor 2. save document 3. examine mathml in odf document Actual Results: <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> <semantics> <mrow> <mo stretchy="false">O</mo><mi>x</mi> </mrow> <annotation encoding="StarMath 5.0">uoper OP x</annotation> </semantics> </math> Expected Results: <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> <semantics> <mrow> <mo stretchy="false">OPER</mo><mi>x</mi> </mrow> <annotation encoding="StarMath 5.0">uoper OP x</annotation> </semantics> </math> Reproducible: Always User Profile Reset: No Additional Info:
Version: 5.2.7.2 (debian)
Yes, that is a missing feature.
I think this is related to the function void SmXMLExport::ExportMath(const SmNode *pNode, int /*nLevel*/) in starmath/source/mathmlexport.cxx where the nArse unicode string is explicitly truncated after the first char.
(In reply to vivien.guillet from comment #3) > I think this is related to the function > > void SmXMLExport::ExportMath(const SmNode *pNode, int /*nLevel*/) > > in starmath/source/mathmlexport.cxx > > where the nArse unicode string is explicitly truncated after the first char. Thanks you for locating the issue. Along this I also want to solve the &charname; thing, whose issue is related with and exception thown in the XML parser when charname is not recognized. That way I can completly handle multichar operators. Also, when reimporting it doesn't work. That also has to be solved. I need to check mathml standars to checkout how it should be exported. It gonna take a little time figuring it out.
Dear Dante, This bug has been in ASSIGNED status for more than 3 months without any activity. Resetting it to NEW. Please assign it back to yourself if you're still working on this.