Bug 123018 - Implement MathML bidi
Summary: Implement MathML bidi
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: MathML (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: http://www.w3.org/TR/MathML3/chapter3...
Depends on: 130840 124121 124572 130839
  Show dependency treegraph
Reported: 2013-10-18 06:38 PDT by Frédéric Wang (:fredw)
Modified: 2014-03-27 08:37 PDT (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description 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"

More advanced testcase:

See also the MathML test suite:
Comment 1 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.