ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
Subject: Re: Sudoku module
Date: Mon, 18 Jul 2022 17:39:58 +0200	[thread overview]
Message-ID: <e0b4d907-5464-20b7-a35e-a6302348718a@gmail.com> (raw)
In-Reply-To: <D959FF00-B03C-43A1-9AB1-BD6ABFBE443F@gmail.com>

Otared Kavian via ntg-context schrieb am 18.07.2022 um 17:00:
> Hi Jairo,
>
> You sent a message last year about your Sudoku module, and today, out of curiosity, I wanted to test it. Unfortunately it stops with an error message at line 76 of the file t-sudoku.mkiv, where you have:
>
> \def\sudokufunction_direct[#name][#parameters]#content
>
> I would appreciate if you could tell me whether you have a working version of you module, or what one has to change in order to typeset your examples.

The error is unrelated to the sudoku module and when you use LMTX the 
error disappears.

The real problem can be seen in the following minimal example and is 
related to the "hash" option for the argument key.

%%%% begin example
\starttext

\startluacode
interfaces.implement {
     name      = "test",
     public    = true,
     arguments = { "hash" },
     actions   = function(t)
         print(table.serialize(t))
     end,
}
\stopluacode

\test[text=Hello]

\stoptext
%%%% end example

Wolfgang

___________________________________________________________________________________
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-07-18 15:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-18 15:00 Otared Kavian via ntg-context
2022-07-18 15:39 ` Wolfgang Schuster via ntg-context [this message]
2022-07-18 16:53   ` Otared Kavian via ntg-context
2022-07-18 20:10     ` Wolfgang Schuster via ntg-context
2022-07-18 21:53       ` Otared Kavian via ntg-context
2022-07-18 15:58 ` Jairo A. del Rio via ntg-context
  -- strict thread matches above, loose matches on Subject: below --
2021-04-12 18:02 Jairo A. del Rio

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=e0b4d907-5464-20b7-a35e-a6302348718a@gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=wolfgang.schuster.lists@gmail.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).