Last modified: 2014-10-19 18:55:55 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T54619, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52619 - MathJax mode does not respect content direction (aka "rtl")
MathJax mode does not respect content direction (aka "rtl")
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
Math (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: i18n
Depends on:
Blocks: rtl
  Show dependency treegraph
 
Reported: 2013-08-07 22:57 UTC by kipod
Modified: 2014-10-19 18:55 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
screenshot (37.58 KB, image/png)
2013-09-10 15:34 UTC, Frédéric Wang
Details

Description kipod 2013-08-07 22:57:00 UTC
in RTL wikis, when using MathJax, formulas are left-aligned.
with either TeX or PNG modes, the formulas are right-aligned on RTL wikis.

this causes completely different page rendering for users who render formulas with  MathJax, vs. users who render Math as png (or TeX, for that matter).


peace.
Comment 1 Andre Klapper 2013-08-27 15:56:53 UTC
(In reply to comment #0)
> in RTL wikis, when using MathJax, formulas are left-aligned.

Is there a page / testcase where this problem can be seen?
Comment 2 kipod 2013-08-28 02:34:29 UTC
see

https://he.wikipedia.org/w/index.php?title=%D7%95%D7%99%D7%A7%D7%99%D7%A4%D7%93%D7%99%D7%94:%D7%93%D7%9C%D7%A4%D7%A7_%D7%99%D7%99%D7%A2%D7%95%D7%A5&oldid=14476142

at the bottom of the page (next to the "bug reported in bugzilla" template). note that the formula is right-aligned if you choose mathjx in preferences, and right-aligned when you choose "png" display for math formulas.

peace.
Comment 3 Peter Krautzberger 2013-09-05 03:52:59 UTC
MathJax currently does not yet support RTL. In our defense, neither does any browser (for MathML).
Comment 4 Peter Krautzberger 2013-09-05 03:54:15 UTC
For future reference: http://docs.mathjax.org/en/latest/mathml.html#supported-mathml-commands. For context: MathJax converts TeX to MathML internally and then renders MathML.
Comment 5 kipod 2013-09-05 15:59:58 UTC
(In reply to comment #3)
> MathJax currently does not yet support RTL. In our defense, neither does any
> browser (for MathML).

i do not think this is relevant to the bug. MW software (or rather, the math extension) packages the mathJax part inside a div with style="text-align: left".  when content direction is RTL, we should change this to "right".

afaik, this should not affect the mathjax appearance - i think that this wrapper div is not part of matjax.

peace - ~~~~
Comment 6 Frédéric Wang 2013-09-10 15:34:10 UTC
Created attachment 13266 [details]
screenshot

That seems to work correctly for me on the Math Extension master branch.
Comment 7 kipod 2013-09-11 19:47:59 UTC
(In reply to comment #6)
> Created attachment 13266 [details]
> screenshot
> 
> That seems to work correctly for me on the Math Extension master branch.

was this tested on an RTL wiki?

peace.
Comment 8 physikerwelt 2014-10-19 18:55:55 UTC
The screenshot indicates that it works.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links