From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitri Paduchikh Newsgroups: gmane.emacs.bugs Subject: bug#24435: 25.1; Problem using Hunspell Date: Wed, 14 Sep 2016 22:44:18 +0500 Message-ID: <871t0mz899.fsf@gmail.com> References: <87a8fazkaf.fsf@gmail.com> <8760pyzeam.fsf@gmail.com> <8360py8lnd.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1473875138 15852 195.159.176.226 (14 Sep 2016 17:45:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 14 Sep 2016 17:45:38 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 24435@debbugs.gnu.org, npostavs@users.sourceforge.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 14 19:45:34 2016 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 1bkEFM-0002Gs-5J for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Sep 2016 19:45:20 +0200 Original-Received: from localhost ([::1]:57802 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkEFK-0007kt-7l for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Sep 2016 13:45:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkEF8-0007h6-Ib for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2016 13:45:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkEF4-0003Yk-DM for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2016 13:45:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33818) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkEF4-0003Yg-9y for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2016 13:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bkEF4-0004Dg-6D for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2016 13:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitri Paduchikh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Sep 2016 17:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24435 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24435-submit@debbugs.gnu.org id=B24435.147387506816170 (code B ref 24435); Wed, 14 Sep 2016 17:45:02 +0000 Original-Received: (at 24435) by debbugs.gnu.org; 14 Sep 2016 17:44:28 +0000 Original-Received: from localhost ([127.0.0.1]:59763 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkEEW-0004Cj-7F for submit@debbugs.gnu.org; Wed, 14 Sep 2016 13:44:28 -0400 Original-Received: from mail-lf0-f49.google.com ([209.85.215.49]:33563) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkEEU-0004CW-K0 for 24435@debbugs.gnu.org; Wed, 14 Sep 2016 13:44:27 -0400 Original-Received: by mail-lf0-f49.google.com with SMTP id h127so15750288lfh.0 for <24435@debbugs.gnu.org>; Wed, 14 Sep 2016 10:44:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=jboVWUUmwdbDVRyJFIsKOScAzOJMxgUhExwFwIOS9kE=; b=YjvSYEHMdlbg5ShS0DcsGgyrGDXBjIWnm0mEYCKzbfLXqJkyFwM+An79ECtum4IUcb rFKOXdZyMA0Kk50LT8zsMTYPmCtekGFGYTIe49yk46ytHchvqWgJ8IWa2qUHiUEN1Tlf RJFMt3iL8hsgDq6wLtuRpA3nU0JfTQ1878XSm7Offlog2W14el3UX2iUPVprDkEybYjQ hnlnuGjlyFL43gYLM93TMlAp0+iqVC/yPvt8GlRxani1JLhl9A1m4BPeRdxZnzFbKmSz 4019rnLgvyVNAmdae+5+2E+vxhImPYVt6NghQmUHe/qmEHJgLiX0C038Jtm8yWGyF480 bJyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=jboVWUUmwdbDVRyJFIsKOScAzOJMxgUhExwFwIOS9kE=; b=T3Z4450D13TYR+lxfYtSkTxwxL7PyoPvDyGWg6NdqnAr8JzC8G1ANFXwD0cdYbC8nG yAs1tGAVV21UJ6i+1AS+J6fT8bAYNaOjTXRPqW0lZ7gb6fGAxa7+Z5Rz1syLRDE5rUOH bfl58J/8JUkZNsBq7AS3G2Sq4L7f7vymBkOJiHDYneQgrbeYERK9GaqRztgHs+cmnTGg XZnDBJVLl0p8kG+8jf6V10/pROvqNSN7MTxFo5u9BLtYrAy9L/iOE+RP0vU3DKTR1XgF mnGHZ24Hn/mC34ni8CbRoTY736j4D/ec61VwWXl066wObVkMS7HoXpQgEf4f/rsjIjGP F8gw== X-Gm-Message-State: AE9vXwMeDFdLDWG/3JYbgAmE5phsJRCxwrQy5f52fXMx3hZfLnUBQWvGKJ6wA6tQT9qwqA== X-Received: by 10.25.25.145 with SMTP id 139mr1612141lfz.117.1473875060466; Wed, 14 Sep 2016 10:44:20 -0700 (PDT) Original-Received: from gmail.com ([46.48.49.226]) by smtp.gmail.com with ESMTPSA id g38sm5126054ljg.24.2016.09.14.10.44.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Sep 2016 10:44:19 -0700 (PDT) In-Reply-To: <8360py8lnd.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 14 Sep 2016 19:57:10 +0300") 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:123298 Archived-At: Hello, Eli Zaretskii wrote: >> | ispell-phaf: No matching entry for ru_RU in =E2=80=98ispell-hunspell-d= ict-paths-alist=E2=80=99. >> | (ispell-parse-hunspell-affix-file) >>=20 >> It seems that Hunspell itself does not have any difficulty locating the >> dictionary. >>=20 >> $ hunspell -a -d ru_RU >> Hunspell 1.4.0 >> =D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B0=D0=B0 >> & =D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B0=D0=B0 3 0: =D0=BF=D1= =80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B0, =D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1= =80=D0=BA=D0=B0=D0=BC, =D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B0=D1= =85 > What does your Hunspell output when invoked thus: > $ hunspell -D $ hunspell -D < /dev/null Hunspell 1.4.0 $ hunspell -a -D < /dev/null SEARCH PATH: .::/usr/share/hunspell:/usr/share/myspell:/usr/share/myspell/dicts:/Library= /Spelling:/home/dmai/.openoffice.org/3/user/wordbook:.openoffice.org2/user/= wordbook:.openoffice.org2.0/user/wordbook:Library/Spelling:/opt/openoffice.= org/basis3.0/share/dict/ooo:/usr/lib/openoffice.org/basis3.0/share/dict/ooo= :/opt/openoffice.org2.4/share/dict/ooo:/usr/lib/openoffice.org2.4/share/dic= t/ooo:/opt/openoffice.org2.3/share/dict/ooo:/usr/lib/openoffice.org2.3/shar= e/dict/ooo:/opt/openoffice.org2.2/share/dict/ooo:/usr/lib/openoffice.org2.2= /share/dict/ooo:/opt/openoffice.org2.1/share/dict/ooo:/usr/lib/openoffice.o= rg2.1/share/dict/ooo:/opt/openoffice.org2.0/share/dict/ooo:/usr/lib/openoff= ice.org2.0/share/dict/ooo AVAILABLE DICTIONARIES (path is not mandatory for -d option): /usr/share/hunspell/ru_RU /usr/share/hunspell/en_NG /usr/share/hunspell/en_PH /usr/share/hunspell/en_DK /usr/share/hunspell/en_NZ /usr/share/hunspell/en_BS /usr/share/hunspell/en_AU /usr/share/hunspell/en_IE /usr/share/hunspell/en_GB-large /usr/share/hunspell/en_BW /usr/share/hunspell/en_US /usr/share/hunspell/en_CA /usr/share/hunspell/en_HK /usr/share/hunspell/en_NA /usr/share/hunspell/en_GH /usr/share/hunspell/en_BZ /usr/share/hunspell/en_SG /usr/share/hunspell/en_GB /usr/share/hunspell/en_ZW /usr/share/hunspell/en_TT /usr/share/hunspell/en_ZA /usr/share/hunspell/en_IN /usr/share/hunspell/en_AG /usr/share/hunspell/en_JM /usr/share/myspell/dicts/ru_RU /usr/share/myspell/dicts/en_NG /usr/share/myspell/dicts/en_PH /usr/share/myspell/dicts/en_DK /usr/share/myspell/dicts/en_NZ /usr/share/myspell/dicts/en_BS /usr/share/myspell/dicts/en_AU /usr/share/myspell/dicts/en_IE /usr/share/myspell/dicts/en_GB-large /usr/share/myspell/dicts/en_BW /usr/share/myspell/dicts/en_US /usr/share/myspell/dicts/en_CA /usr/share/myspell/dicts/en_HK /usr/share/myspell/dicts/en_NA /usr/share/myspell/dicts/en_GH /usr/share/myspell/dicts/en_BZ /usr/share/myspell/dicts/en_SG /usr/share/myspell/dicts/en_GB /usr/share/myspell/dicts/en_ZW /usr/share/myspell/dicts/en_TT /usr/share/myspell/dicts/en_ZA /usr/share/myspell/dicts/en_IN /usr/share/myspell/dicts/en_AG /usr/share/myspell/dicts/en_JM LOADED DICTIONARY: /usr/share/hunspell/ru_RU.aff /usr/share/hunspell/ru_RU.dic Hunspell 1.4.0 $=20 The information about dictionaries is output to stderr, and the version string - to stdout. I have added -a to ispell-call-process inside ispell-find-hunspell-dictionaries, re-customized ispell-program-name (since ispell-find-hunspell-dictionaries seems to be called through its customization setter), and the error with missing dictionaries disappeared. Now when I try to check some word, after waiting for several seconds I get this message: | Starting new Ispell process hunspell with ru_RU dictionary... | Hunspell 1.4.0 (ispell-init-process) Subsequent attempts give such result: | Checking spelling of =D0=92=D0=9F=D0=95=D0=A0=D0=81=D0=94... | Error checking word =D0=92=D0=9F=D0=95=D0=A0=D0=81=D0=94 using hunspell w= ith ru_RU dictionary The word seems to pass spellcheck using CLI interface. $ echo =D0=B2=D0=BF=D0=B5=D1=80=D1=91=D0=B4 | hunspell -a -d ru_RU Hunspell 1.4.0 * $=20 Best regards Dmitri Paduchikh