Re: [NTG-context] Language dependency in environment-project file

2018-11-27 Thread Marco Patzer
On Tue, 27 Nov 2018 22:41:25 +0100 Wolfgang Schuster wrote: > > With named setups I need to specify a name for each occurrence and > > gather them at the end. This is not as clean. Is it possible e.g. to > > add something to an already existing setup instead of creating a new > > one every time?

Re: [NTG-context] Grammar to parse TeX input?

2018-11-27 Thread Joseph Canedo
I’ve tried context.processbuffer but I am afraid it’s not what I am after, most probably I have not phrased clearly my question. What I am looking for is roughly what’s described in Taco’s presentation https://meeting.contextgarden.net/2014/talks/2014-09-12-taco-luatex/luatextalk.pdf A way to

Re: [NTG-context] can \REGISTER[key]{term} modify typesetting (adding space)?

2018-11-27 Thread Wolfgang Schuster
Rik Kabel schrieb am 27.11.18 um 22:27: What is unexpected is that the space does not appear in the body (non-footnote) text of the second paragraph. The difference between handling in notes and in body text seems discordant. \startparagraph does *not* start a paragraph. In the two

Re: [NTG-context] Language dependency in environment-project file

2018-11-27 Thread Wolfgang Schuster
Marco Patzer schrieb am 27.11.18 um 22:23: On Tue, 27 Nov 2018 22:05:27 +0100 Wolfgang Schuster wrote: But even your solution doesn't work here. Did you try it in the example project file? \startenvironment [*] \startsetups [itemgroup:en]   \setupitemgroup [itemize] [i] \stopsetups

Re: [NTG-context] can \REGISTER[key]{term} modify typesetting (adding space)?

2018-11-27 Thread Rik Kabel
On 11/27/2018 16:12, Wolfgang Schuster wrote: The space after the register entry is only ignored when you put it before the start of a paragraph because ConTeXt saves the content and flushes it at the start of the next paragraph. When the register entry appear within in a paragraph or when TeX

Re: [NTG-context] Language dependency in environment-project file

2018-11-27 Thread Marco Patzer
On Tue, 27 Nov 2018 22:05:27 +0100 Wolfgang Schuster wrote: > > But even your solution doesn't work here. Did you try it in the > > example project file? > > \startenvironment [*] > > \startsetups [itemgroup:en] >   \setupitemgroup [itemize] [i] > \stopsetups > > \startsetups

Re: [NTG-context] can \REGISTER[key]{term} modify typesetting (adding space)?

2018-11-27 Thread Wolfgang Schuster
The space after the register entry is only ignored when you put it before the start of a paragraph because ConTeXt saves the content and flushes it at the start of the next paragraph. When the register entry appear within in a paragraph or when TeX is in horizontal mode (like in your footnote)

Re: [NTG-context] Language dependency in environment-project file

2018-11-27 Thread Wolfgang Schuster
Marco Patzer schrieb am 27.11.18 um 21:56: On Tue, 27 Nov 2018 21:41:52 +0100 Wolfgang Schuster wrote: A nudge in the right direction appreciated. \appendtoks   \mainlanguage[\documentvariable{language}]% %\doifdocumentvariable{language}{\mainlanguage[\documentvariable{language}]}% \to

Re: [NTG-context] Language dependency in environment-project file

2018-11-27 Thread Marco Patzer
On Tue, 27 Nov 2018 21:41:52 +0100 Wolfgang Schuster wrote: > > A nudge in the right direction appreciated. > > \appendtoks >   \mainlanguage[\documentvariable{language}]% > %\doifdocumentvariable{language}{\mainlanguage[\documentvariable{language}]}% > \to \everysetupdocument That's

Re: [NTG-context] \everystarttext in components

2018-11-27 Thread Wolfgang Schuster
Marco Patzer schrieb am 27.11.18 um 21:40: On Tue, 27 Nov 2018 18:42:51 +0100 Wolfgang Schuster wrote: Has that changed over the course of the last year or always been that way? This was always the case. OK, I'm wondering why I set it up that way back then. I'm sure I tested it. But I don't

Re: [NTG-context] Language dependency in environment-project file

2018-11-27 Thread Wolfgang Schuster
Marco Patzer schrieb am 27.11.18 um 21:37: Hi, I do have a project structure with environment, project and component files. The language of the individual documents is defined in the components using \setupdocument [language=sv] The environment needs to adjust language-dependent

Re: [NTG-context] \everystarttext in components

2018-11-27 Thread Marco Patzer
On Tue, 27 Nov 2018 18:42:51 +0100 Wolfgang Schuster wrote: > > Has that changed over the course of the last year or always been > > that way? > > This was always the case. OK, I'm wondering why I set it up that way back then. I'm sure I tested it. But I don't remember. > > ... it's not a

[NTG-context] Language dependency in environment-project file

2018-11-27 Thread Marco Patzer
Hi, I do have a project structure with environment, project and component files. The language of the individual documents is defined in the components using \setupdocument [language=sv] The environment needs to adjust language-dependent settings. However, when the environment file is

Re: [NTG-context] can \REGISTER[key]{term} modify typesetting (adding space)?

2018-11-27 Thread Rik Kabel
On 11/27/2018 08:43, Rik Kabel wrote: On 11/27/2018 05:38, mf wrote: In my setup, i have an index of names: \defineregister[Nome][...] The indexing of names can be toggled with a mode: --mode=AddNames The setup is something like this: \startmode[AddNames]   \Name[key]{term}\xmlflush{#1}

Re: [NTG-context] \everystarttext in components

2018-11-27 Thread Wolfgang Schuster
Marco Patzer schrieb am 27.11.18 um 18:34: On Tue, 27 Nov 2018 18:21:45 +0100 Hans Hagen wrote: MWE: \startcomponent * \appendtoks Foobar \to\everystarttext \startdocument\null\stopdocument \stopcomponent If the first and last line is commented out, it prints “Foobar”, when

Re: [NTG-context] \everystarttext in components

2018-11-27 Thread Marco Patzer
On Tue, 27 Nov 2018 18:21:45 +0100 Hans Hagen wrote: > > MWE: > > > > \startcomponent * > >\appendtoks Foobar \to\everystarttext > >\startdocument\null\stopdocument > > \stopcomponent > > > > If the first and last line is commented out, it prints “Foobar”, > > when compiled as a

Re: [NTG-context] \everystarttext in components

2018-11-27 Thread Hans Hagen
On 11/27/2018 5:59 PM, Marco Patzer wrote: Hi! I've got an issue with my documents after updating context (to 2018.11.18 14:07). I believe it has something to do with \everystarttext. But I'm still digging. Question: Is it intended behaviour that \everystarttext doesn't work in components?

Re: [NTG-context] checking sources with \input

2018-11-27 Thread Pablo Rodriguez
On 11/27/18 5:54 PM, Hans Hagen wrote: > On 11/27/2018 5:42 PM, Pablo Rodriguez wrote: >> [...] >> Besides asking for "--verbose", I know that we have the following command: >> >> mtxrunjit --autogenerate --script check file.tex >> >> But it doesn’t load source files with \input. >> >> Would

[NTG-context] \everystarttext in components

2018-11-27 Thread Marco Patzer
Hi! I've got an issue with my documents after updating context (to 2018.11.18 14:07). I believe it has something to do with \everystarttext. But I'm still digging. Question: Is it intended behaviour that \everystarttext doesn't work in components? MWE: \startcomponent * \appendtoks Foobar

Re: [NTG-context] checking sources with \input

2018-11-27 Thread Hans Hagen
On 11/27/2018 5:42 PM, Pablo Rodriguez wrote: Hans, at work, we use ConTeXt to automagically generate PDF documents merging data from CSV files. The files are generated from ca. 30 ConTeXt sources and about another 30 Windows batch files. The system works fine with LuaTeX 1.07, but it doesn’t

[NTG-context] checking sources with \input

2018-11-27 Thread Pablo Rodriguez
Hans, at work, we use ConTeXt to automagically generate PDF documents merging data from CSV files. The files are generated from ca. 30 ConTeXt sources and about another 30 Windows batch files. The system works fine with LuaTeX 1.07, but it doesn’t work either with LuaTeX 1.08 or 1.09. There is

Re: [NTG-context] optical bounds with hanging diacritics

2018-11-27 Thread Pablo Rodriguez
On 11/27/18 12:33 AM, Hans Hagen wrote: > On 11/24/2018 10:02 PM, Pablo Rodriguez wrote: >> [...] >> BTW, to get pure lfbd values, I had to replace line 361 from >> font-imp-quality lua with: >> >> local p = d/1000 > > two issues: > > - no 1000 but units > - we need to be able to go less

Re: [NTG-context] can \REGISTER[key]{term} modify typesetting (adding space)?

2018-11-27 Thread Rik Kabel
On 11/27/2018 05:38, mf wrote: In my setup, i have an index of names: \defineregister[Nome][...] The indexing of names can be toggled with a mode: --mode=AddNames The setup is something like this: \startmode[AddNames]   \Name[key]{term}\xmlflush{#1} \stopmode \startnotmode[AddNames]  

[NTG-context] can \REGISTER[key]{term} modify typesetting (adding space)?

2018-11-27 Thread mf
In my setup, i have an index of names: \defineregister[Nome][...] The indexing of names can be toggled with a mode: --mode=AddNames The setup is something like this: \startmode[AddNames] \Name[key]{term}\xmlflush{#1} \stopmode \startnotmode[AddNames] \xmlflush{#1} \stopnotmode I noticed