Re: grammar check: How to get TextRange of processed paragraph

2017-11-10 Thread Fred Kruse
I found a way for a workaround. Get the XFlatParagraphIterator and iterate back with getParaBefore for the automatic iteration. Use the viewcursor for manual checks. It works so far. For future development it could be interesting for both communities to work together closer, I think. For som

Re: grammar check: How to get TextRange of processed paragraph

2017-11-07 Thread Michael Stahl
On 03.11.2017 14:00, Fred Kruse wrote: > I'm working on LanguageTool an international grammar checker (java based > extension for LibreOffice). Till now the environment of a sentences is > checked only for the surrounding paragraph. But some rules need to check > the whole text. To implement suc

grammar check: How to get TextRange of processed paragraph

2017-11-03 Thread Fred Kruse
Hi, I'm working on LanguageTool an international grammar checker (java based extension for LibreOffice). Till now the environment of a sentences is checked only for the surrounding paragraph. But some rules need to check the whole text. To implement such a check I need to know which paragraph