Bug 123018 - Implement MathML bidi
Implement MathML bidi
 Status: NEW None WebKit Unclassified MathML (show other bugs) 528+ (Nightly build) All All P2 Normal Nobody 130840 124121 124572 130839 Show dependency tree / graph

 Reported: 2013-10-18 06:38 PDT by Frédéric Wang (:fredw) 2014-03-27 08:37 PDT (History) 2 users (show) bfulgham mrobinson

Attachments

 Note You need to log in before you can comment on or make changes to this bug.
 Frédéric Wang (:fredw) 2013-10-18 06:38:02 PDT I think just mapping the attribute "dir" (on the math, mstyle, mrow and token elements with the default math@dir=ltr) to the CSS property "direction" will make most constructions work correctly. However, some MathML constructions might need more work. In particular, stretchy operators must be mirrored. There are Open Type MATH features to do that mirroring but using a scale transform is OK in most cases (except for things like clockwise integrals where mirroring changes the semantic). Testcase from the Mozilla bug for the "overall directionality" https://bug534963.bugzilla.mozilla.org/attachment.cgi?id=420334 More advanced testcase: https://developer.mozilla.org/ar/docs/Mozilla_MathML_Project/Start See also the MathML test suite: http://www.w3.org/Math/testsuite/build/main/Topics/BiDi/Complex/Maghreb1-simple.xhtml Frédéric Wang (:fredw) 2013-10-18 06:45:19 PDT Rationale for why I open this now: MathML bidi is needed on mtext for MathJax error messages in RTL languages. Doing the attribute-to-CSS mapping will help to render the messages correctly when WebKit's Native MathML is used.