Re: [NTG-context] Font Problem
It appears that context is not yet installed, you must run the installation script from the application root: sh install.sh Le mer. 10 nov. 2021 à 22:16, skyhorse--- via ntg-context < ntg-context@ntg.nl> a écrit : > > > I'm using the linux version which is about a week to two weeks old. > I've installed in in: > /opt/context-lmtx > > Which now contains the directories: > $ ls /opt/context-lmtx > --> bin context-linux-64.zip installation.pdf install.sh tex > > Does this help in getting closer to solving the font problem for ubuntu > that I'm using with the stand alone? > > > Wolfgang Schuster wrote: > > > skyhorse--- via ntg-context schrieb am 07.11.2021 um 22:06: > > > I am a beginner and not well versed on font processing needs yet. > > > > > > I tried the following simple example, but get an error. > > > I am using the standalone context: "txrun | ConTeXt TDS > Runner Tool 1.32" > > > > Which one, there is one available from the ConTeXt wiki [1] and > > another one from the Pragma website [2]. > > > > [1] https://wiki.contextgarden.net/Installation > > [2] https://www.pragma-ade.nl/install.htm > > > > It helps also to tell us which system you're using (Windows, Linux etc.). > > > > Wolfgang > > > > ___ > 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 > > ___ > ___ 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] Font Problem
> On 10 Nov 2021, at 21:11, skyhorse--- via ntg-context > wrote: > > > > I'm using the linux version which is about a week to two weeks old. > I've installed in in: > /opt/context-lmtx > > Which now contains the directories: >$ ls /opt/context-lmtx > --> bin context-linux-64.zip installation.pdf install.sh tex > > Does this help in getting closer to solving the font problem for ubuntu that > I'm using with the stand alone? That looks right for the root directory but there's a lot more than that for a working install, of course. In your first email you said you used the command "txrun": I've no idea what that is because I've never needed it. I just use the 'context' command so all you need do to check the install is working is (from your home directory) to run the command $ context --version If that gives sensible output (about 6 lines) then do $ context my_example.tex where "my_example.tex" is the name of the file containing your maths expression example as plain text. Hopefully you will get a successful run through resulting in a 'my_example.pdf' file containing a typeset version of the expression. If after that it's still not working then report back to this mailing list with the error details. Regards, — Bruce Horrocks Hampshire, UK ___ 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] Font Problem
I'm using the linux version which is about a week to two weeks old. I've installed in in: /opt/context-lmtx Which now contains the directories: $ ls /opt/context-lmtx --> bin context-linux-64.zip installation.pdf install.sh tex Does this help in getting closer to solving the font problem for ubuntu that I'm using with the stand alone? Wolfgang Schuster wrote: > skyhorse--- via ntg-context schrieb am 07.11.2021 um 22:06: > > I am a beginner and not well versed on font processing needs yet. > > > > I tried the following simple example, but get an error. > > I am using the standalone context: "txrun | ConTeXt TDS Runner > > Tool 1.32" > > Which one, there is one available from the ConTeXt wiki [1] and > another one from the Pragma website [2]. > > [1] https://wiki.contextgarden.net/Installation > [2] https://www.pragma-ade.nl/install.htm > > It helps also to tell us which system you're using (Windows, Linux etc.). > > Wolfgang > ___ 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] LMTX error processing Adobe Arabic Naskh font
For III: See attached! On Wed, 10 Nov 2021 09:00:26 -0700, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear Hans and gang, Consider the following MWE: == \definefont[ARABICFONT][file:Adobe_Naskh.ttf*arabic at 28pt] % \definefont[ARABICFONT][file:Amiri-Regular_0.ttf*arabic at 28pt] % \definefont[ARABICFONT][file:Scheherazade-Regular.ttf*arabic at 28pt] % \definefont[ARABICFONT][file:UthmanTN1_Ver10.otf*arabic at 28pt] % \definefont[ARABICFONT][file:almfixed.otf*arabic at 28pt] \disabledirectives[filters.utf.reorder] \noheaderandfooterlines \setupwhitespace[big] % \setupinterlinespace[line=4.2ex] \starttext % \startTEXpage[offset=1ex] \setupdirections[bidi=global,method=one] \righttoleft \ARABICFONT خَ % a خَل % \stopTEXpage \stoptext == Three bugs: I. If we use start|stoptex and comment start|stopTeXpage, then both lines 19 and 21 give an error: === tex error > tex error on line 20 in file ./test.tex: lua error: callback error: [string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2058: attempt to index a number value (local 'chainstep') stack traceback: [string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2058: in upvalue 'chainrun' [string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2941: in function <[string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2514> (...tail calls...) [string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2065: in upvalue 'chainrun' [string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2941: in local 'handler' [string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:3999: in field '?' ...eXt/tex/texmf-context/tex/context/base/mkxl/node-fnt.lmt:459: in upvalue 'nodes_handlers_characters' [string "local tonut = nodes.tonut..."]:23: in function <[string "local tonut = nodes.tonut..."]:12> (...tail calls...) 10 \setupwhitespace[big] 11 % \setupinterlinespace[line=4.2ex] 12 13 \starttext 14 % \startTEXpage[offset=1ex] 15 \setupdirections[bidi=global,method=one] 16 \righttoleft 17 \ARABICFONT 18 19 خَ 20 >> 21 خَل 22 23 % \stopTEXpage 24 \stoptext === Comment line 19 and yu will get virtually the same error. II. Using start|stopTeXpage, only line 21 gives the error: === tex error > tex error on line 22 in file ./test.tex: lua error: callback error: [string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2058: attempt to index a number value (local 'chainstep') stack traceback: [string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2058: in upvalue 'chainrun' [string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2941: in function <[string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2514> (...tail calls...) [string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2065: in upvalue 'chainrun' [string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2941: in local 'handler' [string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:3999: in field '?' ...eXt/tex/texmf-context/tex/context/base/mkxl/node-fnt.lmt:459: in upvalue 'nodes_handlers_characters' [string "local tonut = nodes.tonut..."]:23: in function <[string "local tonut = nodes.tonut..."]:12> (...tail calls...) 12 13 % \starttext 14 \startTEXpage[offset=1ex] 15 \setupdirections[bidi=global,method=one] 16 \righttoleft 17 \ARABICFONT 18 19 خَ % a 20 21 خَل 22 >> 23 \stopTEXpage 24 % \stoptext === III Let us switch to almfixed: If you comment line 21 and use only line 19, then there is no tex error, but the result is rendered incorrectly - see test-broken.pdf. For the correct result, see test-correct.pdf (add a space and any letter - uncomment the end of line 19). Adobe Naskh is not publicly available. The four commented fonts are publicly available and generate no tex errors. Best wishes Idris -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80512 test-broken.pdf Description: Adobe PDF document test-correct.pdf Description: Adobe PDF document ___ 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] LMTX error processing Adobe Arabic Naskh font
Dear Hans and gang, Consider the following MWE: == \definefont[ARABICFONT][file:Adobe_Naskh.ttf*arabic at 28pt] % \definefont[ARABICFONT][file:Amiri-Regular_0.ttf*arabic at 28pt] % \definefont[ARABICFONT][file:Scheherazade-Regular.ttf*arabic at 28pt] % \definefont[ARABICFONT][file:UthmanTN1_Ver10.otf*arabic at 28pt] % \definefont[ARABICFONT][file:almfixed.otf*arabic at 28pt] \disabledirectives[filters.utf.reorder] \noheaderandfooterlines \setupwhitespace[big] % \setupinterlinespace[line=4.2ex] \starttext % \startTEXpage[offset=1ex] \setupdirections[bidi=global,method=one] \righttoleft \ARABICFONT خَ % a خَل % \stopTEXpage \stoptext == Three bugs: I. If we use start|stoptex and comment start|stopTeXpage, then both lines 19 and 21 give an error: === tex error > tex error on line 20 in file ./test.tex: lua error: callback error: [string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2058: attempt to index a number value (local 'chainstep') stack traceback: [string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2058: in upvalue 'chainrun' [string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2941: in function <[string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2514> (...tail calls...) [string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2065: in upvalue 'chainrun' [string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2941: in local 'handler' [string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:3999: in field '?' ...eXt/tex/texmf-context/tex/context/base/mkxl/node-fnt.lmt:459: in upvalue 'nodes_handlers_characters' [string "local tonut = nodes.tonut..."]:23: in function <[string "local tonut = nodes.tonut..."]:12> (...tail calls...) 10 \setupwhitespace[big] 11 % \setupinterlinespace[line=4.2ex] 12 13 \starttext 14 % \startTEXpage[offset=1ex] 15 \setupdirections[bidi=global,method=one] 16 \righttoleft 17 \ARABICFONT 18 19 خَ 20 >> 21 خَل 22 23 % \stopTEXpage 24 \stoptext === Comment line 19 and yu will get virtually the same error. II. Using start|stopTeXpage, only line 21 gives the error: === tex error > tex error on line 22 in file ./test.tex: lua error: callback error: [string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2058: attempt to index a number value (local 'chainstep') stack traceback: [string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2058: in upvalue 'chainrun' [string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2941: in function <[string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2514> (...tail calls...) [string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2065: in upvalue 'chainrun' [string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2941: in local 'handler' [string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:3999: in field '?' ...eXt/tex/texmf-context/tex/context/base/mkxl/node-fnt.lmt:459: in upvalue 'nodes_handlers_characters' [string "local tonut = nodes.tonut..."]:23: in function <[string "local tonut = nodes.tonut..."]:12> (...tail calls...) 12 13 % \starttext 14 \startTEXpage[offset=1ex] 15 \setupdirections[bidi=global,method=one] 16 \righttoleft 17 \ARABICFONT 18 19 خَ % a 20 21 خَل 22 >> 23 \stopTEXpage 24 % \stoptext === III Let us switch to almfixed: If you comment line 21 and use only line 19, then there is no tex error, but the result is rendered incorrectly - see test-broken.pdf. For the correct result, see test-correct.pdf (add a space and any letter - uncomment the end of line 19). Adobe Naskh is not publicly available. The four commented fonts are publicly available and generate no tex errors. Best wishes Idris -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80512 ___ 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] repeat layer recto pages
On 11/9/21 11:12 PM, jbf via ntg-context wrote: > Muchas gracias Pablo, that was most helpful, and of course it works. > > The particular part that I was missing (there was already > alternative=doublesided in the preamble) of course was the > \startsectionblockenvironment[bodypart], so thanks for highlighting that. > > I was also a bit confused about the difference between state=repeat and > repeat=yes, and I can see that both do work in the snippet you gave me, > so perhaps there is no difference between these? Hi Julian, I’m glad to read that it worked for you. I didn’t realize that there was a "repeat" option in \definelayer. I use "state", since it contains more values to be chosen from. I guess "state=repeat" and "repeat=yes" get the same result. Pablo ___ 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] Concerning \installparameterhashhandler and family
On 11/9/2021 8:01 PM, Jairo A. del Rio via ntg-context wrote: Hi. Reading at mult-aux.mkxl, I've seen command handlers define, among others, \installparameterhashhandler, However, in files such as those related with symbol management, only \installparameterhandler and \installsetuphandler are. When writing basic modules, sometimes only the "raw" macros above are actually needed. So, what are "parameterset", "hashhander", "rootparameterhandler", etc. for? Where would they ease module writing? Thank you a lot and sorry for the long question. The ones you mention are the lowest level ones and mechanisms that use them are oned that don't really have much to manage (like symbols and languages and fonts and so, these are core mechanisms on their own and need additional interfaces. There's also the matter of performance: anything key/value driven can have a performance hit so the more one wraps the worse it can get. (The mkii and mkiv/lmtx methods differe fundamentally, where in principle the mkii approach is faster but in practice mkiv/lmtx works out better. A typical case where usage in the end determines performance more than the implementation.) For modules: don't go too low level. Not all helpers in modules like mult-aux are meant for usage outside well known situations. Just like some low level helpers in syst-aux stay around for compatibility. In fact, one of the ideas behind luametatex/lmtx is to get rid of "complex" middle layers where the language itself can do it, so: \protected\def\foo[#1]{\dosingleempty\dofoo} \def\dofoo[#1]{...} in mkii/mkiv can now be: \tolerant\protected\def\foo[#1]{...} (1) less code (2) somewhat faster (3) looks nicer (for me much is about looks) but I guess that you already know that, 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 ___