ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Otared Kavian <otared@gmail.com>
Subject: Re: Sudoku module
Date: Mon, 18 Jul 2022 18:53:22 +0200	[thread overview]
Message-ID: <9884ABBC-C7BC-4AB5-9535-B601F706F6DD@gmail.com> (raw)
In-Reply-To: <e0b4d907-5464-20b7-a35e-a6302348718a@gmail.com>

Hi Wolfgang,

Thank you for your attention and the explanation regarding the « hash option » and why the sudoku module written by Jairo does not work. However I was reporting the issue when I tried to typeset the example file with LMTX (version 2022.07.06 21:42). 
As a matter of fact I am far from understanding what the « arguments = { « hash » } » is supposed to do in interfaces.implement in the code you sent…

Best regards: Otared

> On 18 Jul 2022, at 17:39, Wolfgang Schuster via ntg-context <ntg-context@ntg.nl> wrote:
> 
> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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 16:53 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
2022-07-18 16:53   ` Otared Kavian via ntg-context [this message]
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=9884ABBC-C7BC-4AB5-9535-B601F706F6DD@gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=otared@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).