From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: arthur miller Newsgroups: gmane.emacs.devel Subject: RE: A question about spellchecker Date: Wed, 9 Apr 2014 18:59:56 +0200 Message-ID: References: , <53438625.6090406@dancol.org>, , <5343C8BE.206@dancol.org>, , <5343CE2A.7050900@dancol.org>, , <837g6z7s42.fsf@gnu.org>, , <20140408162132.GA4694@agmartin.aq.upm.es> <83vbuj6aia.fsf@gnu.org>,<83bnwa5uyg.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_f4558bc6-d7a9-4043-9185-d82e2dbc05b0_" X-Trace: ger.gmane.org 1397062824 19226 80.91.229.3 (9 Apr 2014 17:00:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Apr 2014 17:00:24 +0000 (UTC) Cc: "emacs-devel@gnu.org" To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 09 19:00:17 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 1WXvrE-0000ec-87 for ged-emacs-devel@m.gmane.org; Wed, 09 Apr 2014 19:00:16 +0200 Original-Received: from localhost ([::1]:47235 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXvrD-0000XD-VP for ged-emacs-devel@m.gmane.org; Wed, 09 Apr 2014 13:00:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXvr5-0000Ma-Vx for emacs-devel@gnu.org; Wed, 09 Apr 2014 13:00:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WXvr0-00040Q-Qq for emacs-devel@gnu.org; Wed, 09 Apr 2014 13:00:07 -0400 Original-Received: from blu0-omc2-s4.blu0.hotmail.com ([65.55.111.79]:47266) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXvqv-0003v6-C1; Wed, 09 Apr 2014 12:59:57 -0400 Original-Received: from BLU183-W42 ([65.55.111.73]) by blu0-omc2-s4.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 9 Apr 2014 09:59:56 -0700 X-TMN: [8+P4hn7G4noLVDtLAn+zgrs+62ppTm3u] X-Originating-Email: [arthur.miller@live.com] Importance: Normal In-Reply-To: <83bnwa5uyg.fsf@gnu.org> X-OriginalArrivalTime: 09 Apr 2014 16:59:56.0037 (UTC) FILETIME=[221C7350:01CF5415] X-detected-operating-system: by eggs.gnu.org: Windows XP X-Received-From: 65.55.111.79 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:171372 Archived-At: --_f4558bc6-d7a9-4043-9185-d82e2dbc05b0_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > Date: Wed=2C 9 Apr 2014 19:27:51 +0300 > From: eliz@gnu.org > Subject: Re: A question about spellchecker > To: agustin.martin@hispalinux.es > CC: arthur.miller@live.com=3B emacs-devel@gnu.org >=20 > > Date: Tue=2C 08 Apr 2014 19:39:41 +0300 > > From: Eli Zaretskii > > Cc: arthur.miller@live.com=2C emacs-devel@gnu.org > >=20 > > > 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'=2C doing proper communication in UTF-8 and= using > > > [:alpha:] as you do for english (change that in your .emacs and see w= hat > > > happens).=20 > >=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. >=20 > Done. People who use Hunspell on Windows may wish to download the > latest binaries=2C and then you can remove the hacking of > ispell-dictionary-alist and ispell-local-dictionary-alist from your > .emacs. >=20 That was fast! Great work. Always cool to keep .emacs short. Now - I have one question. Is it possible to pass name of dictionary instea= d of renaming .dic and .aff files? The reason: I belieave it is much easier to instruct people how to pass nam= e of a file to Emacs=2C than how to find what locale their Emacs or system use :).=20 Furthermore=2C what if we wish to use two languages =3D=3D two dictionaries= . How to=20 specify for ispell-change-dictionary if dictionaries are not set in list. D= oes hunspell enumerate all dictionaries in folder?=20 For example there is a list of country names and codes in rw-language-and-c= ountry-codes.el. Any chance to use it and automate so users don't have to be instructed to r= ename dictionary files? = --_f4558bc6-d7a9-4043-9185-d82e2dbc05b0_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable


>=3B Date: Wed=2C= 9 Apr 2014 19:27:51 +0300
>=3B From: eliz@gnu.org
>=3B Subject: = Re: A question about spellchecker
>=3B To: agustin.martin@hispalinux.e= s
>=3B CC: arthur.miller@live.com=3B emacs-devel@gnu.org
>=3B >=3B >=3B Date: Tue=2C 08 Apr 2014 19:39:41 +0300
>=3B >=3B Fro= m: Eli Zaretskii <=3Beliz@gnu.org>=3B
>=3B >=3B Cc: arthur.mille= r@live.com=2C emacs-devel@gnu.org
>=3B >=3B
>=3B >=3B >=3B= You should not need this at all. emacs24 should auto-detect available
&= gt=3B >=3B >=3B hunspell dictionaries and offer them as possible choice= s when calling
>=3B >=3B >=3B `ispell-change-dictionary'=2C doing = proper communication in UTF-8 and using
>=3B >=3B >=3B [:alpha:] a= s you do for english (change that in your .emacs and see what
>=3B >= =3B >=3B happens).
>=3B >=3B
>=3B >=3B The Windows binary= from ezwinports doesn't yet comply with the
>=3B >=3B semantics of = the -D switch that is required for what you describe. I
>=3B >=3B w= ill probably fix that some time soon.
>=3B
>=3B Done. People wh= o use Hunspell on Windows may wish to download the
>=3B latest binarie= s=2C and then you can remove the hacking of
>=3B ispell-dictionary-ali= st and ispell-local-dictionary-alist from your
>=3B .emacs.
>=3B =

That was fast! Great work.

Always cool to keep .emacs short.=

Now - I have one question. Is it possible to pass name of dictionar= y instead of renaming
.dic and .aff files?

The reason: I belieave= it is much easier to instruct people how to pass name of a file to
Emac= s=2C than how to find what locale their Emacs or system use :).

Fur= thermore=2C what if we wish to use two languages =3D=3D two dictionaries. H= ow to
specify for ispell-change-dictionary if dictionaries are not set = in list. Does hunspell
enumerate all dictionaries in folder?

For= example there is a list of country names and codes in rw-language-and-coun= try-codes.el.
Any chance to use it and automate so users don't have to b= e instructed to rename dictionary
files?
= --_f4558bc6-d7a9-4043-9185-d82e2dbc05b0_--