John C. McCabe-Dansted wrote:

> I have decided to keep my grammar checker small, mostly just a wrapper
> around ChkTeX and JLanguageTool. Thus my code is likely to remain small
> enough to be included in LyX. However my prototype is easy to distribute
> separately from LyX and does not require any (re)compiling or installing.
> It would probably be best for my code to remain separate for the time
> being.

Way to go, John!

> I have changed this prototype to use the chktex error interface. I may
> need to use IPC; I know LyX-server uses named pipes. Out of TCP sockets,
> unnamed sockets, named pipes and unnamed pipes which are portable across
> the architectures LyX supports?

None of them :(

In an ideal world we would use a platform-independent abstraction to the
architecture-specific APIs. However, at the moment we don't use such a
beast.

Our named pipes code is to be found in src/lyxserver.C and is known to work
on linux (and Mac I believe). It used not to work on the DEC Alpha. It
definitely doesn't work on Windows.

Our sockets code is to be found in src/lyxsocket.C. João abstracted out the
Windows/Unix-specific stuff into the src/support library but, if I
remember correctly, the Windows version is a stub only.

Sorry I don't have time to play with this but I hope the information is
useful.

-- 
Angus

Reply via email to