https://bugs.documentfoundation.org/show_bug.cgi?id=146727

--- Comment #7 from [email protected] ---
(In reply to Rafael Lima from comment #6)
> @Dante you worked with the MathML parser some time ago. Do you have any good
> code pointer for this one?

I can't help you much with this. I lack knowledge about how the information is
encoded on MS Word.

About mathml, if you wanted to insert some stuff such as operator which are
decorative you would add them as <mtext>=</mtext> which on LO should be "=".

The bug 1:
Formula:   {v} ^ {+}     =C {left ({y} over {R} right )} ^ {α}
Should be: {v} ^ {{}+{}} =C {left ({y} over {R} right )} ^ {α}
                   |  |
As you can the operators have not been escaped. This is a feature of LO I
dislike because forces me to write much useless code.

The bug 2:
Formula:   ln {{p} ^ {vap} left[ bar   right] =A- {B} over {t left [°C right ]
+C}}
Should be: ln {{p} ^ {vap} left[ "bar" right] =A- {B} over {t left [°C right ]
+C}}
                                 |  |
As you can see a keyword has been treated as a variable name. This one is more
tricky because it would be necessary add a command of the style mi "variable
name" if you want to ensure the safety of variable name text.

The bug 3:
Formula:    circle area  = π {r} ^ {2}
Should be: "circle area" = π {r} ^ {2}
            |          |
As you can see here we have double bug. First text information has been treated
as variable names. Secondly we have fallen victims to bug 2.

I hope this information has been useful to you.

https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtext
https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mi

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to