From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: A question about spellchecker Date: Tue, 08 Apr 2014 19:39:41 +0300 Message-ID: <83vbuj6aia.fsf@gnu.org> References: <53438625.6090406@dancol.org> <5343C8BE.206@dancol.org> <5343CE2A.7050900@dancol.org> <837g6z7s42.fsf@gnu.org> <20140408162132.GA4694@agmartin.aq.upm.es> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1396975220 4975 80.91.229.3 (8 Apr 2014 16:40:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Apr 2014 16:40:20 +0000 (UTC) Cc: arthur.miller@live.com, emacs-devel@gnu.org To: Agustin Martin Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 08 18:40:13 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WXZ4C-0000cy-Bk for ged-emacs-devel@m.gmane.org; Tue, 08 Apr 2014 18:40:08 +0200 Original-Received: from localhost ([::1]:41934 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXZ4C-0007d9-0I for ged-emacs-devel@m.gmane.org; Tue, 08 Apr 2014 12:40:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXZ41-0007a6-V7 for emacs-devel@gnu.org; Tue, 08 Apr 2014 12:40:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WXZ3v-0007sJ-N8 for emacs-devel@gnu.org; Tue, 08 Apr 2014 12:39:57 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:52556) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXZ3t-0007s1-U5 for emacs-devel@gnu.org; Tue, 08 Apr 2014 12:39:51 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0N3Q00I000ODFY00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Tue, 08 Apr 2014 19:39:48 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N3Q00HQM0YCS2B0@a-mtaout22.012.net.il>; Tue, 08 Apr 2014 19:39:48 +0300 (IDT) In-reply-to: <20140408162132.GA4694@agmartin.aq.upm.es> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:171348 Archived-At: > Date: Tue, 8 Apr 2014 18:21:32 +0200 > From: Agustin Martin >=20 > > (add-to-list 'ispell-dictionary-alist '(("svenska" > > "[A-Z=C3=96=C3=84=C3=85a-z=C3=B6=C3=A4= =C3=A5]" > > "[^A-Z=C3=96=C3=84=C3=85a-z=C3=B6=C3=A4= =C3=A5]" > > "[']" > > nil > > ("-d" "sv_SE") > > t > > utf-8) > > ("svenska8" > > "[A-Z=C3=96=C3=84=C3=85a-z=C3=B6=C3=A4= =C3=A5]" > > "[^A-Z=C3=96=C3=84=C3=85a-z=C3=B6=C3=A4= =C3=A5]" > > "[']" > > nil > > ("-B" "-d" "sv_SE") > > t > > utf-8) > > ("english" > > "[[:alpha:]]" > > "[^[:alpha:]]" > > "[']" > > t > > ("-d" "en_US") > > nil > > utf-8))) > >=20 >=20 > You should not need this at all. emacs24 should auto-detect availab= le > hunspell dictionaries and offer them as possible choices when calli= ng > `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).=20 The Windows binary from ezwinports doesn't yet comply with the semantics of the -D switch that is required for what you describe. I will probably fix that some time soon. > I'd also doucle-check encoding for above diacritics, making sure th= ey are > UTF-8 encoded as you declare them (but better use [:alpha:] as prop= osed > above). I don't think the encoding matters, Hunspell will convert as required= .