Re: [NTG-context] OpenBSD install broken

2019-10-08 Thread Damien Thiriet
Hi Mojca, Hi Robert


I tried to install standalone according to your instructions,
but I failed one more time.

I did the following steps:

mkdir context && cd context
rsync -ptv rsync://contextgarden.net/standalone/setup/first-setup.sh .
./first-setup.sh

Then I changed the line 4049 of bin/mtxrun to 
local platform="openbsd6.5-amd64"

but I obviously did not understand what to do next:
calling 

env PATH="$PWD/bin:$CONTEXTROOT/texmf-$platform/bin:$PATH"
MTX_PLATFORM="$platform" \
./bin/mtxrun --script ./bin/mtx-update.lua --force --update --make
--engine=luatex --platform="$platform"
--texroot="$CONTEXTROOT" $@

ends quite quickly, with this output

mtx-update  | available platforms: freebsd freebsd-amd64 linux linux-64 
linux-armhf linuxmusl-64 mswin openbsd6.5 openbsd6.5-amd64 osx-64 solaris-intel 
solaris-sparc win64
resolvers   | tds | no 'texmf-openbsd6.5-6.4' under tree 
'/home//context/'

which is the same output as ./first-setup.sh before the change. (changed
my home name to )

What did I do wrong?

Greetings,

Damien Thiriet 
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] issue with footnote in LMTX

2019-10-08 Thread Pablo Rodriguez
On 10/8/19 4:49 PM, Jan U. Hasecke wrote:
> Am 08.10.19 um 16:44 schrieb Jan U. Hasecke:
>
>>> Could anyone confirm this issue with links in footnotes for LMTX?
>>
>> Yes, no link with LMTX 2019.10.02 22:33
>
> Sorry. I mixed up my versions somehow. Please forget my mail.

The link back to the body text is generated in the foootnote, but it
doesn’t go anywhere when you click on it.

Just in case it wasn’t clear.

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] passing variables/data between context and lua

2019-10-08 Thread Rudolf Bahr

On Tue, Oct 08, 2019 at 08:55:30AM -0400, Aditya Mahajan wrote:
 
> So, everytime \setvariables is call, the value of the `set` key is executed.


Hello Aditya,

this is the key sentence to understand better what "reset" and "set" are good 
for!
I had to read your explanation thrice :-) and run your examples which are 
really good!
Now I have an idea how to use "\setvariables" in a context project.

Thank you very much!

Rudolf
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] issue with footnote in LMTX

2019-10-08 Thread Jan U. Hasecke
Am 08.10.19 um 16:44 schrieb Jan U. Hasecke:

>> Could anyone confirm this issue with links in footnotes for LMTX?
> 
> Yes, no link with LMTX 2019.10.02 22:33

Sorry. I mixed up my versions somehow. Please forget my mail.

juh
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] issue with footnote in LMTX

2019-10-08 Thread Jan U. Hasecke
Am 08.10.19 um 15:11 schrieb Pablo Rodriguez:
> Dear list,
> 
> I have the following sample:
> 
> \setupinteraction[state=start, focus=standard]
> \starttext
> a\footnote{b}
> \stoptext
> 
> Using latest beta from MkXL (2019.10.05 14:56), link form footnote to
> main text body doesn’t work.
> 
> Latest beta from MkIV (2019.10.05 14:45) has no issue and the footnote
> link works perfectly fine.
> 
> Could anyone confirm this issue with links in footnotes for LMTX?

Yes, no link with LMTX 2019.10.02 22:33

juh
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] issue with footnote in LMTX

2019-10-08 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\setupinteraction[state=start, focus=standard]
\starttext
a\footnote{b}
\stoptext

Using latest beta from MkXL (2019.10.05 14:56), link form footnote to
main text body doesn’t work.

Latest beta from MkIV (2019.10.05 14:45) has no issue and the footnote
link works perfectly fine.

Could anyone confirm this issue with links in footnotes for LMTX?

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] issue with JavaScript in Acrobat

2019-10-08 Thread Pablo Rodriguez
On 10/7/19 10:43 PM, Henning Hraban Ramm wrote:
> Hi Pablo,
> I used JS in Acrobat 7 and still have the documentation and some
> sample code – I don’t know if Adobe keeps it online.
> If you like, I can send it to you off list.

Hi Hraban,

the sample code will be useful to learn.

The documentation I have is:

  * “Developing Acrobat® Applications Using JavaScript™”
  * “JavaScript™ for Acrobat® API Reference”

Of course, I’m interested in other documents from Adobe.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] passing variables/data between context and lua

2019-10-08 Thread Aditya Mahajan

On Tue, 8 Oct 2019, Rudolf Bahr wrote:


On Sun, Oct 06, 2019 at 10:44:12PM +0200, Wolfgang Schuster wrote:


While it is true that you're free to choose the name for the keys there are
two keys with a special meaning, these two keys are "reset" and "set". The
value of the "reset" key is used before the values in \setvariables are
stored while "set" is used after the values are stored.


Hello Wolfgang,

thank you very much for your detailed answer and your two examples!

Concerning the two keys with a special meaning, "reset" and "set", remains a 
question
to me. For what are they good? Does "reset" clear a data area, namespace 
perhaps,
before new data are stored there? If they are keys, what is there value or are 
they
commands?


Let's start with a simple example:

\setvariables
[dummy]
[
  set={AAA},
  reset={BBB},
]

\starttext
Hello World!
\setvariables[dummy][key=value]
\stoptext

When the \setvariables[dummy][key=value] is called, it first executes the 
value of `reset` key. So the output of the above is


```
Hello World! BBBAAA
```

Now suppose you want to do some calculations based on the value 
of passed key. Let's take a variation of the original question, and define 
a macro where we can say


\setvariables[exam][points=5]
\setvariables[exam][points=10]

and we can a macro \totalpoints to show the number of points. (There are 
probably better ways to do this than setvariables ...)


Here is one way to define it:

\def\totalpoints{0}
\setvariables
[exam]
[
  points=0, % This is important.
  set={\edef\totalpoints{\the\numexpr(\totalpoints + 
\getvariable{exam}{points})\relax}},
]


\starttext
\setvariables[exam][points=5]
\setvariables[exam][points=10]
The exam has \totalpoints\ points.
\stoptext

So, everytime \setvariables is call, the value of the `set` key is 
executed. If I set the value of the `set` key to code that updates the 
value of `\totalpoints` macro, then I get the desired behavior.


Writing macros as value of a key can be cumbersome to read. So, we can use 
setups:


\def\totalpoints{0}

\startsetups updatepoints
  \edef\totalpoints{\the\numexpr(\totalpoints + 
\getvariable{exam}{points})\relax}
\stopsetups

\setvariables
[exam]
[
  points=0,
  set=\directsetup{updatepoints},
]

\starttext
\setvariables[exam][points=5]
\setvariables[exam][points=10]
The exam has \totalpoints\ points.
\stoptext

That's it.

Aditya
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Printing catchword or kustode

2019-10-08 Thread Henning Hraban Ramm

> Am 2019-10-08 um 11:07 schrieb Hans Hagen :
> 
> On 10/7/2019 9:20 PM, Henning Hraban Ramm wrote:
>> It is already implemented, look for the catchword module.
>> Strangely I can’t find it ATM, but since I listed it in my book it was 
>> there, and we talked about it at the meeting.
> 
> maybe i sent it to you for testing but anwyay it was shown at the meeting 
> indeed (one of the things kept back till the meeting because it's a dangerous 
> bend as well as a dirty trick) .. i'll add it to the beta (had to make it 
> also work with mkiv as it was lmtx)

Ah, sorry. Then I added it at the meeting to my list of modules. I could have 
sworn I saw it before. But I had the same dèjá vu with the metafun xl manual…


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] changing an XML node and reprocess it (or xmlflushing a string)

2019-10-08 Thread Hans Hagen

On 10/8/2019 11:17 AM, mf wrote:

Solved with a dirty hack:

\startbuffer[text]
A paragraph with a fraction made of text with styles:
a fraction made of text/with 
nested styles inside.

\stopbuffer

\startluacode
local gsub = string.gsub
local sfind = string.find
local xmlflush = lxml.flush

local startTextFraction = "$\\frac{\\text{"
local stopTextFraction  = "}}$"

function xml.functions.textfraction( t )
   local dt = t.dt
   inspect( dt )
   local wrapper
   local slashfound = false
   context( startTextFraction )
   local index, child


^^ Not needed, they are local to the for loop


   for index, child in ipairs( dt ) do
     if type( child ) == "string" then
   if not slashfound and sfind( child, "/" ) then
     context( gsub( child, "/", "}}{\\text{" ) )
     slashfound = true
   else
     context( child )
   end
     elseif type( child ) == "table" then
   wrapper = {
     __parent__ = child.__parent__,
     at = {},
     dt = child
   }
   child.__parent__ = wrapper
   xmlflush( wrapper )
     end
   end
   context( stopTextFraction )
end
\stopluacode


or, to get rid of the wrapper:

\startluacode
local gsub, find = string.gsub, string.find
local xmlprint = xml.sprint
local context = context

local startTextFraction = "$\\frac{\\text{"
local stopTextFraction  = "}}$"

function xml.functions.textfraction(t)
context(startTextFraction)
local slashfound = false
local elements   = t.dt
for i=1,#elements do
local child = elements[i]
if type(child) == "table" then
 -- lxml.all(child,".")
xmlprint(child,t)
elseif not slashfound and find(child,"/") then
context((gsub(child,"/","}}{\\text{")))
slashfound = true
else
context(child)
end
end
context(stopTextFraction)
end
\stopluacode

i'll add the example to the "todo" for a "very dirty tricks" chapter 
some day



\startxmlsetups xml:textsetups
   \xmlsetsetup{#1}{*}{+}
   \xmlsetsetup{#1}{p|i|b|red}{xml:*}
   \xmlsetsetup{#1}{{span.fraction}}{xml:fraction}
\stopxmlsetups

\xmlregistersetup{xml:textsetups}

\startxmlsetups xml:p
   \xmlflush{#1}\par
\stopxmlsetups

\startxmlsetups xml:i
   {\it \xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:red
   {\red \xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:b
   {\bf \xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:fraction
   \xmlfunction{#1}{textfraction}
\stopxmlsetups

\starttext
   \xmlprocessbuffer{main}{text}{}
\stoptext


Il 07/10/19 18:26, mf ha scritto:

Hello,
i'm using XML and i find useful specifying a fraction made of text 
this way:


text for numerator/text for denominator

With some lua, i can transform it into

\frac{\text{text for numerator}}{\text{text for denominator}}

which typesets something like this:

  text for numerator

text for denominator

Suppose you want to add some styling to the texts, like this:

text for numerator/text for 
denominator


You should split the span node into two elements and the xmlflush them.
This is my M(not)WE:

\startbuffer[text]
A paragraph with a fraction made of text with styles:
a fraction made of text/with 
styles inside.

\stopbuffer

\startluacode
local sub = string.sub
local sfind = string.find
local xmltext = xml.text
local xmlconvert = xml.convert

local function numeratorDenominator( text )
   local before, after = sfind( text, "[^<]/[^>]" )
   local num, den
   if before and after then
 num = sub( text, 1, before )
 den = sub( text, after )
   end
   return num, den
end


function xml.functions.textfraction( t )
   local text = xmltext( t, '' )
   local num, den = numeratorDenominator( text )
   if num and den then
 local fontstyle = tokens.getters.macro( "fontstyle" )
 local xml_num = xmlconvert( num )
 local xml_den = xmlconvert( den )
--    context( "$\\frac{\\text{\\" ..fontstyle .. " " .. num .. 
"}}{\\text{\\" ..fontstyle .. " " .. den .. "}}$" )

 context( "$\\frac{\\text{\\" ..fontstyle .. " " )
 context( num ) -- context.xmlprocessstring( xml_num )
 context( "}}{\\text{\\" ..fontstyle .. " " )
 context( den ) -- context.xmlprocessstring( xml_den )
 context( "}}$" )
   else
 context.xmlflush( t )
   end
end
\stopluacode

\startxmlsetups xml:textsetups
   \xmlsetsetup{#1}{*}{+}
   \xmlsetsetup{#1}{p|i|red}{xml:*}
   \xmlsetsetup{#1}{{span.fraction}}{xml:fraction}
\stopxmlsetups

\xmlregistersetup{xml:textsetups}

\startxmlsetups xml:p
   \xmlflush{#1}\par
\stopxmlsetups

\startxmlsetups xml:i
   {\it \xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:red
   {\red \xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:fraction
   \xmlfunction{#1}{textfraction}
\stopxmlsetups

\starttext
   \xmlprocessbuffer{main}{text}{}
\stoptext

Massi
___ 

If your question is of interest to others as well, please add an entry 
to the Wik

Re: [NTG-context] changing an XML node and reprocess it (or xmlflushing a string)

2019-10-08 Thread mf

Solved with a dirty hack:

\startbuffer[text]
A paragraph with a fraction made of text with styles:
a fraction made of text/with 
nested styles inside.

\stopbuffer

\startluacode
local gsub = string.gsub
local sfind = string.find
local xmlflush = lxml.flush

local startTextFraction = "$\\frac{\\text{"
local stopTextFraction  = "}}$"

function xml.functions.textfraction( t )
  local dt = t.dt
  inspect( dt )
  local wrapper
  local slashfound = false
  context( startTextFraction )
  local index, child
  for index, child in ipairs( dt ) do
if type( child ) == "string" then
  if not slashfound and sfind( child, "/" ) then
context( gsub( child, "/", "}}{\\text{" ) )
slashfound = true
  else
context( child )
  end
elseif type( child ) == "table" then
  wrapper = {
__parent__ = child.__parent__,
at = {},
dt = child
  }
  child.__parent__ = wrapper
  xmlflush( wrapper )
end
  end
  context( stopTextFraction )
end
\stopluacode

\startxmlsetups xml:textsetups
  \xmlsetsetup{#1}{*}{+}
  \xmlsetsetup{#1}{p|i|b|red}{xml:*}
  \xmlsetsetup{#1}{{span.fraction}}{xml:fraction}
\stopxmlsetups

\xmlregistersetup{xml:textsetups}

\startxmlsetups xml:p
  \xmlflush{#1}\par
\stopxmlsetups

\startxmlsetups xml:i
  {\it \xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:red
  {\red \xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:b
  {\bf \xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:fraction
  \xmlfunction{#1}{textfraction}
\stopxmlsetups

\starttext
  \xmlprocessbuffer{main}{text}{}
\stoptext


Il 07/10/19 18:26, mf ha scritto:

Hello,
i'm using XML and i find useful specifying a fraction made of text this 
way:


text for numerator/text for denominator

With some lua, i can transform it into

\frac{\text{text for numerator}}{\text{text for denominator}}

which typesets something like this:

  text for numerator

text for denominator

Suppose you want to add some styling to the texts, like this:

text for numerator/text for 
denominator


You should split the span node into two elements and the xmlflush them.
This is my M(not)WE:

\startbuffer[text]
A paragraph with a fraction made of text with styles:
a fraction made of text/with 
styles inside.

\stopbuffer

\startluacode
local sub = string.sub
local sfind = string.find
local xmltext = xml.text
local xmlconvert = xml.convert

local function numeratorDenominator( text )
   local before, after = sfind( text, "[^<]/[^>]" )
   local num, den
   if before and after then
     num = sub( text, 1, before )
     den = sub( text, after )
   end
   return num, den
end


function xml.functions.textfraction( t )
   local text = xmltext( t, '' )
   local num, den = numeratorDenominator( text )
   if num and den then
     local fontstyle = tokens.getters.macro( "fontstyle" )
     local xml_num = xmlconvert( num )
     local xml_den = xmlconvert( den )
--    context( "$\\frac{\\text{\\" ..fontstyle .. " " .. num .. 
"}}{\\text{\\" ..fontstyle .. " " .. den .. "}}$" )

     context( "$\\frac{\\text{\\" ..fontstyle .. " " )
     context( num ) -- context.xmlprocessstring( xml_num )
     context( "}}{\\text{\\" ..fontstyle .. " " )
     context( den ) -- context.xmlprocessstring( xml_den )
     context( "}}$" )
   else
     context.xmlflush( t )
   end
end
\stopluacode

\startxmlsetups xml:textsetups
   \xmlsetsetup{#1}{*}{+}
   \xmlsetsetup{#1}{p|i|red}{xml:*}
   \xmlsetsetup{#1}{{span.fraction}}{xml:fraction}
\stopxmlsetups

\xmlregistersetup{xml:textsetups}

\startxmlsetups xml:p
   \xmlflush{#1}\par
\stopxmlsetups

\startxmlsetups xml:i
   {\it \xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:red
   {\red \xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:fraction
   \xmlfunction{#1}{textfraction}
\stopxmlsetups

\starttext
   \xmlprocessbuffer{main}{text}{}
\stoptext

Massi

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Printing catchword or kustode

2019-10-08 Thread Hans Hagen

On 10/7/2019 7:13 PM, Rik Kabel wrote:

On 8/10/2019 10:14, Hans Hagen wrote:

On 8/10/2019 2:25 PM, Jan Ulrich Hasecke wrote:

Hi all,

Visiting a museum in Straßburg I saw an old book from Gutenbergs 
times where the
first word of the next page was printed below the last line of the 
current page.


The word, sometimes only a syllable of the first word from the next 
page, is
called catchword or Kustode. They used it to ensure that they bind 
the pages in

the right order.

I think that it can also be of help if you read a book.

Is this possible with ConTeXt?

not that hard to implement if really needed




Here is a vote for implementing it. I find myself writing catchwords by 
hand on speeches I have to give. An automated system of generating them 
would be most welcome.


I suggest that they should optionally be sensitive to the page spread. 
That is, for two-sided documents there should be an option to print them 
only on recto pages. Perhaps some tuning for length, defaulting to one 
word, as well. Placement is traditionally in the bottom inside of the 
outside margin (directly below the text block, flush right).


let's not go over the top for such a feature (no big deal to make it odd 
or even page only if needed, but first use it)


I do not know if this practice is found in RTL languages, but I do not 
see why it would not be adaptable to them as well.
i have no clue what it means but no one asked for it so we can relax 
about it


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Printing catchword or kustode

2019-10-08 Thread Hans Hagen

On 10/7/2019 9:20 PM, Henning Hraban Ramm wrote:



Am 2019-10-07 um 19:13 schrieb Rik Kabel :

On 8/10/2019 10:14, Hans Hagen wrote:

On 8/10/2019 2:25 PM, Jan Ulrich Hasecke wrote:

Hi all,

Visiting a museum in Straßburg I saw an old book from Gutenbergs times where the
first word of the next page was printed below the last line of the current page.

The word, sometimes only a syllable of the first word from the next page, is
called catchword or Kustode. They used it to ensure that they bind the pages in
the right order.

I think that it can also be of help if you read a book.

Is this possible with ConTeXt?

not that hard to implement if really needed


Here is a vote for implementing it. I find myself writing catchwords by hand on 
speeches I have to give. An automated system of generating them would be most 
welcome.

I suggest that they should optionally be sensitive to the page spread. That is, 
for two-sided documents there should be an option to print them only on recto 
pages. Perhaps some tuning for length, defaulting to one word, as well. 
Placement is traditionally in the bottom inside of the outside margin (directly 
below the text block, flush right).

I do not know if this practice is found in RTL languages, but I do not see why 
it would not be adaptable to them as well.


It is already implemented, look for the catchword module.
Strangely I can’t find it ATM, but since I listed it in my book it was there, 
and we talked about it at the meeting.


maybe i sent it to you for testing but anwyay it was shown at the 
meeting indeed (one of the things kept back till the meeting because 
it's a dangerous bend as well as a dirty trick) .. i'll add it to the 
beta (had to make it also work with mkiv as it was lmtx)

 Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] passing variables/data between context and lua

2019-10-08 Thread Rudolf Bahr
On Sun, Oct 06, 2019 at 10:44:12PM +0200, Wolfgang Schuster wrote:
 
> While it is true that you're free to choose the name for the keys there are
> two keys with a special meaning, these two keys are "reset" and "set". The
> value of the "reset" key is used before the values in \setvariables are
> stored while "set" is used after the values are stored.

Hello Wolfgang,

thank you very much for your detailed answer and your two examples!

Concerning the two keys with a special meaning, "reset" and "set", remains a 
question
to me. For what are they good? Does "reset" clear a data area, namespace 
perhaps,
before new data are stored there? If they are keys, what is there value or are 
they
commands?

Best regards,
Rudolf

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___