From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: Let ispell use use multiple dictionaries stored in different files. Date: Sat, 7 Aug 2021 21:46:20 +0800 Message-ID: References: <834kc1ifzl.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11119"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 07 15:47:57 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mCMg9-0002fY-57 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 07 Aug 2021 15:47:57 +0200 Original-Received: from localhost ([::1]:43782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mCMg7-0002jj-CS for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 07 Aug 2021 09:47:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42582) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCMeq-0001er-53 for help-gnu-emacs@gnu.org; Sat, 07 Aug 2021 09:46:36 -0400 Original-Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]:35484) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mCMeo-00014o-Nu; Sat, 07 Aug 2021 09:46:35 -0400 Original-Received: by mail-lf1-x12c.google.com with SMTP id c16so24081538lfc.2; Sat, 07 Aug 2021 06:46:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tSQZI0h/9sQwgEEWiGpB7GUTu6W1nwGu2WnFZFwbd+c=; b=Q3mK4GCyI8czPn8L7ch3WTi7HGg4NhP9d/2a9sAbxHz2raE2XVnyHqbz10McFN5aco Ow+Ox0nUQHb9gzypnjLXG5u/lZzPsOLvCSKaXsrS+1Rud9nCY/G+BLUFOrzgzcEwkWI0 rQZWwi2M9i0BJgPcylCWyD8Ye1T6KXveE+/oau0CZqd+Bb5d1XhPdMUiDesfm/ogykAw geryWeDtwyR4T7e82Mk1B+lGgahNGqPDxO9v6ZiZzC0lsCIfl9qphsr6DkahmSTDPdng m2Tvu1RdH+1q8nMdu2CE4xfqiPJN3gzilepWAp0NPkRpNIy/0nTKGCWIC6GgEG5FPJA7 vY7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tSQZI0h/9sQwgEEWiGpB7GUTu6W1nwGu2WnFZFwbd+c=; b=H08h0/kIhEi2bPWhvHnJXdWQWALOz4QFnTjPpsfJ5hUq79VSRLaqF/6pzorJh/b8hi /InajvHW8RjVfzPAqzAi9LcdW3M1/ABnMI/yap/3rhGozox5jkd/LCMuMREFhTE9lEUa b49+6/2P2iEz/YgwnJFuDweJASdzv+AM/fneuzvK+HalodGAu47OVpFnuvKgLT+6IcVs ZpEmlhEyhP7iWpzYvOt2R0B2XschR0FFlDBOAO4/OQX0sWjtS+uGBsR/hQ74tXBODN09 4HEaQ3Z+2XFtKrvHmeWHBkBSh7Ay7UBWnyVvONautzRm4jjyp3XEfXByxIU9Qnfn0+AH XgRA== X-Gm-Message-State: AOAM532SJ2eFIlqrPbwKecYIsxGK2W0ON8ZViF3+MDoh89jOUJ8zDmFJ 1Cup9j/nMS4Hd1MJOxgFxS4b6+BZxgfp2y/nFH9aPb6rH8ARol0Yt0A= X-Google-Smtp-Source: ABdhPJwY/fV4g3dmtFlPFhBTPreElOuXmYlChbRCPL4qcdhnSSPSXS4m7g2wgxzksqLu0g5n8Et8LeQzyzi374S1N3E= X-Received: by 2002:ac2:5f72:: with SMTP id c18mr11553438lfc.390.1628343992003; Sat, 07 Aug 2021 06:46:32 -0700 (PDT) In-Reply-To: <834kc1ifzl.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::12c; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x12c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:132385 Archived-At: On Sat, Aug 7, 2021 at 8:41 PM Eli Zaretskii wrote: > > > From: Hongyi Zhao > > Date: Sat, 7 Aug 2021 20:20:02 +0800 > > > > 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. > > ispell-alternate-dictionary is a defcustom, so you can customized the > value to point to any other file. But it must to be a single file. Thank you for letting me know this restriction. > Why do you need to use more than one file at once? Say, use different files to store vocabulary of different disciplines. > This file is not really used as a dictionary, it is used to complete words you type as > replacements, or when you are looking for a word you cannot remember. > It isn't a dictionary used by the speller for finding spelling > mistakes. Thank you for your explanation. Regards -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province