unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* emacs Win32 and (hun)spell path configuration
@ 2009-08-19 10:26 Olaf
  2009-08-19 10:46 ` Olaf
  0 siblings, 1 reply; 2+ messages in thread
From: Olaf @ 2009-08-19 10:26 UTC (permalink / raw)
  To: help-gnu-emacs

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)
)

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)

How to configure it on Windows/Vista (x64) ?

Thanks,
Olaf


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: emacs Win32 and (hun)spell path configuration
  2009-08-19 10:26 emacs Win32 and (hun)spell path configuration Olaf
@ 2009-08-19 10:46 ` Olaf
  0 siblings, 0 replies; 2+ messages in thread
From: Olaf @ 2009-08-19 10:46 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-08-19 10:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-19 10:26 emacs Win32 and (hun)spell path configuration Olaf
2009-08-19 10:46 ` Olaf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).