unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: arthur miller <arthur.miller@live.com>
To: Agustin Martin <agustin.martin@hispalinux.es>
Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: RE: A question about spellchecker
Date: Tue, 8 Apr 2014 18:50:34 +0200	[thread overview]
Message-ID: <BLU183-W561AD60A2FC12F5A82FEEE966B0@phx.gbl> (raw)
In-Reply-To: <20140408162132.GA4694@agmartin.aq.upm.es>

[-- Attachment #1: Type: text/plain, Size: 3194 bytes --]



> Date: Tue, 8 Apr 2014 18:21:32 +0200
> From: agustin.martin@hispalinux.es
> To: arthur.miller@live.com; emacs-devel@gnu.org
> 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
 		 	   		  

[-- Attachment #2: Type: text/html, Size: 3934 bytes --]

  parent reply	other threads:[~2014-04-08 16:50 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-08  4:21 A question about spellchecker arthur miller
2014-04-08  5:16 ` Daniel Colascione
     [not found]   ` <BLU183-W65979B6E2198DC658D6CD4966B0@phx.gbl>
     [not found]     ` <5343C8BE.206@dancol.org>
     [not found]       ` <BLU183-W20EF6E63CF75718EECC5EE966B0@phx.gbl>
     [not found]         ` <5343CE2A.7050900@dancol.org>
2014-04-08 13:07           ` arthur miller
2014-04-08 15:34             ` Eli Zaretskii
2014-04-08 15:39               ` arthur miller
2014-04-08 16:21                 ` Agustin Martin
2014-04-08 16:39                   ` Eli Zaretskii
2014-04-09 16:27                     ` Eli Zaretskii
2014-04-09 16:59                       ` arthur miller
2014-04-09 17:27                         ` Eli Zaretskii
2014-04-09 17:32                           ` Eli Zaretskii
2014-04-08 16:50                   ` arthur miller [this message]
2014-04-08 16:34                 ` Eli Zaretskii
2014-04-08 15:11 ` Eli Zaretskii
     [not found]   ` <BLU183-W1EA36DA7237C49B9E9ECF966B0@phx.gbl>
2014-04-08 15:47     ` Eli Zaretskii
     [not found]       ` <BLU183-W50614F3A61A7E9DADB9E60966B0@phx.gbl>
2014-04-08 16:37         ` Eli Zaretskii

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=BLU183-W561AD60A2FC12F5A82FEEE966B0@phx.gbl \
    --to=arthur.miller@live.com \
    --cc=agustin.martin@hispalinux.es \
    --cc=emacs-devel@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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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