[NTG-context] Sudoku module

Otared Kavian otared at gmail.com
Mon Jul 18 18:53:22 CEST 2022


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



More information about the ntg-context mailing list