Hello,
is there a way (except \N'45') to output an ASCII dash (0x2d) with nroff in an
UTF-8 locale (i.e. without -T or with -Tutf8)?
I want to copy command lines from nroff output into a xterm, but the shell
complains about the '-' which is not 0x2d.
E.g. mandoc(1) does output 0x2d for '\-'
On Fri 23 Jan 2015 08:39:20 Anthony J. Bentley
wrote:
Heirloom troff and groff both render \- as en dash,
not minus sign,
in PDF output.
If you use groff's native pdf driver (-Tpdf) I believe
minus is rendered, can be searched for and
copy/pasted. The postscript driver also outputs a
minus
Deri James d...@chuzzlewit.myzen.co.uk wrote:
If you use groff's native pdf driver (-Tpdf) I believe
minus is rendered, can be searched for and
copy/pasted. The postscript driver also outputs a
minus so I suspect it is the ghostscript conversion
to pdf which is changing it.
It is ok for
Anthony J. Bentley anth...@cathet.us wrote:
I only
ever mark up command flags in -mdoc, so I just type Fl for those. I
wish Fl became ASCII '-', but we're talking about changing decades of
historical practice here.
It is ASCII (as Ingo had pointed out), isn't it? I had tested it right now
Hi Carsten,
Carsten Kunze wrote on Fri, Jan 23, 2015 at 03:59:41PM +0100:
is there a way (except \N'45') to output an ASCII dash (0x2d)
with nroff in an UTF-8 locale (i.e. without -T or with -Tutf8)?
From font/devascii/R, you see that in -Tascii mode, all of the
following glyph names map to
Hello Ingo and Anthony,
That shouldn't happen in manual pages. Both tmac/an-old.tmac
and tmac/doc.tmac contain:
.\ For UTF-8, map some characters conservatively for the sake
.\ of easy cut and paste.
.
.if '\*[.T]'utf8' \{\
. rchar \- - ' `
.
. char \- \N'45'
. char -