ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Heilmann, Till A." <till.heilmann@unibas.ch>
To: ntg-context@ntg.nl
Subject: Hyphenation patterns and adjusted kerning: ConTeXt vs. LuaTeX
Date: Fri, 25 Feb 2011 13:18:13 +0100	[thread overview]
Message-ID: <9FF5E748-7C07-4B46-BD82-9B58A16B4670@unibas.ch> (raw)

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

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.

Thanks,
- Till

1. Lua(La)TeX

\begin{filecontents*}{bonum.fea}
languagesystem DFLT dflt;
languagesystem latn dflt;
feature kern {
pos f h 100;
} kern;
\end{filecontents*}
\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage{fontspec}
\setmainfont[FeatureFile=bonum.fea]{TeX Gyre Bonum}
\begin{document}
fh aufhalten
\end{document}

2. ConTeXt

\mainlanguage	[de]
\definefontfeature[test][featurefile=bonum,kern=yes]
\definefont[test][name:texgyrebonum*test]
\starttext
\test fh aufhalten
\stoptext


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

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	other threads:[~2011-02-25 12:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-25 12:18 Heilmann, Till A. [this message]
2011-02-25 13:35 ` Hans Hagen
2011-02-25 14:41   ` Ulrike Fischer
2011-02-25 16:00     ` Khaled Hosny
2011-02-25 15:37 Heilmann, Till A.
2011-02-25 15:45 ` Ulrike Fischer
2011-02-25 15:56   ` Ulrike Fischer
2011-02-25 16:07   ` Hyphenation patterns and adjusted kerning:?ConTeXt " Khaled Hosny
2011-02-25 15:57 Hyphenation patterns and adjusted kerning: ConTeXt " Heilmann, Till A.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9FF5E748-7C07-4B46-BD82-9B58A16B4670@unibas.ch \
    --to=till.heilmann@unibas.ch \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).