ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Rik Kabel via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Rik Kabel <ConTeXt@rik.users.panix.com>
Subject: \autoinsertedspace fails following \nbsp under LMTX
Date: Thu, 17 Nov 2022 00:43:04 -0500	[thread overview]
Message-ID: <9f078782-3709-6296-3798-dab13a7208f9@rik.users.panix.com> (raw)


[-- 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
___________________________________________________________________________________

             reply	other threads:[~2022-11-17  5:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-17  5:43 Rik Kabel via ntg-context [this message]
2022-11-17 13:36 ` Hans Hagen via ntg-context

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=9f078782-3709-6296-3798-dab13a7208f9@rik.users.panix.com \
    --to=ntg-context@ntg.nl \
    --cc=ConTeXt@rik.users.panix.com \
    /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).