groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] Critique this bold-italic private macro for man pages


From: Ingo Schwarze
Subject: Re: [Groff] Critique this bold-italic private macro for man pages
Date: Thu, 4 May 2017 01:04:48 +0200
User-agent: Mutt/1.6.2 (2016-07-01)

Hi Branden,

> .ie c \(lq .ds `` \(lq
> .el        .ds `` ``
> .ie c \(rq .ds '' \(rq
> .el        .ds '' ''
> 
> What do you think?

If doesn't work:

 $ uname -a
SunOS unstable11s 5.11 11.2 sun4u sparc SUNW,SPARC-Enterprise
 $ cat tmp.roff
.ie c \(lq .ds `` \(lq
.el        .ds `` ``
.ie c \(rq .ds '' \(rq
.el        .ds '' ''
>>>\*(``hello world!\*(''<<<
 $ nroff tmp.roff
>>>hello world!<<<
 $ troff tmp.roff | /usr/lib/lp/postscript/dpost | sed -n '/>>>/,/<<</p'
(>>>)720 120 w
10 R f
(hello world!)1 499 1 888 120 t
10 S1 f
(<<<)1387 120 w

 $ nroff
>>> 
.ie c \(mi defined
.el undefined
<<<
^D
>>> <<<
 $ echo '>>>\(lqhello world!\(rq<<<' | nroff
>>>hello world!<<<

There are real-world systems (sold today) where neither \(lq
nor the 'c' conditional is supported.  And yes, that kind
of nroff may be used for manual page display by default:

 $ strings `which man` | grep roff
/usr/lib/sgml/sgml2roff
troff
lp -c -T troff
nroff -u0 -Tlp

Yours,
  Ingo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]