[lltx] luaotfload update
Ulrike Fischer
news3 at nililand.de
Thu Oct 6 17:11:27 CEST 2011
Am Thu, 6 Oct 2011 16:28:54 +0200 schrieb Khaled Hosny:
>>>> Otherwise, XeTeX supports these features with its Unicode input
>>>> mapping feature -- what are the chances this could be written
>>>> with a Lua callback? It's a useful feature in itself, and the big
>>>> reason polyglossia is currently XeTeX-only.
>>>
>>> You could use a fea-file as a replacement, e.g. to implement such
>>> ligatures.
>>
>> This here seems to work.
>>
>> \documentclass{article}
>> \begin{filecontents*}{tex-dash.fea}
>> languagesystem DFLT dflt ;
>> languagesystem latn dflt ;
>> feature tdas {
>> sub hyphen hyphen hyphen by emdash;
>> sub hyphen hyphen by endash;
>> } tdas ;
>> \end{filecontents*}
>
> This looks fine, AFAIC it is essentially how it was implemented (though
> ConTeXt is modifying the lua tfm table directly).
;-)
Do you know why "sub a b by c;" works fine (2 glyphs mapped to one
glyph) while "sub d by e;" (one to one) fails?
>> Comments:
>> 1. You must delete the temp-arial-tex-dash.lua etc files in the
>> luatex-cache after you changed the fea-file or you won't see the
>> changes.
>
> I don't need this here, I recall this being fixed for some time now.
Yes I also recall that at some time it worked. But currently it
doesn't work for me. I have to delete the temp-files.
How does luaotfload decide if the temp-files should be regenerated?
--
Ulrike Fischer
More information about the lualatex-dev
mailing list