From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Agustin Martin Newsgroups: gmane.emacs.bugs Subject: bug#13460: Issue to change dictionary when using hunspell on emacs Date: Thu, 17 Jan 2013 20:30:29 +0100 Message-ID: <20130117193029.GB4933@agmartin.aq.upm.es> References: <20130116122509.GA2209@omega.in.herr-schmitt.de> <83hamh80ry.fsf@gnu.org> <20130117131733.GA20519@omega.in.herr-schmitt.de> <20728.16566.19238.480349@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1358451085 24373 80.91.229.3 (17 Jan 2013 19:31:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Jan 2013 19:31:25 +0000 (UTC) To: 13460@debbugs.gnu.org, Jochen Schmitt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 17 20:31:43 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1TvvBe-0005xt-BN for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Jan 2013 20:31:42 +0100 Original-Received: from localhost ([::1]:51241 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvvBN-0000UJ-GF for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Jan 2013 14:31:25 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47003) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvvBJ-0000UD-JO for bug-gnu-emacs@gnu.org; Thu, 17 Jan 2013 14:31:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvvBI-0000i1-6V for bug-gnu-emacs@gnu.org; Thu, 17 Jan 2013 14:31:21 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60117) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvvBI-0000hx-36 for bug-gnu-emacs@gnu.org; Thu, 17 Jan 2013 14:31:20 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TvvBx-00018g-Jl for bug-gnu-emacs@gnu.org; Thu, 17 Jan 2013 14:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Agustin Martin Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Jan 2013 19:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13460 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13460-submit@debbugs.gnu.org id=B13460.13584510774319 (code B ref 13460); Thu, 17 Jan 2013 19:32:01 +0000 Original-Received: (at 13460) by debbugs.gnu.org; 17 Jan 2013 19:31:17 +0000 Original-Received: from localhost ([127.0.0.1]:37347 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TvvBE-00017c-LF for submit@debbugs.gnu.org; Thu, 17 Jan 2013 14:31:16 -0500 Original-Received: from edison.ccupm.upm.es ([138.100.198.71]:35602 helo=smtp.upm.es) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TvvBB-00017R-PO for 13460@debbugs.gnu.org; Thu, 17 Jan 2013 14:31:15 -0500 Original-Received: from agmartin.aq.upm.es (Agmartin.aq.upm.es [138.100.41.131]) by smtp.upm.es (8.14.3/8.14.3/edison-001) with ESMTP id r0HJUUWG015571; Thu, 17 Jan 2013 20:30:30 +0100 Original-Received: by agmartin.aq.upm.es (Postfix, from userid 1000) id EB65C1FE9C; Thu, 17 Jan 2013 20:30:29 +0100 (CET) Content-Disposition: inline In-Reply-To: <20728.16566.19238.480349@gnu.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:69940 Archived-At: From: Jochen Schmitt > > I have try to create a suggestion for a general solution for > this issue in the next release of emacs. > > I have attached a patch on this mail which introduced a alist to > translate the dictionary names like 'english' in the form which will > be accepted by hunspell. > > I have done a first short test to check out, that this is a > working solution. > > Of course the ispell-hunspell-dictionary-alist need extension because > I have put only two entries to be able to check out my solution. Hi Jochen. Thanks a lot for your feedback (and to Glenn for forwarding it), you can send your followups to the bug address. I remember to have done some initial work with an alias file for hunspell, but I do not find that now. I'd keep the name `ispell-hunspell-dictionary-alist' for the alist of actually found dicts, once implemented in one way or another. I vaguely remember using something like `ispell-hunspell-dictionary-equivs-alist' for the purpose of having a list of equivalences. I'd also not hardcode nil to "en_GB". For the rest I think it can be useful as a temporary workaround, but I'd prefer to see these changes in a sanitized dictionary alist for hunspell, something similar to what is done in `ispell-set-spellchecker-params' to use [:alpha:] when possible, but for this purpose and limited to the original base alist. Otherwise will only work for entries not using explicit "-d" and may hide personal choices in ~/.emacs pointing to non-standard locations (e.g., "american" using "~/personal/en_US". (Looked quickly, may be I missed something) Let me try to find where I have my previous work and what is harder, try to find the time. This should not be that time consuming, so I expect to look at this shortly. Thanks again. Regards. -- Agustin