[NTG-context] Re: streams reversed?

2023-09-15 Thread jbf
limitations. Even if the final MWE seems too bulky, you could post cloud links to the source and pdf files. Thank you for your contribution. Best wishes Idris -- Original Message -- From "jbf" To "Bruce Horrocks" ; "mailing list for ConTeXt users" Dat

[NTG-context] Re: streams reversed?

2023-09-15 Thread jbf
My feeling at the moment is that this might be about the only way one could go ahead in a production situation, and yes, I am familiar with PDF tools that can achieve this, though it is effectively stepping aside from ConTeXt and working with PDF. For that matter I can easily go ahead

[NTG-context] Re: streams reversed?

2023-09-15 Thread Hamid,Idris
worth the effort for the sake of improving the streams mechanism and clarifying its ultimate limitations. Even if the final MWE seems too bulky, you could post cloud links to the source and pdf files. Thank you for your contribution. Best wishes Idris -- Original Message -- From &quo

[NTG-context] Re: streams reversed?

2023-09-14 Thread jbf
of the languages are reversed, so I end up with vi on the left and en on the right. By Chapter 2 we are back to the correct position once more (en left and vi right). I want to know why this is happening, and if I can prevent it happening. I've modified the sample code you got from Wolfgang to include

[NTG-context] Re: streams reversed?

2023-09-14 Thread Bruce Horrocks
(en left and vi right). > I want to know why this is happening, and if I can prevent it happening. I've modified the sample code you got from Wolfgang to include chapter headings and it all looks fine to me[1] - the red text is all on the right hand side and the greeen text is all on the left. If

[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread Andres Conrado Montoya
que proclamamos. “You develop an instant global consciousness, a people orientation, an intense dissatisfaction with the state of the world, and a compulsion to do something about it. From out there on the moon, international politics look so petty. You want

[NTG-context] \dontleavethemode

2023-09-12 Thread Ursula Hermann
> level 1, order 1, name 'C:/Users/Hermann/Downloads/context-mswin/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl' system > beware: some patches loaded from cont-new.mkiv close source> level 1, order 1, name 'C:/Users/Hermann/Downloads/context-mswin/tex/texmf-contex

[NTG-context] Re: XML: flush to lua function

2023-09-12 Thread Taco Hoekwater
Hi, xml.text(t) is safer than directly accessing t.dt[1]. Note: you may need to strip some XML tags from that content. If the element is not straight-up data but has nested elements, then this will return the full xml representation instead: A short title=> ‘A short ti

[NTG-context] Bug(?) in https://wiki.contextgarden.net/Tabulate#Spanning_Multiple_Pages

2023-09-11 Thread Jim
Hi, In https://wiki.contextgarden.net/Tabulate#Spanning_Multiple_Pages the wiki has "internal error: convert failed". Removing \color[red] from \setuptabulate in that example gives a working example (at least in a separate file on my machine). I tried changing the title spe

[NTG-context] Re: Table of contents of unnumbered titles

2023-09-10 Thread Jim
Hi Lutz, thanks very much for that example, it does show me a way to answer my question. Although the messages from Wolfgang had already solved my problem, your solution in instructional in a different way, and so quite helpful. Cheers. Jim On Sat, Sep 9, 2023

[NTG-context] Re: how to define an environment with key=value arguments

2023-09-09 Thread Henning Hraban Ramm
from the _next_ chapter. Maybe the approach in from the source with \dummyparameter\c!name would work better, but I don’t know how to transfer it. I gave up, ran into too many problems. Tried to avoid injections and put everything in before/beforesection macros, but \structureuservariable

[NTG-context] Re: how to define an environment with key=value arguments

2023-09-08 Thread Henning Hraban Ramm
gets the value from the _next_ chapter. Maybe the approach in from the source with \dummyparameter\c!name would work better, but I don’t know how to transfer it. Hraban ___ If your question is of interest to others

[NTG-context] Fwd: escaping \ in Lua

2023-09-05 Thread Hans Hagen via ntg-context
Forwarded Message Subject: Re: [NTG-context] escaping \ in Lua Date: Tue, 5 Sep 2023 21:00:21 +0200 From: Hans Hagen To: Pablo Rodriguez On 9/5/2023 6:43 PM, Pablo Rodriguez wrote: Dear list, I have the following source: \setupinteraction[state=start, display=new

[NTG-context] Re: Tikz calendar problem.

2023-09-05 Thread Fabrice L
tikzlibrarycalendar.code.tex' >> >> The file « tikzlibrarycalendar.code.tex » is read, but the file « >> pgfcalendar » seems missing. I have reinstall a new standalone version of >> ConTeXt, with all the modules (with the new script from ConTeXt Garden), but >> nothing works.

[NTG-context] Re: Tikz calendar problem.

2023-09-05 Thread Aditya Mahajan
ex' > modules > 'pgfcalendar' is not found > close source> level 2, order 61, name ‘tikzlibrarycalendar.code.tex' > > The file « tikzlibrarycalendar.code.tex » is read, but the file « pgfcalendar > » seems missing. I have reinstall a new standalone version of ConTeXt, w

[NTG-context] (no subject)

2023-09-05 Thread Ursula Hermann
Dear List, After compiling the following example, which is from February 2021: \setuppapersize[A8,landscape] \setuplayout[leftmargin=2.5cm, leftmargindistance=0.2cm, backspace=2.9cm, width=4cm] \showframe \starttext \margintext{\hairline\\{Me

[NTG-context] Tikz calendar problem.

2023-09-04 Thread Fabrice L
lendar.code.tex » is read, but the file « pgfcalendar » seems missing. I have reinstall a new standalone version of ConTeXt, with all the modules (with the new script from ConTeXt Garden), but nothing works. Thanks for an

[NTG-context] Re: ifxmlselfempty

2023-09-04 Thread Hans Hagen
On 9/4/2023 8:20 PM, Hans van der Meer wrote: I changed this in the source of lxml-ini.lua (line 225). It seems the 'not' has been accidentally crept in (from copying that line in ifxmlempty, the item above?) Anyway, remade the format and now the result is as I expected it to be. See below

[NTG-context] Re: ifxmlselfempty

2023-09-04 Thread Hans van der Meer via ntg-context
I changed this in the source of lxml-ini.lua (line 225). It seems the 'not' has been accidentally crept in (from  copying that line in ifxmlempty, the item above?)Anyway, remade the format and now the result is as I expected it to be. See below in the output of the MWE from my first post

[NTG-context] Re: After compiling

2023-09-04 Thread Pablo Rodriguez
.4 and invoking compilation from the editor triggered the error in my case. BTW, try "cd \\localhost\c$\data\develop\tmp" in the command prompt. It was impossible for me on W10. Pablo ___ If your question is of i

[NTG-context] Re: After compiling

2023-09-04 Thread Hans Hagen
it After compiling the following example, which is from February 2021: Unfortunately, there was no compilation (source not found). "\\ub.univie.ac.at\U_Dom\Users G-L\Hermann\Documents\Texlive" CMD.EXE wurde mit dem oben angegebenen Pfad als aktuellem Verzeichnis gestartet. UNC-Pfade we

[NTG-context] Re: After compiling

2023-09-04 Thread Pablo Rodriguez
wing example, which is from February 2021: Unfortunately, there was no compilation (source not found). > "\\ub.univie.ac.at\U_Dom\Users G-L\Hermann\Documents\Texlive" > CMD.EXE wurde mit dem oben angegebenen Pfad als aktuellem Verzeichnis > gestartet. > UNC-Pfade werden nicht u

[NTG-context] Re: no packed in current latest (LMTX only)

2023-09-04 Thread Hans Hagen via ntg-context
On 9/4/2023 6:12 PM, Pablo Rodriguez wrote: Dear list, after updating to current latest (from 2023.09.03 19:03), packed list doesn’t seem to work in LMTX: \starttext \startTEXpage[offset=1em] \startitemize[packed] \item item \item item \stopitemize \stopTEXpage

[NTG-context] Re: no packed in current latest (LMTX only)

2023-09-04 Thread Rik Kabel
On 9/4/2023 12:12 PM, Pablo Rodriguez wrote: Dear list, after updating to current latest (from 2023.09.03 19:03), packed list doesn’t seem to work in LMTX: \starttext \startTEXpage[offset=1em] \startitemize[packed] \item item \item item \stopitemize \stopTEXpage

[NTG-context] no packed in current latest (LMTX only)

2023-09-04 Thread Pablo Rodriguez
Dear list, after updating to current latest (from 2023.09.03 19:03), packed list doesn’t seem to work in LMTX: \starttext \startTEXpage[offset=1em] \startitemize[packed] \item item \item item \stopitemize \stopTEXpage \stoptext MkIV gets packed lists just right. Could anyone

[NTG-context] Re: After compiling

2023-09-04 Thread Ursula Hermann
: > After compiling the following example, which is from February 2021: > I get: > runtime error : input file './blackrule1.tex' is not found, quitting Are you sure your file is called "blackrule1.tex" and exists in the same directory as you’re

[NTG-context] Re: After compiling

2023-09-04 Thread Henning Hraban Ramm
Am 04.09.23 um 12:25 schrieb Ursula Hermann: After compiling the following example, which is from February 2021: I get: runtime error : input file './blackrule1.tex' is not found, quitting Are you sure your file is called "blackrule1.tex" and exists in the same directory as you’

[NTG-context] After compiling

2023-09-04 Thread Ursula Hermann
There is no pdf to read. Uschi Hermann. Sorry, dindn't write my name in the first Mail Today. Von: Ursula Hermann Gesendet: Montag, 04. September 2023 11:44 An: 'ntg-context@ntg.nl' mailto:ntg-context@ntg.nl>> Betreff: Dear List, After compiling the following example, which is from Fe

[NTG-context] Re:

2023-09-04 Thread Ursula Hermann
There is no pdf to read. Uschi Hermann. Sorry, dindn't write my name in the first Mail Today. Von: Ursula Hermann Gesendet: Montag, 04. September 2023 11:44 An: 'ntg-context@ntg.nl' Betreff: Dear List, After compiling the following example, which is from February 2021: \setuppapersize[A8

[NTG-context] Re: (feature proposal) link to attachments: /GoToE

2023-09-03 Thread Pablo Rodriguez
I’m afraid that \in{attachment}[foobar] doesn‘t generate a link in your sample. Or do you get a link border from the following source? \setupinteraction[state=start] \enabledirectives[references.border=green] \starttext \startTEXpage[offset=1em] \attachment[ file={hacker.jpg}, m

[NTG-context] Re: (feature proposal) link to attachments: /GoToE

2023-09-03 Thread Hans Hagen
-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf#G11.2048909). At least to begin with, only links to embedded children documents would be required. If this GoToR is generated by ConTeXt from "\goto{whatever}[destination-doc::page(15)]": 17 0 obj << /D [ 14 /Fit ] /F (des

[NTG-context] (feature proposal) link to attachments: /GoToE

2023-09-03 Thread Pablo Rodriguez
#G11.2048909). At least to begin with, only links to embedded children documents would be required. If this GoToR is generated by ConTeXt from "\goto{whatever}[destination-doc::page(15)]": 17 0 obj << /D [ 14 /Fit ] /F (destination-doc.pdf) /NewWindow true /S /GoT

[NTG-context] Re: slanted font feature: LMTX vs. MkIV

2023-09-02 Thread Wolfgang Schuster
Hans Hagen schrieb am 02.09.2023 um 11:53: On 9/2/2023 11:45 AM, Wolfgang Schuster wrote: Pablo Rodriguez schrieb am 02.09.2023 um 10:25: Dear list, I have the following sample (using current latest from 2023.08.27 13:48):    \setupinteractionscreen[option=max]    \definefontfamily[maf][rm

[NTG-context] Re: slanted font feature: LMTX vs. MkIV

2023-09-02 Thread Hans Hagen
On 9/2/2023 11:45 AM, Wolfgang Schuster wrote: Pablo Rodriguez schrieb am 02.09.2023 um 10:25: Dear list, I have the following sample (using current latest from 2023.08.27 13:48):    \setupinteractionscreen[option=max]    \definefontfamily[maf][rm][DejaVu Sans] [sl={style:tf, features

[NTG-context] Re: slanted font feature: LMTX vs. MkIV

2023-09-02 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 02.09.2023 um 10:25: Dear list, I have the following sample (using current latest from 2023.08.27 13:48): \setupinteractionscreen[option=max] \definefontfamily[maf][rm][DejaVu Sans] [sl={style:tf, features:{default,slanted}}] \setupbodyfont[maf, 8pt

[NTG-context] slanted font feature: LMTX vs. MkIV

2023-09-02 Thread Pablo Rodriguez
Dear list, I have the following sample (using current latest from 2023.08.27 13:48): \setupinteractionscreen[option=max] \definefontfamily[maf][rm][DejaVu Sans] [sl={style:tf, features:{default,slanted}}] \setupbodyfont[maf, 8pt] \setupfittingpage[offset=1ex] \starttext

[NTG-context] Re: list of modules: need changes/testing/response

2023-08-31 Thread Pablo Rodriguez
et/dl/t-handlecsv/ > > While they should look like e.g. > https://modules.contextgarden.net/dl/president/ > That’s also just a git checkout (still as .tar.gz). This might be the result from the mess generated after three updates today. Compare files lists from: https://modules.contextgarden

[NTG-context] Re: list of modules: need changes/testing/response

2023-08-31 Thread luigi scarso
d all font-related modules from the list (not yet from the > garden), since they’re probably all obsolete & outdated. > Consider publishing typescripts in the wiki. > > > The following modules don’t adhere to the necessary structure and need > changes: > * t-handlecsv (2023, P

[NTG-context] Re: list of modules: need changes/testing/response

2023-08-30 Thread Henning Hraban Ramm
* t-title (2017, Wolfgang) Can be removed. Thank you! Same as I just wrote to Peter: I’ll just remove the modules from the install list for the time being. CU at the meeting, Hraban ___ If your question is o

[NTG-context] Re: list of modules: need changes/testing/response

2023-08-30 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 30.08.2023 um 20:15: Hi all, esp. module authors! I went through the list of modules on https://modules.contextgarden.net/ (dl/) and the list that controls module installation for “--script install-modules". I removed all font-related modules from the

[NTG-context] Fwd: Kerning feature not working

2023-08-30 Thread Hans Hagen
Forwarded Message Subject: Re: [NTG-context] Kerning feature not working Date: Wed, 30 Aug 2023 22:17:43 +0200 From: Hans Hagen To: Marcus Vinicius Mesquita On 8/30/2023 9:37 PM, Marcus Vinicius Mesquita wrote: Dear List In the MWE below, the kerning feature works OK

[NTG-context] Re: list of modules: need changes/testing/response

2023-08-30 Thread Marcus Vinicius Mesquita
n.net/ > (dl/) and the list that controls module installation for “--script > install-modules". > > I removed all font-related modules from the list (not yet from the > garden), since they’re probably all obsolete & outdated. > Consider publishing typescripts in the wiki. &

[NTG-context] list of modules: need changes/testing/response

2023-08-30 Thread Henning Hraban Ramm
Hi all, esp. module authors! I went through the list of modules on https://modules.contextgarden.net/ (dl/) and the list that controls module installation for “--script install-modules". I removed all font-related modules from the list (not yet from the garden), since they’re probabl

[NTG-context] Re: attribute selection

2023-08-30 Thread Hans van der Meer via ntg-context
Finally I saw the problem. Calling \xmlfilter{#1}{./node/command(demo:attribute:node)} is the right way. Sorry for the noise. dr. Hans van der Meer > On 30 Aug 2023, at 13:49, Hans van der Meer via ntg-context > wrote: > > This line of code comes from the xml documentat

[NTG-context] attribute selection

2023-08-30 Thread Hans van der Meer via ntg-context
This line of code comes from the xml documentation (page 31): \xmlfilter{#1}{./node[@type=="cleanup"]} It should select among the 's those with . However, this node is not selected in the call to \xmlfilter. Where am I wrong? MWE follows % failure to typeset attribute selected. \setu

[NTG-context] Re: Question about building an array of values with Lua

2023-08-25 Thread Fabrice Couvreur
ll() > context.stopxrow() > end > > Wolfgang > > > Indeed this is much more elegant… It feels so good to be on this list and > learn from such insights :-) > > > We don't even need the math.mod function because Lua added with version > 5

[NTG-context] Re: Question about building an array of values with Lua

2023-08-24 Thread Wolfgang Schuster
  context(math.mod(2*i*i,10))     context.stopxcell()     context.stopxrow()     end Wolfgang Indeed this is much more elegant… It feels so good to be on this list and learn from such insights :-) We don't even need the math.mod function because Lua added with version 5.1 a modulo

[NTG-context] Re: Question about building an array of values with Lua

2023-08-24 Thread Otared Kavian
context(math.mod(2*i*i,10)) > context.stopxcell() > context.stopxrow() > end > > Wolfgang Indeed this is much more elegant… It feels so good to be on this list and learn from such insights :-) Best regards: Otared__

[NTG-context] Better option for a macro with lots of arguments

2023-08-22 Thread Andres Conrado Montoya
orientation, an intense dissatisfaction with the state of the world, and a compulsion to do something about it. From out there on the moon, international politics look so petty. You want to grab a politician by the scruff of the neck and drag him a quarter of a million miles out and say, ‘Look

[NTG-context] Re: Fallbacks for design sizes in the current typescripts regime

2023-08-22 Thread Hans Hagen
the creators blessing makes sense of course and but then one can also argue that a variable font makes no sense apart from maybe showing off some technology) Hans - Hans Hagen | PRAGMA ADE

[NTG-context] ConTeXt meeting 2023 attendance (please read)

2023-08-22 Thread Taco Hoekwater
Hi all, This is a reminder that the registration for the upcoming ConTeXt meeting in Sibrina, Czech Republic is still open. The meeting will take place from Sept 10 to Sept 16. You can go to https://meeting.contextgarden.net for more information. You will also find the registration form

[NTG-context] Re: An strange error with section and page

2023-08-22 Thread Wolfgang Schuster
Xavier B. schrieb am 22.08.2023 um 19:32: Hi, I have a long document [https://repo.or.cz/apunts-espa-matematiques.git/blob/HEAD:/ng-exercicis.conTeXt.pdf] which I migrated from MKIV to LMTX version of ConTeXt. As Wolfgang recommened. I migrated old syntax to new one and replace \page[yes

[NTG-context] An strange error with section and page

2023-08-22 Thread Xavier B.
Hi, I have a long document [https://repo.or.cz/apunts-espa-matematiques.git/blob/HEAD:/ng-exercicis.conTeXt.pdf] which I migrated from MKIV to LMTX version of ConTeXt. As Wolfgang recommened. I migrated old syntax to new one and replace \page[yes] before each section to \setupheads[section

[NTG-context] Re: Fallbacks for design sizes in the current typescripts regime

2023-08-22 Thread Wolfgang Schuster
Hamid,Idris schrieb am 22.08.2023 um 17:45: On Aug 22, 2023, 2:06 AM -0600, Hans Hagen via ntg-context , wrote: On 8/22/2023 6:31 AM, Hamid,Idris wrote: Design sizes for typefaces -- aka "optical sizes" -- are no longer directly implemented in typescripts. From

[NTG-context] Re: Fallbacks for design sizes in the current typescripts regime

2023-08-22 Thread Hamid,Idris
On Aug 22, 2023, 2:06 AM -0600, Hans Hagen via ntg-context , wrote: On 8/22/2023 6:31 AM, Hamid,Idris wrote: Design sizes for typefaces -- aka "optical sizes" -- are no longer directly implemented in typescripts. From the manual Fonts out of ConTeXt by Hans Hagen, p. 109: You ca

[NTG-context] Re: your opinion about list structures

2023-08-22 Thread denis.maier
because I find it > annoying to have the commands between the topics. > I also include the topics that are mentioned in titles in the index, because > I hate > it if I must look in two places. > (Otherwise I wouldn't think about omitting the sections from the ToC.) > > At the mome

[NTG-context] Re: Equivalent of the \cancel command with conTeXt

2023-08-22 Thread Fabrice Couvreur
ic expression, it is sometimes interesting to cross out > terms. With LaTeX, there is the \cancel command from the package cancel. Is > there an equivalent with conTeXt ? > > Thanks > > Fabrice > > I don't know what the cancel package gives, but since December 22 or > so, on

[NTG-context] Re: Equivalent of the \cancel command with conTeXt

2023-08-22 Thread Mikael Sundqvist
Hi, On Tue, Aug 22, 2023 at 12:25 PM Fabrice Couvreur wrote: > > Hi, > In an algebraic expression, it is sometimes interesting to cross out terms. > With LaTeX, there is the \cancel command from the package cancel. Is there an > equivalent with conTeXt ? > Thanks > Fabri

[NTG-context] Re: Equivalent of the \cancel command with conTeXt

2023-08-22 Thread Fabrice Couvreur
Hi Alexander, Thank you for this suggestion which will do the trick. Fabrice Le mar. 22 août 2023 à 10:26, Alexandre Christe a écrit : > Hi Fabrice, > > I have this from former exchanges > > % Cancel command for use in equations. > \startuniqueMPgraphic{cross out} > pi

[NTG-context] Re: Equivalent of the \cancel command with conTeXt

2023-08-22 Thread Alexandre Christe
Hi Fabrice, I have this from former exchanges % Cancel command for use in equations. \startuniqueMPgraphic{cross out}  picture cross;  cross := image(draw (0,0)--(1,1); draw (0,1)--(1,0););  draw cross xscaled \overlaywidth yscaled \overlayheight withpen pencircle scaled .8pt

[NTG-context] Equivalent of the \cancel command with conTeXt

2023-08-22 Thread Fabrice Couvreur
Hi, In an algebraic expression, it is sometimes interesting to cross out terms. With LaTeX, there is the \cancel command from the package cancel. Is there an equivalent with conTeXt ? Thanks Fabrice ___ If your

[NTG-context] Re: Fallbacks for design sizes in the current typescripts regime

2023-08-22 Thread Hans Hagen via ntg-context
On 8/22/2023 6:31 AM, Hamid,Idris wrote: Dear gang, Design sizes for typefaces -- aka "optical sizes" -- are no longer directly implemented in typescripts. From the manual Fonts out of ConTeXt by Hans Hagen, p. 109: You can still do it but for all these years only cm has design siz

[NTG-context] Re: XML processing beginner's question

2023-08-22 Thread Hans Hagen via ntg-context
On 8/22/2023 9:06 AM, denis.ma...@unibe.ch wrote: But, I think the way this is processed differs a bit from XSLT. In XSLT the most specific match will be applied, but ConTeXt seems to proceed from top to bottom until it finds a match. (Is that correct?) it just associates the most recent

[NTG-context] Re: XML processing beginner's question

2023-08-22 Thread Hans Hagen via ntg-context
\ifxmlatt {id}{name}{value} \else \fi \ifxmlattempty {id}{pattern} \else \fi \ifxmlempty{id}{pattern} \else \fi \ifxmlselfempty{id} \else \fi So, these new commands diverge from the older patterns: \xmldoifelse{#1}{pattern}{TRUE}{FALSE} ? they can do the same

[NTG-context] Re: XML processing beginner's question

2023-08-22 Thread denis.maier
ps xml:document \xmlflush {#1} \stopxmlsetups \startxmlsetups xml:element-with-attribute 0 \stopxmlsetups \startxmlsetups element-with-subelement-one 1 \stopxmlsetups \startxmlsetups element-with-subelement-two 2 \stopxmlsetups But, I think the way this is processed

[NTG-context] Re: XML processing beginner's question

2023-08-22 Thread denis.maier
ttern} \else \fi > \ifxmlatt {id}{name}{value} \else \fi > \ifxmlattempty {id}{pattern} \else \fi > \ifxmlempty{id}{pattern} \else \fi > \ifxmlselfempty{id} \else \fi So, these new commands diverge from the older patterns: \xmldoifelse{#1}{patter

[NTG-context] Re: Not getting a page break in the ToC

2023-08-22 Thread Andres Conrado Montoya
es no justifican los medios, porque la medida verdadera de nuestro > carácter está dada por los medios que estamos dispuestos a utilizar, no por > los fines que proclamamos. > > > “You develop an instant global consciousness, a people orientation,

[NTG-context] Not getting a page break in the ToC

2023-08-21 Thread Andres Conrado Montoya
it. From out there on the moon, international politics look so petty. You want to grab a politician by the scruff of the neck and drag him a quarter of a million miles out and say, ‘Look at that, you son of a bitch.’” — Apollo 14 astronaut Edgar Mitchell

[NTG-context] Fallbacks for design sizes in the current typescripts regime

2023-08-21 Thread Hamid,Idris
Dear gang, Design sizes for typefaces -- aka "optical sizes" -- are no longer directly implemented in typescripts. From the manual Fonts out of ConTeXt by Hans Hagen, p. 109: "at some point the decision was made to kick out these definitions and move the burden of figuring out

[NTG-context] Re: XML processing beginner's question

2023-08-21 Thread Hans Hagen via ntg-context
and then processed. But I definitely get the "do my homework for me" vibe, so this will be all from me. in addition: you need a bit of imagination because basically (depends a bit on what you do) one big nested expansion is going on, as Thomas explained: using setups which are basically macr

[NTG-context] Re: XML processing beginner's question

2023-08-21 Thread Thomas A. Schmitz
do my homework for me" vibe, so this will be all from me. Thomas ___ 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/li

[NTG-context] Re: XML processing beginner's question

2023-08-21 Thread Michael Löscher
1} {/mdata/date}  {\bf \xmlflush {#1}} or \xmldoifelsetext. There's also \xmlfilter, which you can use to test for the content of tags. And of course, you can process in Lua and search for strings or use lpeg. However, your question is a bit vague now. Show us some code you have and we can ta

[NTG-context] Re: XML processing beginner's question

2023-08-21 Thread Thomas A. Schmitz
t of tags. And of course, you can process in Lua and search for strings or use lpeg. However, your question is a bit vague now. Show us some code you have and we can take it from there; that's easier than writing the whole setup for you. Thomas On 8/21/23 17:29, Michael Löscher wrote: Hello lis

[NTG-context] XML processing beginner's question

2023-08-21 Thread Michael Löscher
) AA BB § 2 Second (A second short description) CC DD § 3 Third (A third short description) EE FF --- How can I process the s differently? The first element contains a tag and so it differs from the other ones. The second element's tag contains the word

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-21 Thread Thomas A. Schmitz
On 8/21/23 14:22, Carlos wrote: fuck this shit. The first reaction would of course be to respond in the same tone. I think it would be wrong. You should be aware that to most of us, your messages sound like they come from a sociopath. Nothing in the subject we're talking about warrants

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-21 Thread Carlos
process a file and you should see > > something like this: > > > > As you can see the luatex engine processes the file cont-yes.mkiv and not > > your document which put as argument to context. Your document is just read > > by cont-yes.mkiv and at the end of the docume

[NTG-context] Re: Inconsistent behavior: \addfontfeature and CLD local function

2023-08-20 Thread Hamid,Idris
: Dear gang, For \addfeature and the like, a virtual font feature defined in terms of a CLD local function behaves differently from other font features. MWE: == \startluacode local function squeeze(tfmdata) for k, v in next, tfmdata.characters do v.width = 1.75 * (v.height or 0) v.depth

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-20 Thread Hans Hagen
and if a user want to take a shortcut and save a handful of keystrokes it's fine for me but support converges to zero (unless one pays top money for the incovenience). There is only so much you can expect from volunteers. Wolfgang. I do appreciate your emphasis and your input on all of this. I do. I

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-20 Thread Wolfgang Schuster
who said the above? Not me. You. Do you know whose remarks are those? Not mine. Yours. Just because ConTeXt fixes your mistake doesn't mean you should abuse it and *no* user should learn from your example. Each ConTeXt document should contain a starttext/stoptext  pair or equivalent commands

[NTG-context] Re: Inconsistent behavior: \addfontfeature and CLD local function

2023-08-20 Thread Hans Hagen
On 8/20/2023 5:33 PM, Hamid,Idris wrote: Dear gang, For \addfeature and the like, a virtual font feature defined in terms of a CLD local function behaves differently from other font features. MWE: == \startluacode local function squeeze(tfmdata) for k, v in next

[NTG-context] Inconsistent behavior: \addfontfeature and CLD local function

2023-08-20 Thread Hamid,Idris
Dear gang, For \addfeature and the like, a virtual font feature defined in terms of a CLD local function behaves differently from other font features. MWE: == \startluacode local function squeeze(tfmdata) for k, v in next, tfmdata.characters do v.width = 1.75 * (v.height

[NTG-context] backend not forcing 1000 width units on fonts; em size must be applied or else fails

2023-08-20 Thread Carlos
would be taken care of by the backend, but by the looks of it, it didn't. Anyhow. Thank you for your time Mikael, Wolfgang. you too Hans. -- Seems a computer engineer, a systems analyst, and a programmer were driving down a mountain when the brakes gave out. They screamed down the mountain, g

[NTG-context] Re: Applying \sc for smallcaps across styles

2023-08-19 Thread Hamid,Idris
University Fort Collins, CO 80523 On Aug 19, 2023, 1:14 PM -0600, Hamid,Idris , wrote: On Aug 19, 2023, 1:01 PM -0600, Wolfgang Schuster , wrote: ** Caution: EXTERNAL Sender ** Hamid,Idris schrieb am 19.08.2023 um 20:36: Many thanks. From font-pre.mkiv: \definealternativestyle [\v!smallcaps

[NTG-context] Re: Applying \sc for smallcaps across styles

2023-08-19 Thread Hamid,Idris
On Aug 19, 2023, 1:01 PM -0600, Wolfgang Schuster , wrote: ** Caution: EXTERNAL Sender ** Hamid,Idris schrieb am 19.08.2023 um 20:36: Many thanks. From font-pre.mkiv: \definealternativestyle [\v!smallcaps] [\setsmallcaps] [\setsmallcaps] : \unexpanded\def\setsmallcaps{\doaddfeature{f:smallcaps

[NTG-context] Re: Applying \sc for smallcaps across styles

2023-08-19 Thread Wolfgang Schuster
Hamid,Idris schrieb am 19.08.2023 um 20:36: Many thanks. From font-pre.mkiv: \definealternativestyle [\v!smallcaps] [\setsmallcaps] [\setsmallcaps] : \unexpanded\def\setsmallcaps{\doaddfeature{f:smallcaps}} So on the wiki we should say that \sc is a deprecated/legacy command that no longer

[NTG-context] Re: Applying \sc for smallcaps across styles

2023-08-19 Thread Hamid,Idris
Many thanks. From font-pre.mkiv: \definealternativestyle [\v!smallcaps] [\setsmallcaps] [\setsmallcaps] : \unexpanded\def\setsmallcaps{\doaddfeature{f:smallcaps}} So on the wiki we should say that \sc is a deprecated/legacy command that no longer makes sense in an opentype-features world. New

[NTG-context] Re: Applying \sc for smallcaps across styles

2023-08-19 Thread Wolfgang Schuster
-BoldIt]  % [features=myfont-it] \stoptypescript As is well known, \sc selects the small caps only from the Serif font, not from SerifBold etc. But MyFont has smallcaps for every style. So in the typescript we make that explicit and apply the smcp=yes fontfeature to SerifCapsBold etc

[NTG-context] Applying \sc for smallcaps across styles

2023-08-19 Thread Hamid,Idris
-it] \stoptypescript As is well known, \sc selects the small caps only from the Serif font, not from SerifBold etc. But MyFont has smallcaps for every style. So in the typescript we make that explicit and apply the smcp=yes fontfeature to SerifCapsBold etc. But this does not work: \sc still only

[NTG-context] Re: An error which is not in .log file

2023-08-19 Thread Xavier B.
Thanks to all to help me through migration from MKIV to LMTX version. Now my document compiles perfectly. Xavier On Wed, 16 Aug 2023 17:02:53 +0200 Wolfgang Schuster ha escrit: > Xavier B. schrieb am 16.08.2023 um 09:15: > > Mmmm thanks. > > How can I pas

[NTG-context] unsubscribe

2023-08-18 Thread Thomas Floeren via ntg-context
, especifically for that use case, wwould >>> throw anything, particularly control sequences such as \TeX\ out >>> of whack, and conversely, once a value of that very pt or pica or >>> whatever is lowered, it brings that nonfrenchspacing right back on. >>> And if width incremen

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-18 Thread Carlos
es such as \TeX\ out > > > of whack, and conversely, once a value of that very pt or pica or > > > whatever is lowered, it brings that nonfrenchspacing right back on. > > > And if width increments occur, then it follows that any control sequence > > > kerning &

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-18 Thread Carlos
ing. That is how the paragraph > builder works (and really, why it often looks good). > > > > > It seems so far, that with lmtx, any standalone file, document, minimal > > working example that does not load cmr at the outset does not produce > > an ac

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-18 Thread Carlos
lows that any control sequence > > kerning > > also gets thrown off as a result. > > Of course the width influences the spacing. That is how the paragraph > builder works (and really, why it often looks good). > > > > > It seems so far, that with lmtx, a

[NTG-context] Re: Experiments with \doloopoverlist

2023-08-18 Thread Andres Conrado Montoya
rientation, an intense dissatisfaction with the state of the world, and a compulsion to do something about it. From out there on the moon, international politics look so petty. You want to grab a politician by the scruff of the neck and drag him a quarter of a million miles out and say, ‘Look at tha

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-18 Thread Mikael Sundqvist
t; > It seems so far, that with lmtx, any standalone file, document, minimal > working example that does not load cmr at the outset does not produce > an acceptable outcome either. By saying acceptable I meant to say it > namely from a typographical point of view. Nothing else. I have no clue of

[NTG-context] Some very simple cld - loading a module

2023-08-18 Thread Hamid,Idris
ror is that the module is not being loaded. Toggling back to context syntax, of course, works. Reference: ConTeXt Lua Documents by Hans Hagen, page 22. The following analogous code works: \startluacode context.startchapter{first} \stopluacode So how do we properly load the module from within a luac

[NTG-context] Re: breakpoints in verbatim text

2023-08-18 Thread Hans Hagen
On 8/18/2023 1:02 PM, Wolfgang Schuster wrote: Alex Leray schrieb am 18.08.2023 um 12:19: Hello Wolfgang, Le 17/08/23 à 18:56, Wolfgang Schuster a écrit : Is it correct all your listing are HTML code and you need line breaks for the entries of the href attributes? The content is from

[NTG-context] redefine space to be the same as \␣ similar to knuthian approach

2023-08-18 Thread Carlos
it namely from a typographical point of view. Nothing else. from the TeXbook 380-381 «\obeylines doesn’t say ‘\def^^M{\par}’, so we must make any desired changes to \par before invoking \obeylines. (2) The \uncatcodespecials operation changes a space to category 12; but the \tt font has

[NTG-context] Re: Experiments with \doloopoverlist

2023-08-17 Thread Andres Conrado Montoya
ple orientation, an intense dissatisfaction with the state of the world, and a compulsion to do something about it. From out there on the moon, international politics look so petty. You want to grab a politician by the scruff of the neck and drag him a quarter of a million miles out and say, ‘L

[NTG-context] Re: new upload

2023-08-17 Thread Pablo Rodriguez
s for adding that to the lowlevel manual. Just in case this might help anyone, I always see what is new in latest release by comparing the backup from previous latest with current latest (in my case "meld context .backup-context/date_context/"). I think the best way is to copy from s

<    2   3   4   5   6   7   8   9   10   11   >