Open main menu

Changes

421 bytes added ,  13:39, 4 October 2017
Link to German ligature exception list
= Introduction =
Ligatures are combinations of letters that use different glyph shapes to avoid clashing of parts like i-dots and f-arcs. Many fonts contain at least fi and fl ligatures, well-furnished fonts have also ft, ffl, ffi, fft, fb, ffb, fh , ffh and maybe some traditional ones like st, sp, ct, ch and combinations with long s – German ß was originally a long-s + end-s ligature (even if it looks like s+z and is called szlig).
While the use of ligatures is a feature of good typography, there are places where they don’t belong, namely at syllable seams where hyphenation can or should take place.
Some typical German examples are Auf-lage, auf-laden, auf-fallen, Zupf-instrument, Schiff-fahrt. English examples would be chief-ly, shelf-ful, elf-like, wolf-trap, clothes-pin.
= Traditional TeX methods to break ligatures =
* Auf\/lage – breaks the ligature, but also kills hyphenation and kerning
* Auf{}lage – worked in pdfTeX (MkII), but not in modern TeX engines
* For LaTeX, there’s the [https://www.ctan.org/pkg/selnolig selnolig] package(English and German).
= Enabling Ligatures in fonts =
Much better.
The first parameter os {{cmd|replaceword}} is a set (collection) keycode, i.e. you can define different sets of replacements and activate them with {{cmd|setreplacements}}. [http://wiki.contextgarden.net/images/b/be/nolig-german-wordlist.tex Here’s] a list of German ligature exceptions, derived from [https://www.ctan.org/pkg/selnolig selnolig] LaTeX package. Just {{cmd|input}} it in your environment.
In current versions (after 2017-09-28) you may also define several exceptions at once, like
\replaceword [eg] [Au{fl}age Schiff{f}ahrt Zup{fi}nstrument]
</texcode>
 
Find more details in the source: {{src|lang-rep.mkiv}}
= Blocking =