[Top][All Lists]

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

Re: [Groff] [off] micro-typography

From: Ted Harding
Subject: Re: [Groff] [off] micro-typography
Date: Wed, 13 Feb 2002 11:45:34 -0000 (GMT)

On 13-Feb-02 Colin Watson wrote:
> On Wed, Feb 13, 2002 at 11:06:31AM +0100, Thomas Baruchel wrote:
>> Scheme suits this purpose very well, because unlike other languages,
>> Scheme can wait for scheme code and execute it in its own environment
>> (you can't do that in all languages; for instance, a C program can't
>> execute a C code it receives through a socket); I don't know if
>> perl/python can do it?
> Perl certainly can (eval), and I believe Python can too. You also don't
> have to worry about whether the co-language can handle sockets; just
> connect its stdin and stdout to the pipe/socket to troff.

On this general question: Is there any problem with getting
groff simply to open a pair of named pipes using 'mkfifo',
reading from one, writing to the other, and invoking the
user's favorite program to write to and read fromthe other ends
of the pipes?

Then standard troff/groff requests should be able to do
the communication. However, for the sort of work that we
are thinking of getting done on the external program,
there has to be, I think, better access to groff "internals".


E-Mail: (Ted Harding) <address@hidden>
Fax-to-email: +44 (0)870 167 1972
Date: 13-Feb-02                                       Time: 11:45:34
------------------------------ XFMail ------------------------------

reply via email to

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