From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#31034: Disappeared support for Ukrainian spelling check Date: Tue, 03 Apr 2018 13:01:11 +0300 Message-ID: <83fu4c623c.fsf@gnu.org> References: <27c1a9b2-b257-0e57-ba5a-4429712c5e60@gmail.com> <83r2nw6anj.fsf@gnu.org> <060e25f3-00e2-64fe-0dd5-dbf72d5dd62d@gmail.com> <83in98669x.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1522749620 14954 195.159.176.226 (3 Apr 2018 10:00:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 3 Apr 2018 10:00:20 +0000 (UTC) Cc: 31034@debbugs.gnu.org To: jamesjames Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 03 12:00:16 2018 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 1f3Ijf-0003lt-5N for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Apr 2018 12:00:15 +0200 Original-Received: from localhost ([::1]:49035 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f3Ilj-0006aB-0U for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Apr 2018 06:02:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55805) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f3IlS-0006WX-L3 for bug-gnu-emacs@gnu.org; Tue, 03 Apr 2018 06:02:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f3IlO-0001OB-KG for bug-gnu-emacs@gnu.org; Tue, 03 Apr 2018 06:02:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56179) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f3IlO-0001Nz-GX for bug-gnu-emacs@gnu.org; Tue, 03 Apr 2018 06:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f3IlO-0001mV-6v for bug-gnu-emacs@gnu.org; Tue, 03 Apr 2018 06:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Apr 2018 10:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31034 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31034-submit@debbugs.gnu.org id=B31034.15227496766794 (code B ref 31034); Tue, 03 Apr 2018 10:02:02 +0000 Original-Received: (at 31034) by debbugs.gnu.org; 3 Apr 2018 10:01:16 +0000 Original-Received: from localhost ([127.0.0.1]:35843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f3Ike-0001lV-4J for submit@debbugs.gnu.org; Tue, 03 Apr 2018 06:01:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36295) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f3Ikc-0001lI-BW for 31034@debbugs.gnu.org; Tue, 03 Apr 2018 06:01:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f3IkT-0000fT-B4 for 31034@debbugs.gnu.org; Tue, 03 Apr 2018 06:01:09 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38076) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f3IkT-0000fP-7r; Tue, 03 Apr 2018 06:01:05 -0400 Original-Received: from [176.228.60.248] (port=1491 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1f3IkS-0000HK-15; Tue, 03 Apr 2018 06:01:04 -0400 In-reply-to: (message from jamesjames on Tue, 3 Apr 2018 12:29:25 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:144840 Archived-At: [PLEASE PLEASE keep the bug address on the CC list!] > From: jamesjames > Date: Tue, 3 Apr 2018 12:29:25 +0300 > > 03.04.2018 11:30, Eli Zaretskii пишет: > > [Please keep the bug address on the CC list.] Yes, PLEASE! > > With Aspell and Hunspell, the available dictionaries are not taken > > from ispell.el, they are dynamically detected by asking the > > spell-checker to report what dictionaries are installed. What does > > the following command display, if invoked from the shell prompt? > > > > $ aspell dicts > > > > also, what does the following command display? > > > > $ aspell -vv > > > > aspell dicts > en > en-variant_0 > en-variant_1 > en-variant_2 > en-w_accents > en-wo_accents > en_AU > en_AU-variant_0 > en_AU-variant_1 > en_AU-w_accents > en_AU-wo_accents > en_CA > en_CA-variant_0 > en_CA-variant_1 > en_CA-w_accents > en_CA-wo_accents > en_GB > en_GB-ise > en_GB-ise-w_accents > en_GB-ise-wo_accents > en_GB-ize > en_GB-ize-w_accents > en_GB-ize-wo_accents > en_GB-variant_0 > en_GB-variant_1 > en_GB-w_accents > en_GB-wo_accents > en_US > en_US-variant_0 > en_US-variant_1 > en_US-w_accents > en_US-wo_accents > ru > ru-ye > ru-yeyo > ru-yo > uk OK, "uk" is available. > aspell -vv > @(#) International Ispell Version 3.1.20 (but really Aspell 0.60.7-rc1) ^^^^^^^^^^ That's the problem: Emacs 25 had a bug which prevented it from accepting Aspell versions that ended in "-rcN". Emacs 26 fixes this. You can apply the patch below to ispell.el and recompile ispell.el, then it should work again. (Alternatively, you could up- or down-grade to a version of Aspell whose number doesn't end in "-rcN".) > eix app-text/aspell > Installed versions: 0.60.7_rc1(01:40:47 03/29/18)(nls unicode L10N="ru > uk -af -be -bg -br -ca -cs -cy -da -de -de-1901 -el -en -eo -es -et -fi > -fo -fr -ga -gl -he -hr -hu -hy -is -it -la -lt -nl -no -pl -pt -pt-BR > -ro -sk -sl -sr -sv -vi") > > > equery files app-dicts/aspell-uk > * Searching for aspell-uk in app-dicts ... > * Contents of app-dicts/aspell-uk-1.4.0.0: > /usr > /usr/lib > /usr/lib/aspell-0.60 > /usr/lib/aspell-0.60/koi8-u-nl.cmap > /usr/lib/aspell-0.60/koi8-u-nl.cset > /usr/lib/aspell-0.60/uk.dat > /usr/lib/aspell-0.60/uk.multi > /usr/lib/aspell-0.60/uk.rws > /usr/lib/aspell-0.60/uk_affix.dat > /usr/lib/aspell-0.60/ukrainian.alias > /usr/lib/aspell-0.60/ukrainian.kbd > /usr/share > /usr/share/doc > /usr/share/doc/aspell-uk-1.4.0.0 > /usr/share/doc/aspell-uk-1.4.0.0/README.bz2 > /usr/share/doc/aspell-uk-1.4.0.0/info.bz2 > > > ispell-change-dictionary displays the selection of languages that are > not actually present in the system. This is normal. What is NOT normal is that the dictionaries present on your system are not included in the list. And that happens because Emacs failed to recognize your Aspell as such. > The same situation on another computer (gentoo). > Earlier (06.06.2013), the choice of ukrainian there was still present, > and .emacs automatically loaded it. > > Perhaps it is required to specify the choice of ukrainian spelling in > ispell.el? No, not with Aspell and Hunspell. Here's a patch that should fix your use case: --- ispell.el.~1~ 2017-04-14 18:02:47.000000000 +0300 +++ ispell.el 2018-04-03 12:57:52.375000000 +0300 @@ -893,11 +893,11 @@ (goto-char (point-min)) (or (setq ispell-really-aspell (and (search-forward-regexp - "(but really Aspell \\([0-9]+\\.[0-9\\.-]+\\)?)" nil t) + "(but really Aspell \\([0-9]+\\.[0-9.]+\\([-._+ ]?[a-zA-Z0-9]+\\)?\\)?)" nil t) (match-string 1))) (setq ispell-really-hunspell (and (search-forward-regexp - "(but really Hunspell \\([0-9]+\\.[0-9\\.-]+\\)?)" + "(but really Hunspell \\([0-9]+\\.[0-9.]+\\([-._+ ]?[a-zA-Z0-9]+\\)?\\)?)" nil t) (match-string 1)))))