Roger,
On Tue, 4 May 2010, Roger Mason wrote:
> Hello,
>
> I'd like to create a new fold type to have amrita process ConTeXt
> documents. Is there a guide somewhere?
I do have a bare-bone fold::context, but it's buried on a disk
2,000 miles away. But take a look at the examples:
amrhelp KEYSPACE
and you'll see the gist of how to add a new fold-type.
For a `real world' example, here I'm attaching the
implementation for fold::mxml and fold::as3 which I use for
generating SWF's, see AmritaUtilize.amr . They basically
levarge off fold::print to output templated text and
then they process the text in a preset fashion.
Also note as a stop gap you can do the following:
fold::print {
fold> file=mycontext.tex
fold> print fold::context []
fold::context { do something interesting
fold::context { and so on
}
}
}
fold::perl {
# no process file using texexec
}
James