GNU bug report logs - #31034
Disappeared support for Ukrainian spelling check

Previous Next

Package: emacs;

Reported by: jamesjames <theism.tex <at> gmail.com>

Date: Mon, 2 Apr 2018 23:18:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 31034 in the body.
You can then email your comments to 31034 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#31034; Package emacs. (Mon, 02 Apr 2018 23:18:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to jamesjames <theism.tex <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 02 Apr 2018 23:18:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: jamesjames <theism.tex <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Disappeared support for Ukrainian spelling check
Date: Tue, 3 Apr 2018 01:33:40 +0300
Hi! Disappeared support for Ukrainian spelling check.

ispell-change-dictonary:

Possible completions are:
american 	brasileiro 	british 	castellano 	castellano8 	czech 	dansk
default 	deutsch 	deutsch8
english 	esperanto 	esperanto-tex 	finnish 	francais 	francais-tex
francais7 	german 	german8 	hebrew
italiano 	nederlands 	nederlands8 	norsk 	norsk7-tex 	polish 	portugues
russian 	russianw 	slovak
slovenian 	svenska


How to fix? app-dicts/myspell-uk installed, app-dicts/aspell-uk
installed, app-text/hunspell installed

In ispell.el there is no ukrainian language, but there are other languages.


My system:
In GNU Emacs 25.3.1 (i686-pc-linux-gnu)
 of 2018-03-31 built on localhost
Windowing system distributor 'The X.Org Foundation', version 11.0.11905000
System Description:	Gentoo Base System release 2.4.1

Configured features:
XPM JPEG TIFF GIF PNG RSVG GPM DBUS GCONF NOTIFY ACL GNUTLS LIBXML2
FREETYPE XFT ZLIB X11

Important settings:
  value of $LC_ALL: ru_UA.UTF-8
  value of $LANG: ru_UA.utf8
  locale-coding-system: utf-8-unix





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31034; Package emacs. (Tue, 03 Apr 2018 06:57:01 GMT) Full text and rfc822 format available.

Message #8 received at 31034 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: jamesjames <theism.tex <at> gmail.com>
Cc: 31034 <at> debbugs.gnu.org
Subject: Re: bug#31034: Disappeared support for Ukrainian spelling check
Date: Tue, 03 Apr 2018 09:56:16 +0300
> From: jamesjames <theism.tex <at> gmail.com>
> Date: Tue, 3 Apr 2018 01:33:40 +0300
> 
> Hi! Disappeared support for Ukrainian spelling check.
> 
> ispell-change-dictonary:
> 
> Possible completions are:
> american 	brasileiro 	british 	castellano 	castellano8 	czech 	dansk
> default 	deutsch 	deutsch8
> english 	esperanto 	esperanto-tex 	finnish 	francais 	francais-tex
> francais7 	german 	german8 	hebrew
> italiano 	nederlands 	nederlands8 	norsk 	norsk7-tex 	polish 	portugues
> russian 	russianw 	slovak
> slovenian 	svenska
> 
> 
> How to fix? app-dicts/myspell-uk installed, app-dicts/aspell-uk
> installed, app-text/hunspell installed

I understand that your spell-checking program is Hunspell?  What is
the value of ispell-program-name after you turn on spell-checking in a
buffer or "M-x load-library RET ispell RET"?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31034; Package emacs. (Tue, 03 Apr 2018 08:31:01 GMT) Full text and rfc822 format available.

Message #11 received at 31034 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: jamesjames <theism.tex <at> gmail.com>
Cc: 31034 <at> debbugs.gnu.org
Subject: Re: bug#31034: Disappeared support for Ukrainian spelling check
Date: Tue, 03 Apr 2018 11:30:50 +0300
[Please keep the bug address on the CC list.]

> From: jamesjames <theism.tex <at> gmail.com>
> Date: Tue, 3 Apr 2018 11:03:29 +0300
> 
> > I understand that your spell-checking program is Hunspell?  What is
> > the value of ispell-program-name after you turn on spell-checking in a
> > buffer or "M-x load-library RET ispell RET"?
> > 
> 
> my ~/.emacs config:
> (add-hook 'LaTeX-mode-hook 'flyspell-mode)
> (add-hook 'LaTeX-mode-hook '(lambda () (setq ispell-change-dictonary
> "ukrainian")))
> (setq-default ispell-program-name "aspell")
> (setq ispell-dictionary "ukrainian")
> (setq ispell-local-dictionary "ukrainian")
> (setq flyspell-default-dictionary "ukrainian")
> (setq ispell-extra-args '("--sug-mode=fast"))
> 
> 
> cat /usr/share/emacs/25.3/lisp/textmodes/ispell.el  | grep ukrain
> 
> cat /usr/share/emacs/25.3/lisp/textmodes/ispell.el  | grep russia
>     ("russian"				; Russian.aff (KOI8-R charset)
>     ("russianw"				; russianw.aff (CP1251 charset)
>     ("russian"       "ru_RU")
>     ("russianw"      "ru_RU")
> 
> cat /usr/share/emacs/25.3/lisp/textmodes/ispell.el  | grep polis
> ;; Dictionary norsk7-tex removed.  Dictionary polish added.
>     ("polish"				; Polish mode
>     ("polish"        "pl_PL")
> 
> 
> setting for Ukrainian is not present in the ispell.el

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31034; Package emacs. (Tue, 03 Apr 2018 10:02:02 GMT) Full text and rfc822 format available.

Message #14 received at 31034 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: jamesjames <theism.tex <at> gmail.com>
Cc: 31034 <at> debbugs.gnu.org
Subject: Re: bug#31034: Disappeared support for Ukrainian spelling check
Date: Tue, 03 Apr 2018 13:01:11 +0300
[PLEASE PLEASE keep the bug address on the CC list!]

> From: jamesjames <theism.tex <at> gmail.com>
> 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)))))
 




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Tue, 03 Apr 2018 12:34:01 GMT) Full text and rfc822 format available.

Notification sent to jamesjames <theism.tex <at> gmail.com>:
bug acknowledged by developer. (Tue, 03 Apr 2018 12:34:02 GMT) Full text and rfc822 format available.

Message #19 received at 31034-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: jamesjames <theism.tex <at> gmail.com>
Cc: 31034-done <at> debbugs.gnu.org
Subject: Re: bug#31034: Disappeared support for Ukrainian spelling check
Date: Tue, 03 Apr 2018 15:33:30 +0300
> From: jamesjames <theism.tex <at> gmail.com>
> Date: Tue, 3 Apr 2018 15:20:06 +0300
> 
> Excellently!
> 
> 
> Possible completions are:
> american 	american-variant_0 	american-variant_1 	american-w_accents
> american-wo_accents 	australian
> australian-variant_0 	australian-variant_1 	australian-w_accents
> australian-wo_accents 	brasileiro 	british
> british-ise 	british-ise-w_accents 	british-ise-wo_accents 	british-ize
> british-ize-w_accents 	british-ize-wo_accents
> british-variant_0 	british-variant_1 	british-w_accents
> british-wo_accents 	canadian 	canadian-variant_0
> canadian-variant_1 	canadian-w_accents 	canadian-wo_accents 	castellano
> castellano8 	czech
> dansk 	default 	deutsch 	deutsch8 	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
> english 	english-variant_0 	english-variant_1 	english-variant_2
> english-w_accents 	english-wo_accents
> esperanto 	esperanto-tex 	finnish 	francais 	francais-tex 	francais7
> german 	german8 	hebrew 	italiano 	nederlands 	nederlands8
> norsk 	norsk7-tex 	polish 	portugues 	ru 	ru-ye
> ru-yeyo 	ru-yo 	russian 	russianw 	slovak 	slovenian
> svenska 	uk 	ukrainian
> 
> «Starting new Ispell process aspell with ukrainian dictionary...»
> Works. Thanks for the help!

I'm therefore closing the bug.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 02 May 2018 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 46 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.