all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#31034: Disappeared support for Ukrainian spelling check
@ 2018-04-02 22:33 jamesjames
  2018-04-03  6:56 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: jamesjames @ 2018-04-02 22:33 UTC (permalink / raw)
  To: 31034

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






^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#31034: Disappeared support for Ukrainian spelling check
  2018-04-02 22:33 bug#31034: Disappeared support for Ukrainian spelling check jamesjames
@ 2018-04-03  6:56 ` Eli Zaretskii
       [not found]   ` <060e25f3-00e2-64fe-0dd5-dbf72d5dd62d@gmail.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2018-04-03  6:56 UTC (permalink / raw)
  To: jamesjames; +Cc: 31034

> From: jamesjames <theism.tex@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"?





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#31034: Disappeared support for Ukrainian spelling check
       [not found]   ` <060e25f3-00e2-64fe-0dd5-dbf72d5dd62d@gmail.com>
@ 2018-04-03  8:30     ` Eli Zaretskii
       [not found]       ` <bdf408c4-7838-a8ed-da1c-790a685273bc@gmail.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2018-04-03  8:30 UTC (permalink / raw)
  To: jamesjames; +Cc: 31034

[Please keep the bug address on the CC list.]

> From: jamesjames <theism.tex@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





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#31034: Disappeared support for Ukrainian spelling check
       [not found]       ` <bdf408c4-7838-a8ed-da1c-790a685273bc@gmail.com>
@ 2018-04-03 10:01         ` Eli Zaretskii
       [not found]           ` <c3fcc5fe-a68b-fa0e-bd63-515ffbb81e0e@gmail.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2018-04-03 10:01 UTC (permalink / raw)
  To: jamesjames; +Cc: 31034

[PLEASE PLEASE keep the bug address on the CC list!]

> From: jamesjames <theism.tex@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)))))
 





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#31034: Disappeared support for Ukrainian spelling check
       [not found]           ` <c3fcc5fe-a68b-fa0e-bd63-515ffbb81e0e@gmail.com>
@ 2018-04-03 12:33             ` Eli Zaretskii
  0 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2018-04-03 12:33 UTC (permalink / raw)
  To: jamesjames; +Cc: 31034-done

> From: jamesjames <theism.tex@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.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-04-03 12:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-02 22:33 bug#31034: Disappeared support for Ukrainian spelling check jamesjames
2018-04-03  6:56 ` Eli Zaretskii
     [not found]   ` <060e25f3-00e2-64fe-0dd5-dbf72d5dd62d@gmail.com>
2018-04-03  8:30     ` Eli Zaretskii
     [not found]       ` <bdf408c4-7838-a8ed-da1c-790a685273bc@gmail.com>
2018-04-03 10:01         ` Eli Zaretskii
     [not found]           ` <c3fcc5fe-a68b-fa0e-bd63-515ffbb81e0e@gmail.com>
2018-04-03 12:33             ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.