help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Let ispell use use multiple dictionaries stored in different files.


From: Hongyi Zhao
Subject: Re: Let ispell use use multiple dictionaries stored in different files.
Date: Sun, 8 Aug 2021 12:52:59 +0800

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 via email to

[Prev in Thread] Current Thread [Next in Thread]