On 03/09/17 11:02, Andrew Toskin wrote:
I have not set $DICTIONARY. When testing hunspell on the command
line, I always just rain `hunspell test.txt` with no other arguments.
Renaming to ~/.hunspell_default did not fix the spell-checking in other applications.
However, strangely, it did *break* spell-checking via the hunspell CLI. `hunspell
test.txt` only works when my personal dictionary is named `~/.hunspell_en_US`.
I believe the problem may stem from the fact that each application is
using its own version of a user specified dictionary.
For example, when you use spell-check with Thunderbird and select "Add
to Dictionary" on a indicated word your selection will go into a file
~/.thunderbird/profilename/persdict.dat. And if you do the same with a
LibreOffice application it will go to
~/.config/libreoffice/4/user/wordbook/standard.dic .
You will notice that when you used "hunspell -D"
.config/libreoffice/4/user/wordbook is not included in the SEARCH PATH.
Now, what one "could" do is, taking the Thunderbird example, link
~/.thunderbird/profilename/persdict.dat with ~/.hunspell_en_US. But
that too presents a problem. While Tbird will read from the file it
won't be able to write to the file to add new words as the selinux
context won't allow for it as is.
Applications don't seem to reference ~/.hunspell_LANG
--
Fedora Users List - The place to go to get others to do the work for you