unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Olaf <noreplay@inder.net>
To: help-gnu-emacs@gnu.org
Subject: Re: emacs Win32 and (hun)spell path configuration
Date: Wed, 19 Aug 2009 12:46:09 +0200	[thread overview]
Message-ID: <h6gl5i$1e1$1@fuerst.cs.uni-magdeburg.de> (raw)
In-Reply-To: <h6gk0b$155$1@fuerst.cs.uni-magdeburg.de>

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	other threads:[~2009-08-19 10:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-19 10:26 emacs Win32 and (hun)spell path configuration Olaf
2009-08-19 10:46 ` Olaf [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='h6gl5i$1e1$1@fuerst.cs.uni-magdeburg.de' \
    --to=noreplay@inder.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).