[NTG-context] attempt to index nil value with bidi math in hbox
Hi Hans, This test file: \setupdirections[bidi=global,method=one] \starttext \hbox{$\varepsilon$-TeX} \stoptext gives the following error: callback error: ...ext/tex/texmf-context/tex/context/base/mkxl/typo-duc.lmt:618: attempt to index a nil value (local 'before') stack traceback: ...ext/tex/texmf-context/tex/context/base/mkxl/typo-duc.lmt:618: in upvalue 'resolve_weak' ...ext/tex/texmf-context/tex/context/base/mkxl/typo-duc.lmt:781: in upvalue 'resolve_levels' ...ext/tex/texmf-context/tex/context/base/mkxl/typo-duc.lmt:1053: in local 'handler' ...ext/tex/texmf-context/tex/context/base/mkxl/typo-dir.lmt:182: in upvalue 'typesetters_directions_handler' [string "local tonut = nodes.tonut..."]:20: in function <[string "local tonut = nodes.tonut..."]:13> (...tail calls...) Running either this: \starttext \hbox{$\varepsilon$-TeX} \stoptext or this: \setupdirections[bidi=global,method=one] \starttext \hbox{$\varepsilon$TeX} \stoptext works as expected, without any errors. Thanks, -- Max ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Chinese labels in lang-txt.lua
Hi Hans, There are some inaccurate labels for Chinese in lang-txt.lua. Could you please apply the following patches to it? - --- lang-txt.lua 2023-04-03 11:10:00.267720005 +0800 +++ new-lang-txt.lua 2023-04-03 11:03:24.645426080 +0800 @@ -1192,7 +1192,7 @@ ["ar"]="ملحق ", ["be"]="Апендыцыт", ["ca"]="Apèndix ", -["cn"]="附录", +["cn"]="附录 ", ["cs"]="Příloha ", ["da"]="Bilag ", ["de"]="Anhang ", @@ -1473,7 +1473,7 @@ ["be"]="Глава ", ["bg"]="Eпизод ", ["ca"]="Capítol ", -["cn"]={ "第", "章" }, +["cn"]={ "第 ", " 章" }, ["cs"]="Kapitola ", ["da"]="", ["de"]="Kapitel ", @@ -1774,7 +1774,7 @@ ["be"]="Малюнак", ["bg"]="Фигура", ["ca"]="Figura ", -["cn"]="图", +["cn"]="图 ", ["cs"]="Obrázek ", ["da"]="Figur ", ["de"]="Abbildung ", @@ -1925,7 +1925,7 @@ ["be"]="Графіка ", ["bg"]="Графичен ", ["ca"]="Gràfica ", -["cn"]="插图", +["cn"]="插图 ", ["cs"]="Graf ", ["da"]="Grafik ", ["de"]="Grafik ", @@ -2058,7 +2058,7 @@ ["be"]="Інтэрмецца ", ["bg"]="Интермецо ", ["ca"]="Intermedi ", -["cn"]="퉣", +["cn"]="间奏 ", ["cs"]="Intermezzo ", ["da"]="Intermezzo ", ["de"]="Intermezzo ", @@ -2395,7 +2395,7 @@ ["be"]="радок ", ["bg"]="ред ", ["ca"]="línia ", -["cn"]="行", +["cn"]="行 ", ["cs"]="řádek ", ["da"]="linie ", ["de"]="Zeile ", @@ -2441,7 +2441,7 @@ ["be"]="радкi ", ["bg"]="редове ", ["ca"]="línies ", -["cn"]="行", +["cn"]="行 ", ["cs"]="řádky ", ["da"]="linier ", ["de"]="Zeilen ", @@ -3002,7 +3002,7 @@ ["be"]="Частка ", ["bg"]="Частка ", ["ca"]="Part ", -["cn"]={ "第", "部分" }, +["cn"]={ "第 ", " 部分" }, ["cs"]="Část ", ["da"]="Del ", ["de"]="Teil ", @@ -3130,7 +3130,7 @@ ["ar"]="فصل ", ["bg"]="Cекция ", ["ca"]="Secció ", -["cn"]={ "第", "节" }, +["cn"]={ "第 ", " 节" }, ["cs"]="Sekce ", ["da"]="", ["de"]="Abschnitt ", @@ -3513,7 +3513,7 @@ ["be"]="Табліца ", ["bg"]="Таблица ", ["ca"]="Taula ", -["cn"]="表", +["cn"]="表 ", ["cs"]="Tabulka ", ["da"]="Tabel ", ["de"]="Tabelle ", @@ -3863,7 +3863,7 @@ ["ar"]="الأشكال", ["be"]="Спіс ілюстрацый", ["ca"]="Figures", -["cn"]="图形", +["cn"]="图", ["cs"]="Seznam obrázků", ["da"]="Figurer", ["de"]="Abbildungen", @@ -4046,7 +4046,7 @@ ["be"]="Лагатыпы", ["bg"]="Логотипи", ["ca"]="Logotips", -["cn"]="徽贬", +["cn"]="徽标", ["cs"]="Loga", ["da"]="Logoer", ["de"]="Logos", --- -- Best regards, Li Yanrui ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] tikz error upgrading to texlive version (artix)
On Thu, Mar 30, 2023 at 4:01 PM Xavier B. via ntg-context < ntg-context@ntg.nl> wrote: > Hi, > > I use artix linux (a fork of arch with systemd alternative init systems). > I get the same error for TL2023 in Windows, with additional output: Please don't say '\def cs{...}', say '\def\cs{...}'. I've inserted an inaccessible control sequence so that your definition will be completed without mixing me up too badly. mtx-context | fatal error: return code: 1 > During the texlive package, I get this error: > > return { > > > ["filename"]="/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex", > ["lastcontext"]="\n \n \\inaccessible \n > \n \"\n\\pgfmath@catcodes ->\\catcode `\\==12 \\catcode `\\,=12 \\catcode > `\\|=12 \\catcode `\\&=12 \\let \"\n >\\pgfmath@char@quote \n\\pgfmathparse > ->\\begingroup \\pgfmath@catcodes \n > \\pgfmath@quickparsefalse \\ifpgfmathfloat \\let \\pgfmath@parse@next > =\\pgfmathfloatparsenumber \\else \\let \\pgfmath@parse@next > =\\pgfmathparse@ \\fi \\pgfmath@parse@next \n \\pgfmathparse > \n {1cm}\\ifpgfmathmathunitsdeclared \\pgf@x > \\pgfmathresult mu\\relax \\else \\pgf@x \\pgfmathresult pt\\relax \\fi > \n\\pgfmath@next #1#2->#2\n \n...\nl.926 > \\pgfsetxvec{\\pgfpoint{1cm}{0cm}}\n ", > ["lastluaerror"]="?", > ["lasttexerror"]="! Missing control sequence inserted", > ["linenumber"]=926, > ["offset"]=10, > } > > I simply run context to this file: > > \usemodule[tikz] > > \starttext > {\bf a} \tikz (0,0) -- (1,0); > \stoptext > > pgfcorepoints.code.tex hasn't changed from TeXLive 2022. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] tikz error upgrading to texlive version (artix)
Hi Xavier, On Sun, 2023-04-02 at 11:00 +, Xavier B. wrote: > Max, when I use context minimals, I get: > > modules > 'pgfrcs' is not found > modules > 'pgfmat' is not found > modules > 'tikz' is loaded > open source > level 3, order 4, name > '/home/xan/bin/context-minimal/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl' > runtime error : input file 'pgfutil-common.tex' is not found, quitting > mtx-context | fatal error: return code: 1 > make: *** [Makefile:10: ng-exercicis.conTeXt.pdf] Error 1 > [xan@coronari apunts-espa]$ > > > but when I run texlive, no errors shown: > > $ pacman -Qs texlive > local/texlive-bin 2023.66539-1 > TeX Live binaries > local/texlive-core 2023.66587-1 (texlive-most) > TeX Live core distribution > local/texlive-pictures 2023.66549-1 (texlive-most) > TeX Live - Packages for drawings graphics > local/texlive-science 2023.66461-1 (texlive-most) > TeX Live - Typesetting for mathematics, natural and computer sciences > > > Any hints? The ConTeXt distribution doesn't contain any packages/modules by default, so you'll need to install TikZ manually. I usually use the script listed here: https://wiki.contextgarden.net/Modules#ConTeXt_LMTX But you could also install manually using the .zip file here: https://mirrors.ctan.org/install/graphics/pgf/base/pgf.tds.zip -- Max ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] update / punctuation / math
On 4/2/23 14:21, luigi scarso via ntg-context wrote: > On Sun, 2 Apr 2023 at 13:57, Pablo Rodriguez via ntg-context wrote: > > Well, evince displays it wrong (this is an already known issue with fake > bold fonts in evince/poppler, reported years ago > https://gitlab.freedesktop.org/poppler/poppler/-/issues/645). > > hm, 4years ago, quite old... and this is not a fake bold, this is an > instance of a variable font. > But yes, it seems that evince still has the same problem. Sorry, Luigi, I meant http://mailman.ntg.nl/pipermail/ntg-context/attachments/20230401/1f8c6cc9/attachment-0001.pdf. According to type-imp-concrete.mkiv, text has the feature boldened-10 applied to it. Even with a variable font (which might not be the case in the link above), extending the font fakes the bold, such as in: \definefontfamily [mainface] [rm] [Source Sans 3 VF] [features={default, boldened-10}] \setupbodyfont[mainface] \starttext \input zapf \stoptext Evince displays it poorly and this is what happens in the link above. Pablo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] update / punctuation / math
On Sun, 2 Apr 2023 at 13:57, Pablo Rodriguez via ntg-context < ntg-context@ntg.nl> wrote: > On 4/2/23 11:19, luigi scarso via ntg-context wrote: > > On Sun, 2 Apr 2023 at 11:06, Mikael Sundqvist via ntg-context > > mailto:ntg-context@ntg.nl>> wrote: > > > > If you talk about the math font, I do not see what you mean. Daniel > > has worked a lot on his fonts, and they now work well. > > > > > > indeed the body font is not concrete opentype math but it looks very > > similar at first sight > > Hi Luigi, > > according to type-imp-concrete.mkiv, Concrete-Math.otf seems to be only > used for the math font. > > > here evince & mupdf are quite ok (evince somewhat bolder than mupdf), > > Well, evince displays it wrong (this is an already known issue with fake > bold fonts in evince/poppler, reported years ago > [https://gitlab.freedesktop.org/poppler/poppler/-/issues/645]). > > hm, 4years ago, quite old... and this is not a fake bold, this is an instance of a variable font. But yes, it seems that evince still has the same problem. -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] update / punctuation / math
On 4/2/23 11:19, luigi scarso via ntg-context wrote: > On Sun, 2 Apr 2023 at 11:06, Mikael Sundqvist via ntg-context > mailto:ntg-context@ntg.nl>> wrote: > > If you talk about the math font, I do not see what you mean. Daniel > has worked a lot on his fonts, and they now work well. > > > indeed the body font is not concrete opentype math but it looks very > similar at first sight Hi Luigi, according to type-imp-concrete.mkiv, Concrete-Math.otf seems to be only used for the math font. > here evince & mupdf are quite ok (evince somewhat bolder than mupdf), Well, evince displays it wrong (this is an already known issue with fake bold fonts in evince/poppler, reported years ago [https://gitlab.freedesktop.org/poppler/poppler/-/issues/645]). Just in case it might help, Pablo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] tikz error upgrading to texlive version (artix)
Max, when I use context minimals, I get: modules > 'pgfrcs' is not found modules > 'pgfmat' is not found modules > 'tikz' is loaded open source > level 3, order 4, name '/home/xan/bin/context-minimal/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl' runtime error : input file 'pgfutil-common.tex' is not found, quitting mtx-context | fatal error: return code: 1 make: *** [Makefile:10: ng-exercicis.conTeXt.pdf] Error 1 [xan@coronari apunts-espa]$ but when I run texlive, no errors shown: $ pacman -Qs texlive local/texlive-bin 2023.66539-1 TeX Live binaries local/texlive-core 2023.66587-1 (texlive-most) TeX Live core distribution local/texlive-pictures 2023.66549-1 (texlive-most) TeX Live - Packages for drawings graphics local/texlive-science 2023.66461-1 (texlive-most) TeX Live - Typesetting for mathematics, natural and computer sciences Any hints? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] update / punctuation / math
Hi, On Sun, Apr 2, 2023 at 11:29 AM luigi scarso via ntg-context wrote: > > > > On Sun, 2 Apr 2023 at 10:35, luigi scarso wrote: >> >> >> >> On Sat, 1 Apr 2023 at 10:28, Hans Hagen via ntg-context >> wrote: >>> >>> Hi, >>> >> >> As a side note (it's 2 april now) >> the concrete font of the pdf is not rendered well both on web and t on >> win/linux desktop . >> No surprise, I did some experiments with mflua years ago and my results >> had the same problem. > > > getting old... the pdf doesn't look so bad as I was used to remember > https://meeting.contextgarden.net/2017/talks/2017-09-14-luigi-mflua/slides.pdf > > So yes , it's the instance of the variable font. Oh, that looks like a very nice talk, I wish I had been there. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] update / punctuation / math
On Sun, 2 Apr 2023 at 10:35, luigi scarso wrote: > > > On Sat, 1 Apr 2023 at 10:28, Hans Hagen via ntg-context < > ntg-context@ntg.nl> wrote: > >> Hi, >> >> > As a side note (it's 2 april now) > the concrete font of the pdf is not rendered well both on web and t on > win/linux desktop . > No surprise, I did some experiments with mflua years ago and my > results had the same problem. > getting old... the pdf doesn't look so bad as I was used to remember https://meeting.contextgarden.net/2017/talks/2017-09-14-luigi-mflua/slides.pdf So yes , it's the instance of the variable font. -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] update / punctuation / math
On Sun, 2 Apr 2023 at 11:06, Mikael Sundqvist via ntg-context < ntg-context@ntg.nl> wrote: > > If you talk about the math font, I do not see what you mean. Daniel > has worked a lot on his fonts, and they now work well. > indeed the body font is not concrete opentype math but it looks very similar at first sight (of course... ). I was deceived because I remember its shapes quite well (C ,g a ). > > If you talk about the text font, Hans changed the concrete typescript > so that it uses the variable "mono" Latin modern instead of the > concrete text font that comes from Computer modern unicode. But the > font is also boldened slightly, and perhaps that is what causes your > problem (It did look weird on my phone for half a second or so before > it "got normal"). In okular I see no problems. > > here evince & mupdf are quite ok (evince somewhat bolder than mupdf), okular looks not so good. They all have a caching-something, after the first zooms the pdf is rendered differently. -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] update / punctuation / math
Hi, On Sun, Apr 2, 2023 at 10:35 AM luigi scarso via ntg-context wrote: > > > > On Sat, 1 Apr 2023 at 10:28, Hans Hagen via ntg-context > wrote: >> >> Hi, >> > > As a side note (it's 2 april now) > the concrete font of the pdf is not rendered well both on web and t on > win/linux desktop . > No surprise, I did some experiments with mflua years ago and my results > had the same problem. > Is it a known issue? If you talk about the math font, I do not see what you mean. Daniel has worked a lot on his fonts, and they now work well. If you talk about the text font, Hans changed the concrete typescript so that it uses the variable "mono" Latin modern instead of the concrete text font that comes from Computer modern unicode. But the font is also boldened slightly, and perhaps that is what causes your problem (It did look weird on my phone for half a second or so before it "got normal"). In okular I see no problems. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] registered function call [1160]:...live/2023/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:87: cannot open /.: Permission denied - Alpine Linux
On 4/1/2023 11:21 PM, Carlos via ntg-context wrote: On Fri, Mar 31, 2023 at 10:22:49PM +0200, Hans Hagen via ntg-context wrote: On 3/31/2023 10:08 PM, Carlos via ntg-context wrote: sure, why should it, you want lucida so better quit with an error than kicking in some font; actually cmr math fonts have been obsoleted for way over a decade by latin modern math fonts in 32 bit font engines Font loading and processing time can be mosty neglected so these 16 seconds come from something else, maybe there are ways to trace file access. Another possibility is that your fonts are not cached in which case every run will involve parsing the otf / ttf and producing whatever resources needed (normally cached). interesting. Earlier as the output was showing mkiv lua stats > loaded patterns: en::1, load time: 0.000 mkiv lua stats > loaded fonts: 4 files: lucidabrightregular.otf, lucidasansregular.otf, latinmodern-math.otf, lmroman10-regular.otf you asked so why not use lucida math fonts? which is a valid question but nevertheless unsettling in that lmodern-regular may nat have been called out. I fully understand the inclusion of a latinmodern-math in it as a lucidamath was not previously available but I ponder at the idea and involuntary implementation of having lmroman along the pack. Why? If this is TeX doings, or misdoings (depending how one looks at it), it clearly shows to me that TeX also restricts my freedom to use whatever font I may deem necessary. Don't you think? You can probably disagree with me here, or anyone from the TeX community can, but the roman last was imposed deliberately upon. Someoe may also give a lengthy explanation but that would be just hogwash in thee very end . The fact that a file is loaded doesn't mean that it is used. In fact there is some fallback loading going on because explaining when nothing gets typeset or why \nullfont is used which results in missing chars messages is a waste of time. It has nothing to do with restrictions: tex will load any font you want it. But for instance when you turn on some tracing the macro package can load a font it needs. Indirectly you get what you ask for. I bet you didn't explicitly ask for e.g. english hyphentation patterns either but still got them, but tex will happily let you use polish ones instead. Of course the best remedy against any automatism is to just start with initex and implement from scratch. In the above case: just add \type {foo} and you might see another font you didn't ask for / set up. I was actually thinking to ask you about that, and by falling back to cmr math font that perhaps would expedite loading time along the way. These fonts are small (only huge cjk fonts with tens of thousands of glyphs or fonts with hundreds of accumulated features might have some impact but even then not in the final embedding stage). Yeah. I guess. I can also have mkiv lua stats > loaded patterns: en::1, load time: 0.000 mkiv lua stats > loaded fonts: 3 files: lucidabrightmathsymbol.ttf, lucidanewmathitalic.ttf, lucidabrightregular.otf mkiv lua stats > font engine: otf 3.133, afm 1.513, tfm 1.000, 6 instances, 3 shared in backend, 1 common vectors, 2 common hashes, load time 16.723 seconds but that loading time gets back at me as the culprit sweet reminder of not using cmr then. i won't comment because (i verified) that lucidabrightmathsymbol.ttf and lucidanewmathitalic.ttf are illegal copies (if created on someones machine from the typeone its all up to that user). 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] update / punctuation / math
On Sat, 1 Apr 2023 at 10:28, Hans Hagen via ntg-context wrote: > Hi, > > As a side note (it's 2 april now) the concrete font of the pdf is not rendered well both on web and t on win/linux desktop . No surprise, I did some experiments with mflua years ago and my results had the same problem. Is it a known issue? -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___