From: Hongyi Zhao <hongyi.zhao@gmail.com>
To: Emanuel Berg <moasenwood@zoho.eu>,
help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Let ispell use use multiple dictionaries stored in different files.
Date: Sun, 8 Aug 2021 11:10:11 +0800 [thread overview]
Message-ID: <CAGP6PO+PvpK-JuCq=kb04EZCGAU4y5m8+FO2OCubAmrX+abjTw@mail.gmail.com> (raw)
In-Reply-To: <874kc1i72n.fsf@zoho.eu>
On Sat, Aug 7, 2021 at 11:54 PM Emanuel Berg via Users list for the
GNU Emacs text editor <help-gnu-emacs@gnu.org> wrote:
>
> Hongyi Zhao wrote:
>
> > On Ubuntu 20.04, I noticed that ispell use the following
> > file as its completion dictionary: "/usr/share/dict/words",
> > which comes from wamerican package:
> >
> > $ apt-file search /usr/share/dict/words wamerican:
> > /usr/share/dict/words
> >
> > But I want to know if ispell can use multiple dictionaries
> > stored in different files for this purpose.
>
> Install wamerican-insane - that should be the biggest ... then
> just start type and spell, insert everything that is correct,
> using the interface. It should be more than enough
> pretty soon.
In fact, I have already installed this package some time ago. Here are
some additional comments:
There are 3 similar packages available in Ubuntu, and they all come
from wordlist project [1], as shown below:
$ apt-cache pkgnames | grep -- '^w.*-insane'
wbritish-insane
wamerican-insane
wcanadian-insane
But I still haven't figured out the convenient way to build/create the
latest insane version of English dictionary words lists from its
upstream repo, for which I've filed an issue there [2].
In my case, I first create a word list based on
Webster_s_Unabridged_3, see here [3] for more detailed steps. Then I
combine the wamerican-insane and Webster_s_Unabridged_3 into one even
bigger word list file, which includes 790592 entries at the moment:
$ awk '!a[$0]++' /usr/share/dict/american-english-insane
Webster_s_Unabridged_3.txt |
tee ~/american-english-insane-Webster_s_Unabridged | wc
790592 892589 8649982
[1] https://github.com/en-wl/wordlist
[2] https://github.com/en-wl/wordlist/issues/329
[3] https://github.com/company-mode/company-mode/issues/1146#issuecomment-886172208
> As for using multiple files, you can do a little Elisp loop
> that iterates the dictionaries.
Thank you for your instruction.
> Another alternative is this, see this discussion of virtual
> files on Linux:
>
> https://unix.stackexchange.com/questions/94041/a-virtual-file-containing-the-concatenation-of-other-files
>
> But I think it is overkill for this purpose (could be cool to
> try tho), if I wanted to use several files, I'd just have
> a simple script or Makefile that merged them into a new,
> regular file, and then that's what I would use.
I agree, and thank you again for sharing your views.
Hongyi
--
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province
next prev parent reply other threads:[~2021-08-08 3:10 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-07 12:20 Let ispell use use multiple dictionaries stored in different files Hongyi Zhao
2021-08-07 12:41 ` Eli Zaretskii
2021-08-07 13:46 ` Hongyi Zhao
2021-08-07 14:03 ` Eli Zaretskii
2021-08-07 15:54 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-08 3:10 ` Hongyi Zhao [this message]
2021-08-08 3:35 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-08 4:03 ` Hongyi Zhao
2021-08-08 4:09 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-08 4:22 ` Hongyi Zhao
2021-08-08 3:58 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-08 4:16 ` Hongyi Zhao
2021-08-08 4:40 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-08 4:52 ` Hongyi Zhao
2021-08-08 4:58 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-08 5:08 ` Hongyi Zhao
2021-08-08 5:19 ` Hongyi Zhao
2021-08-08 6:53 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-08 7:14 ` Hongyi Zhao
2021-08-08 7:22 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-08 7:43 ` Hongyi Zhao
2021-08-08 7:51 ` Hongyi Zhao
2021-08-08 8:02 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-08 8:27 ` Hongyi Zhao
2021-08-08 8:37 ` Hongyi Zhao
2021-08-08 10:14 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-08 13:09 ` Hongyi Zhao
2021-08-08 16:27 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-09 0:06 ` Hongyi Zhao
2021-08-09 0:34 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-09 1:31 ` 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='CAGP6PO+PvpK-JuCq=kb04EZCGAU4y5m8+FO2OCubAmrX+abjTw@mail.gmail.com' \
--to=hongyi.zhao@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=moasenwood@zoho.eu \
/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.