|
From: | arthur miller |
Subject: | RE: A question about spellchecker |
Date: | Tue, 8 Apr 2014 18:50:34 +0200 |
> Date: Tue, 8 Apr 2014 18:21:32 +0200 > From: address@hidden > To: address@hidden; address@hidden > Subject: Re: A question about spellchecker > > 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 Thanks for repaly and for information; I didn't know that Emacs 24 is updated to find spellcheckers and configure settings on its own. Unfortunately it does not work for me. If I remove that list I get following error: " Starting new Ispell process hunspell with en_US dictionary... ispell-get-decoded-string: No data for dictionary "en_US", neither in `ispell-local-dictionary-alist' nor in `ispell-dictionary-alist' " However I have changed the list according to your instructions for diacritics to :alpha: and it works fine with Elis hunspell from ezwinport. thanks for help all |
[Prev in Thread] | Current Thread | [Next in Thread] |