unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
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 12:52:59 +0800	[thread overview]
Message-ID: <CAGP6POJUode3Z3-cbrNK_v_Tjkz+BeUfbSU5hNbRjLvXyrdhLg@mail.gmail.com> (raw)
In-Reply-To: <87fsvkft1t.fsf@zoho.eu>

On Sun, Aug 8, 2021 at 12:40 PM Emanuel Berg via Users list for the
GNU Emacs text editor <help-gnu-emacs@gnu.org> wrote:
>
> Hongyi Zhao wrote:
>
> > But the sort command will sort them accordingly. Keep in
> > mind that the ispell and any autocompletion tools/frameworks
> > needs the already well sorted word list file for achieving
> > affordable performance when the word list file is huge, at
> > least this is the case for Emacs's ispell initialization
> > stage. Out of this consideration, I don't want to change the
> > occurrences order of the words given in the original word
> > list files.
>
> They are sorted, here are the first 10 words of
> /usr/share/dict/american-english-insane
>
> A
> A'asia
> A's
> AATech
> AATech's
> AAeE
> AAeE's
> AAgr
> AAgr's
> AAvTech
> AAvTech's
> ABEd
>
> so one just needs to find the correct sort(1) options to do
> that :) (And if you can't, just sort and see what happens...)
>
> "awk '!a[$0]++' A B" doesn't sort, but that's what you want as
> you say.

Yes, considering that the input word list files have already well
sorted in lexicographically order, I just want to delete duplicates
and leave the rest in their original order.

Best regards,
-- 
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



  reply	other threads:[~2021-08-08  4:52 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
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 [this message]
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=CAGP6POJUode3Z3-cbrNK_v_Tjkz+BeUfbSU5hNbRjLvXyrdhLg@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).