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: Wed, 09 Apr 2014 20:27:55 +0300 Message-ID: <83zjju4dlw.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> <83vbuj6aia.fsf@gnu.org> <83bnwa5uyg.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1397064506 19839 80.91.229.3 (9 Apr 2014 17:28:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Apr 2014 17:28:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: arthur miller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 09 19:28:19 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 1WXwII-00017D-DZ for ged-emacs-devel@m.gmane.org; Wed, 09 Apr 2014 19:28:14 +0200 Original-Received: from localhost ([::1]:47358 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXwII-0006uX-1B for ged-emacs-devel@m.gmane.org; Wed, 09 Apr 2014 13:28:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42711) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXwIA-0006tG-R5 for emacs-devel@gnu.org; Wed, 09 Apr 2014 13:28:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WXwI5-00053j-NU for emacs-devel@gnu.org; Wed, 09 Apr 2014 13:28:06 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:50708) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXwI5-00053b-Ek for emacs-devel@gnu.org; Wed, 09 Apr 2014 13:28:01 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0N3R00I00XL5C800@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Wed, 09 Apr 2014 20:28:00 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N3R00IZCXUN5P80@a-mtaout21.012.net.il>; Wed, 09 Apr 2014 20:28:00 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 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:171373 Archived-At: > From: arthur miller > CC: "emacs-devel@gnu.org" > Date: Wed, 9 Apr 2014 18:59:56 +0200 > > Now - I have one question. Is it possible to pass name of dictionary instead of renaming > .dic and .aff files? Yes, of course: you have been doing that all the time with the -d switch in your .emacs customizations. My suggestion to copy files to the locale names used by Windows is only so that Hunspell loads the dictionary for your locale automatically at startup. > The reason: I belieave it is much easier to instruct people how to pass name of a file to > Emacs, than how to find what locale their Emacs or system use :). I think finding the locale is easier, just look here: http://www.microsoft.com/resources/msdn/goglobal/default.mspx (Look in the last column.) > Furthermore, what if we wish to use two languages == two dictionaries. How to > specify for ispell-change-dictionary if dictionaries are not set in list. Does hunspell > enumerate all dictionaries in folder? Yes, with the latest binaries Hunspell will find all the installed dictionaries, and ispell-change-dictionary will suggest them as completions. > > For example there is a list of country names and codes in rw-language-and-country-codes.el. > Any chance to use it and automate so users don't have to be instructed to rename dictionary > files? That file is not what we need for ispell.el, no. Again, renaming (or rather copying) is only needed for the single dictionary that corresponds to your Windows locale. the other dictionaries don't need to be renamed.