Re: [NTG-context] Delivering the value of a variable in MetaFun to ConTeXt

2021-06-23 Thread Jeong Dal
Dear Hans, Your code works fine. > \starttext > > \startMPcode >numeric maxCount; >maxCount := 10; >setglobalmacro("MyMacro",decial maxCount); >setglobalcount("MyCount",maxCount); > \stopMPcode > > > \dorecurse{\MyMacro}{It is \recurselevel. }\par > \dorecurse{\MyCount}{It is \

Re: [NTG-context] Delivering the value of a variable in MetaFun to ConTeXt

2021-06-23 Thread Hans Hagen
On 6/24/2021 5:39 AM, Aditya Mahajan wrote: You need to call the setglobalmacro(...) macro. The code inside \startMPinitializations is only executed when you call any MP environment. But you are using \udCount before \useMPgraphic. A simple solution is to run dummy MP code so that MP initiali

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-23 Thread Aditya Mahajan
On Wed, 23 Jun 2021, Aditya Mahajan wrote: > On Thu, 24 Jun 2021, Jeong Dal wrote: > > > Now, I am trying to do the same thing using \startuseMPgraphic, but I don’t > > the correct result yet. > > Using \startuseMPgraphic, and \dorecurse, the code is simpler. But, it > > seems to me that \start

Re: [NTG-context] Delivering the value of a variable in MetaFun to ConTeXt

2021-06-23 Thread Aditya Mahajan
On Thu, 24 Jun 2021, Jeong Dal wrote: > Dear Hans, > > Your code works fine. > > > \starttext > > > > \startMPcode > >numeric maxCount; > >maxCount := 10; > >setglobalmacro("MyMacro",decial maxCount); > >setglobalcount("MyCount",maxCount); > > \stopMPcode > > > > > > \dorecurs

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-23 Thread Aditya Mahajan
On Thu, 24 Jun 2021, Jeong Dal wrote: > Now, I am trying to do the same thing using \startuseMPgraphic, but I don’t > the correct result yet. > Using \startuseMPgraphic, and \dorecurse, the code is simpler. But, it seems > to me that \startanimation … \stopanimation is not working with > \dorec

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-23 Thread Jeong Dal
Dear Otared, > > Regarding the way Aditya uses \startuseMPgraphic, it is also very > instructive. > Dalyoung, can you also share the animation example for the foldings ? I am > sure we are a few on the list to learn something… > 1. Here is the working sample of animation using \processMPbuff

[NTG-context] Delivering the value of a variable in MetaFun to ConTeXt

2021-06-23 Thread Jeong Dal
Hi, Is there a way to deliver the value of a variable in MetaFun to ConTeXt. For example, I want to do the following: \starttext \startMPcode numeric maxCount; % … some code maxCount := 10; \stopMPcode dorecurse{maxCount} {It is \recurselevel.\par} \stoptext Thank you for reading. Best regar

Re: [NTG-context] LMTX, BIdi, full paragraph, and spurious empty line

2021-06-23 Thread Rik Kabel
On 6/23/2021 18:10, Hans Hagen wrote: On 6/22/2021 4:52 AM, Rik Kabel wrote: [...]ome an alternative way to do that.) I'll send you a possible fix but it needs a bit of testing. It has to do with (probably spurious) spaces which means that the parbuilder then considers the dir node to be a re

Re: [NTG-context] LMTX, BIdi, full paragraph, and spurious empty line

2021-06-23 Thread Hans Hagen
On 6/22/2021 4:52 AM, Rik Kabel wrote: Hello all, Last October Denis Maier complained about a spurious empty line generated with protrusion and bidi active and a full paragraph. (See https://www.mail-archive.com/ntg-context@ntg.nl/msg95916.html

Re: [NTG-context] typescripts and variants

2021-06-23 Thread Hans Hagen
On 6/23/2021 10:32 PM, Henning Hraban Ramm wrote: Am 23.06.2021 um 21:42 schrieb Bruce Horrocks : On 23 Jun 2021, at 07:43, Henning Hraban Ramm wrote: You can combine whatever you like in one typescript, but you’re restricted to six styles (regular, italic, slanted, bold, bold italic, bol

Re: [NTG-context] typescripts and variants

2021-06-23 Thread Henning Hraban Ramm
> Am 23.06.2021 um 21:42 schrieb Bruce Horrocks : > > >> On 23 Jun 2021, at 07:43, Henning Hraban Ramm wrote: >> >> You can combine whatever you like in one typescript, but you’re restricted >> to six styles (regular, italic, slanted, bold, bold italic, bold slanted). >> You can just “abuse”

Re: [NTG-context] Delivering the value of a variable in MetaFun to ConTeXt

2021-06-23 Thread Hans Hagen
On 6/23/2021 10:00 PM, Jeong Dal wrote: Hi, Is there a way to deliver the value of a variable in MetaFun to ConTeXt. For example, I want to do the following: \starttext \startMPcode numeric maxCount; % … some code maxCount := 10; \stopMPcode dorecurse{maxCount} {It is \recurselevel.\par} \st

Re: [NTG-context] typescripts and variants

2021-06-23 Thread Bruce Horrocks
> On 23 Jun 2021, at 07:43, Henning Hraban Ramm wrote: > > You can combine whatever you like in one typescript, but you’re restricted to > six styles (regular, italic, slanted, bold, bold italic, bold slanted). You > can just “abuse” the italic or slanted styles for your other weights. If we'

Re: [NTG-context] Setup output name from within ConTeXt document

2021-06-23 Thread Hans Hagen
On 6/23/2021 4:57 PM, Pablo Rodriguez wrote: On 6/23/21 9:26 AM, Hans Hagen wrote: On 6/22/2021 1:55 PM, Pascal Pascali wrote: Dear ConTeXt community, Is it possible to set the file name of the output from within the document? [...] \startluacode luatex.wrapup( function() os.r

[NTG-context] splitting tables from csv with first row as header

2021-06-23 Thread Jan U. Hasecke
Hi all, I have this sample: \usemodule[database] \setuppapersize [A6] \setupTABLE [split=yes, header=repeat] \defineseparatedlist [test] [separator={;}, % tab before=\bTABLE,after=\eTABLE, first=\bTR,last=\eTR, left=\bTD,right=\eTD] \starttext \processdatabasefile[test]

[NTG-context] rtl fontfallback family issue?

2021-06-23 Thread Alan Bowen
With the latest LMTX standalone (ConTeXt ver: 2021.06.18) the Syriac text is not printed. \setupdirections[bidi=global, method=unicode] \definefontfeature [syriac] [syriac] [language=dflt, script=syrc] \definefallbackfamily[mainface][rm][Estrangelo Edessa] [range={syriac}, features=syr

Re: [NTG-context] typescripts and variants

2021-06-23 Thread Wolfgang Schuster
denis.ma...@unibe.ch schrieb am 23.06.2021 um 11:05: Hi, Am 23.06.2021 um 08:43 schrieb Henning Hraban Ramm : Am 23.06.2021 um 00:17 schrieb denis.ma...@unibe.ch: Hi In my current project I need to use different variants if the Noto Serif font (Regular, Medium, Semi Condensed Bold, Regular

Re: [NTG-context] Setup output name from within ConTeXt document

2021-06-23 Thread Pablo Rodriguez
On 6/23/21 9:26 AM, Hans Hagen wrote: > On 6/22/2021 1:55 PM, Pascal Pascali wrote: >> Dear ConTeXt community, >> >> Is it possible to set the file name of the output from within the document? > [...] > \startluacode > luatex.wrapup( > function() > os.remove("new.pdf") > os.r

Re: [NTG-context] new upload lmtx

2021-06-23 Thread Pablo Rodriguez
On 6/18/21 11:46 PM, Hans Hagen wrote: > Hi, > > End of the week so time to wrap up. > [...] > (2) (Pablo:) There is some progress with facing floats that Thomas will > check out for real usage. So, still experimental. Excellent news, Hans. Many thanks for your work, Hans and Thomas. Pablo -- ht

[NTG-context] Proper ligatures in Malayalam

2021-06-23 Thread Ajith R
Hi, I tried to make a document in Malayalam, an Indian language. However, the ligatures don't form as expected. A minimal example is \mainlanguage[ml] \definefontfamily [malayalam] [ss] [Rachana] [features=malayalam-one] \definefontfeature[default] [mode=node,kern=yes, liga=yes,tlig=yes, ccm

Re: [NTG-context] Adjust Grid to last line textheight

2021-06-23 Thread denis.maier
I've tried adjusting interlinespacing, but it seems to make no difference : == \setupinterlinespace[ height=.72, depth=.28, top=2, %top=0, %top=5, %top=1, bottom=

[NTG-context] WG: Adjust Grid to last line textheight

2021-06-23 Thread denis.maier
Hi, I have to use grid typesetting and the grid has to be aligned to the last line of textheight. I have to replicate a layout made with Indesign where there seems to be a bit of additional spacing before the first line, whereas in ConTeXt that happens to be after the last line of the page (see

Re: [NTG-context] endash emdash

2021-06-23 Thread Jan U. Hasecke
Am 23.06.21 um 07:11 schrieb Jan U. Hasecke: Dear all, I am completely lost with a ridicously small problem. This was a self motivation. ;-) \starttext -- --- – \stoptext ConTeXt creates two endash rules and a very long dash in the middle, as I expected. But in my project I always

[NTG-context] endash emdash

2021-06-23 Thread Jan U. Hasecke
Dear all, I am completely lost with a ridicously small problem. \starttext -- --- – \stoptext ConTeXt creates two endash rules and a very long dash in the middle, as I expected. But in my project I always get the plain source chars. I have no idea where I accidentally misconfigured th

Re: [NTG-context] typescripts and variants

2021-06-23 Thread denis.maier
Hi, > > Am 23.06.2021 um 08:43 schrieb Henning Hraban Ramm : > > > > > >> Am 23.06.2021 um 00:17 schrieb denis.ma...@unibe.ch: > >> > >> Hi > >> In my current project I need to use different variants if the Noto > >> Serif font (Regular, Medium, Semi Condensed Bold, Regular ExtraBold.) Is > my und

Re: [NTG-context] endash emdash

2021-06-23 Thread Hans Hagen
On 6/23/2021 7:21 AM, Jan U. Hasecke wrote: Am 23.06.21 um 07:11 schrieb Jan U. Hasecke: Dear all, I am completely lost with a ridicously small problem. This was a self motivation. ;-) \starttext -- --- – \stoptext ConTeXt creates two endash rules and a very long dash in the middle,

Re: [NTG-context] Setup output name from within ConTeXt document

2021-06-23 Thread Hans Hagen
On 6/22/2021 1:55 PM, Pascal Pascali wrote: Dear ConTeXt community, Is it possible to set the file name of the output from within the document? I can do it on the command line by adding --result="CustomName.pdf", but I'd need to do it according to certain variables in the content of the file it