This is the mail archive of the
sgml-tools@via.ecp.fr
mailing list .
Re: Problems generating man pages
- To: sdturne at us dot ibm dot com
- Subject: Re: Problems generating man pages
- From: Taketoshi Sano <kgh12351 at nifty dot ne dot jp>
- Date: 02 May 2000 13:42:55 +0900
- Cc: sgml-tools at via dot ecp dot fr
- References: <852568CE.004A517C.00@d54mta06.raleigh.ibm.com>
- Reply-To: sgml-tools at via dot ecp dot fr
Hi.
In article <852568CE.004A517C.00@d54mta06.raleigh.ibm.com>,
at Thu, 27 Apr 2000 09:31:43 -0400,
on Problems generating man pages,
sdturne@us.ibm.com writes:
> The problem I'm having is that character entities don't seem to be resolved
> correctly. For example, I have square brackets [] in my LyX source, which
> get translated to [ and ] when I export to SGML. But when I run
> "sgml2txt -m file.sgml", the resulting file.man has "[lsqb ]" and
> "[rsqb ]" instead of raw square brackets. If I just convert to regular
> text (by removing the -m option), the resulting file.txt DOES have the
> brackets translated correctly.
>
> I decided to put my finger on the problem (in spite of knowing Nothing
> about Perl) and I traced the problem to the following conditional in
> /usr/lib/sgml-tools/dist/fmt_txt.pl (near line 84):
>
> if ($txt->{manpage})
> {($txt->{manpage})nger
> copy ($infile, $outfile);
> return;
> }
>
> When this leg is taken, a bunch of TOC logic is bypassed, but code to
> replace character entities is being skipped as well. If I "comment out"
> the aforementioned lines, I get usable man page output. Does someone have
> a suggestion as to how this should be fixed? I don't feel comfortable
> enough with Perl or the logic flow of the sgmltools in general to submit a
> patch.
Can you try the patch which can be downloaded from
http://www.linux.or.jp/JF/workshop/archives/diff.sgml-tools-1.0.9.jf6.gz ?
or,
ftp://ftp.debian.org/debian/dists/frozen/main/source/text/sgml-tools_1.0.9-12.diff.gz ?
These patch includes the fixes for that problem, I think.
--
Taketoshi Sano: <sano@debian.org>,<sano@debian.or.jp>,<kgh12351@nifty.ne.jp>