[lltx] fontspec push

Will Robertson wspr81 at gmail.com
Mon Mar 8 23:08:43 CET 2010


On 08/03/2010, at 10:21 PM, Khaled Hosny wrote:

> The original issue with setting script/language is now fixed.

Hurray :)

>> 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 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.

-- Will




More information about the lualatex-dev mailing list