Re: [NTG-context] new upload
On 12/1/2021 9:49 AM, denis.ma...@unibe.ch wrote: Thank you, Hans! I don't understand 2, 3, and 4, but I can wikify 1. Just two question: What exactly are the limitations? And what is meant by horizontal registers? % this is a variant of an example on the mailing list \mainlanguage[es] \setupbodyfont[dejavu] \defineregister [Russian] [n=1, command=\Words, pagenumber=no, language=ru, textalternative=horizontal, distance=0pt] \setupregister [Russian] [2] [textstyle=bold,left={, }] \setupregister [Russian] [3] [textstyle=italic,left={, }] % word category meaning \setregisterentry [Russian] [entries:1={исчисление}, entries:2={n. neutr.}, entries:3={cálculo}] \setregisterentry [Russian] [entries:1={исчисление}, entries:2={n. neutr.}, entries:3={cálculo}] \setregisterentry [Russian] [entries:1={вероятность}, entries:2={n. fem.},entries:3={probabilidad}] \setregisterentry [Russian] [entries:1={обозначать}, entries:2={v.}, entries:3={denotar}] \setregisterentry [Russian] [entries:1={область}, entries:2={n. fem}, entries:3={región, área}] \setregisterentry [Russian] [entries:1={событие}, entries:2={n. neutr.}, entries:3={evento}] \setregisterentry [Russian] [entries:1={определение}, entries:2={n. neutr.}, entries:3={definición}] \setregisterentry [Russian] [entries:1={знание}, entries:2={n. neutr,}, entries:3={conocimiento}] \setregisterentry [Russian] [entries:1={бесконечно}, entries:2={adv.}, entries:3={infinitamente}] \setregisterentry [Russian] [entries:1={сборник}, entries:2={n. masc.}, entries:3={colección, compilación, compendio}] \setregisterentry [Russian] [entries:1={неравенство}, entries:2={n. neutr.}, entries:3={desigualdad}] \starttext \starttitle[title=Ruso-español] \placeRussian \stoptitle \stoptext Regarding the implementation: I've just tried it, and I wondered whether the stacking of bars should not happen the other way round. As in \underbar{\underdot{asdf}} I would have expected the bar to be below the dot. But maybe that's wrong expectations... that would become rather messy and hard to analyze (this is already a runtime consuming feature) and never be consistent, think of \underbar{% \underdot{} x \underdot{}% } - 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] xml processing errors after latest upgrade
Still the same error. > -Ursprüngliche Nachricht- > Von: Maier, Denis Christian (UB) > Gesendet: Mittwoch, 1. Dezember 2021 11:02 > An: 'Hans Hagen' ; 'mailing list for ConTeXt users' cont...@ntg.nl> > Betreff: AW: [NTG-context] xml processing errors after latest upgrade > > Trying a fresh installation. > > > -Ursprüngliche Nachricht- > > Von: Maier, Denis Christian (UB) > > Gesendet: Mittwoch, 1. Dezember 2021 10:59 > > An: 'Hans Hagen' ; mailing list for ConTeXt users > > > > Betreff: AW: [NTG-context] xml processing errors after latest upgrade > > > > You mean a problem with the update? > > > > I've wiped the cache and ran > > mtxrun --generate > > context --make > > > > But, no change. > > > > Denis > > > > > -Ursprüngliche Nachricht- > > > Von: Hans Hagen > > > Gesendet: Mittwoch, 1. Dezember 2021 10:52 > > > An: mailing list for ConTeXt users > > > Cc: Maier, Denis Christian (UB) > > > Betreff: Re: [NTG-context] xml processing errors after latest > > > upgrade > > > > > > On 12/1/2021 10:41 AM, Denis Maier via ntg-context wrote: > > > > > > > Not sure what is going wrong. Any hints how I can start debugging? > > > > Any ideas what could have caused that change? > > > > > > > > (Ok, let’s build a MWE..) > > > a mix of old / new files? > > > > > > > > > - > > >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] xml processing errors after latest upgrade
Ok, seems unrelated to XML. This here shows the problem: % no problems withouth setupinteraction \setupinteraction [ state=start, focus=standard, openaction=FitWidth, color=, contrastcolor=, style=, ] \starttext asdf \stoptext Best, Denis > -Ursprüngliche Nachricht- > Von: Hans Hagen > Gesendet: Mittwoch, 1. Dezember 2021 10:52 > An: mailing list for ConTeXt users > Cc: Maier, Denis Christian (UB) > Betreff: Re: [NTG-context] xml processing errors after latest upgrade > > On 12/1/2021 10:41 AM, Denis Maier via ntg-context wrote: > > > Not sure what is going wrong. Any hints how I can start debugging? Any > > ideas what could have caused that change? > > > > (Ok, let’s build a MWE..) > a mix of old / new files? > > > - >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] xml processing errors after latest upgrade
Hi, the latest update may have introduced problems for xml processing : For a document I could convert with version 2021.10.24 21:45 without problems gives me now this error : % ... structure > sectioning > title @ level 2 : 0.0 -> \documentvariable {title} fatal lua error: registered function call [929]: ...ext/tex/texmf-context/tex/context/base/mkiv/scrn-ref.lua:31: attempt to call a nil value (upvalue 'expandcurrent') stack traceback: ...ext/tex/texmf-context/tex/context/base/mkiv/scrn-ref.lua:31: in function <...ext/tex/texmf-context/tex/context/base/mkiv/scrn-ref.lua:27> (...tail calls...) mtx-context | fatal error: return code: 1 % Not sure what is going wrong. Any hints how I can start debugging? Any ideas what could have caused that change? (Ok, let's build a MWE..) Best, Denis ___ 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] xml processing errors after latest upgrade
On 12/1/2021 10:41 AM, Denis Maier via ntg-context wrote: Not sure what is going wrong. Any hints how I can start debugging? Any ideas what could have caused that change? (Ok, let’s build a MWE..) a mix of old / new files? - 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] xml processing errors after latest upgrade
You mean a problem with the update? I've wiped the cache and ran mtxrun --generate context --make But, no change. Denis > -Ursprüngliche Nachricht- > Von: Hans Hagen > Gesendet: Mittwoch, 1. Dezember 2021 10:52 > An: mailing list for ConTeXt users > Cc: Maier, Denis Christian (UB) > Betreff: Re: [NTG-context] xml processing errors after latest upgrade > > On 12/1/2021 10:41 AM, Denis Maier via ntg-context wrote: > > > Not sure what is going wrong. Any hints how I can start debugging? Any > > ideas what could have caused that change? > > > > (Ok, let’s build a MWE..) > a mix of old / new files? > > > - >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] new upload
Thank you, Hans! I don't understand 2, 3, and 4, but I can wikify 1. Just two question: What exactly are the limitations? And what is meant by horizontal registers? Regarding the implementation: I've just tried it, and I wondered whether the stacking of bars should not happen the other way round. As in \underbar{\underdot{asdf}} I would have expected the bar to be below the dot. But maybe that's wrong expectations... Denis > -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Hans Hagen > via ntg-context > Gesendet: Dienstag, 30. November 2021 19:56 > An: mailing list for ConTeXt users > Cc: Hans Hagen > Betreff: [NTG-context] new upload > > Hi, > > (1) See previous mails on the list (those who requested it have to wikify): > > - mixed bars (with limitations) > - horizontal registers (flushing) > > (2) As a side effect of reshuffling some code (as well as being complete): > > - \boxshift 0 = 10pt > - hbox shift -10pt{...} > > These box shifts are what \moveleft, \raise etc use as well as some internal > constructors like math. > > (3) Because there is no reason for a limitation to rules and boxes we can now > also do: > > - x\cleaders \glyph`! \hfill x > > where as usual \glyph taking some options. > > (4) A few internals that users are unlikely to encounter (unless they mess > with weird tokens in lua). > > Hopefully no bad side effects of all this (and if so, easy to solve). > > 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] xml processing errors after latest upgrade
Trying a fresh installation. > -Ursprüngliche Nachricht- > Von: Maier, Denis Christian (UB) > Gesendet: Mittwoch, 1. Dezember 2021 10:59 > An: 'Hans Hagen' ; mailing list for ConTeXt users cont...@ntg.nl> > Betreff: AW: [NTG-context] xml processing errors after latest upgrade > > You mean a problem with the update? > > I've wiped the cache and ran > mtxrun --generate > context --make > > But, no change. > > Denis > > > -Ursprüngliche Nachricht- > > Von: Hans Hagen > > Gesendet: Mittwoch, 1. Dezember 2021 10:52 > > An: mailing list for ConTeXt users > > Cc: Maier, Denis Christian (UB) > > Betreff: Re: [NTG-context] xml processing errors after latest upgrade > > > > On 12/1/2021 10:41 AM, Denis Maier via ntg-context wrote: > > > > > Not sure what is going wrong. Any hints how I can start debugging? > > > Any ideas what could have caused that change? > > > > > > (Ok, let’s build a MWE..) > > a mix of old / new files? > > > > > > - > >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] xml processing errors after latest upgrade
Sorry for spamming the list, but I was able to narrow it further down: % \setupinteraction [ state=start, openaction=FitWidth, % comment this out to make it work ] \starttext asdf \stoptext % Can anyone confirm this? > -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Denis Maier > via ntg-context > Gesendet: Mittwoch, 1. Dezember 2021 11:44 > An: j.ha...@xs4all.nl; ntg-context@ntg.nl > Cc: Maier, Denis Christian (UB) > Betreff: Re: [NTG-context] xml processing errors after latest upgrade > > Ok, seems unrelated to XML. > > This here shows the problem: > > > % no problems withouth setupinteraction > \setupinteraction [ > state=start, > focus=standard, > openaction=FitWidth, > color=, > contrastcolor=, > style=, > ] > > \starttext > > asdf > > \stoptext > > > Best, > Denis > > > -Ursprüngliche Nachricht- > > Von: Hans Hagen > > Gesendet: Mittwoch, 1. Dezember 2021 10:52 > > An: mailing list for ConTeXt users > > Cc: Maier, Denis Christian (UB) > > Betreff: Re: [NTG-context] xml processing errors after latest upgrade > > > > On 12/1/2021 10:41 AM, Denis Maier via ntg-context wrote: > > > > > Not sure what is going wrong. Any hints how I can start debugging? > > > Any ideas what could have caused that change? > > > > > > (Ok, let’s build a MWE..) > > a mix of old / new files? > > > > > > - > >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 ___
[NTG-context] getting sha512 from text in buffer
Dear list, I have this minimal sample: \ctxlua{require("util-sha")} \def\sha#1{% \ctxlua{context(utilities.sha2.hash512("#1"))}} \startbuffer[text] hola \stopbuffer \starttext \sha{hola} \sha{\typebuffer[text]} \stoptext How can I get that both commands get the same sha512sum? Many thanks for your help, 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] xml processing errors after latest upgrade
On 12/1/2021 2:03 PM, denis.ma...@unibe.ch wrote: Sorry for spamming the list, but I was able to narrow it further down: % \setupinteraction [ state=start, openaction=FitWidth, % comment this out to make it work ] \starttext asdf \stoptext % Can anyone confirm this? -Ursprüngliche Nachricht- Von: ntg-context Im Auftrag von Denis Maier via ntg-context Gesendet: Mittwoch, 1. Dezember 2021 11:44 An: j.ha...@xs4all.nl; ntg-context@ntg.nl Cc: Maier, Denis Christian (UB) Betreff: Re: [NTG-context] xml processing errors after latest upgrade Ok, seems unrelated to XML. This here shows the problem: % no problems withouth setupinteraction \setupinteraction [ state=start, focus=standard, openaction=FitWidth, color=, contrastcolor=, style=, ] \starttext asdf \stoptext you can patch this in scrn-ref.lua (and remakle the format) local expandcurrent = structures.references.expandcurrent or function() end - 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] xml processing errors after latest upgrade
On 12/1/21 2:03 PM, Denis Maier via ntg-context wrote: > Sorry for spamming the list, but I was able to narrow it further down: > [...] > \setupinteraction > [state=start, >openaction=FitWidth] % comment this out to make it work > [...] > Can anyone confirm this? Hi Denis, I can confirm the issue. I get the following error message: registered function call [929]: ...ext/tex/texmf-context/tex/context/base/mkiv/scrn-ref.lua:31: attempt to call a nil value (upvalue 'expandcurrent') stack traceback: ...ext/tex/texmf-context/tex/context/base/mkiv/scrn-ref.lua:31: in function <...ext/tex/texmf-context/tex/context/base/mkiv/scrn-ref.lua:27> (...tail calls...) I hope it helps, 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] Font scaling via sa in LMTX
On 11/30/2021 9:36 PM, Rik Kabel via ntg-context wrote: Hello list, It seems that font scaling to a letter is not working consistently in LMTX. This example: \definefont[TitleA][Sans sa a] \definefont[TitleAB][Sansbold sa a] \starttext {\ssa This is ssa \TitleA and this is TitleA}\par {\ssbf This is ssbf \TitleAB and this is TitleAB}\par \contextbanner \stoptext Produces different relevant output with each engine. I suppose one could use numeric values instead of defined font size letters as a work-around, but that means lack of coordination with custom sizes in \definebodyfontenvironment. fixed in the next upload (which is a bit experimental in the sense that some low level consistency renaming happened which always has the danger of disabling some feature) 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] xml processing errors after latest upgrade
Another problem. Maybe that's related? Running the file with the --luatex flag gives me this error message: tx-context | redirect luametatex -> luatex: luatex --luaonly "C:/context/tex/texmf-win64/bin/mtxrun.lua" --script mtx-context --luatex debug --redirected mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua' Denis > -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Denis Maier > via ntg-context > Gesendet: Mittwoch, 1. Dezember 2021 11:44 > An: j.ha...@xs4all.nl; ntg-context@ntg.nl > Cc: Maier, Denis Christian (UB) > Betreff: Re: [NTG-context] xml processing errors after latest upgrade > > Ok, seems unrelated to XML. > > This here shows the problem: > > > % no problems withouth setupinteraction > \setupinteraction [ > state=start, > focus=standard, > openaction=FitWidth, > color=, > contrastcolor=, > style=, > ] > > \starttext > > asdf > > \stoptext > > > Best, > Denis > > > -Ursprüngliche Nachricht- > > Von: Hans Hagen > > Gesendet: Mittwoch, 1. Dezember 2021 10:52 > > An: mailing list for ConTeXt users > > Cc: Maier, Denis Christian (UB) > > Betreff: Re: [NTG-context] xml processing errors after latest upgrade > > > > On 12/1/2021 10:41 AM, Denis Maier via ntg-context wrote: > > > > > Not sure what is going wrong. Any hints how I can start debugging? > > > Any ideas what could have caused that change? > > > > > > (Ok, let’s build a MWE..) > > a mix of old / new files? > > > > > > - > >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] xml processing errors after latest upgrade
Confirmed that the following worked: 1. Run: rm -rf /tmp/luatex-cache/ (your cache directory location will differ) 2. Edit ./tex/texmf-context/tex/context/base/mkiv/scrn-ref.lua 3. Replace line 15 to assign the empty function as Hans indicated 4. Save the file 5. Run: ./bin/mtxrun --generate 6. Run: ./tex/texmf-linux-64/bin/context --make Typesetting XML succeeds again. ___ 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 ___