Discussion:
The spell checker for Esperanto is not working on Emacs
(too old to reply)
David W. Hodgins
2022-10-26 00:19:18 UTC
Permalink
The spell checker for Esperanto is not working on Emacs running under
Mageia 8. Obviously I already installed the dictionary using MCC. The
.emacs file is the same as used in other distributions.
What's the output of "env|grep -i -e LANG -e LC_|sort"?

Regards, Dave Hodgins
Gilberto F da Silva
2022-10-26 01:37:36 UTC
Permalink
Post by David W. Hodgins
The spell checker for Esperanto is not working on Emacs running under
Mageia 8. Obviously I already installed the dictionary using MCC. The
.emacs file is the same as used in other distributions.
What's the output of "env|grep -i -e LANG -e LC_|sort"?
mageia8 ~$ env|grep -i -e LANG -e LC_|sort
LANG=eo_XX.UTF-8
LANGUAGE=pt_BR:en_US
LC_ADDRESS=pt_BR.UTF-8
LC_IDENTIFICATION=pt_BR.UTF-8
LC_MEASUREMENT=pt_BR.UTF-8
LC_MONETARY=pt_BR.UTF-8
LC_NAME=pt_BR.UTF-8
LC_NUMERIC=pt_BR.UTF-8
LC_PAPER=pt_BR.UTF-8
LC_SOURCED=1
LC_TELEPHONE=pt_BR.UTF-8
mageia8 ~$
David W. Hodgins
2022-10-26 03:08:12 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Post by David W. Hodgins
The spell checker for Esperanto is not working on Emacs running under
Mageia 8. Obviously I already installed the dictionary using MCC. The
.emacs file is the same as used in other distributions.
What's the output of "env|grep -i -e LANG -e LC_|sort"?
mageia8 ~$ env|grep -i -e LANG -e LC_|sort
LANG=eo_XX.UTF-8
LANGUAGE=pt_BR:en_US
LC_ADDRESS=pt_BR.UTF-8
LC_IDENTIFICATION=pt_BR.UTF-8
LC_MEASUREMENT=pt_BR.UTF-8
LC_MONETARY=pt_BR.UTF-8
LC_NAME=pt_BR.UTF-8
LC_NUMERIC=pt_BR.UTF-8
LC_PAPER=pt_BR.UTF-8
LC_SOURCED=1
LC_TELEPHONE=pt_BR.UTF-8
mageia8 ~$
If I'm reading things correctly emacs uses aspell. Do you have a ~/.aspell.conf
file or /etc/aspell.conf and if so what do they contain?

Also if I'm reading things correctly the LANGUAGE variable is overriding the LANG
variable.

Try "LANGUAGE=eo_XX.UTF8 emacs"

Regards, Dave Hodgins
Gilberto F da Silva
2022-10-26 17:25:30 UTC
Permalink
On Tue, 25 Oct 2022 21:37:36 -0400, Gilberto F da Silva
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, 25 Oct 2022 19:11:48 -0400, Gilberto F da Silva
    The spell checker for Esperanto is not working on Emacs running
under
Mageia 8. Obviously I already installed the dictionary using MCC. The
.emacs file is the same as used in other distributions.
What's the output of "env|grep -i -e LANG -e LC_|sort"?
mageia8 ~$ env|grep -i -e LANG -e LC_|sort
LANG=eo_XX.UTF-8
LANGUAGE=pt_BR:en_US
LC_ADDRESS=pt_BR.UTF-8
LC_IDENTIFICATION=pt_BR.UTF-8
LC_MEASUREMENT=pt_BR.UTF-8
LC_MONETARY=pt_BR.UTF-8
LC_NAME=pt_BR.UTF-8
LC_NUMERIC=pt_BR.UTF-8
LC_PAPER=pt_BR.UTF-8
LC_SOURCED=1
LC_TELEPHONE=pt_BR.UTF-8
mageia8 ~$
If I'm reading things correctly emacs uses aspell. Do you have a ~/.aspell.conf
file or /etc/aspell.conf and if so what do they contain?
Also if I'm reading things correctly the LANGUAGE variable is overriding the LANG
variable.
Try "LANGUAGE=eo_XX.UTF8 emacs"
Regards, Dave Hodgins
I couldn't find this .aspell file. As far as I can remember, I've never
had to deal with this file.

Many years ago I found these lines to be added to my .emacs file Since
then emacs running on my machine is able to spell check in 3 languages.

;;; Flyspell - correção ortográfica
(dolist (hook '(text-mode-hook))
(add-hook hook (lambda () (flyspell-mode 1))))
(dolist (hook '(change-log-mode-hook log-edit-mode-hook))
(add-hook hook (lambda () (flyspell-mode -1))))

; Troca de dicionários
(let ((langs '("esperanto" "brazilian" "american")))
(setq lang-ring (make-ring (length langs)))
(dolist (elem langs) (ring-insert lang-ring elem)))
(defun cycle-ispell-languages ()
(interactive)
(let ((lang (ring-ref lang-ring -1)))
(ring-insert lang-ring lang)
(ispell-change-dictionary lang)))

Sure! I need to install the dictionaries first.
--
Abraços

Gilberto F da Silva
Loading...