From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jochem Huhmann To: docbook-tools-discuss@sourceware.cygnus.com Cc: docbook-tools@bazar.conectiva.com.br Subject: Re: --parser and --nochunks are available Date: Wed, 27 Dec 2000 06:36:00 -0000 Message-id: References: <00022612310000.03037@localhost.localdomain> <00022823241302.01946@localhost.localdomain> <38BC0BF9.1E8F29B8@cybercable.tm.fr> <00022920513400.00904@localhost.localdomain> <20000229121744.J15571@conectiva.com.br> <38BD2E8F.A3A3F14@cybercable.tm.fr> X-SW-Source: 2000/msg00123.html * Eric Bischoff wrote: > Jochem Huhmann wrote: > > > > * Jorge Godoy 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!