From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Martin Kletzander Newsgroups: gmane.emacs.bugs Subject: bug#25830: 25.2; ispell doesn't parse hunspell dictionaries properly Date: Wed, 22 Feb 2017 11:40:25 +0100 Message-ID: <20170222104025.GA3557@wheatley> References: <20170221091857.GA4096@wheatley> <83k28jo3ur.fsf@gnu.org> <20170221202454.GA30086@wheatley> <83fuj7tgto.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Trace: blaine.gmane.org 1487760582 32689 195.159.176.226 (22 Feb 2017 10:49:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 22 Feb 2017 10:49:42 +0000 (UTC) User-Agent: Mutt/1.5.24 (2015-08-30) Cc: 25830@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 22 11:49:38 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgUUI-0007iZ-N6 for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Feb 2017 11:49:34 +0100 Original-Received: from localhost ([::1]:51359 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgUUO-0004Pu-FL for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Feb 2017 05:49:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgUM5-0005DX-Po for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2017 05:41:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgUM2-00031V-Nq for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2017 05:41:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51444) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cgUM2-00031Q-K3 for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2017 05:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cgUM2-00016C-9D for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2017 05:41:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Martin Kletzander Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Feb 2017 10:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25830 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25830-submit@debbugs.gnu.org id=B25830.14877600344184 (code B ref 25830); Wed, 22 Feb 2017 10:41:02 +0000 Original-Received: (at 25830) by debbugs.gnu.org; 22 Feb 2017 10:40:34 +0000 Original-Received: from localhost ([127.0.0.1]:49643 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgULZ-00015P-Jt for submit@debbugs.gnu.org; Wed, 22 Feb 2017 05:40:33 -0500 Original-Received: from mail-wr0-f193.google.com ([209.85.128.193]:33299) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgULX-00015C-RW for 25830@debbugs.gnu.org; Wed, 22 Feb 2017 05:40:32 -0500 Original-Received: by mail-wr0-f193.google.com with SMTP id s27so950886wrb.0 for <25830@debbugs.gnu.org>; Wed, 22 Feb 2017 02:40:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=0NPSNQbaNXHfmnL0+BGjm/0DvPIF+JqxNrjVNM3gdbg=; b=phDuvpdKgvBg59dFPT585i4QBcn8SMdbMC7MfTv7Ujwl6/qyZklb618Z8Xk0M2z9Ko 8avXT6QCw92ltlwNJyTyZB2WmB26oRkdTiY2E8W+L1sjK3LZggFehAd1peUWvS6fcdew ji3pe0R+Poc48vuVBWc3YvpJWBYwwiblRFoiuLteNgww7kl0bs7nCzo5r5wn2PYS02XO 8Hl3gCcl51hF72ds2KYvZg375TtF3SxTfMZYu+DaYUFu3i3gUo23MikKi2IaTV6dqIs7 +RE4ryWqkSnVrkas/hZsksjqTinAgqevH5J0h4SIWIfnT7eTyAlJ3E7QNksqZdPjbgGP 1xQw== X-Gm-Message-State: AMke39nPYpVU5xZqJ+K1n79oDJ59HHIyEoZenVptIgZPumF+b31VRYHn7R/pDHRQXzX+xA== X-Received: by 10.223.154.210 with SMTP id a76mr21665186wrc.193.1487760026088; Wed, 22 Feb 2017 02:40:26 -0800 (PST) Original-Received: from caroline.localdomain (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id n13sm661781wra.17.2017.02.22.02.40.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Feb 2017 02:40:25 -0800 (PST) Original-Received: by caroline.localdomain (Postfix, from userid 1000) id 625FE120380; Wed, 22 Feb 2017 11:40:25 +0100 (CET) Content-Disposition: inline In-Reply-To: <83fuj7tgto.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:129650 Archived-At: On Tue, Feb 21, 2017 at 10:44:03PM +0200, Eli Zaretskii wrote: >> Date: Tue, 21 Feb 2017 21:24:54 +0100 >> From: Martin Kletzander >> Cc: 25830@debbugs.gnu.org >> >> I have multiple dictionaries installed. Hunspell finds all of them, but >> selects *two* of them. According to the man page, that is done >> according to LC_ALL, LC_MESSAGES, and LANG environment variables. > >What are the values of those environment variables? > $ locale LANG=en_GB.utf8 LC_CTYPE=en_GB.utf8 LC_NUMERIC="en_GB.utf8" LC_TIME="en_GB.utf8" LC_COLLATE="en_GB.utf8" LC_MONETARY="en_GB.utf8" LC_MESSAGES="en_GB.utf8" LC_PAPER="en_GB.utf8" LC_NAME="en_GB.utf8" LC_ADDRESS="en_GB.utf8" LC_TELEPHONE="en_GB.utf8" LC_MEASUREMENT="en_GB.utf8" LC_IDENTIFICATION="en_GB.utf8" LC_ALL= Honestly, I don't know where it takes the cs_CZ from, *but* if it didn't, I would have to modify it so that it does. Simply because that's what I want it to do by default. >> Becuase hunspell selects more of them (which is something I want it to >> do), it lists both of them as "LOADED DICTIONARY", ispell parses those >> (actually just lines ending with ".aff") and if it finds more than one, >> it errors out. > >The way to run Hunspell with more than one dictionary is hinted upon >in the doc string of the command ispell-hunspell-add-multi-dic. After If I try M-x ispell-change-dictionary RET en_GB,cs_CZ RET I get the same error. >you invoke that command and specify the dictionaries you want to use >(e.g., in your case "en_GB,cs_CZ"), type this: > > M-x ispell-change-dictionary RET en_GB,cs_CZ RET > M-x ispell-change-dictionary RET errors out with the same error. If I run it again, there are no dictionaries loaded, so I cannot use any parameter for it except 'default'. >Then try spell-checking. It should work with that arrangement. It is >possible that you will first need to modify your environment variables >to prevent Hunspell from loading more than one dictionary by default. Why would I need to do that? For me hunspell is working as I want it to, exactly. I honestly think that ispell should accept multiple dictionaries and either behave like a multi-dic by default or just not error out when it parses the second dictionary (less favourable option, though). I would love to add that functionality, but I'm not that familiar with the code, unfortunately =( Thanks, Martin