groff
[Top][All Lists]
Advanced

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

Re: [Groff] soelim and file names defined in string registers


From: Tadziu Hoffmann
Subject: Re: [Groff] soelim and file names defined in string registers
Date: Fri, 18 Aug 2006 21:29:44 +0200
User-agent: Mutt/1.5.11

> I have sometimes (slightly mad idea ... ) considered (at
> least experimentally) re-writing relevant macros such as
> ".PS/.PE", ".TS/.TE", ".EQ/.EN" so that they automatically
> write out what occurs between the start and end to a file,
> run the appropriate "preprocessor" program on the file,
> and read the output back in (on the lines of the work-round
> I described). In this way, the "preprocessor" aspect would
> disappear and in effect 'troff' would process each such
> block of special code as if it had the resource built-in
> to itself (albeit in fact forking an external program to
> do the job).

Might be a useful method in some cases, but unfortunately it
also has a drawback, namely that the "pre"-processor is run
(independently) multiple times and therefore will not remember
stuff from previous begin/end tags.  E.g., you won't be able to
define some abbreviations in one .EQ/.EN pair and reuse them in
another.






reply via email to

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