* \autoinsertedspace fails following \nbsp under LMTX
@ 2022-11-17 5:43 Rik Kabel via ntg-context
2022-11-17 13:36 ` Hans Hagen via ntg-context
0 siblings, 1 reply; 2+ messages in thread
From: Rik Kabel via ntg-context @ 2022-11-17 5:43 UTC (permalink / raw)
To: ntg-context; +Cc: Rik Kabel
[-- Attachment #1.1: Type: text/plain, Size: 1177 bytes --]
ConTeXt ver: 2022.11.14 22:58 LMTX on W11 x64
I have been testing the recently added \autoinsertedspace, and I found
an odd failure.
The following compiles with \nbsp commented as shown, but once that line
is active, the compilation fails:
lua error:
callback error:
...MTX/tex/texmf-context/tex/context/base/mkxl/font-hsh.lmt:151:
table index is nil
It fails differently in MkIV (but it is nice to see that the new command
has been backported):
luatex warning > node filter: error:
...MTX/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:380:
Attempt to node.direct.remove() a non-existing node
%<------------------------------------------------------
\starttexdefinition unexpanded New
\dodoublegroupempty
\doNew
\stoptexdefinition
\starttexdefinition doNew #1#2
\removeunwantedspaces
\ (#1|–|#2)
\autoinsertedspace
\stoptexdefinition
\starttext
ABC 0\New{123}{456} 789
ABC
% \nbsp
0\New{123}{456} 789
\stoptext
Am I doing something wrong here? \nbsp is needed to prevent improper
line breaks.
--
Rik
[-- Attachment #1.2: Type: text/html, Size: 1937 bytes --]
[-- Attachment #2: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: \autoinsertedspace fails following \nbsp under LMTX
2022-11-17 5:43 \autoinsertedspace fails following \nbsp under LMTX Rik Kabel via ntg-context
@ 2022-11-17 13:36 ` Hans Hagen via ntg-context
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen via ntg-context @ 2022-11-17 13:36 UTC (permalink / raw)
To: Rik Kabel via ntg-context; +Cc: Hans Hagen
On 11/17/2022 6:43 AM, Rik Kabel via ntg-context wrote:
> ConTeXt ver: 2022.11.14 22:58 LMTX on W11 x64
>
> I have been testing the recently added \autoinsertedspace, and I found
> an odd failure.
fixed n next upload
-----------------------------------------------------------------
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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-17 13:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-17 5:43 \autoinsertedspace fails following \nbsp under LMTX Rik Kabel via ntg-context
2022-11-17 13:36 ` Hans Hagen via ntg-context
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).