Regina Henschel <rb.hensc...@t-online.de> has asked for review: Issue 126230: Current type detection is too restrict https://bz.apache.org/ooo/show_bug.cgi?id=126230
Attachment 84655: change detection from <?xml to <math https://bz.apache.org/ooo/attachment.cgi?id=84655&action=edit --- Comment #1 from Regina Henschel <rb.hensc...@t-online.de> --- Created attachment 84655 --> https://bz.apache.org/ooo/attachment.cgi?id=84655&action=edit change detection from <?xml to <math The part for detecting MathML has been changed totally, so please have a look. Please test it on Linux and MacOS, because I have only Windows. The detections accepts now - both for "Open" and "Tool>Import Formula.." - MathML files, if they have a math-Element with MathML namespace attribute. It accepts both the default utf-8 encoding and utf-16 encoding as well. I have not seen other encodings, so others are currently not considered. The MathML files need no <?xml prolog to be excepted. Because it does not consider the <?xml prolog, but only looks for the math element, the issue #124636 is still fixed. If the MathML part is embedded in xhtml or other xml, it opens still in module Math, if the MathML part is inside the first 4096 bytes. The utf-16 encoding is used by Microsoft "Math Input Control", which puts the MathML into the clipboard. [My dream is, that AOO can insert such formula from clipboard.] --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org