[lltx] fontspec push

Khaled Hosny khaledhosny at eglug.org
Tue Mar 9 00:57:29 CET 2010


On Tue, Mar 09, 2010 at 08:38:43AM +1030, Will Robertson wrote:
> >> Added the following "programmer's interface" with, I suspect, more to
> >> come eventually. Does this all make sense? More importantly, does
> >> fontspec even compile documents for you still?
> > 
> > This code doesn't work, I get:
> > 
> > ! Undefined control sequence.
> > \fontspec_check_lang:n ...,"\l_fontspec_script_tl 
> >                                                  ")}
> > l.9 \fontspec_if_language:nTF {ROM}
> >                                    {True}{False?}/
> > ? 
> > 
> > It seems \l_fontspec_script_tl is undefined by the time this function is
> > called.
> 
> Oh, of course. At the moment I'm only saving the XeTeX script number,
> not the string it represents. I need the string for LuaTeX as well.

I kind of guessed that (I only guessed, because with TeX macro I'm never
certian).

> > I think a cleaner aproach is to call fontspec.check_ot_lang() etc.
> > directly instead of \fontspec_check_lang:n,
> 
> One of the changes I made last night makes \fontspec_check_lang:n
> exactly a wrapper around fontspec.check_ot_lang(). I like to minimise
> the number of \xetex_or_luatex:nn functions within macro definitions.

I noticed that, I wasn't actually suggesting that patch literally, but
as way to explain what I want to say (writing a code snippet is less
effort for me than writing meaningful English sentence).

Regards,
 Khaled

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



More information about the lualatex-dev mailing list