This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] texi2pod quote translation
- From: Bob Wilson <bwilson at tensilica dot com>
- To: binutils at sources dot redhat dot com
- Date: Wed, 5 Oct 2005 16:13:28 -0700
- Subject: [PATCH] texi2pod quote translation
I noticed that some of the binutils man pages have strange quotes in
them. For some reason, every single quote or back quote character in
the texinfo file appears with a space before it in the man page.
Worse, the texinfo convention of using two single quotes or two back
quotes is not recognized and translated to use double quote
characters. For example, if the texinfo file has ``name'', the man
page will show ` `name ' ' instead of "name". You can see examples
of this in most of the binutils man pages, e.g., the reference to the
FDL in the COPYRIGHT section.
I took a quick look at the etc/texi2pod.pl script and came up with
this patch to fix the translation to double quotes. I don't know
what's causing the extra spaces characters before quotes.
Just for the record, there is a similar problem with dashes. The
texinfo conventions for en-dashes (two hyphens) and em-dashes (three
hyphens) are not translated in the man pages as they are in the info
files. This is harder to fix because it's quite likely that double
dashes will appear in sample input, code, examples, etc. and they
should not be translated in those contexts.
Anyway, is this patch OK?
etc/ChangeLog entry:
2005-10-04 Bob Wilson <bob.wilson@acm.org>
* texi2pod.pl: Convert two single quotes or two backquotes to
double quotes.
Attachment:
texi2pod-quotes.diff
Description: Binary data