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

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

Re: [h-e-w] Can't open affix or dictionary flies


From: Oliver Jones
Subject: Re: [h-e-w] Can't open affix or dictionary flies
Date: Fri, 11 Jan 2013 17:42:07 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9

Am 11.01.2013 15:17, schrieb Eli Zaretskii:
Here's all I need to get hunspell
working with the en_US dictionary:

   (setq ispell-program-name
        (locate-file "hunspell" exec-path exec-suffixes 'file-executable-p))

   (setq
    ispell-local-dictionary-alist
      '(("en_US"
          "[[:alpha:]]"
          "[^[:alpha:]]"
          "[']" nil ("-r") nil utf-8)))

That's it!  No eval-after-load, and no direct setting of
ispell-dictionary-alist.  Try modeling your customizations along these
lines, and see if that makes the problem go away.

Now I have this in my init.el:

(setq ispell-program-name "C:\\Dokumente und Einstellungen\\ojones\\Eigene Dateien\\hunspell-mingw-1.3.2-win32\\bin\\hunspell.exe")

(setq ispell-local-dictionary-alist
   '(("en_GB"
      "[[:alpha:]]"
      "[^[:alpha:]]" "[']" nil
      ("-r") nil utf-8)))

And I got this error message (at first):
Can't open affix or dictionary files for dictionary named "DEU"

But after I played around a bit I figured out that I have to change the 
dictionary by
M-x ispell-change-dictionary
and then choosing en_GB.

It works! :-)

So I went on and added the German dictionary to my init.el:

(setq ispell-local-dictionary-alist
   '(("en_GB"
      "[[:alpha:]]"
      "[^[:alpha:]]" "[']" nil
      ("-r") nil utf-8)
     ("de_DE_frami"
      "[a-zäöüßA-ZÄÖÜ]" "[^a-zäöüßA-ZÄÖÜ]" "[']" nil
      ("-r") nil utf-8)))

I can change to the German dictionary but after checking some word (word by word, which worded fine) I got this error while checking the whole text with M-x ispell:
Ispell misalignment: word `Einf\303' point 118; probably incompatible versions

It has a Problem with the word "Einführung". I guess the "ü" is the problem.
Checking the word by M-$ I get this error message:
Ispell and its process have different character maps

Any suggestions?
You are a great help!






reply via email to

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