- From: George Herson <gherson@snet.net>
- Date: Fri, 02 Aug 2002 17:06:28 -0400
- To: daniel lance herrick <dan.herrick@pbs.proquest.com>
- CC: www-amaya@w3.org
Daniel,
Thanks alot but the reason i want Amaya to do this "tangle" step for me is that
i won't be compiling the source code: My output most of the time will be .php
files, which are interpreted (or JIT compiled, http://php.net has more info if
anyone's curious). I should have mentioned that, sorry.
george
daniel lance herrick wrote:
> This is an application for a DSSSL stylesheet or
> an XSLT transformation. If you are writing
> .litprog files that conform to xhtml (or another
> doctype), and amaya intends to make only files
> that parse correctly according to the doctype,
> then either DSSSL or XSLT are the tools for using
> the markup in the source file to produce a derived
> presentation.
>
> If you write the "to-be-written program" in DSSSL
> the next step would be to add a suffix rule to
> your Makefile, something like
>
> .litprog.c :
> openjade jade -E5 -G -d to-be-written-program.dsl ${@:.c=.litprog} >${@}
>
> Then there is no need to change Amaya, the build step run by make will
> run the preprocessor (your to-be-writen-program) to extract the code
> from the .litprog file before running the c compiler to compile it.
>
> (I suspect XSLT may be a smaller thing to learn than DSSSL, but DSSSL
> is the one I've been working on because I was just handed a few
> megabytes of SGML documents.)
>
> dan
>
>
>
> On Fri, 2 Aug 2002, George Herson wrote:
>
>
>>hi,
>>
>>I'm happily using the Amaya 6.1 rpm. I haven't gotten into Amaya's guts before
>>and would prefer not to try now so I want to make sure it's necessary to
>>recompile Amaya if I want to add some functionality to its Save command.
>>
>>http://www.w3.org/Amaya/User/AmayaArchi.html#L472 talks about how to "Modify
>>existing commands" but it refers to files I don't have, such as EDITOR.A and
>>HTML.A (because I'm using the rpm version i assume).
>>
>>The Save functionality I want to add is to have Amaya save files that have a
>>special extension (.litprog) in two versions, one as is and the other as plain
>>text source code. This is to enable literate programming: The plain text source
>>code file will be created by running at Save time a small, to-be-written program
>>that can recognize the code chunks in the html document and use the output order
>>I have defined for them.
>>
>>tips?
>>
>>thanks,
>>George
>>
>
>
>
Received on Friday, 2 August 2002 17:06:43 UTC