ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	denis.maier@ub.unibe.ch
Subject: Re: Ligature suppression word list
Date: Sat, 3 Apr 2021 18:42:11 +0200	[thread overview]
Message-ID: <bbae9752-08c1-cd43-b0da-6dd50d45d7e3@xs4all.nl> (raw)
In-Reply-To: <87266bdef586472da8fcefef72186e21@ub.unibe.ch>

On 4/3/2021 5:06 PM, denis.maier@ub.unibe.ch wrote:

> <https://github.com/denismaier/context-nolig-wordlist>

For those interested, that file only has ligature prevention definitions.

{
    actions = {
        ["|"] = "noligature"
    },
    words = [[
        Auf|lagefläche
        Auf|lageflächen
        Auf|lagenziffer
        Auf|lagenziffern
    ]],
},

can be (lig prevention already in words):

{
    words = [[
        Auf|lagefläche
        Auf|lageflächen
        Auf|lagenziffer
        Auf|lagenziffern
    ]],
},

or the more efficient (first match only):

{
    actions = {
        ["|"] = "noligature"
    },
    matches = { 1 }
    words = [[
        Auflagefläche
        Auflageflächen
        Auflagenziffer
        Auflagenziffern
    ]],
},

or if you want all matches:

{
    actions = {
        ["|"] = "noligature"
    },
    words = [[
        Auflagefläche
        Auflageflächen
        Auflagenziffer
        Auflagenziffern
    ]],
},

or when you want no kerns either (of course on can also use the petterns 
key):

    actions = {
        ["|"] = "noligature nokern"
    },
    words = [[
      ef|fe
    ]],
},

btw, user will also be able to do this in a document source

\startlanguageoptions[de]
     Zapf|innovation
     whatever+innovation
\stoplanguageoptions

ligature prevention in the first and compound word in the next one.

so, one way to see what we need is if users try to analyze their 
'exceptions' if they have them defined at all, so that we can spot 
possible tricks needed,

(i might actually combine this with exceptions that normally come after 
this stage)

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  parent reply	other threads:[~2021-04-03 16:42 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-03 15:06 denis.maier
2021-04-03 15:20 ` Arthur Rosendahl
2021-04-03 16:02   ` Hans Hagen
2021-04-08 19:37     ` Arthur Rosendahl
2021-04-08 20:51       ` Hans Hagen
2021-04-03 15:58 ` Hans Hagen
2021-04-06 14:59   ` denis.maier
2021-04-06 15:03   ` denis.maier
2021-04-03 16:03 ` Hans Hagen
2021-04-03 16:30   ` Thangalin
2021-04-03 16:43     ` Hans Hagen
2021-04-03 19:21       ` Thangalin
2021-04-03 16:42 ` Hans Hagen [this message]
     [not found] <mailman.248.1617745098.1120.ntg-context@ntg.nl>
2021-04-07 18:19 ` rha17
2021-04-08  8:52   ` denis.maier
2021-04-12 15:52   ` denis.maier

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=bbae9752-08c1-cd43-b0da-6dd50d45d7e3@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=denis.maier@ub.unibe.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).