Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index



On Wed, 2011-11-09 at 14:04 +0200, Tor Lillqvist wrote:
Currently, LO seems to call the API for every word (or even letter) typed,
which is incredibly wasteful as grammar checking only makes sense at
sentence level.

        Heh :-) sounds like a beast. Also it's (no doubt) rather annoying for
the Java / LanguageTool use case I suspect.

I also don't really want the whole paragraph at each call;
just the last finished sentence.

        Right - an interesting concept.

But what if you have an already "finished" sentence that has existed
in the document as such for long, but then go back into it and add or
delete one character, that changes its grammatical correctness in
either direction? (For instance, change "it's" to "its".)

        Then we need to re-emit that sentence for grammar checking I imagine.
It seems do-able, we'd need to track cursor movement and typing a little
more cleverly (if we're not doing that already).

        Would you be interested in improving that in the core? and/or need some
code pointers for that ? presumably it'd enable heavier-duty, more
intelligent grammar checking with the same performance, which'd be
cool ?

        All the best,

                Michael.

-- 
michael.meeks@suse.com  <><, Pseudo Engineer, itinerant idiot


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.