From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: Selectively supressing ligatures
Date: Tue, 11 Aug 2015 10:19:59 +0200 [thread overview]
Message-ID: <55C9B02F.507@wxs.nl> (raw)
In-Reply-To: <55C9954D.5040601@mailbox.org>
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@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
___________________________________________________________________________________
next prev parent reply other threads:[~2015-08-11 8:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-30 13:10 juh
2015-08-11 6:25 ` Jan U. Hasecke
2015-08-11 8:19 ` Hans Hagen [this message]
2015-08-11 9:12 ` Jan U. Hasecke
2015-08-11 9:46 ` Hans Hagen
2015-08-11 10:41 ` Jan U. Hasecke
2015-08-11 11:22 ` Hans Hagen
2015-08-11 13:00 ` Jan U. Hasecke
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=55C9B02F.507@wxs.nl \
--to=pragma@wxs.nl \
--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).