[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Getting properly rendered single quotes in groff
From: |
Ralph Corderoy |
Subject: |
Re: [Groff] Getting properly rendered single quotes in groff |
Date: |
Wed, 11 Jun 2008 12:08:05 +0100 |
Hi Ted,
> One approach might be to have a Preamble (or perhaps an auxiliary
> macro package) in the groff source document which tests \*[.T] and
> then defines various things appropriately, e.g.
>
> .char \[lq] "
>
> etc. if \*[T] is "ascii".
There's no need to do this particular .char because -Tascii uses " for
\(lq and \(rq.
$ echo '\(lq,\(rq,\(ga,\(aa,",'\'',`' | groff -Tascii | cat -s
",",`,',",',`
$ echo '\(lq,\(rq,\(ga,\(aa,",'\'',`' | groff -Tascii | cat -s | hexdump -C
00000000 22 2c 22 2c 60 2c 27 2c 22 2c 27 2c 60 0a
$ echo '\(lq,\(rq,\(ga,\(aa,",'\'',`' | groff -Tutf8 | cat -sA
address@hidden,address@hidden,`,M-BM-4,",address@hidden,address@hidden
$
With -Tascii they all get mapped onto ["'`]. It's the common
introduction of UTF-8 terminals now which gives problems with -Tutf8;
all map onto non-ASCII characters except \(ga -> ` and " -> ".
Cheers,
Ralph.
- Re: [Groff] Getting properly rendered single quotes in groff, (continued)
Re: [Groff] Getting properly rendered single quotes in groff, Ralph Corderoy, 2008/06/07
- Re: [Groff] Getting properly rendered single quotes in groff, Stuart Brady, 2008/06/10
- Re: [Groff] Getting properly rendered single quotes in groff, Ralph Corderoy, 2008/06/10
- Re: [Groff] Getting properly rendered single quotes in groff, Stuart Brady, 2008/06/10
- Re: [Groff] Getting properly rendered single quotes in groff, Ralph Corderoy, 2008/06/11
- Re: [Groff] Getting properly rendered single quotes in groff, Ralph Corderoy, 2008/06/11
- Re: [Groff] Getting properly rendered single quotes in groff, Ted Harding, 2008/06/11
- Re: [Groff] Getting properly rendered single quotes in groff,
Ralph Corderoy <=
Re: [Groff] Getting properly rendered single quotes in groff, Stuart Brady, 2008/06/12
Re: [Groff] Getting properly rendered single quotes in groff, Ralph Corderoy, 2008/06/12
Message not availableRe: [Groff] Getting properly rendered single quotes in groff, Ralph Corderoy, 2008/06/12
Re: [Groff] Getting properly rendered single quotes in groff, Stuart Brady, 2008/06/13
Re: [Groff] Getting properly rendered single quotes in groff, Werner LEMBERG, 2008/06/14
Message not availableRe: [Groff] Getting properly rendered single quotes in groff, Werner LEMBERG, 2008/06/14
Re: [Groff] Getting properly rendered single quotes in groff, Stuart Brady, 2008/06/15
Re: [Groff] Getting properly rendered single quotes in groff, Werner LEMBERG, 2008/06/15
Re: [Groff] Getting properly rendered single quotes in groff, Ralph Corderoy, 2008/06/15
Re: [Groff] Getting properly rendered single quotes in groff, Stuart Brady, 2008/06/15