Re: [NTG-context] updating luametatex

2021-05-19 Thread Hans Hagen

On 5/19/2021 9:56 PM, Alan Bowen wrote:

I seem to be stuck at ver. 209.08 (context ver. 2021.04.29).

I downloaded context-osx-64.zip and made a clean install following the 
instructions for macOS on the wiki.

context—version showed v. 2021.04.29
So I removed texmf cache and ran
mtxrun —generate
context —make
context —version still showed ver. 2021.04.29

when I ran
sh install.sh
again, the result was the same. The version installed was still 2021.04.29



Any suggestion to fix this?

maybe some hickup in th eupload ... will check tomorrow

-
  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
___


[NTG-context] Missing kerns with LMTX beta 2021-05-19 and french language

2021-05-19 Thread Joseph
Hi, With beta  2021-05-19 I notice that some kerns (usually before ‘v’ letter) are no longer present, not sure if that’s intented change behaviour or not.Following MWE reproduces the case. \definefontfeature[default][default][kern=yes]\definefontfamily[mainfont][serif][EBGaramond]\setupbodyfont[mainfont, 12pt]\showfontkerns \language[fr] % If commented, 2 kerns (che -0.180 v -0.120 ance), otherwise 1 kern (chev -0.120 ance)\mainlanguage[fr] % If commented, 2 kerns, otherwise 1 kern \starttext chevance \stoptext  
___
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] updating luametatex

2021-05-19 Thread Alan Bowen
I seem to be stuck at ver. 209.08 (context ver. 2021.04.29).

I downloaded context-osx-64.zip and made a clean install following the
instructions for macOS on the wiki.
context—version showed v. 2021.04.29
So I removed texmf cache and ran
mtxrun —generate
context —make
context —version still showed ver. 2021.04.29

when I ran
sh install.sh
again, the result was the same. The version installed was still 2021.04.29

But this time the log showed an error
mtx-install | running:
/Users/bowen1/Desktop/LuaMetaTeX/tex/texmf-osx-64/bin/mtxrun --generate
lua error : startup file:
...owen1/Desktop/LuaMetaTeX/tex/texmf-osx-64/bin/mtxrun.lua:13845: ')'
expected near 
mtx-install | running:
/Users/bowen1/Desktop/LuaMetaTeX/tex/texmf-osx-64/bin/mtxrun --script cache
--erase
lua error : startup file:
...owen1/Desktop/LuaMetaTeX/tex/texmf-osx-64/bin/mtxrun.lua:13845: ')'
expected near 
mtx-install | running:
/Users/bowen1/Desktop/LuaMetaTeX/tex/texmf-osx-64/bin/mtxrun --generate
lua error : startup file:
...owen1/Desktop/LuaMetaTeX/tex/texmf-osx-64/bin/mtxrun.lua:13845: ')'
expected near 
mtx-install | running:
/Users/bowen1/Desktop/LuaMetaTeX/tex/texmf-osx-64/bin/context --make en
lua error : function call:
...owen1/Desktop/LuaMetaTeX/tex/texmf-osx-64/bin/mtxrun.lua:13845: ')'
expected near 

There is a problem with ver 04.21.29 that I am hoping will be fixed in a
later version. So staying at ver 2021.04.29 is not ideal.

Any suggestion to fix this?

Alan
___
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] TeX capacity exceeded

2021-05-19 Thread Hans Hagen

On 5/19/2021 6:49 PM, Thomas A. Schmitz wrote:


On 19.05.21 18:34, Hans Hagen wrote:


Can you check the latest upload? You should be able to go way higher. 


Yes, with 2021.05.19 18:22, the file compiles again in lmtx! I'm also 
trying your suggestions for improving the Lua code and rethinking my 
tables for analyzing the vocabulary. Thank you for the quick fix! And I 
hope there won't be any problem for other users - I'm aware that memory 


If they have problems it's because of other changes -)

on computers can differ vastly. I sometimes run ConTeXt on my raspberry 
pi 3, which has just 1 G of RAM, whereas my newish iMac at home has 40 
G. So it's difficult to find the sweet spot that will satisfy everybody...


Unless you use many huge fonts, running your document on a rpi 4 with 
4-8 gb should work ok (we have a rpi 4 in mojcas compile farm connected 
to an usb3 ssd). My laptop is from 2013 (decent intel 3840QM cpu + 16 GB 
mem and ssd and so) and is about 3 times slower than the rpi 4 in the 
luametatex manual.


Your file in mkiv does a decent ppm (is that an arm or intel mac?)

mkiv lua stats  > lua properties: engine: lua 5.3, used memory: 601 MB, 
ctx: 579 MB, max: unknown MB, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 22.310 seconds, 1068 processed pages, 1068 
shipped pages, 47.871 pages/second


so I suppose in lmtx it's a bit faster and using less mem. Still less 
mem than the GB's that e.g. firefox consumes after a few hours sitting 
idle.


Concerning the sweetspot: I supose that on a laptop or desktop users are 
okay, but in a vm (or instance) it might matter because there processes 
have to fight over memory and cache (some is gained back by often faster 
disk io because that gets delegated to another process). I try to keep 
that in mind with luametatex/lmtx, which is why I spent quite some time 
on a lower mem footprint. I have no clue what a modern cpu does compared 
to mine (tex is single core).


(btw, the latest version should also be a bit more efficient / faster 
with some huge cjk fonts that for some reasons have so many zero entries 
that the tma file was 3 times larger than needed, but I suppose fonts 
will always be a bit of an issue ... they have always been since tex 
showed up.)


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] TeX capacity exceeded

2021-05-19 Thread Thomas A. Schmitz


On 19.05.21 18:34, Hans Hagen wrote:



Can you check the latest upload? You should be able to go way higher.



Yes, with 2021.05.19 18:22, the file compiles again in lmtx! I'm also 
trying your suggestions for improving the Lua code and rethinking my 
tables for analyzing the vocabulary. Thank you for the quick fix! And I 
hope there won't be any problem for other users - I'm aware that memory 
on computers can differ vastly. I sometimes run ConTeXt on my raspberry 
pi 3, which has just 1 G of RAM, whereas my newish iMac at home has 40 
G. So it's difficult to find the sweet spot that will satisfy everybody...


All best

Thomas
___
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] TeX capacity exceeded

2021-05-19 Thread Hans Hagen

On 5/17/2021 11:43 PM, Thomas A. Schmitz wrote:


Hi all,

I have a rather large (almost 120,000 lines) xml file, processing pulls 
in another large xml file. The project compiles under mkiv; with lmtx, I 
get


tex error   > tex error on line 8 in file : TeX capacity exceeded, 
sorry [reference count=32767]

Can you check the latest upload? You should be able to go way higher.

If you're worried about your lua macros performance you can always run 
with:


  --profile

and look at the luatex-profile.log file ... it gives a rough impression. 
be prepared for a slow run (although the latest greatest lmtx should 
perform some 2.5 times better when profiling).


There's also a new (yet unofficial) feature:

\starttext

\setupfonts
  [serif=dejavuserif*default,
   sans=dejavusans,
   mono=dejavusansmono]

   {AAA\char1234 AAA}
   {\ss BBB\char1234 BBB}\par
   {AA}
   {\ss BB}\par

   \dorecurse{1000}{ \char1234 }

\stoptext

You can set up a list of 'quick and dirty fallback' fonts (you can set a 
sequence for each style). This doesn't replace the normal fallback 
mechanisms but can be handy as catch.


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
___