On Thu, Dec 19, 2002 at 05:26:07PM +0100, Daniel Naber wrote:
> Could you tell me more about that? I'm probably going to work on that for 
> my personal use

This area of LyX is a "strictly no fun" area...

> (i.e. independent of the feature freeze), but I need more than just a
> spell checker: I need to contact a server via socket and feed it at least
> the current sentence or better the current paragraph. This server will
> then not only find spelling errors but also other errors that can be
> defined in the server's configuration file.

One would have to hook into the handler for LFUN_SELFINSERT (src/text3.C,
line 1500+) and cut the "last" word or sentence from cursor position
backward.

> One problem is that a very fast response cannot be guaranteed, i.e. the 
> socket stuff needs to be non-blocking and I'm not sure how that's going to 
> work (Qt offers a notification via signal, though).

That's not nice, but I'd guess this could be done by providing a new
'LFUN_GRAMMARCHECKER_FEEDBACK' and do all the communication using the
lyxserver. If you want that asynchronous it will probably getting messy...

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)

Reply via email to