groff
[Top][All Lists]
Advanced

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

Re: [Groff] An environment variable for enabling compatibility mode


From: Bernd Warken
Subject: Re: [Groff] An environment variable for enabling compatibility mode
Date: Thu, 31 Jan 2002 22:50:19 +0100
User-agent: Mutt/1.2.5i

On Thu, Jan 31, 2002 at 05:54:34PM +0000, address@hidden wrote:
> 
> So, in other words, you're saying you have a legacy troff document,
> along with a shell script containing commands like `pic' and `tbl' and
> you want to be able to run said script but still tell groff to be in
> compatible-mode via an environment variable.
> 
Exactly.  The troff manual of Unix 7 is a shell script `tprint' as follows:

troff   $* m.mac m0
tbl m0a | troff   $* m.mac -
tbl m[1234] | troff   $* m.mac -
troff   $* m.mac m5
troff   $* m.mac table1
troff   $* m.mac table2
troff  $* m.mac add

To call this without changing its content would be simple with an 
environment variable GROFF_COMPAT:

GROFF_COMPAT=yes GROFF_TYPESETTER=html sh tprint

Bernd Warken


reply via email to

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