Re: [NTG-context] Merging two lua tables

2022-08-30 Thread BPJ via ntg-context
Come to think of it you may also want to check that numeric indices are indeed positive integers before appending their value. I usually don't because their not being so is rare. Den tis 30 aug. 2022 10:56BPJ skrev: > > > Den mån 29 aug. 2022 20:13Hans Hagen via ntg-context > skrev: > >> On

Re: [NTG-context] Merging two lua tables

2022-08-30 Thread BPJ via ntg-context
Den mån 29 aug. 2022 20:13Hans Hagen via ntg-context skrev: > On 8/29/2022 7:33 PM, BPJ via ntg-context wrote: > > Hi, > > > > I use the attached Lua function to merge array, map and mixed tables > alike > > (but differently! :-) The trick is to check if each key is numeric or > not, > > append

[NTG-context] accessing tex.sprint from pure Lua code.

2022-08-30 Thread Hans van der Meer via ntg-context
How can ik access the tex library in pure Lua for tex.sprint and token.setmacro? I guess something like require XYZ ? dr. Hans van der Meer ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] accessing tex.sprint from pure Lua code.

2022-08-30 Thread Hans Hagen via ntg-context
On 8/30/2022 7:34 PM, Hans van der Meer via ntg-context wrote: How can ik access the tex library in pure Lua for tex.sprint and token.setmacro? I guess something like require XYZ ? what do you mean with pure lua Hans -

Re: [NTG-context] accessing tex.sprint from pure Lua code.

2022-08-30 Thread Hans Hagen via ntg-context
On 8/30/2022 8:02 PM, Hans van der Meer wrote: In Terminal (say Unix window) calling lua some-file.lua and within that file code like tex.sprint ... token... Thus calling in the tex-library outside ConTeXt. no, tex is not a library .. but of course you can make a small tex file that wraps

Re: [NTG-context] Parallel texts: verse with blanks between stanzas via tabulate

2022-08-30 Thread Denis Maier via ntg-context
> -Ursprüngliche Nachricht- > Von: ntg-context > mailto:ntg-context-boun...@ntg.nl>> Im Auftrag > von Hans Hagen > via ntg-context > Gesendet: Montag, 29. August 2022 13:58 > An: ntg-context@ntg.nl > Cc: Hans Hagen mailto:j.ha...@xs4all.nl>> > Betreff:

Re: [NTG-context] Parallel texts: verse with blanks between stanzas via tabulate

2022-08-30 Thread Denis Maier via ntg-context
> -Ursprüngliche Nachricht- > Von: Hans Hagen > Gesendet: Dienstag, 30. August 2022 14:31 > An: Maier, Denis Christian (UB) ; mailing list for > ConTeXt users > Betreff: Re: AW: [NTG-context] Parallel texts: verse with blanks between > stanzas via tabulate > > On 8/30/2022 1:40 PM,

Re: [NTG-context] Parallel texts: verse with blanks between stanzas via tabulate

2022-08-30 Thread Hans Hagen via ntg-context
On 8/30/2022 1:40 PM, denis.ma...@unibe.ch wrote: Thanks for the updated version. So, that means the basic restriction is that blanks will need to be inserted between rows, right? We cannot have to two completely independent formatted poems, right? (For reference, see the attached PNG. This