ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Replacement mechanism?
@ 2021-03-22  9:27 denis.maier
  0 siblings, 0 replies; only message in thread
From: denis.maier @ 2021-03-22  9:27 UTC (permalink / raw)
  To: j.hagen, ntg-context

Hi,

last October I've reported a strange bug with \replaceword

I know there's the new mechanism for dealing with ligatures, and I still intend to convert the word list to the new format, but I'm still wondering whether that has been fixed.

Now, I've been testing with the minimal example below, and it looks there might be another bug with the replacement and ligature blocking mechanism:

------------------------------------------------------
% these don't prevent ligatures
\replaceword[eka][auffasse][au{ff}asse]
\replaceword[eka][auffasst][au{ff}asst]
\replaceword[eka][auffasste][au{ff}asste]
\replaceword[eka][asdf][jklö] % this works though
\setreplacements[eka]

% doesn't block the ff ligature
\blockligatures[ff]

% finally this here works
\startexceptions[de]
au{f-}{f}{ff}(f\zwnj f)asse
au{f-}{f}{ff}(f\zwnj f)asste
\stopexceptions 


\starttext
asdf % replacements work in general
auffasste
auffasse
ff

% now via exceptions:
\language[de]
auffasste
auffasse
ff
\stoptext
------------------------------------------------------


Best
Denis

On 10/8/2020 3:15 PM, Denis Maier wrote:
> Ok,
> I've commented the whole nolig-german-wordlist out piece by piece, and 
> it looks like it comes down to this:
>
> ```
> \replaceword[eka][auffasse][au{ff}asse]
> \replaceword[eka][auffasst][au{ff}asst]
>
> \setreplacements[eka]
>
> \starttext
> auffasste
> auffasse
> \stoptext
> ```
>
> Uncommenting one of the \replacewords makes the wrong replacement 
> disappear.
> But I don't see why "auffasste" should trigger an replacement. What is 
> happening here?

i will look into it ... so patience is needed

-----------------------------------------------------------------
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] only message in thread

only message in thread, other threads:[~2021-03-22  9:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-22  9:27 Replacement mechanism? 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).