* Questions regarding \startexceptions and ligature prevention
@ 2021-03-22 9:33 denis.maier
2021-03-22 10:28 ` Hans Hagen
0 siblings, 1 reply; 6+ messages in thread
From: denis.maier @ 2021-03-22 9:33 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 525 bytes --]
Hi,
there's this rather new mechanism for preventing ligatures:
\startexceptions[de]
au{f-}{f}{ff}(f\zwnj f)asse
au{f-}{f}{ff}(f\zwnj f)asste
\stopexceptions
Two questions:
1. Can you have multiple \startexceptions[de] environments ? Will they accumulate ? (I'm thinking about preparing a general list of exceptions, but of course you will also want individual exceptions...)
2. What is the exact meaning of these four arguments ? {1}{2}{3} is clear, but what about the parentheses ?
Best,
Denis
[-- Attachment #1.2: Type: text/html, Size: 4524 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Questions regarding \startexceptions and ligature prevention
2021-03-22 9:33 Questions regarding \startexceptions and ligature prevention denis.maier
@ 2021-03-22 10:28 ` Hans Hagen
2021-03-22 11:11 ` denis.maier
0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2021-03-22 10:28 UTC (permalink / raw)
To: mailing list for ConTeXt users, denis.maier
On 3/22/2021 10:33 AM, denis.maier@ub.unibe.ch wrote:
> Hi,
>
> there’s this rather new mechanism for preventing ligatures:
>
> \startexceptions[de]
>
> au{f-}{f}{ff}(f\zwnj f)asse
>
> au{f-}{f}{ff}(f\zwnj f)asste
>
> \stopexceptions
>
> Two questions:
>
> 1. Can you have multiple \startexceptions[de] environments ? Will they
> accumulate ? (I’m thinking about preparing a general list of
> exceptions, but of course you will also want individual exceptions…)
you can find out by trying ...
> 2. What is the exact meaning of these four arguments ? {1}{2}{3} is
> clear, but what about the parentheses ?
the lookup is using the third argument, the replacement is the fourth
auffasste => auf\zwnj fasste
when not hyphenated (without the () the third one is the replacement)
\enabletrackers[hyphenation.applied.visualize]
\startexceptions[de]
au{f-}{f}{ff}as-ste
au{f-}{f}{ff}(f!f)ax-xte
\stopexceptions
\mainlanguage[de]
\dorecurse{100}{#1 auffasste auffaxxte }
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Questions regarding \startexceptions and ligature prevention
2021-03-22 10:28 ` Hans Hagen
@ 2021-03-22 11:11 ` denis.maier
2021-03-22 11:26 ` denis.maier
2021-03-22 11:47 ` Hans Hagen
0 siblings, 2 replies; 6+ messages in thread
From: denis.maier @ 2021-03-22 11:11 UTC (permalink / raw)
To: j.hagen; +Cc: ntg-context
> -----Ursprüngliche Nachricht-----
> Von: Hans Hagen <j.hagen@xs4all.nl>
> Gesendet: Montag, 22. März 2021 11:28
> An: mailing list for ConTeXt users <ntg-context@ntg.nl>; Maier, Denis
> Christian (UB) <denis.maier@ub.unibe.ch>
> Betreff: Re: [NTG-context] Questions regarding \startexceptions and ligature
> prevention
>
> On 3/22/2021 10:33 AM, denis.maier@ub.unibe.ch wrote:
> > Hi,
> >
> > there's this rather new mechanism for preventing ligatures:
> >
> > \startexceptions[de]
> >
> > au{f-}{f}{ff}(f\zwnj f)asse
> >
> > au{f-}{f}{ff}(f\zwnj f)asste
> >
> > \stopexceptions
> >
> > Two questions:
> >
> > 1. Can you have multiple \startexceptions[de] environments ? Will they
> > accumulate ? (I'm thinking about preparing a general list of
> > exceptions, but of course you will also want individual exceptions.)
>
> you can find out by trying ...
Ok, it does...
>
> > 2. What is the exact meaning of these four arguments ? {1}{2}{3} is
> > clear, but what about the parentheses ?
> the lookup is using the third argument, the replacement is the fourth
>
> auffasste => auf\zwnj fasste
>
> when not hyphenated (without the () the third one is the replacement)
So, what's the advantage of using
au{f-}{f}{ff}(f\zwnj f)as-ste
over
au{f-}{f}{ff}as-ste
if any?
Besides, is it intentional that this here will suppress the ff ligature?
---------------------------------------------------------------
\enabletrackers[hyphenation.applied.visualize]
\startexceptions[de]
au{f-}{f}{ff}as-sen
\stopexceptions
\mainlanguage[de]
\starttext
auffassen
\stoptext
---------------------------------------------------------------
I don't see why that should happen here.
Denis
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Questions regarding \startexceptions and ligature prevention
2021-03-22 11:11 ` denis.maier
@ 2021-03-22 11:26 ` denis.maier
2021-03-22 11:47 ` Hans Hagen
1 sibling, 0 replies; 6+ messages in thread
From: denis.maier @ 2021-03-22 11:26 UTC (permalink / raw)
To: ntg-context, j.hagen
> -----Ursprüngliche Nachricht-----
> Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von
> denis.maier@ub.unibe.ch
> Gesendet: Montag, 22. März 2021 12:12
> An: j.hagen@xs4all.nl
> Cc: ntg-context@ntg.nl
> Betreff: Re: [NTG-context] Questions regarding \startexceptions and ligature
> prevention
>
> > -----Ursprüngliche Nachricht-----
> > Von: Hans Hagen <j.hagen@xs4all.nl>
> > Gesendet: Montag, 22. März 2021 11:28
> > An: mailing list for ConTeXt users <ntg-context@ntg.nl>; Maier, Denis
> > Christian (UB) <denis.maier@ub.unibe.ch>
> > Betreff: Re: [NTG-context] Questions regarding \startexceptions and
> > ligature prevention
> >
> > On 3/22/2021 10:33 AM, denis.maier@ub.unibe.ch wrote:
> > > Hi,
> > >
> > > there's this rather new mechanism for preventing ligatures:
> > >
> > > \startexceptions[de]
> > >
> > > au{f-}{f}{ff}(f\zwnj f)asse
> > >
> > > au{f-}{f}{ff}(f\zwnj f)asste
> > >
> > > \stopexceptions
> > >
> > > Two questions:
> > >
> > > 1. Can you have multiple \startexceptions[de] environments ? Will they
> > > accumulate ? (I'm thinking about preparing a general list of
> > > exceptions, but of course you will also want individual
> > > exceptions.)
> >
> > you can find out by trying ...
>
> Ok, it does...
>
Regarding the plan of preparing a list of suppressed ligatures: It seems possible to provide a word list that could just be included with input. OTOH, you'll have to include correct hyphenation for all the words in the list. Is it possible to only define the correct ligature handling in such a list without having to supply hyphenation rules as well?
Denis
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Questions regarding \startexceptions and ligature prevention
2021-03-22 11:11 ` denis.maier
2021-03-22 11:26 ` denis.maier
@ 2021-03-22 11:47 ` Hans Hagen
2021-03-22 11:57 ` denis.maier
1 sibling, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2021-03-22 11:47 UTC (permalink / raw)
To: denis.maier; +Cc: ntg-context
On 3/22/2021 12:11 PM, denis.maier@ub.unibe.ch wrote:
> Besides, is it intentional that this here will suppress the ff ligature?
>
> ---------------------------------------------------------------
> \enabletrackers[hyphenation.applied.visualize]
> \startexceptions[de]
> au{f-}{f}{ff}as-sen
> \stopexceptions
> \mainlanguage[de]
>
> \starttext
>
> auffassen
> \stoptext
> ---------------------------------------------------------------
>
> I don't see why that should happen here.
afiks it doesn't suppress
-----------------------------------------------------------------
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Questions regarding \startexceptions and ligature prevention
2021-03-22 11:47 ` Hans Hagen
@ 2021-03-22 11:57 ` denis.maier
0 siblings, 0 replies; 6+ messages in thread
From: denis.maier @ 2021-03-22 11:57 UTC (permalink / raw)
To: j.hagen; +Cc: ntg-context
[-- Attachment #1: Type: text/plain, Size: 1544 bytes --]
Well, see attached.
Interestingly, it does with \mainlanguage[de]. But, not for \language[de]
\enabletrackers[hyphenation.applied.visualize]
\startexceptions[de]
au{f-}{f}{ff}as-sen
\stopexceptions
\mainlanguage[de]
\starttext
auffassen
\language[en]
auffassen
\language[de]
auffassen
\stoptext
> -----Ursprüngliche Nachricht-----
> Von: Hans Hagen <j.hagen@xs4all.nl>
> Gesendet: Montag, 22. März 2021 12:48
> An: Maier, Denis Christian (UB) <denis.maier@ub.unibe.ch>
> Cc: ntg-context@ntg.nl
> Betreff: Re: AW: [NTG-context] Questions regarding \startexceptions and
> ligature prevention
>
> On 3/22/2021 12:11 PM, denis.maier@ub.unibe.ch wrote:
>
> > Besides, is it intentional that this here will suppress the ff ligature?
> >
> > ---------------------------------------------------------------
> > \enabletrackers[hyphenation.applied.visualize]
> > \startexceptions[de]
> > au{f-}{f}{ff}as-sen
> > \stopexceptions
> > \mainlanguage[de]
> >
> > \starttext
> >
> > auffassen
> > \stoptext
> > ---------------------------------------------------------------
> >
> > I don't see why that should happen here.
> afiks it doesn't suppress
>
>
> -----------------------------------------------------------------
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
[-- Attachment #2: test.pdf --]
[-- Type: application/pdf, Size: 4882 bytes --]
[-- Attachment #3: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-03-22 11:57 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-22 9:33 Questions regarding \startexceptions and ligature prevention denis.maier
2021-03-22 10:28 ` Hans Hagen
2021-03-22 11:11 ` denis.maier
2021-03-22 11:26 ` denis.maier
2021-03-22 11:47 ` Hans Hagen
2021-03-22 11:57 ` denis.maier
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).