help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[h-e-w] Aspell issue with latex files


From: Angelo Graziosi
Subject: [h-e-w] Aspell issue with latex files
Date: Thu, 27 Apr 2017 17:24:02 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1

The following occurs on Windows 10 (CU) and MSYS2/MinGW64.

Try to flyspell a LaTeX file, I discovered that Aspell crashes and Emacs (master, April 26, 7a4851e11b) becomes unresponsive (I have to use "task manager", in the old terminology, to kill it).

Aspell is installed via the MSYS2/MINGW64 package mingw-w64-x86_64-aspell 0.60.7.20131207-3 (+mingw-w64-x86_64-aspell-en 7.1-1). The test LaTeX file is

$ cat test.tex
%%
%%
%%

\caption{5\% \label{_fred}}
\autoref{alice} envolope

%%

which I have found on the Emacs bug list, and in the init.el file I have

[...]
(setq desktop-locals-to-save
      (cons 'ispell-local-dictionary desktop-locals-to-save))

(setq ispell-program-name "C:/msys64/mingw64/bin/aspell")
[...]


I flagged the issue to MSYS2 people (https://sourceforge.net/p/msys2/mailman/message/35808313). While waiting for an answer, I tried to use Hunspell installing the packages mingw-w64-x86_64-hunspell 1.6.0-1, mingw-w64-x86_64-hunspell-en 2016.11.20-2. Then changed the init.el file

(setq ispell-program-name "C:/msys64/mingw64/bin/hunspell")

Now, when I try M-x flyspell-mode, I get, in the minibuffer

Error enabling the Flyspell mode:
(stringp nil)

Notice that here

(getenv "LANG")

prints "ITA" while (from MINGW64 shell):

$ echo $LANG
it_IT.UTF-8

$ hunspell.exe -D
SEARCH PATH:
.;C:/msys64/mingw64/bin/;/mingw64/share/hunspell:/mingw64/share/myspell:/mingw64/share/myspell/dicts;%USERPROFILE%\/Application Data/OpenOffice.org 2/user/wordbookC:/msys64/mingw64/share/dict/ooo
AVAILABLE DICTIONARIES (path is not mandatory for -d option):
Can't open affix or dictionary files for dictionary named "it_IT".

I don't know whet to find and how to install an italian dictionary..

Any idea about how to get hunspell working (at least with english)?


TIA,
 Angelo.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]