Re: RTL directionality in LaTeX

As far as directionality is concerned, there is only two models; LTR and
RTL. Other changes are merely differences in the notation used and this
should be reflected in the content of the equations themselves (unless
some form of abstraction is used).

Regards,
Khaled

On Tue, Nov 05, 2013 at 11:28:48AM -0800, Peter Krautzberger wrote:
> I'm wondering how many BIDI variants there are to consider. From
> http://www.w3.org/TR/arabic-math/, I see 3-4 different styles of BIDI math.
> These should be reflected in a TeX-like syntax, I think.
> 
> Are there other variants?
> Peter.
> 
> 
> On Tue, Nov 5, 2013 at 6:57 AM, Frédéric WANG <fred.wang@free.fr> wrote:
> 
> > Le 05/11/2013 15:43, Khaled Hosny a écrit :
> >
> >
> >  Since the direction of text and math are not always the same (many RTL
> >> languages set math LTR), the command need to be explicitly for math.
> >>
> > Yes, that was one of the reason to make Gecko interpret CSS direction
> > property the same way as MathML dir attribute (the other reason is that it
> > simplifies the implementation). In an ideal world where MathML
> > implementations are compatible with CSS, people could then just use
> > something like
> >
> > math { direction: rtl; }
> >
> > or with CSS selectors
> >
> > div.MyArabicDiv math { direction: rtl; }
> >
> > to set the direction on all the math elements rather than having to
> > explicitly attach a dir="rtl" attribute on each one.
> >
> >  But if it is just some pseudo-LaTeX syntax, I don’t think the actual
> >> notation matters much, but \rtl{} looks more LaTeX-like to me.
> >>
> > Or perhaps \dir[rtl]{...} with an optional parameter so that someone can
> > still switch back to LTR with \dir[ltr]{...}.
> >
> > --
> > Frédéric Wang
> > maths-informatique-jeux.com/blog/frederic
> >
> >
> >

Received on Tuesday, 5 November 2013 21:47:22 UTC