Open guraltsev opened 3 years ago
This is not what should be happening.
What should happen then?
The file created should be something along the lines of C:\Users\username\.hunspell_en_US
. The problem seems to be that the variable %USERPROFILE%
does not get expanded.
How can I reproduce your issue? Any way to create dummy files. Here is my output:
$ hunspell.exe -a
Can't open affix or dictionary files for dictionary named "en_US".
hunspell
, en_US
e.g. from here: sourceforge (I believe these to be the official hunspell dictionaries)C:\Users\yourusername\AppData\Roaming\Hunspell\
(this is not an official path but is the path that makes sense on Windows hunspell -d C:\Users\guraltsev\AppData\Roaming\hunspell\en_US -a
*testword
#
\mingw64\share\hunspell
under whatever path where your msys is installed hunspell -a
*testword
#
Possible related bug:
Without doing any of the above
hunspell -D
declares that one of the paths it is searching for dictionaries is:
%USERPROFILE%/Application Data/OpenOffice.org 2/user/wordbook
It seems it is not expanding the value of %USERPROFILE%
here either
Weird! In my case, /mingw64/share/hunspell
dictionary search path works but no .hunspell_en_US
file is created, neither in %USERPROFILE%
nor in $HOME
.
I do have the $HOME
environment variable set in windows to be explicitly
C:\Users\guraltsev\
Before I had it set to
%USERPROFILE
and the effect was the same.
Could you post the output of hunspell-D
on your system?
Mine gives:
SEARCH PATH:
.;C:/tools/msys64/mingw64/bin/;C:\Users\guraltsev\AppData\Roaming\hunspell\;C:/tools/msys64/mingw64/share/hunspell;C:/tools/msys64/mingw64/share/myspell;C:/tools/msys64/mingw64/share/myspell/dicts;C:/tools/msys64;%USERPROFILE%/Application Data/OpenOffice.org 2/user/wordbook;C:/tools/msys64/mingw64/share/dict/ooo;
AVAILABLE DICTIONARIES (path is not mandatory for -d option):
C:\Users\guraltsev\AppData\Roaming\hunspell\/en_AU
C:\Users\guraltsev\AppData\Roaming\hunspell\/en_CA
C:\Users\guraltsev\AppData\Roaming\hunspell\/en_GB
C:\Users\guraltsev\AppData\Roaming\hunspell\/en_US
C:\Users\guraltsev\AppData\Roaming\hunspell\/en_ZA
C:\Users\guraltsev\AppData\Roaming\hunspell\/hyph_en_GB
This is still a bug on
Hunspell 1.7.1
I have msys2 with
If I try to add a file to my personal dictionary by running:
it creates the file
%USERPROFILE%hunspell_en_US
in my home directory. This is not what should be happening.