[lltx] luaotfload update

Khaled Hosny khaledhosny at eglug.org
Thu Oct 6 17:22:06 CEST 2011


On Thu, Oct 06, 2011 at 05:11:27PM +0200, Ulrike Fischer wrote:
> 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?

Are they both in the same feature/lookup block, if so then I recall it
is a bug in FontForge feature file import (one too many and one to one
are different internally and need to go to separate lookups, FontForge
should either complain and reject the file or do the split, but it seems
to just silently ignore the different entries. Moving each type to its
own block should fix it.)

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

The cashed file name is a hash for font name and any applied feature
files, here I have in my cache temp-dejavusans.lua and
temp-dejavusans-tex-dash.lua.

Regards,
 Khaled

-- 
 Khaled Hosny
 Egyptian
 Arab


More information about the lualatex-dev mailing list