Mathias Bauer pisze:
Hi Marcin,

Marcin Miłkowski wrote:

Well, as I'm developing LanguageTool, I know too well that this is not
so trivial - as we painfully found out :( You would have to traverse the
whole document (including tables and footnotes) to find the text - we
didn't find a proper way to do it and were happy to abandon this as soon
as new API was available.
The new "Proof reading" in OOo uses a new API that provides the whole
document in so called "flat paragraphs". It works on Writer documents
only but perhaps is exactly the API you might need for your traversing.

Yes, I didn't think of using the *new* API for counting words. With new API, it's trivially simple, as the new API is quite good :)

Regards
Marcin

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to