Open main menu

Changes

988 bytes added ,  21:49, 5 June 2022
m
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 =
While general blocking ({{cmd|blockligatures}}[fi,fl]) works, the exception handling ({{cmd|blockligatures}}[au:fl:age]) might depend on a version unpublished as of this writing (i.e. after 2017-09-28).
 
= Word suppression =
 
In English, one principle suggests not using specific ligatures in certain words because <em>ligatures should not cross morpheme boundaries</em>. For instance, the <em>fi</em> ligature in wolfish is to be suppressed because the <em>f</em> and <em>i</em> belong to distinct morphemes (<em>wolf</em> and <em>ish</em>, in contrast to <em>fish</em>, where <em>fi</em> is a single morpheme). The following code shows how to apply this rule to prevent unwanted ligatures:
 
<texcode>
\setuplanguage[en][goodies={lang-en.llg}]
 
\starttext
wolfish huffily puffily
\stoptext
</texcode>
 
Other languages will need a corresponding ligature suppression word list.
 
[[Category:Fonts]]
419

edits