I'd like to use hunspell to spell check my repo. However when I try to run it I get the following error:
Can't open affix or dictionary files for dictionary named "en_US".
How can I fix this? I'm on a Mac.
Thanks, Kevin
I'd like to use hunspell to spell check my repo. However when I try to run it I get the following error:
Can't open affix or dictionary files for dictionary named "en_US".
How can I fix this? I'm on a Mac.
Thanks, Kevin
I'm using emacs in windows using msys2. I installed following 2 packages:
pacman -S mingw-w64-x86_64-hunspell-en mingw-w64-x86_64-hunspell
The mingw-w64-x86_64-hunspell-en package install english dictionaries in /mingw64/share/hunspell, but you check if the files (en_US.dic and en_US.aff) are available or not.
Steps:
set the Environment Variable in .bashrc within mysys2. Without DICPATH it was not working for me.
export DICTIONARY=en_US
export DICPATH=/d/../msys2/ming164/share/hunspell
run hunspell.exe -D
SEARCH PATH:
.;... ;...;...
AVAILABLE DICTIONARIES (path is not mandatory for -d option):
D:/xx/mysys64/mingw64/share/hunspell/en_AG
D:/xx/mysys64/mingw64/share/hunspell/en_AU
...
Hunspell 1.6.0
I was lucky to find my language here: https://extensions.openoffice.org/en/search?query=de_CH&sort_by=field_project_stats_year&sort_order=DESC
And with the comment from @RobDavenport i was able to rename the extension and extract the files. Something i reread at this link and gave it a try. I dropped the .dic .dat and .aff into my ~/Library/Spelling/ folder.
Execute
hunspell -D
. You should get output like this:This lists the directories in which
hunspell
is searching for dictionary files, as well as the dictionaries is has found. If the dictionaryen_US
isn't listed, you haven't got that particular dictionary installed.To install a dictionary, search for it in the LibreOffice extension repository. Download it then extract the
.aff
and.dic
files to one of the locations listed byhunspell -D
. For example: