Re: [NTG-context] Marginal line numbers

2010-12-17 Thread Jon Crump
On Thu, Dec 16, 2010 at 1:34 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 16.12.2010 um 22:28 schrieb Jon Crump: In python-speak I'd interpret context.color() as a method call on a module 'context'. Could you, or anyone, direct me to any documentation for this module and

Re: [NTG-context] Marginal line numbers

2010-12-17 Thread Thomas A. Schmitz
On Dec 16, 2010, at 10:28 PM, Jon Crump wrote: Thomas, et alia. Thanks so very much! I now have this: \startluacode function filter(s) if math.mod(s,5) == 0 then context.color( { darkred }, s ) end end \stopluacode \define[1]\MyNumber% {\ctxlua{filter(#1)}\endgraf}

Re: [NTG-context] Marginal line numbers

2010-12-17 Thread Thomas A. Schmitz
On Dec 16, 2010, at 10:28 PM, Jon Crump wrote: Thomas, et alia. Thanks so very much! I now have this: \startluacode function filter(s) if math.mod(s,5) == 0 then context.color( { darkred }, s ) end end \stopluacode \define[1]\MyNumber% {\ctxlua{filter(#1)}\endgraf}

Re: [NTG-context] Marginal line numbers

2010-12-16 Thread Jon Crump
Thomas, et alia. Thanks so very much! I now have this: \startluacode function filter(s) if math.mod(s,5) == 0 then context.color( { darkred }, s ) end end \stopluacode \define[1]\MyNumber% {\ctxlua{filter(#1)}\endgraf} \startxmlsetups xml:lb

Re: [NTG-context] Marginal line numbers

2010-12-16 Thread Wolfgang Schuster
Am 16.12.2010 um 22:28 schrieb Jon Crump: In python-speak I'd interpret context.color() as a method call on a module 'context'. Could you, or anyone, direct me to any documentation for this module and a list of the properties and methods that it supports?

Re: [NTG-context] Marginal line numbers

2010-12-15 Thread Thomas A. Schmitz
On Dec 14, 2010, at 9:33 PM, Jon Crump wrote: All, Thanks to Thomas's help, I've been making my way up the learning curve. My TEI xml has empty lb elements indicating lines in the original and corresponding lb elements in the translation. I'd like to be able to set these numbers in the

[NTG-context] Marginal line numbers

2010-12-14 Thread Jon Crump
All, Thanks to Thomas's help, I've been making my way up the learning curve. My TEI xml has empty lb elements indicating lines in the original and corresponding lb elements in the translation. I'd like to be able to set these numbers in the margin so that readers may coordinate the lineation. So