Re: [NTG-context] \autoinsertedspace fails following \nbsp under LMTX

2022-11-17 Thread Hans Hagen via ntg-context

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
___


[NTG-context] \autoinsertedspace fails following \nbsp under LMTX

2022-11-16 Thread Rik Kabel via ntg-context

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
___
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
___