On Mon, Jun 23, 2008 at 09:47:45AM +0200, Taco Hoekwater wrote:
> 
> 
> Khaled Hosny wrote:
> > I get this error when I attempt to generate this file with
> > \setcharactermirroring[1], and text directionality gets broken.
> > 
> 
> IIRC, this is a bug in luatex 0.25.3 that is fixed in SVN.
> There'll be a new snapshot luatex release later in the week
> that should fix it. (or you could fetch SVN trunk right now)

I fetched SVN trunk sources and built it, the error has gone, but the
Arabic text stil broken; letters run from left to right, but English is
mirrored as expected. See the attached PDF.

Regards,
 Khaled


-- 
 Khaled Hosny
 Arabic localizer and member of Arabeyes.org team
% engine=luatex 

\mainlanguage[arabic]

% Font
\definefontfeature
   [arabic]
   [mode=node,language=dflt,script=arab,
    init=yes,medi=yes,fina=yes,isol=yes,
    liga=yes,dlig=yes,rlig=yes,clig=yes,
    mark=yes,mkmk=yes,kern=yes,curs=yes]

\starttypescript [serif] [arabic]
 \definefontsynonym [Arabic-Light]       [name:arabtype] [features=arabic]
 \definefontsynonym [Arabic-Bold]        [name:arabtype] [features=arabic]
 \definefontsynonym [Arabic-Italic]      [name:arabtype] [features=arabic]
 \definefontsynonym [Arabic-Bold-Italic] [name:arabtype] [features=arabic]
 \stoptypescript

\starttypescript [serif] [arabic] [name]
 \usetypescript[serif][fallback]
 \definefontsynonym [Serif]           [Arabic-Light]       [features=arabic]
 \definefontsynonym [SerifItalic]     [Arabic-Italic]      [features=arabic]
 \definefontsynonym [SerifBold]       [Arabic-Bold]        [features=arabic]
 \definefontsynonym [SerifBoldItalic] [Arabic-Bold-Italic] [features=arabic]
\stoptypescript

\starttypescript [Arabic]
  \definetypeface [Arabic] [rm] [serif] [arabic] [default] 
\stoptypescript 

\usetypescript[Arabic]
\setupbodyfont[Arabic,20pt]

% direction
\pagedir TRT\bodydir TRT\pardir TRT\textdir TRT

% links
\setupinteraction
  [state=start,
   color=green,
   style=bold]

\setcharactermirroring[1]

\starttext
\startstandardmakeup
  \midaligned{كيف تكتب عربي في كنتكست}
  \midaligned{كتبه}
  \midaligned{خالد حسني}
\stopstandardmakeup
%\completecontent
\chapter{مقدمة}
الكتابة العربية من اليمين لليسار

English text is mirrored

\stoptext

Attachment: myfile.pdf
Description: Adobe PDF document

Attachment: signature.asc
Description: Digital signature

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to