[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Lout to HTML
From: |
Valeriy E. Ushakov |
Subject: |
Re: Lout to HTML |
Date: |
Thu, 14 Nov 1996 09:31:09 +0300 (MSK) |
On Wed, 13 Nov 1996, David Middleton wrote:
> Has anyone got an SGML solution that is actually usable for a wide
> range of tasks?
IMHO, an interesting and promising thing to investigate is SGMLSpm
package:
> Welcome to SGMLS.pm, an extensible perl5 class library for processing
> the output from the sgmls and nsgmls parsers. SGMLS.pm is free,
> copyrighted software available by anonymous ftp in the directory
> ftp://aix1.uottawa.ca/pub/dmeggins/.
It's also available at CPAN in /modules/by-module/SGMLS
Out of box, it converts a subset of docbook to html and latex. Adding
lout and whatever DTD you have interest in should be easy. Also perl5
is somewhat more widespread than scheme (let's face it, i love scheme,
but it's in perl that i write most of my code)
An example from DOC/tolatex.pl
sgml('<ARTICLE>', "\\documentstyle[11pt]{article}\n\n" .
"\\setlength{\\parskip}{3ex}\n" .
"\\raggedright\n\n");
sgml('</ARTICLE>', "\\end{document}\n");
Well, change this to
sgml ('<ARTICLE>', <<'END_OF_CODE');
@SysInclude { report }
@Report
END_OF_CODE
sgml ('</ARTICLE>', '');
and so on in the similar way.
Best regards!
SY, Uwe.
--------
address@hidden | Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen