all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Felix Dietrich <felix.dietrich@sperrhaken.name>
To: help-gnu-emacs@gnu.org
Subject: Re: ispell select Emacs dictionary on Debian
Date: Mon, 26 Jul 2021 00:37:23 +0200	[thread overview]
Message-ID: <87y29uggv0.fsf@sperrhaken.name> (raw)
In-Reply-To: <87lf5v24xb.fsf_-_@zoho.eu> (Emanuel Berg via Users list for the's message of "Sat, 24 Jul 2021 15:54:24 +0200")

Emanuel Berg via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> writes:

>>> Both ‘ispell-local-dictionary’ and ‘ispell-dictionary’ are
>>> nil on my side
>>
>> Do
>>
>>   M-x ispell-change-dictionary RET SPC
>>
>> to see what dictionaries are installed.
>
> Now I start to think it doesn't work for me either!
>
> I did
>
>   $ sudo apt-get --install-suggests install iamerican-insane
>   $ sudo select-default-ispell
>
> and selected american-insane (the UI even mentions Emacs BTW)
>
> but the dictionary wouldn't turn up with
>
>   M-x ispell-change-dictionary RET SPC

Emacs defaults to using aspell for spell-checking.  The package
“iamerican-insane” installs a dictionary for the ispell program.  Both
programs use different, incompatible formats for their dictionaries.  If you
set ‘ispell-program-name’ to “ispell”, Emacs will offer the installed ispell
dictionaries with “M-x ispell-change-dictionary”.  Note, though, that you
also *cannot* share your personal dictionary between these two programs.

You may generate an american-insane dictionary for aspell from the wordlist
distributed in the package “wamerican-insane” using:

    aspell --lang=en --encoding=utf-8 \
        create master /usr/lib/aspell/en_US-insane.rws \
        </usr/share/dict/american-english-insane

I also had to create a file “/usr/lib/aspell/en_US-insane.multi” with the
following content for the dictionary to be picked up by aspell:

    add en_US-insane.rws

Afterwards check whether “en_US-insane” is listed in the output of
“aspell dicts”.  If it is, it should also be selectable in Emacs with
“M-x ispell-change-dictionary” (when ‘ispell-program-name’ is “aspell”).

As an aside: at a quick glance, I think that the insane dictionary contains
some dubious spelling.

> then I did
>
>   $ sudo apt-get --install-suggests install iamerican-\*
>
> and it installed all of it, I did 'ispell-change-dictionary'
> again and all the smaller alternatives were now there, but
> I picked -insane anyway, and what happened is, now "american"
> turns up as an alternative in Emacs.

I could not reproduce that.

> Is this as it should be, i.e. I use the -insane version and it
> is solved under the hood somehow? Or am I using
> just iamerican?

I donʼt know how to directly see which dictionary is used.  Try looking at
the [ia]spell processʼ arguments, either in emacs with “list-processes” or
in the shell with “ps”.  In the shell, you may also look at a list of open
files of the [ia]spell process using “lsof -p IASPELL_PID”.

Debian does some Debian things under the hood to make the installed
dictionaries selectable in Emacs.  They also ship custom versions of
“ispell.el” and “flyspell.el”.  Check the package “dictionaries-common”.

-- 
Felix Dietrich



  reply	other threads:[~2021-07-25 22:37 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-22  6:22 Create a complete/huge dictionary for aspell Hongyi Zhao
2021-07-22  6:36 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-22  7:48   ` Hongyi Zhao
2021-07-23  1:07     ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-23  1:29       ` Hongyi Zhao
2021-07-23  1:44         ` Hongyi Zhao
2021-07-23  7:29         ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-23 12:58     ` Felix Dietrich
2021-07-23 13:33       ` Hongyi Zhao
2021-07-24 13:34         ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-24 13:54           ` ispell select Emacs dictionary on Debian (was: Re: Create a complete/huge dictionary for aspell.) Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-25 22:37             ` Felix Dietrich [this message]
2021-07-26  0:24               ` ispell select Emacs dictionary on Debian Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-27  5:17                 ` Felix Dietrich
2021-08-01  0:26                   ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-01  6:09                     ` Eli Zaretskii
2021-08-01 12:46                     ` Felix Dietrich
2021-08-01 21:11                       ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-24 15:30           ` Create a complete/huge dictionary for aspell Hongyi Zhao
2021-07-24 16:47             ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-25  2:57               ` Hongyi Zhao
2021-07-25 15:36                 ` Hongyi Zhao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y29uggv0.fsf@sperrhaken.name \
    --to=felix.dietrich@sperrhaken.name \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.