On 2011-05-04, at 7:11 AM, Stuart Henderson wrote:
> no takers?
>
> ----- Forwarded message from Stuart Henderson <[email protected]> -----
>
> From: Stuart Henderson <[email protected]>
> Date: Sun, 1 May 2011 13:52:31 +0100
> To: ports <[email protected]>
> User-Agent: Mutt/1.5.21 (2010-09-15)
> Subject: NEW: textproc/docbook2x
>
> ===
> docbook2X is a software package that converts DocBook documents into
> the traditional Unix man page format and the GNU Texinfo format.
>
> It is free software under a MIT-style license.
>
> Notable features include table support for man pages, internationalization
> support, and easy customization of the output using XSLT. (Easy, because
> unlike other converters, the docbook2X stylesheets are written in a modular
> way, and the character escaping and whitespace issues with the man-page and
> Texinfo formats are encapsulated away from the user.)
> ===
>
> This installs xml stuff, so it does the .spec/rebuild dance
> needed to get the files added to the system /var/db/xmlcatalog.
>
> It is a prerequisite for the seriously useful moreutils.
> If you want moreutils, you'll need to OK this first. :-)
>
>
> ===
> moreutils is a growing collection of the unix tools that nobody thought
> to write long ago when unix was young, including amongst others:
>
> lckdo: execute a program with a lock held
> mispipe: pipe two commands, returning the exit status of the first
> pee: tee standard input to pipes
> sponge: soak up standard input and write to a file
> ts: timestamp standard input
> vidir: edit a directory in your text editor
> vipe: insert a text editor into a pipe
> zrun: automatically uncompress arguments to command
> ===
>
>
>
>
> ----- End forwarded message -----
>
Installing it on amd64 -current from May 2, 2011 gave me the following in
/usr/local/bin/
-r-xr-xr-x 1 root bin 4726 May 4 12:21 sgml2xml-isoent
-r-xr-xr-x 1 root bin 3765 May 4 12:21 docbook2texi
-r-xr-xr-x 1 root bin 3764 May 4 12:21 docbook2man
-r-xr-xr-x 1 root bin 13219 May 4 12:21 db2x_xsltproc
-r-xr-xr-x 1 root bin 59653 May 4 12:21 db2x_texixml
-r-xr-xr-x 1 root bin 69256 May 4 12:21 db2x_manxml
-r-xr-xr-x 1 root bin 13048 May 4 12:21 utf8trans
I am not sure what is the right way to test this. Downloaded a sample document
from the docbook site (their docbook 5.0 howto.xml) and got the following error
$ docbook2man howto.xml
namespace warning : Namespace default prefix was not found
<phrase role='unicode yes'>YES</phrase>
^
namespace warning : Namespace default prefix was not found
<phrase role='unicode no'>NO</phrase>
^
$ db2x_xsltproc howto.xml
warning: failed to load external entity ""
cannot parse
If there is something else I should try please let me know.
Thanks,
Vijay
Vijay Sankar
[email protected]