Вопрос

I have two options to use hunspell from java:

  • Hunspell JNA or
  • Hunspell BridJ

Both of them works fine, but I would like to use the "personal dictionary" feature of hunspell (when calling hunspell from command line, the -p parameter).

Is there a way to use Hunspell JNA or BridJ with this parameter, or with the same funcionality?

Это было полезно?

Решение

Well, by looing at the C++ source of Hunspell, I finally figured it out; the Hunspell library doesn't use personal dictionaries - only the Hunspell CLI (Command Line Interface) uses it, so there is no way (unless you write your own custom code) to use it from JNA or BridJ.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top