From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: ispell select Emacs dictionary on Debian Date: Sun, 01 Aug 2021 09:09:55 +0300 Message-ID: <83bl6hofv0.fsf@gnu.org> References: <8735s63leh.fsf@zoho.eu> <874kcli3uk.fsf@sperrhaken.name> <87pmv725un.fsf@zoho.eu> <87lf5v24xb.fsf_-_@zoho.eu> <87y29uggv0.fsf@sperrhaken.name> <87k0ldylab.fsf@zoho.eu> <87r1fkgwtp.fsf@sperrhaken.name> <877dh680yf.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25655"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 01 08:10:46 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 1mA4gQ-0006TU-3I for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 01 Aug 2021 08:10:46 +0200 Original-Received: from localhost ([::1]:54384 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mA4gO-0002qo-AR for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 01 Aug 2021 02:10:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49412) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mA4fm-0002pq-HG for help-gnu-emacs@gnu.org; Sun, 01 Aug 2021 02:10:06 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40740) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mA4fm-0002OH-9w for help-gnu-emacs@gnu.org; Sun, 01 Aug 2021 02:10:06 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1342 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mA4fl-0005zc-UX for help-gnu-emacs@gnu.org; Sun, 01 Aug 2021 02:10:06 -0400 In-Reply-To: <877dh680yf.fsf@zoho.eu> (message from Emanuel Berg via Users list for the GNU Emacs text editor on Sun, 01 Aug 2021 02:26:16 +0200) 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:132252 Archived-At: > Date: Sun, 01 Aug 2021 02:26:16 +0200 > From: Emanuel Berg via Users list for the GNU Emacs text editor > > Felix Dietrich wrote: > > > “emacsen-ispell-dicts.el” is only read at start-up [2]. > > If you install a new dictionary, an already running Emacs > > will not know about it. > > Same with restart. > > > You may try to reinitialise the dictionary with the > > following snippet: > > > > (progn > > (setq debian-ispell-only-dictionary-alist nil > > debian-aspell-only-dictionary-alist nil > > debian-hunspell-only-dictionary-alist nil > > ispell-dictionary-alist nil) > > (load-file "/var/cache/dictionaries-common/emacsen-ispell-dicts.el") > > ;; There is a setter associated with ‘ispell-program-name’ which > > ;; calls ‘ispell-set-spellchecker-params’. Calling this function > > ;; directly does not work; I don't understand why. > > (setq ispell-program-name "ispell")) > > That file, > /var/cache/dictionaries-common/emacsen-ispell-dicts.el, has as > its last line > > (setq debian-hunspell-dictionary (debian-ispell-get-hunspell-default)) > > but the function "debian-ispell-get-hunspell-default" > is undefined. > > Anyway same. > > > For testing purposes, start Emacs with the “-q” > > (“--no-init-file”) switch. Do the dictionaries show up then > > in the dialog of ‘ispell-change-dictionary’? > > A lot of dictionaries show up with -q! No idea why, and > interestingly, american-insane and the other installed do not. > > > Do you use a custom built Emacs or the Debian package? > > It is installed from source! > > >> PS. The Swedish dictionary doesn't work either. It saysff > >> "ispell-init-process: Illegal format hash table > >> /usr/lib/ispell/svenska.hash - expected magic2 0x9602, > >> got 0x414c" > > > > Does not work for me either. Seems like a bug. Please report > > it. Meanwhile, try recreating the .hash file manually > > (requires the wswedish package): > > > > buildhash /usr/share/dict/svenska /usr/lib/ispell/svenska.aff \ > > /usr/lib/ispell/svenska.hash > > That works! Cool! > > A bug where, in Debian's wswedish? I wonder why people still insist on using ispell (the program), when hunspell and aspell are widely available, provide better spell-checking in more languages, and detect the installed dictionaries automatically instead of requiring complicated manual sertup?