[luatex] Vital RTL issues in LuaTeX

Khaled Hosny khaledhosny at eglug.org
Fri Apr 10 15:41:23 CEST 2009


Attached an OTP (scrapped from Omega's uni2cuni OTP) that will take care
of numbers direction, compile it with otp2ocp. See number.tex for an
example of its usage.

On Fri, Apr 10, 2009 at 04:11:49PM +1000, وفا خلیقی wrote:
> With RTL and LuaTeX there are vital issues that is ignored currently:
> 
> - It is not true that everything that was LTR in RTL mode should be the other
> way
> 
> e.g: if you have \pagedir TRT \bodydr TRT \pardir TRT \textdir TRT, then
> everything will be RTL but there are issues:
> 
> 1- In persian we read numbers from left to right (thirteen=13) but imagine in
> the table of contents, if the direction of the document is RTL, then instead 13
> we get 31 which is read 'thirty one' in Persian.
> 
> 2- There are things both in LTR and Persian (perhaps in RTL as well) that
> luatex's direction change does not make any sense, for example \leftline, \
> rightline, \raggedleft, \raggedright and etc. In both directions we want for
> example \leftline put some text at the left and \rightline put some text at the
> right hand side because that is what it should be but in LuaTeX in RTL, \
> leftline stands for \rightline and \rightline stands for \leftline which is
> nonesense.

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: number.tex
Type: text/x-tex
Size: 194 bytes
Desc: not available
Url : http://tug.org/pipermail/luatex/attachments/20090410/86920fe6/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: number.otp
Type: application/vnd.oasis.opendocument.presentation-template
Size: 1827 bytes
Desc: not available
Url : http://tug.org/pipermail/luatex/attachments/20090410/86920fe6/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: number.ocp
Type: application/octet-stream
Size: 1212 bytes
Desc: not available
Url : http://tug.org/pipermail/luatex/attachments/20090410/86920fe6/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://tug.org/pipermail/luatex/attachments/20090410/86920fe6/attachment-0002.bin 


More information about the luatex mailing list