Re: [NTG-context] Only-black emojis in LMTX
On 3/11/20 11:35 AM, Alejo Barrio Blaya wrote: > I'm trying to get emojis working. The examples that do, are only printing > plain black emojis. Not colors, nor greyscales. > I'm using the latest beta of LMTX. See section 5.2.13 Color in the fonts manual. http://www.pragma-ade.nl/general/manuals/fonts-mkiv.pdf If you want more help, you have to provide a MWE. Cheers, Henri > > Thanks, > Alejo > > > ___ > 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 ___
[NTG-context] Only-black emojis in LMTX
I'm trying to get emojis working. The examples that do, are only printing plain black emojis. Not colors, nor greyscales. I'm using the latest beta of LMTX. Thanks, Alejo ___ 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] Need help processing XML in luacode
In your tex file, try this: \startluacode settings = {} docstruktur = {} doclistfile = "doclist.xml" local striplines = utilities.strings.striplines local xmltext= xml.text cropstring = function(s) -- return striplines(s, "prune and collapse") return striplines(s) end doc = xml.load(doclistfile, settings) for v in xml.collected(doc,"/doclist/psdoc/") do -- print (v) -- print (xml.text(v,"/docnr")) local docnr = cropstring(xml.text(v,"/docnr")) print (docnr) local docname = cropstring(xmltext(v,"/docname")) -- es kann mehrere DOCAN geben! local docan = (cropstring(xmltext(v,"/docan"))) local docverantwortlich = (cropstring(xmltext(v,"/docverantwortlich"))) docstruktur[docnr]={ docname = docname, docan = docan, docverantwortlich = docverantwortlich } -- docstruktur[docnr]["docname"] = docname -- docstruktur[docnr]["docan"] = docan -- docstruktur[docnr]["docverantwortlich"] = docverantwortlich end \stopluacode hoping it helps, 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 ___
[NTG-context] Need help processing XML in luacode
Hi, after one year I’m back at a project processing XML with ConTeXt. Here is what I want to do: I have an XML file that I want to format with ConTeXt. I got this working last year. Now I want to take some information from a second file. My idea is to read the second file, store the data into a table and write auxiliary functions to access the data and insert them into the TeX output. When I process the included files with context --environment=prozess-style-ecm.tex prozess.xml I get [ctxlua]:19: table index is nil 12 13 doc = xml.load(doclistfile, settings) 14 15 for v in xml.collected(doc,"/doclist/psdoc/") do 16 -- print ((xml.filter(v,"//docnr/stripped()"))) 17 docnr = (cropstring(xml.filter(v,"/docnr/text()"))) 18 docname = (cropstring(xml.filter(v,"/docname/text()"))) 19 -- es kann mehrere DOCAN geben! 20 docan = (cropstring(xml.filter(v,"/docan/text()"))) 21 docverantwortlich = (cropstring(xml.filter(v,"/docverantwortlich/text()"))) 22 >> docstruktur[docnr]={} The xml.collected works, but the xml.filter returns nil. What did I miss? mtx-context | ConTeXt Process Management 1.03 mtx-context | mtx-context | main context file: /Volumes/Macintosh HD/usr/local/texlive/context-109/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2020.01.30 14:13 mtx-context | main context file: /Volumes/Macintosh HD/usr/local/texlive/context-109/tex/texmf-context/tex/context/base/mkiv/context.mkxl mtx-context | current version: 2020.01.30 14:13 The same code works when I use it in a Lua file that I call with mtxrun --script panalyse.lua Greetings Axel doclist.xml Description: XML document prozess.xml Description: XML document prozess-style-ecm.tex Description: Binary data ___ 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] SOLVED Re: \bTABLE bug, please help !
> On 10 Mar 2020, at 16:20, Hans Hagen wrote: > > On 3/10/2020 3:07 PM, Taco Hoekwater wrote: >> Hi, >> Never mind, I got it (starting at \loggingall output for a while). This >> patch to my input fixes it: >> \unprotect >> \setupfootertexts[{\tabl_ntb_next_level \getbuffer[mytable] >> \tabl_ntb_prev_level}] >> \protect > > you beat me on this ... (still puzzled because nesting shoudl kind of work) Well, they are not _really_ nested, which is the problem, of course. > I'll add this: > > %D This is for the special cases where for instance a table is in a header or > footer > %D line and we have a split table in progress. (See mail to list from Taco.) > > \unexpanded\def\bTABLEnested{\tabl_ntb_next_level\bTABLE} > \unexpanded\def\eTABLEnested{\eTABLE\tabl_ntb_next_level} That last macro should be \tabl_ntb_prev_level ;) Taco ___ 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] SOLVED Re: \bTABLE bug, please help !
On 3/10/2020 3:07 PM, Taco Hoekwater wrote: Hi, Never mind, I got it (starting at \loggingall output for a while). This patch to my input fixes it: \unprotect \setupfootertexts[{\tabl_ntb_next_level \getbuffer[mytable] \tabl_ntb_prev_level}] \protect you beat me on this ... (still puzzled because nesting shoudl kind of work) I'll add this: %D This is for the special cases where for instance a table is in a header or footer %D line and we have a split table in progress. (See mail to list from Taco.) \unexpanded\def\bTABLEnested{\tabl_ntb_next_level\bTABLE} \unexpanded\def\eTABLEnested{\eTABLE\tabl_ntb_next_level} 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 ___
[NTG-context] SOLVED Re: \bTABLE bug, please help !
Hi, Never mind, I got it (starting at \loggingall output for a while). This patch to my input fixes it: \unprotect \setupfootertexts[{\tabl_ntb_next_level \getbuffer[mytable] \tabl_ntb_prev_level}] \protect Best wishes, Taco > On 10 Mar 2020, at 14:47, Taco Hoekwater wrote: > > Hi, > > Please see the attached example. The \bTABLE in the footer of the page > ‘inherits' the > first line of the split \bTABLE in the running text. I have no idea how to > fix this > or why this even happens. Help! > > I’ll need a way to work around this problem in my current ConTeXt > installation for > this project. That is now nearly 4 years old, but the same bug is still > happens with > a new beta of mkiv. > > I cannot switch to \startxtable because I would need \startembeddedxtable, > and that > has way too many limitations to be useful in this project. > > Best wishes, > Taco > > > > > > > ___ > 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 > ___ Taco Hoekwater Elvenkind BV ___ 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] Install Tikz in LMTX tree
On 3/10/2020 11:32 AM, Henri Menke wrote: There are still people trying to run TikZ on plain TeX with the Knuth engine: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=920368 hm, so you can't actually use etex goodies unless you emulate them \newcount\eTeXversion \eTeXversion = 2000 \newcount\eTeXrevision \eTeXrevision = 0020 Hm, I need something that *all* eTeX engines provide that I can check. And these seem to have met that requirement. I really don't want to write a huge cascade of if-s to test for different engines. I'll add dummies then but be aware that you actually should test for the primitives that you expect because I'm not even sure if luatex bumped the number. As you mention "all" it means that you expect differences because "all" implies differences here. What if someone runs a very old (experimental) etex. (\scantokens, \readline, \detokenize, \savingvdiscards are likely to be untouched .. it depends on what primitives you expect to use) 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 ___
[NTG-context] update lmtx / luametatex 2.05
Hi, I uploaded an update of lmtx. The current version of luametatex is 2.05 which is kind of the first supposedly stable release because it incorperates most of what was on my agenda for the first phase (functionality level 20200229 which was when it happened). Of course I expect there to be bugs but not much that can't be solved fast. This version will be the starting point for Wolfgang and me to explore future possibilities (more deep down in the context source code as well as in the engine). We'll see. Although the performance of lmtx compared to mkiv is hit by more time onsuming backend code, it gets compensated by some optimizations elswehere, a smaller memory footprint, etc. As no one complains about performance it doesn't matter much anyway. Unless you used luajittex there will be no real difference in most cases. We're in tex live code freeze time so I don't want to change much to the lua and tex part of the distribution right now but nevertheless there has been some minor (practical) adaptations in applying fonts that also reflects on mkiv but that should not be noticeable in practice (also because I rejected some adaptations that had a performance impact in mkiv). Mojca and I decided to support yet another platform, this time arm 64 bit for which we use a raspberry pi running ubuntu 64 bit, which brings the platforms supported by the build bot to 15: freebsd freebsd-amd64 openbsd6.5 openbsd6.5-64 openbsd6.6 openbsd6.6-64 linux-armhf linux-aarch64 linuxlinux-64 osx-64 mswinwin64 plus windows-clang-x86_64 and windows-x86_64 because they help to identify issues (and provide useful compiler warnings) but for now we stick to the mingw variants because they run a few percent faster than the (smaller) native windows version. For those interested in tiny machines: the rpi performs roughly one third of what my laptop does which is not bad, although I suppose a more modern intel gen 10 i9 machine will be quite a bit faster. The benchmark is processing the luametatex manual which takes about 12 seconds on the laptop (252 pages, lots of tables, 250+ mp images, 20+ fonts files). A 64 rpi is a little faster than the 32 bit variant. Because tex is a single thread/core process overclocking the little thingie has a positive effect too. Anyway, it makes us confident that when the source gets into the distribution, which depends on the upcoming repository setup and should not interfere with the tl code freeze, users can compile themselves, something that can contribute to a more comfortable feeling of independence of complex and large compilation infrastructures. Hopefully I didn't mess up too much, 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 ___
[NTG-context] \bTABLE bug, please help !
Hi, Please see the attached example. The \bTABLE in the footer of the page ‘inherits' the first line of the split \bTABLE in the running text. I have no idea how to fix this or why this even happens. Help! I’ll need a way to work around this problem in my current ConTeXt installation for this project. That is now nearly 4 years old, but the same bug is still happens with a new beta of mkiv. I cannot switch to \startxtable because I would need \startembeddedxtable, and that has way too many limitations to be useful in this project. Best wishes, Taco test.pdf Description: Adobe PDF document test.tex Description: Binary data ___ 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] Install Tikz in LMTX tree
On 10/03/20, 10:01, Hans Hagen wrote: > On 3/9/2020 10:59 PM, Jorge Manuel wrote: > > > \pgfutil@packageerror #1#2#3->\errhelp {#3}\errmessage {Package #1 > > Error: #2} > > l.11 \pgfutil@packageerror{PGF}{PGF requires etex in extended mode}{} > > % > > > > > > > > > > This error message was generated by an \errmessage command, so I can't > > give any > > explicit help. Pretend that you're Hercule Poirot: Examine all clues, > > and deduce > > the truth by order and method. > > > > > > Anybody has a clue how to fix this? > i'm surprised that there is (still) a check fot that because all tex's > default to etex .. you can try to put this at the top of yuor file There are still people trying to run TikZ on plain TeX with the Knuth engine: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=920368 > > \newcount\eTeXversion \eTeXversion = 2000 > \newcount\eTeXrevision \eTeXrevision = 0020 Hm, I need something that *all* eTeX engines provide that I can check. And these seem to have met that requirement. I really don't want to write a huge cascade of if-s to test for different engines. > afaik there has never been a formal etex version 1 (in use) and never a > fundamental revision ... in lmtx we no longer have these versions (pdftex, > etex, omega, aleph, etc) as they serve no purpose > > 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 > ___ ___ 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] Install Tikz in LMTX tree
On 3/9/2020 10:59 PM, Jorge Manuel wrote: \pgfutil@packageerror #1#2#3->\errhelp {#3}\errmessage {Package #1 Error: #2} l.11 \pgfutil@packageerror{PGF}{PGF requires etex in extended mode}{} % This error message was generated by an \errmessage command, so I can't give any explicit help. Pretend that you're Hercule Poirot: Examine all clues, and deduce the truth by order and method. Anybody has a clue how to fix this? i'm surprised that there is (still) a check fot that because all tex's default to etex .. you can try to put this at the top of yuor file \newcount\eTeXversion \eTeXversion = 2000 \newcount\eTeXrevision \eTeXrevision = 0020 afaik there has never been a formal etex version 1 (in use) and never a fundamental revision ... in lmtx we no longer have these versions (pdftex, etex, omega, aleph, etc) as they serve no purpose 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 ___