Re: [NTG-context] Sending data from lua to context and back to lua

2018-02-08 Thread Rudolf Bahr
On Thu, Feb 08, 2018 at 04:26:16PM +0100, Henning Hraban Ramm wrote: > Am 2018-02-08 um 15:34 schrieb Rudolf Bahr : > > > On Thu, Feb 08, 2018 at 09:30:48AM +0100, Thomas A. Schmitz wrote: > >> On 02/07/2018 06:39 PM, Rudolf Bahr wrote: > >>> Sometimes the necessity could arise to

Re: [NTG-context] Sending data from lua to context and back to lua

2018-02-08 Thread Henning Hraban Ramm
Am 2018-02-08 um 15:34 schrieb Rudolf Bahr : > On Thu, Feb 08, 2018 at 09:30:48AM +0100, Thomas A. Schmitz wrote: >> On 02/07/2018 06:39 PM, Rudolf Bahr wrote: >>> Sometimes the necessity could arise to send data from lua to context >>> and answers back to lua. I tried this by

Re: [NTG-context] Sending data from lua to context and back to lua

2018-02-08 Thread Hans Hagen
On 2/8/2018 3:34 PM, Rudolf Bahr wrote: On Thu, Feb 08, 2018 at 09:30:48AM +0100, Thomas A. Schmitz wrote: On 02/07/2018 06:39 PM, Rudolf Bahr wrote: Sometimes the necessity could arise to send data from lua to context and answers back to lua. I tried this by using "read" and "immediate\write"

Re: [NTG-context] Sending data from lua to context and back to lua

2018-02-08 Thread Thomas A. Schmitz
On 08.02.2018 15:34, Rudolf Bahr wrote: With the use of "\immediate\write" and "\read" in context and the read and write functions in lua I know exactly from where to where the data goes. How to do the same with "context()"? This question is impossible to answer - what is "the same"? Please

Re: [NTG-context] Sending data from lua to context and back to lua

2018-02-08 Thread Rudolf Bahr
On Thu, Feb 08, 2018 at 09:30:48AM +0100, Thomas A. Schmitz wrote: > On 02/07/2018 06:39 PM, Rudolf Bahr wrote: > > Sometimes the necessity could arise to send data from lua to context > > and answers back to lua. I tried this by using "read" and > > "immediate\write" commands in context. These

Re: [NTG-context] Sending data from lua to context and back to lua

2018-02-08 Thread Thomas A. Schmitz
On 02/07/2018 06:39 PM, Rudolf Bahr wrote: Sometimes the necessity could arise to send data from lua to context and answers back to lua. I tried this by using "read" and "immediate\write" commands in context. These commands are described in chapter 21 and 22 of Donald E. Knuth's "The TeXbook".

Re: [NTG-context] Sending data from lua to context and back to lua

2018-02-07 Thread Rudolf Bahr
On Wed, Feb 07, 2018 at 06:39:53PM +0100, Bahr Rudolf wrote: > > Hello Contexteers! > > Sometimes the necessity could arise to send data from lua to context > and answers back to lua. I tried this by using "read" and > "immediate\write" commands in context. These commands are described > in