# [lltx] bidi package extended for LuaLaTeX

Khaled Hosny khaledhosny at eglug.org
Sun Apr 4 12:36:58 CEST 2010

On Sat, Apr 03, 2010 at 12:25:44PM +1100, Vafa Khalighi wrote:
>
>
>     It can, but is it really needed (i.e. I can switch the whole package
>     layout in very few lines of tex code in luatex, with tex-xet it needs
>     hundreds of package specific macro redefinitions, one definitely can do
>     the later with luatex too.)
>
>
>
> You are only looking at bidi implementation from one side and that is just
> using mainly RTL. Yes, if one wants to use mainly RTL, there is not much to do
> because you have got \pagedir TRT to use. But I am afraid that is just a narrow
> perspective, you have got also to consider other users who use RTL partially,
> i.e. they mainly use LTR, but typeset some RTL text, then \pagedir TRT does not
> make sense at all and they have got to typeset (just as an example) tabular RTL
> sometimes. The bidi implementation needs to suit everyone, and not just a group
> of people and this has unfortunately some costs and that is definitely going to
> be macro programming for many packages. You think bidi implementation is easy,
> but it is not. It is the most complex and sophisticated matter in TeX, both
> logically and technically.

\documentclass{article}

\begin{document}
\begin{tabular}{ l c r }
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9 \\
\end{tabular}

\bgroup
\luatexmathdir TRT
\begin{tabular}{ l c r }
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9 \\
\end{tabular}
\egroup
\end{document}

--
Khaled Hosny
Arabic localiser and member of Arabeyes.org team
Free font developer

--
To unsubscribe, reply using "remove me" as the subject.