Re: [NTG-context] final thoughts on experiments with lua

2019-01-09 Thread Henning Hraban Ramm
Am 2019-01-09 um 20:57 schrieb Thomas A. Schmitz : > I've finished testing my lua script, and it does exactly what I need. I think > I'll write a small article about it for one of the next context group > proceedings, Hi Thomas, since I’m just starting to work on the current CG journal (sorry,

[NTG-context] Lower limit of integrals shifted

2019-01-09 Thread Mikael P. Sundqvist
Hi, the output of \setupmathematics[ integral=nolimits, ] \starttext \startTEXpage[offset=2bp] $\displaystyle\int_0^1x^2\,dx=\frac{1}{3}$ \stopTEXpage \stoptext is attached. Clearly, the lower limit in the integral is not correctly placed. With hope of a quick fix, Mikael

Re: [NTG-context] final thoughts on experiments with lua

2019-01-09 Thread Hans Hagen
On 1/9/2019 9:38 PM, Alan Braslau wrote: On Wed, 9 Jan 2019 20:57:21 +0100 "Thomas A. Schmitz" wrote: 3. Lua's handling of tables is very efficient and fast. For analyzing my Greek texts, I have to use huge tables for morphological parsing, with more than 900,000 entries. Looking up words in

Re: [NTG-context] final thoughts on experiments with lua

2019-01-09 Thread Hans Hagen
On 1/9/2019 8:57 PM, Thomas A. Schmitz wrote: I've finished testing my lua script, and it does exactly what I need. I think I'll write a small article about it for one of the next context group proceedings, but wanted to just give a very brief summary that might be of interest to some: Pure

[NTG-context] Footnotes in float combinations missing in output

2019-01-09 Thread Lars
Hi there, hi Hans, I just want to let you know that footnotes insterted in float-combinations don't get rendered properly, i. e. only the last footnote is placed in the output. MWE: \starttext   \startplacefigure[title={OuterCap\footnote{Outer footnote}}]     \startfloatcombination[nx=3]

Re: [NTG-context] final thoughts on experiments with lua

2019-01-09 Thread Alan Braslau
On Wed, 9 Jan 2019 20:57:21 +0100 "Thomas A. Schmitz" wrote: > 3. Lua's handling of tables is very efficient and fast. For analyzing my > Greek texts, I have to use huge tables for morphological parsing, with > more than 900,000 entries. Looking up words in these tables is around 3x > faster

Re: [NTG-context] final thoughts on experiments with lua

2019-01-09 Thread luigi scarso
On Wed, Jan 9, 2019 at 8:57 PM Thomas A. Schmitz wrote: > > One final thought: one limitation that I still find cumbersome to work > around is the fact that associative arrays ("pairs" in Lua speak) do not > have an order. When I analyze my texts, I want book numbers, chapters, > paragraphs

[NTG-context] final thoughts on experiments with lua

2019-01-09 Thread Thomas A. Schmitz
I've finished testing my lua script, and it does exactly what I need. I think I'll write a small article about it for one of the next context group proceedings, but wanted to just give a very brief summary that might be of interest to some: Pure Lua is wonderful, but as the language is

Re: [NTG-context] further experiments with lua

2019-01-09 Thread Thomas A. Schmitz
On 1/9/19 9:47 AM, Hans Hagen wrote: mtxrun has al the basic modules in it but not the character ones (thinking of it, i can add an autoload for that, maybe i should do that) so you need: require "char-ini" Hans, Luigi, thanks a lot, that solves it! Maybe autoload or at least a small hint

Re: [NTG-context] further experiments with lua

2019-01-09 Thread luigi scarso
On Wed, Jan 9, 2019 at 9:47 AM Hans Hagen wrote: > > so you need: > > require "char-ini" > > local s = "Ä" > > also if not characters then require("char-ini") end local s = "Ä" print(characters.uccode(s)) -- luigi

[NTG-context] nice overview of tex

2019-01-09 Thread Floris van Manen
> There are two extensive historic articles on tex here: > > http://walden-family.com/ieee/texhistory.html > — … LuaTEX is perhaps the most recent fundamentally new development in the TEX world. YES ! ;-) .F signature.asc Description: Message signed with OpenPGP using GPGMail

[NTG-context] nice overview of tex

2019-01-09 Thread Hans Hagen
Hi, There are two extensive historic articles on tex here: http://walden-family.com/ieee/texhistory.html -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The

Re: [NTG-context] further experiments with lua

2019-01-09 Thread Hans Hagen
On 1/9/2019 8:43 AM, Thomas A. Schmitz wrote: Hi Hans, I'm doing some further experiments with the utf and lpeg libraries. This code fails, and I don't understand why: local s = "Ä" print(characters.uccode(s)) mtxrun --script test.lua ./test.lua:3: attempt to index global 'characters' (a