[NTG-context] line numbers in margin from xml in context mkiv

2011-04-26 Thread Jon Crump
All, After being away from my project for a while I returned to find that something that worked now no longer does. I updated the minimals on my Mac and context is running as I would expect: jjc% context --version mtx-context | main context file: /Users/jjc/context/tex/texmf-context/tex/conte

[NTG-context] line numbers in margin from xml in context mkiv

2011-05-27 Thread Jon Crump
tups xml:div:arab        \setarabic{\switchtobodyfont[Arabic] \xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:div:engl        \setlatin{\switchtobodyfont[palatino, 12pt] \xmlflush{#1}} \stopxmlsetups On Wed, Apr 27, 2011 at 4:28 AM, Hans Hagen wrote: > On 27-4-2011 1:26, Jon Crump wrote: >> >

[NTG-context] marginal material in Arabic, tei/xml context mkiv

2011-06-03 Thread Jon Crump
All, Pardon for trying to boost the topic, but I still can't seem to gain control over marginal material in an Arabic section using the new typo-mar.mkiv. I confess, it's quite likely that I'm just not getting something obvious. I've rotated the page to landscape to show where the marginal materi

[NTG-context] regression? 620 pages limit? (SOLVED)?

2011-11-16 Thread Jon Crump
Dear all I appear to have run up against a bug discussed last March. I'm newly running: mtx-context | main context file: /Users/jjc/context11-11/tex/texmf-context/tex/context/base/context.mkiv mtx-context | current version: 2011.11.14 16:17 with a short test file I run: cont

Re: [NTG-context] regression? 620 pages limit? (SOLVED)?

2011-11-16 Thread Jon Crump
Damn and blast, pasted the wrong copy. for the successful run on the short file I mentioned, the log reads: mtx-context | result renamed to: tmp system | total runtime: 2.839 apologies, Jon ___ If your qu

[NTG-context] current version?

2011-11-22 Thread Jon Crump
Dear all, Can someone help? By some incantation that I cannot now seem to reproduce, I was able to obtain and install: mtx-context | current version: 2011.11.14 16:17 In an attempt to update this version, I ran first-setup.sh found at http://minimals.contextgarden.net/setup/first-setup.sh

Re: [NTG-context] Use ConTeXt standalone (was: current version?)

2011-11-23 Thread Jon Crump
All, Thanks for responding, and for the link to gitorious. Hans and Mojca appear to have fixed the rsync repo and I'm back to what appears to be the current beta: 2011.11.22 16:49 Jon On Wed, Nov 23, 2011 at 1:41 AM, Florian Wobbe wrote: >>> Can anyone tell me how to get back to 2011.11.14 or

Re: [NTG-context] current version?

2011-11-23 Thread Jon Crump
Mojca, Thanks very much. Tried again this morning with success. Jon On Wed, Nov 23, 2011 at 7:46 AM, Mojca Miklavec wrote: > On Wed, Nov 23, 2011 at 00:37, Jon Crump wrote: >> Can anyone tell me how to get back to 2011.11.14 or to the latest version? > > Just try to fetch again

[NTG-context] Bug report: --result switch fails in larger documents

2011-11-23 Thread Jon Crump
All, Now that I've recovered my latest beta: context.mkiv 2011.11.14 16:17 (thanks Mojca, Hans) I can confirm that the bug still exists as described: On a short test file: context --environment=arabtestI.tex --result=tmp arab-testII.xml success: mtx-context | result renamed to: tmp system

[NTG-context] xml attribute conditional

2011-12-12 Thread Jon Crump
All, I have a conditional expression that checks to see if the current node has any ancestor whose xml:id attribute matches a string \xmldoifelse{#1}{ancestor::div[@xml:id='apr_engl']} What I need is a test to see if the current node has any ancestor whose xml:id attribute _contains_ a substring

Re: [NTG-context] xml attribute conditional

2011-12-13 Thread Jon Crump
Hans et alia, Thanks for helping out with the right xpath expression. That was indeed the problem: div elements in the ancestor axis that had no xml:id attribute. Unfortunately, this doesn't solve my root problem. I have a tei/xml marked up text with English and Arabic sections. For each ref tag

Re: [NTG-context] xml attribute conditional

2011-12-14 Thread Jon Crump
>> @xml:id==string.sub('#N020-18', 2) -> >>     (ll.at and ll.at['xml:id'])==string.sub('#N020-18', 2) ! Missing >> number, treated as zero. > > > lua error with sub .. not sure what you want t o test here > > indeed an error will prevent the multipass file to be saved (feature) > > > Hans Thanks

Re: [NTG-context] xml attribute conditional

2011-12-14 Thread Jon Crump
Hans, Thanks for this. It's almost what I need. I truly appreciate the effort, and it does give me some ideas about things to try. However, if I change your example buffer slightly (for clarity) to this: arab foo arab bar english eggs english ham

[NTG-context] TEI - conTeXt - pdf

2010-11-24 Thread Jon Crump
All, Having abandoned apache's FOP, I've now been trying to get my arms around XML typesetting with conTeXt with the help of Thomas's excellent tutorial at http://wiki.contextgarden.net/TEI_xml. With some difficulty I got the philostratus.xml/lorem ipsum example to work, save for errors like this

[NTG-context] seeking 'hello world' example for Arabic typesetting with conTeXt

2010-11-28 Thread Jon Crump
Dear all, I'm gradually getting my head around using ConTeXt to typeset texts marked up in TEI/XML. I'm trying to typeset an English/Arabic text and I keep breaking my teeth on the Arabic. I'm trying to do what I can with the macTeX 2010 distribution, but the documentation on the conTeXt wiki has

Re: [NTG-context] seeking 'hello world' example for Arabic typesetting with conTeXt

2010-11-29 Thread Jon Crump
Idris, Khaled, et alia, Many, many thanks! Failing to find SimpleNaskhi.ttf anywhere, I downloaded ScheherazadeRegOT.ttf from SIL. I have the font in the same directory as my tei file apr.xml; along with my ara-sty.tex file suitably edited with the font name for the \definefontsynonym commands; an

[NTG-context] TEI - conTeXt

2010-12-10 Thread Jon Crump
All, More naive questions about xml and context. I'm finding this slow going and documentation opaque or just thin on the ground. I have XML markup like this: reference term where the reference text is in reference text I need to set this as an endnote reference. Can anyone give me a hin

[NTG-context] facing-page translation

2010-12-10 Thread Jon Crump
All, More naive questions about xml and context. I'm finding this slow going and documentation opaque, or just thin on the ground. Posting as a separate question: I've trawled through the documentation for help in typesetting TEI marked-up documents as facing-page translations. What little I've

Re: [NTG-context] TEI - conTeXt

2010-12-10 Thread Jon Crump
t they would like to typeset; indeed, making public such documentation in their appropriate fora is part of the remit of our project. All at sea in Seattle, Jon On Fri, Dec 10, 2010 at 9:57 AM, Thomas Schmitz wrote: > On Thu, 9 Dec 2010 15:20:06 -0800 >  Jon Crump wrote: >> >> A

Re: [NTG-context] TEI - conTeXt

2010-12-11 Thread Jon Crump
On Fri, Dec 10, 2010 at 12:40 PM, Thomas Schmitz wrote: > processing an attribute with the 'xml:' namespace has been fixed by Hans > very recently (last weekend), so if you haven't updated to the latest beta > version, please do and try again; your syntax > \xmlsetsetup{#1}{d...@xml:id='a']} is b

[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

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 \lineNumbers{\MyNumber{\xmlat

Re: [NTG-context] Marginal line numbers

2010-12-17 Thread Jon Crump
On Thu, Dec 16, 2010 at 1:34 PM, Wolfgang Schuster 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 mo

[NTG-context] \note and \footnote

2010-12-23 Thread Jon Crump
All, Something elementary, I'm sure, that I'm not understanding. I'm trying to achieve parallel footnotes in arab/english texts, ie. each footnote in the Arabic text has a corresponding footnote in the English text. Both should point to the same footnote text. Like this:

Re: [NTG-context] \note and \footnote

2010-12-23 Thread Jon Crump
On Thu, Dec 23, 2010 at 12:36 PM, Yury G. Kudryashov wrote: > I'm not sure about expansion order. Probably \thisRefName is not expanded in > one of the commands above. Could you please attach either a minimal working > example (test.xml and test.tex that one can save and run context test), or > l

Re: [NTG-context] \note and \footnote

2010-12-23 Thread Jon Crump
On Thu, Dec 23, 2010 at 12:58 PM, Thomas A. Schmitz wrote: > > On Dec 23, 2010, at 9:47 PM, Jon Crump wrote: > >> Attached is a minimal working example, along with the pdf output I got >> running: >> context --environment=doublefoot.tex doublefoot.xml > > Why do

Re: [NTG-context] \note and \footnote

2010-12-23 Thread Jon Crump
On Thu, Dec 23, 2010 at 1:20 PM, Thomas A. Schmitz wrote: > > On Dec 23, 2010, at 10:17 PM, Jon Crump wrote: > >> My thought, ill-informed perhaps, was simply for clarity: to make it >> clear that I'm using the same value in both \note[] and \footnote[]. >> In

Re: [NTG-context] \note and \footnote

2010-12-23 Thread Jon Crump
m not getting? Jon On Thu, Dec 23, 2010 at 1:34 PM, Jon Crump wrote: > On Thu, Dec 23, 2010 at 1:20 PM, Thomas A. Schmitz > wrote: >> >> On Dec 23, 2010, at 10:17 PM, Jon Crump wrote: >> >>> My thought, ill-informed perhaps, was simply for clarity: to make it >

Re: [NTG-context] \note and \footnote

2010-12-23 Thread Jon Crump
On Thu, Dec 23, 2010 at 1:41 PM, Thomas A. Schmitz wrote: > > On Dec 23, 2010, at 10:34 PM, Jon Crump wrote: > >> mysterious: I tried that and got the same output; both for your version and >> mine > > Here's mine. Are you using the same version? > > Co

Re: [NTG-context] \note and \footnote

2010-12-23 Thread Jon Crump
On Thu, Dec 23, 2010 at 1:47 PM, Jon Crump wrote: > On Thu, Dec 23, 2010 at 1:41 PM, Thomas A. Schmitz > wrote: >> >> On Dec 23, 2010, at 10:34 PM, Jon Crump wrote: >> >>> mysterious: I tried that and got the same output; both for your version and >>>