Re: [NTG-context] dealing with footnotes and ol in XML

2015-01-11 Thread Hans Hagen
On 1/11/2015 10:01 PM, Pablo Rodriguez wrote: On 01/10/2015 02:01 PM, Hans Hagen wrote: On 1/9/2015 1:24 PM, Pablo Rodriguez wrote: [...] Footnotes that end with \par have wrong space with next footnote. I don’t know whether this is intended. How could I avoid that in XML? well, more unexpec

Re: [NTG-context] dealing with footnotes and ol in XML

2015-01-11 Thread Pablo Rodriguez
On 01/10/2015 02:01 PM, Hans Hagen wrote: > On 1/9/2015 1:24 PM, Pablo Rodriguez wrote: >> [...] >> Footnotes that end with \par have wrong space with next footnote. >> >> I don’t know whether this is intended. How could I avoid that in XML? > > well, more unexpected .. messing with the depth is a

Re: [NTG-context] dealing with footnotes and ol in XML

2015-01-10 Thread Hans Hagen
On 1/9/2015 1:24 PM, Pablo Rodriguez wrote: On 01/09/2015 12:29 PM, Hans Hagen wrote: [...] I'll add this: \startluacode local gsub = string.gsub function xml.expressions.idstring(str) return type(str) == "string" and gsub(str,"^#","") or "" end \stopluacode \startx

Re: [NTG-context] dealing with footnotes and ol in XML

2015-01-09 Thread Pablo Rodriguez
On 01/09/2015 12:29 PM, Hans Hagen wrote: > [...] > I'll add this: > > \startluacode > local gsub = string.gsub > function xml.expressions.idstring(str) > return type(str) == "string" and gsub(str,"^#","") or "" > end > \stopluacode > > \startxmlsetups xml:footnote:ref >

Re: [NTG-context] dealing with footnotes and ol in XML

2015-01-09 Thread Hans Hagen
On 1/9/2015 12:18 PM, Hans Hagen wrote: \startxmlsetups xml:footnote:ref \xmlfilter{main}{div[@class='footnotes']/ol/li[@id=string.sub('\xmlatt{#1}{href}',2)]/command(xml:footnote:set)} \stopxmlsetups I'll add this: \startluacode local gsub = string.gsub function xml.expressions.idstr

Re: [NTG-context] dealing with footnotes and ol in XML

2015-01-09 Thread Hans Hagen
On 1/9/2015 11:41 AM, Pablo Rodriguez wrote: Dear list, I have the following sample: \startbuffer[demo] This is the first paragraph. first item second item text with footnote1 text with another footnote2 footn

[NTG-context] dealing with footnotes and ol in XML

2015-01-09 Thread Pablo Rodriguez
Dear list, I have the following sample: \startbuffer[demo] This is the first paragraph. first item second item text with footnote1 text with another footnote2 footnote text In two paragraphs↩ footn