This is the mail archive of the
docbook-tools-discuss@sourceware.cygnus.com
mailing list for the docbook-tools project.
Re: --parser and --nochunks are available
* Eric Bischoff <ebisch@cybercable.tm.fr> wrote:
> Jochem Huhmann wrote:
> >
> > * Jorge Godoy <godoy@conectiva.com.br> wrote:
> > > We can write the man page in docbook... It has support on that. ;-)
> >
> > Has anyone tried docbbook2man (which produces man-pages from REFENTRY
> > elements)? http://shell.ipoline.com/~elmert/comp/docbook2X/
>
> No, but db2man can become part of the docbook-utils ;-)
>
> I've been writing the man page for the docbook-utils and try
> to use docbook2man with it.
>
> By the way, another feature I could add to the db2* scripts
> would be an option to call collateindex.pl. Has someone
> already played with a docbook index and this tool ?
Not yet. But shouldn't be there some framework for such things in a more
generalized way?
SGMLTools calls these "backends". So "-b html" converts to HTML, "-b ps"
to Postscript, "-b txt" to plain text (via --nochunks and then stripping
the HTML away with "lynx --dump")...
It would be the most flexible approach to make such backends
pluggable. If called with a not builtin backend (say "-b foo") the
script could look if there is a file "/etc/sgml/backends/foo.sh" and
just source it. From this sh-snippet one would have comfortable access
to all parsed commandline arguments and such, so that a new wrapper
around db2man or collateindex.pl (or docbook2latex, or whatever) could
be written in a few lines and simply thrown in.
[I've cc'ed this to the new list]
Jochem
--
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!