[NTG-context] Selectively supressing ligatures

Jan U. Hasecke juh+ntg-context at mailbox.org
Tue Aug 11 11:12:12 CEST 2015


Hello Hans,

thank you very much for this quick fix.

I'll have to switch to the beta branch to try it out. At least I can now
suppress ligatures with a replacement list, which is enough for now.

As far as I understood selnoligs works with regular expressions (black
magic!). It is very time consuming, but CPU time is cheap. ;-)

Thanks a lot and a nice sunny day.
juh

Am 11.08.15 um 10:19 schrieb Hans Hagen:
> On 8/11/2015 8:25 AM, Jan U. Hasecke wrote:
>> Hi,
>>
>> I want to follow up on my own message below.
>>
>> I got the hint offlist that it should not be too difficult to convert a
>> LaTeX package into a ConTeXt module.
> 
> I don't know but it would probably be a bit alien approach in the
> context code base
> 
>> So I guess that there is no built-in functionality of semantical
>> switching between ligatures and normal characters.
> 
> The official way to do this is:
> 
> \starttext
>     shel\noligature{ff}ul
> \stoptext
> 
> which also preserves hyphenation and kerning as well as other tricky
> features that a font provides.
> 
> The best place to incorporate such a feature is in the hyphenator but I
> have no time now to do that. So, instead I added a few lines to an
> existing (probably unknown) mechanism:
> 
> \replaceword[more][shelfful] [shel{ff}ul]
> \replaceword[more][shifffahrt][shi{ff}fahrt]
> 
> \starttext
> shel\noligature{ff}ul
> 
> \setreplacements[more]
> 
> shelfful
> \stoptext
> 
> The downside of the 10 line extension is that it's not the most
> efficient implementation but probably still fast enough.
> 
>> I am not a typographer – maybe I am wrong – but I don't like ligatures
>> in the wrong places. Inserting ligature stoppers by hand is a tedious
>> work.
> 
> I don't like ligatures in most places (why only the few famous ones ...
> a bit imposed tradition limited to old constraints)
> 
>> The latex package selnoligs was beneficial to me when I made a book with
>> more than 1000 pages, where I would never managed to stop ligatures by
>> hand.
>>
>> So what is your opinion about such a feature?
> 
> You can probably make a list of special words and adding that to a
> module is no big deal. I have no time to look into what is around and do
> that myself.
> 
> I uploaded a beta.
> 
> Hans
> 
> -----------------------------------------------------------------
>                                           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 Wiki!
> 
> maillist : ntg-context at 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
> ___________________________________________________________________________________


More information about the ntg-context mailing list