https://bugs.freedesktop.org/show_bug.cgi?id=66024

          Priority: medium
            Bug ID: 66024
          Assignee: [email protected]
           Summary: Wide accents are not stretchy when exported to MathML
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: All
            Status: UNCONFIRMED
           Version: unspecified
         Component: Formula Editor
           Product: LibreOffice

Created attachment 81183
  --> https://bugs.freedesktop.org/attachment.cgi?id=81183&action=edit
Patch

This was initially discussed on the MathJax user mailing list:
https://groups.google.com/forum/#!msg/mathjax-users/x0nbdr9c47o/mwcTCudgV-MJ

widevec, widehat and widetilde have stretchy set to "false" and thus do not
stretch. It seems that setting stretchy="true" is not enough to make that work
in other MathML rendering engines (at least not in Firefox for widetilde). As
indicated in the MathML spec
(http://www.w3.org/TR/MathML3/chapter7.html#chars.comb-chars):

"In the UCS there are many combining characters that are intended to be used
for the many accents of numerous different natural languages. Some of them may
seem to provide markup needed for mathematical accents. They should not be used
in mathematical markup. Superscript, subscript, underscript, and overscript
constructions as just discussed above should be used for this purpose. Of
course, combining characters may be used in multi-character identifiers as they
are needed, or in text contexts."

Hence I've also replaced the combining characters for tilde/hat by their
non-combining versions and that fixes the stretchy issue. For vec it seems that
"U+2192 RIGHTWARDS ARROW" (MS_RIGHTARROW) is what should be used and it renders
better in Firefox. But the rendering is not very good in LibreOffice (font
issue?) so I've kept the "U+20D7 COMBINING RIGHT ARROW ABOVE" for now.

LibreOffice still accepts the combining accents (or otherwise some unit tests
fail).

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to