Under Windows, normally none of these are installed. Hence:
hunspell-1.3.2-3-w32-bin.zip
from
https://sourceforge.net/projects/ezwinports/files/
C:/Users/username/OneDrive/myPrograms/hunspell-1.3.2-3-w32
hu
and it
but without dictionary
filesdefault.dic
and default.aff
in share/hunspell
are
copies of en_US.dic
and en_US.aff
.dic
and .aff
fileshunspell.exe
executable within the
Thunderbird installed directory structureC:\Users\username\AppData\Roaming\Thunderbird\Profiles\xxxxxxxx.default-release\extensions
de-DE@dictionaries.addons.mozilla.org.xpi
.xpi
file is a .zip
, which contains the .dic
and .aff
file
in directory dictionaries
de_DE_frami.dic
and de_DE_frami.aff
to
de_DE.dic
and de_DE.aff
and copy to
C:/Users/username/OneDrive/myPrograms/hunspell-1.3.2-3-w32/share/hunspell
for Hunspell to find the files
M-x ispell-change-dictionary <RET> DICT <RET>
or
"Tools → Change Dictionary…" (TAB completion works) has its own
system, how the languages are named
.dic
- and .aff
-filesinit.el
I need to tell Emacs where to find the spell check executable:
'(ispell-program-name "C:/Users/username/OneDrive/myPrograms/hunspell-1.3.2-3-w32/bin/hunspell.exe")
Optionally set default spelling language to British English:
'(ispell-dictionary "en_GB")
For org-mode, you might want to exclude several artefacts from spell checking
(add-to-list 'ispell-skip-region-alist '(":\\(PROPERTIES\\|LOGBOOK\\):" . ":END:")) (add-to-list 'ispell-skip-region-alist '("#\\+BEGIN_SRC" . "#\\+END_SRC")) (add-to-list 'ispell-skip-region-alist '("#\\+BEGIN_EXAMPLE" . "#\\+END_EXAMPLE"))
You might want to specify where your personal dictionary shall be stored
'(ispell-personal-dictionary "~/myspelldict")
But this did not work in my case. Specifying an absolute path did not help.
~/.hunspell-default
is documented as personal dictionary on the
Hunspell man page. When run from the cmd.exe
, indeed
~/hunspell-default
(without a leading ".") gets used as personal
dictionary file. But that does not seem to be used when Hunspell is
used from within EmacsUnder Debian Linux, both Hunspell and the dict files are available as normal installation packages. Hence you would do
apt install hunspell
which includes an en_US dictionary and e.g. further
apt install hunspell-de-de-frami apt install hunspell-en-gb apt install hunspell-fr-classical
/usr/bin/hunspell
(See dpkg -L hunspell
)/usr/share/hunspell
Also under Debian you need to tell Emacs in init.el
to use Hunspell:
'(ispell-program-name "hunspell")
The reason is that ispell
had been installed automatically in my case
and aspell
was installed as a dependency of Inkscape. The effect was
that Emacs used aspell
.
M-$
and then type ?
for
helpC-u M-$
.dic
and .aff
files e.g.
https://manpages.ubuntu.com/manpages/bionic/man5/hunspell.5.html