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

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

Re: emacs Win32 and (hun)spell path configuration


From: Olaf
Subject: Re: emacs Win32 and (hun)spell path configuration
Date: Wed, 19 Aug 2009 12:46:09 +0200
User-agent: Thunderbird 2.0.0.22 (Windows/20090605)

Olaf schrieb:
> Hi,
> 
> I've installed the emacs win32 patched package from
> http://www.ourcomments.org/Emacs/EmacsW32.html and hunspell-1.2.8-win32
> binaries from sourceforge.
> 
> Following some threads on inet I added to .emacs file several versions
> for 'ispell-program-name', none of these works:
> 
> ;;http://groups.google.com/group/comp.emacs/browse_thread/thread/1daa8c36fdae1a70
> ;(setq-default ispell-program-name "hunspell")
> ;(setq-default ispell-program-name "C:\\Program Files
> (x86)\\hunspell-1.2.8-win32\\hunspell.exe")
> (setq-default ispell-program-name (quote ("C:/Program Files
> (x86)/hunspell-1.2.8-win32/hunspell.exe")))
> 
> ;(defcustom ispell-program-name
> ;     (or "C:\\Program Files (x86)\\hunspell-1.2.8-win32"
> ;       "hunspell")
> ;     (or (locate-file "C:/Program Files (x86)/hunspell-1.2.8-win32/"
> exec-path exec-suffixes 'file-executable-p)
> ;       "hunspell")
> ;     (or ("C:\\Program Files (x86)\\hunspell-1.2.8-win32\\hunspell.exe"
> 'file-executable-p)
> ;       "hunspell")
> ;     "Program invoked by \\[ispell-word] and \\[ispell-region] commands."
> ;     :type 'string
> ;     :group 'ispell)
> 
> hunspell (and probably aspell/ispell too) is found only if it is in
> windows Path environment variable which I dont' wont to set (I know the
> path!)
> 
> With the above I've get:
> ispell-check-version: Wrong type argument: stringp, ("C:/Program Files
> (x86)/hunspell-1.2.8-win32/hunspell.exe")
> 
> Anyway, the problems goes further:
> 
> ;; http://www.emacswiki.org/emacs/InteractiveSpell    
> (require 'rw-language-and-country-codes)
> (require 'rw-ispell)
> (require 'rw-hunspell)
> (setq ispell-dictionary "de_DE_frami")
> ;; The following is set via custom
> (custom-set-variables
>  '(rw-hunspell-default-dictionary "de_DE_frami")
>  '(rw-hunspell-dicpath-list (quote ("C:\\Program Files
> (x86)\\hunspell-1.2.8-win32")))
>  '(rw-hunspell-make-dictionary-menu t)
>  '(rw-hunspell-use-rw-ispell t)
> )


Well, this works:
setq-default ispell-program-name "C:/Program Files
(x86)/hunspell-1.2.8-win32/hunspell.exe")

all other versions don't.

> Even with emacs in Path the spell doesn't find the dictionaries (from
> http://wiki.services.openoffice.org/wiki/Dictionaries). On
> 'ispell-buffer' I get:
> 
> Applying style hooks... done
> Starting new Ispell process [de_DE_frami] ...
> Enabling Flyspell mode gave an error
> Toggling LaTeX-math-mode off; better pass an explicit argument.
> Starting new Ispell process [de_DE_frami] ...
> Enabling Flyspell mode gave an error
> Applying style hooks... done
> Starting new Ispell process [de_DE_frami] ...
> ispell-init-process: Can't open affix or dictionary files.
> @(#) International Ispell Version 3.2.06 (but really Hunspell 1.2.8)

It seems to be a Problem of the path to the dictionaries, from console:

C:\Program Files (x86)\hunspell-1.2.8-win32>.\hunspell.exe -d de_DE_frami
Hunspell 1.2.8
*

C:\Program Files (x86)>hunspell-1.2.8-win32\hunspell.exe -d de_DE_frami
Can't open affix or dictionary files.

C:\Program Files (x86)>hunspell-1.2.8-win32\hunspell.exe -d
hunspell-1.2.8-win32\de_DE_frami.aff
Can't open affix or dictionary files.

C:\Program Files (x86)>hunspell-1.2.8-win32\hunspell.exe -d
hunspell-1.2.8-win32\de_DE_frami
Hunspell 1.2.8

Thanks,
Olaf


reply via email to

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