Werner LEMBERG <[EMAIL PROTECTED]> さんは書きました:
> A better temporary solution is to add the following to man.local:
>
> .if '\*[.T]'utf8' \
> . char \- \N'45'
>
> At least SuSE and Debian are already doing this.
I extended it a little bit shortly after the release of SuSE Linux 8.1:
.if '\*[.T]'utf8' \{\
. char \- \N'45'
. char - \N'45'
.\}
because I found quite a few man pages which used just "-o" to write
command line options of programs not "\-o", for example the man page
of "less" does this. Without that hack, groff translates "-" into
yet another variant of "-": U+2010 (HYPHEN).
Recently I discovered that
opendir(DIR, $some_dir) || die "can't opendir $some_dir: $!";
written like that in the nroff source of the perlfunc(1) man page also
gets rendered strangely for the terminal by groff.
The apostrophe in can't becomes U+2019 (RIGHT SINGLE QUOTATION MARK).
Shouldn't that remain U+0027 (APOSTROPHE)?
And even worse, the U+007C (VERTICAL LINE) in || becomes
U+2502 (BOX DRAWINGS LIGHT VERTICAL).
I think that should be typeset verbatim, because it is intended as
verbatim quote of program text.
--
Mike Fabian <[EMAIL PROTECTED]> http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。
--
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/