emacs-devel
[Top][All Lists]
Advanced

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

Re: A question about spellchecker


From: Agustin Martin
Subject: Re: A question about spellchecker
Date: Tue, 8 Apr 2014 18:21:32 +0200
User-agent: Mutt/1.5.23 (2014-03-12)

On Tue, Apr 08, 2014 at 05:39:11PM +0200, arthur miller wrote:

> > > I have found what is problem with emacs and hunspell on my computer. 
> > > It does not seem tounderstand charset och stream it gets back from 
> > > hunspell. 
> > > It can actually spell all words not containing swedish characters (öäå) 
> > > with 
> > > swedish dictionary. When pressing with right mouse I get a pop-up with 
> > > word suggestions, where all swedish characters are missinterpretted. 
> > > 
> > > If I press M-$ (spell-word) I get message
> > > 
> > > "ispell-word: Ispell and its process have different character maps" .
> (after 'ispell
>   (message "loading spellchecker")
>   (defvar *load-start* (current-time))
>   (defun anarcat/time-to-ms (time)
>     (+ (* (+ (* (car time) (expt 2 16)) (car (cdr time))) 1000000) (car (cdr 
> (cdr time)))))
> 
>   (add-to-list 'ispell-dictionary-alist '(("svenska"
>                        "[A-ZÖÄÅa-zöäå]"
>                        "[^A-ZÖÄÅa-zöäå]"
>                        "[']"
>                        nil
>                        ("-d" "sv_SE")
>                        t
>                        utf-8)
>                       ("svenska8"
>                        "[A-ZÖÄÅa-zöäå]"
>                        "[^A-ZÖÄÅa-zöäå]"
>                        "[']"
>                        nil
>                        ("-B" "-d" "sv_SE")
>                        t
>                        utf-8)
>                       ("english"
>                        "[[:alpha:]]"
>                        "[^[:alpha:]]"
>                        "[']"
>                        t
>                        ("-d" "en_US")
>                        nil
>                        utf-8)))
> 

You should not need this at all. emacs24 should auto-detect available
hunspell dictionaries and offer them as possible choices when calling
`ispell-change-dictionary', doing proper communication in UTF-8 and using
[:alpha:] as you do for english (change that in your .emacs and see what
happens). 

I'd also doucle-check encoding for above diacritics, making sure they are
UTF-8 encoded as you declare them (but better use [:alpha:] as proposed
above).

Does this problem appear if you use automatically generated entries?

-- 
Agustin



reply via email to

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