Right-to-Left Support

349 views
Skip to first unread message

Mohsen Abo-Ghaly

unread,
Oct 17, 2013, 6:07:25 PM10/17/13
to mathja...@googlegroups.com
Hello,
We are using MathJax ver. 2.2 and right-to-left is not supported, there are any plans to support it in the nearest future?

Also: We found simple temporary fix for the RTL SIMPLE equations, simply change the "direction" to "rtl" in the file "MathJax\jax\output\HTML-CSS\jax.js"

Please check the attached image to display samples "MathJaxRTLFix.png".

BUT: now we have two problems:

1) We have pages contains RTL equations and another pages contains LTR equations, how can do the switch?
2) In IE9, there is no padding in the left and text is out of the range (check the attached image "IE-DisplayProblem.png")

Thanks
Mohsen




IE-DisplayProblem.png
MathJaxRTLFix.png

Frédéric WANG

unread,
Oct 18, 2013, 1:53:46 AM10/18/13
to mathja...@googlegroups.com
Hi Mohsen,

The standard way to do that in MathML is to use the dir="RTL" attribute (so for example <math> for LTR equations and <math dir="rtl" for RTL equations), but this is not supported by MathJax SVG/HTML-CSS. It is supported in some MathML output (Firefox and MathPlayer). Also, I don't think there is currently a way to enter that in MathJax TeX or AsciiMath input, although the \mmlToken might be used to set the directionality on token elements.
 
The non-standard way is to set the CSS direction to RTL (so for example <math style="direction: rtl"> for RTL equations). This will work in Firefox native MathML but not in MathPlayer ; this may also partially work in Safari native MathML. Also, this may or may not work well in MathJax HTML-CSS according to your testing (but probably not at all in SVG). This is not very reliable and certainly not bug-free, the ideal would be to implement MathML bidi in MathJax. You can use \style{direction:rtl}{...} to enter this attribute in the MathJax TeX input (not sure about the AsciiMath one).
--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


-- 
Frédéric Wang
maths-informatique-jeux.com/blog/frederic

mohsen...@gmail.com

unread,
Feb 10, 2014, 4:41:23 PM2/10/14
to mathja...@googlegroups.com
Hello, 
Any good news about this issue? 

Peter Krautzberger

unread,
Feb 12, 2014, 4:24:02 PM2/12/14
to mathja...@googlegroups.com
Hi,

I'm afraid RTL support has not moved up much in our backlog.

Regards,
Peter.
Reply all
Reply to author
Forward
0 new messages