Open Office Spellchecker / Java API

Can I use the Open Office spell checker outside of Open Office for other Java programs?

Walter

+4
source share
2 answers

We did just that - we used the hunspell engine from java. There is a JNA bridge that you can use to call hunspell from java. It is very nice to use - it takes care of downloading the appropriate library from the bank.

The only problem is that the bridge is not updated with the latest hunspell engine - it is in version 1.1.12, and while I was watching (last year), hunspell was in 1.2.18, which contained corrections that we need, Do not build hunspell libraries and rebuild the JNA shell using the latest hunspell engines, although this is due to cross-platform compilation. IIRC we used a window window and linux box to restore both of these platforms (cygwin on windows did not reduce it), and we do not need a version for OS X. I can let you have what we built if it is useful.

Cm

+2
source

OpenOffice just uses hunspell to check spelling - you should research it. On his homepage, the presence of two java interfaces / ports is mentioned.

+2
source

Source: https://habr.com/ru/post/1310735/


All Articles