On 25-2-2011 1:18, Heilmann, Till A. wrote:
Maybe the ConTeXt community can be of assistance to the LuaTeX bunch ...

As a new LuaTeX user, I came across the following problem: Using Lua(La)TeX, 
customized kerning of letter pairs (via the FeatureFile capability of fontspec) 
is ignored when it coincides with a possible hyphenation of a word (e.g. 
between 'f' and 'h' in German words like 'aufhalten'; see first minimal example 

Ulrike Fischer was so kind to point out two things 
(http://tug.org/pipermail/luatex/2011-February/002569.html): First, the problem 
seems to be the break points between the adjusted kerning pairs. Second, 
ConTeXt seems to handle this case correctly (see second minimal example below; 
feature file bonum.fea from first example required).

I am no expert in neither LuaTeX nor context, but Ulrike suggested I post here 
and ask if the (typographically correct) ConTeXt behavior or solution can be 
reproduced with Lua(La)TeX.

- Till

1. Lua(La)TeX

languagesystem DFLT dflt;
languagesystem latn dflt;
feature kern {
pos f h 100;
} kern;
\setmainfont[FeatureFile=bonum.fea]{TeX Gyre Bonum}
fh aufhalten

I cannot test that (I only have the context minimals installed) but I don't know anything about latex internals so it would be a wild guess. Maybe babel is interfering? In base mode kerning and and hyphenation happen in the traditional tex way, so there is not much extra trickery taking place.

2. ConTeXt

\mainlanguage   [de]
\test fh aufhalten

Indeed I see a kern.


                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
If your question is of interest to others as well, please add an entry to the 

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net

Reply via email to