Re: Trouble with Repeatable Arguments in cmdsynopsis
"Steve Cheng" <[email protected]> Wed, 26 Apr 2006 17:25:23 -0400
| Newsgroups | gmane.text.docbook.docbook2x.general |
|---|---|
| Message-ID | <[email protected]> |
> [mike@terrapin:43 tmp]$ cat /etc/redhat-release
> Fedora Core release 5 (Bordeaux)
> [mike@terrapin:44 tmp]$ uname -r
> 2.6.16-1.2096_FC5
> [mike@terrapin:45 tmp]$ db2x_docbook2man --version
> /usr/bin/db2x_docbook2man (part of docbook2X 0.8.6)
> $Revision: 1.11 $ $Date: 2006/03/19 19:59:08 $
> <URL:http://docbook2x.sourceforge.net/>
>
> Copyright (C) 2003-2004 Steve Cheng
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> [mike@terrapin:46 tmp]$ db2x_docbook2man --debug ls.xml
> /usr/bin/xsltproc --nonet --debug
> http://docbook2x.sf.net/latest/xslt/man/docbook.xsl ls.xml
> Unable to recognise encoding of this document at
> /usr/lib/perl5/vendor_perl/5.8.8/XML/SAX/PurePerl/EncodingDetect.pm line 96.
> Document requires an element [Ln: 1, Col: 0]
Now that's a strange error, that seemingly
doesn't even have to do with the problem of the ellipsis character ...
> [mike@terrapin:47 tmp]$ db2x_xsltproc --debug -s man -o ls.mxml ls.xml
> /usr/bin/xsltproc --nonet --debug --output ls.mxml
> http://docbook2x.sf.net/latest/xslt/man/docbook.xsl ls.xml
> [mike@terrapin:48 tmp]$ db2x_manxml ls.mxml
> /usr/bin/iconv: illegal input sequence at position 299
> /usr/bin/db2x_manxml: program in pipeline exited with an error
> [mike@terrapin:49 tmp]$
By the way, did you install docbook2X from the source package,
or distribution package (the "db2x_docbook2man" name
for the command differs from the default)?
In any case, please check the top of the db2x_manxml Perl script
(probably in /usr/bin/db2x_manxml or /usr/local/bin/db2x_manxml)
and see if it looks like this: (my copy of the script)
== cut ==
#!/usr/bin/perl
my %db2x_config =
(
'docbook2X-version' => q<0.8.8>,
# Used by db2x_manxml and db2x_texixml only
'utf8trans-program' => q</usr/local/bin/utf8trans>,
'utf8trans-map-roff' =>
q</usr/local/share/docbook2X/charmaps/roff.charmap>,
'utf8trans-map-texi' =>
q</usr/local/share/docbook2X/charmaps/texi.charmap>,
'iconv-program' => q</usr/bin/iconv>,
'makeinfo-program' => q</usr/bin/makeinfo>,
== cut ==
I'm guessing that maybe, for some reason, the path to the "utf8trans" program
in your copy of the script is not being entered here.
e.g. /usr/local/bin/utf8trans
Please also check if the 'utf8trans-map-roff' entry is there
and is correct too.
What happens, if these entries are not set, is that
db2x_manxml will then not use the utf8trans program,
which as you've seen, will lead to an error.
(In hindsight, it would have better if the script warned the user
if the configuration is not correct. I can fix that
in the next release.)
> I have also attached the input file ls.xml, the intermediate file
> ls.mxml, and the partial output file ls.1. Let me know if you need
> anything else.
Thanks, but I can convert them to man pages just fine
on my system. So that's why I suspect a docbook2X
config glitch on your side.
Anyway, as I've said, it would be very helpful if you would provide
the steps that you took in installing docbook2X, as to help me fix
a possible problem in the docbook2X build/install system. I've never
seen any reports of this problem before.
Hope this helps, and thanks again for the report,
--
Steve Cheng
鄭君博 http://gold-saucer.afraid.org
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642