Re: [NTG-context] setuplayout vs Indesign!

2020-08-27 Thread jbf
That is very helpful, and just what I needed. Thank you Julian On 27/8/20 9:16 pm, Wolfgang Schuster wrote: Pablo Rodriguez schrieb am 26.08.2020 um 19:39: On 8/26/20 12:13 PM, jbf wrote: [...] Maybe, one of these days, someone with experience in both ConTeXt and InDesign (since InDesign is u

Re: [NTG-context] catch % in gsub("%", "\\letterpercent")

2020-08-27 Thread Pablo Rodriguez
On 8/27/20 7:35 PM, Wolfgang Schuster wrote: > [...] > You have to replace %% with \letterpercent\letterpercent because you're > still playing with TeX rules. > > \startxmlsetups xml:special >     \startitem > \cldcontext{string.gsub("\xmlraw{#1}{.}","\letterpercent\letterpercent","\\letterpercent

Re: [NTG-context] catch % in gsub("%", "\\letterpercent")

2020-08-27 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 27.08.2020 um 19:16: On 8/27/20 6:16 PM, Wolfgang Schuster wrote: Pablo Rodriguez schrieb am 27.08.2020 um 17:56: [...] \startxmlsetups xml:special \startitem \cldcontext{string.gsub([[\xmlraw{#1}{.}]], "%%", "\\letterpercent")} \stopite

[NTG-context] wrong 2TOPSIDE?

2020-08-27 Thread Pablo Rodriguez
Dear list, I have the following sample: \startmode[*first] \startbuffer[abcde] \setuppapersize[A5, landscape] \setupbodyfont[100pt] \starttext \dorecurse{158}{% \startmakeup[page][style=\bf\ss, align=center, pagestatus=start] \recu

Re: [NTG-context] catch % in gsub("%", "\\letterpercent")

2020-08-27 Thread Pablo Rodriguez
On 8/27/20 6:16 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 27.08.2020 um 17:56: >> [...] >>\startxmlsetups xml:special >> \startitem >> \cldcontext{string.gsub([[\xmlraw{#1}{.}]], "%%", >> "\\letterpercent")} >> \stopitem >>\stopxmlsetups > [...] > and

[NTG-context] Tagged PDFs from Context

2020-08-27 Thread Karl Pettersson
Hi See this discussion. https://github.com/jgm/pandoc/issues/5409#issuecomment-678781349 Would it be possible to generate PDFs with headings tagged like H1, H2, H3, H4..., instead of using the H tag for all levels, which seems to be required for proper rendering with some screenreaders? It seems

Re: [NTG-context] Wiki New Extension: ConTeXtXML

2020-08-27 Thread Taco Hoekwater
Hi again, Just now, I installed and update of the extension that replaces the default edit form for Command pages by a dedicated form. This should make editing a lot easier, since there is no longer any visible XML code to confuse you. Best wishes, Taco > On 20 Aug 2020, at 14:04, Taco Hoekwa

Re: [NTG-context] catch % in gsub("%", "\\letterpercent")

2020-08-27 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 27.08.2020 um 17:56: On 8/27/20 5:30 PM, Taco Hoekwater wrote: [...] Using Lua gsub(), I need to replace something like:  string.gsub([[\xmlraw{#1}{.}]], "%", "\\letterpercent") Double it: %% See also https://www.lua.org/manual/5.3/manual.html#6.4.1 , but the ment

Re: [NTG-context] catch % in gsub("%", "\\letterpercent")

2020-08-27 Thread Pablo Rodriguez
On 8/27/20 5:30 PM, Taco Hoekwater wrote: >> [...] >> Using Lua gsub(), I need to replace something like: >> >>  string.gsub([[\xmlraw{#1}{.}]], "%", "\\letterpercent") > > Double it: %% > > See also https://www.lua.org/manual/5.3/manual.html#6.4.1 , but the > mention of %% is a bit hidden. Many t

Re: [NTG-context] catch % in gsub("%", "\\letterpercent")

2020-08-27 Thread Hans van der Meer
In Lua patterns % is a socalled magic character like ^$ etc. These are esacped with a %. Thus %% is what you need in the first string. dr. Hans van der Meer > On 27 Aug 2020, at 17:11, Pablo Rodriguez wrote: > > Dear list, > > I have and \xmlraw command that gives some text with percent signs

Re: [NTG-context] catch % in gsub("%", "\\letterpercent")

2020-08-27 Thread Taco Hoekwater
Hi, > On 27 Aug 2020, at 17:11, Pablo Rodriguez wrote: > > Dear list, > > I have and \xmlraw command that gives some text with percent signs. > ConTeXt parses them as comments (so no output). > > Using Lua gsub(), I need to replace something like: > > string.gsub([[\xmlraw{#1}{.}]], "%", "\

[NTG-context] catch % in gsub("%", "\\letterpercent")

2020-08-27 Thread Pablo Rodriguez
Dear list, I have and \xmlraw command that gives some text with percent signs. ConTeXt parses them as comments (so no output). Using Lua gsub(), I need to replace something like: string.gsub([[\xmlraw{#1}{.}]], "%", "\\letterpercent") How do I need to invoke % to get the character found? Man

Re: [NTG-context] setuplayout vs Indesign!

2020-08-27 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 26.08.2020 um 19:39: On 8/26/20 12:13 PM, jbf wrote: [...] Maybe, one of these days, someone with experience in both ConTeXt and InDesign (since InDesign is used by very many commercial publishers, but I am trying to convince one of them of the value of ConTeXt) could

Re: [NTG-context] setuplayout vs Indesign!

2020-08-27 Thread Henning Hraban Ramm
> Am 26.08.2020 um 12:13 schrieb jbf : > > Thank you. Let's see if the Quality Control person is convinced by what she > gets with the suggested measurements. > > I usually set things up 'as if' they would be on A4, in this case, > \setuppapersize[ACN][A4] (ACN being the name I give to the 14