From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Felix Dietrich Newsgroups: gmane.emacs.help Subject: Re: ispell select Emacs dictionary on Debian Date: Mon, 26 Jul 2021 00:37:23 +0200 Message-ID: <87y29uggv0.fsf@sperrhaken.name> References: <8735s63leh.fsf@zoho.eu> <874kcli3uk.fsf@sperrhaken.name> <87pmv725un.fsf@zoho.eu> <87lf5v24xb.fsf_-_@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13019"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 26 00:37:55 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 1m7mks-0003DE-Uf for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 26 Jul 2021 00:37:54 +0200 Original-Received: from localhost ([::1]:44558 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7mkr-0007gP-Vz for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 25 Jul 2021 18:37:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7mkY-0007gE-95 for help-gnu-emacs@gnu.org; Sun, 25 Jul 2021 18:37:34 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.133]:57823) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7mkW-0007nX-8B for help-gnu-emacs@gnu.org; Sun, 25 Jul 2021 18:37:33 -0400 Original-Received: from localhost ([78.55.121.108]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M27Bp-1m5Jlx2Yy9-002YG5 for ; Mon, 26 Jul 2021 00:37:28 +0200 In-Reply-To: <87lf5v24xb.fsf_-_@zoho.eu> (Emanuel Berg via Users list for the's message of "Sat, 24 Jul 2021 15:54:24 +0200") X-Provags-ID: V03:K1:BimwbM8YEf9Wtg1JQpneO7Hk6EoWMOqVjZ7qe1EomyNgqT4MrSp 7NSiZBi7ob4OytzRp1HXPr+sL2xylWKP1sGOFcZBWvh6PyxlxDVs77EvWLzH/P15FFICGZv EcOGKRwWScduvMgJbAdtII1mvn+1Zxo9P7S9s9UYdvessTSUuyATWwvrdfmieF58TEYY7bG IrhY1EdQ3iy+DI3qmSydQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:Jgluqexu4M4=:Rj1hLeYrJN62BulXEZ25AQ 9yQtOfFfR8jvjx3KIJ6UeFZI/ZdGgs7pOJcJsMREkrrzvNh4+IKFqGDSedQ8LFGNIoeNbZFes NFzCAc5gheiR6EPvUV1FJ4F0pvSTkraWWLqVGYjR3mh5ysY3MJt0GMTKh5Vgb9jnrIB2Wr0OL +imwP1n/GpQVhTZGBg900CZRx6qqo+OrT2tUVrmAWhQV0y36CzCc7ob1xuZ3P/cVABzdpOZSd jUsUCuU42gXEiQgNZjDP0xsZuu83/UzYoewPXVwxongzrDLqwNhku21pkg0TaVJgZRNLQJ4ei 9B8rS9+bw1KSzTiOHh+PGyToHlrwazyTcjOXrT02dyOkfErh5CO1CE2rTjOT+CdpaRP4GZPod G8qcLmJeHicIml3oAz5jfqdNgMSUIcYAL5i/UeYkTU7g80zMTnHIDyMsgpFbxD7M7YGGReIS5 vTGaFEPa0lEXqiAMHvO/czUCADv1sxiZVsFinfKajX4ruH1Q40+odOOIU/wnrMeNBSRvqqWNR hFi7PtZZEaF4LrtJYTx81X55bENWOMBVyGCFvbN8rJyV4CgLKFcTgzvi8pOfRWP/JoFdjYq9a Um2GvPTGOm2Dr0vTdE6vssdGmvXaakrOpcXYu9EKXI5fV9x4E3/JmrkggUnUQ06HtQgDTJVJQ 3jRNGSKE5FNayEZv+AwRDM493GLXA/gujlRgrJlMJZjQXgBnk4Xo4wihNsu1UE8EBiGksBy7K PtrQ16sNDhiW+sgzaonf+aXZXti1Q7JsxC893zqnVotZak4kS8LwSZJniiChVh1y/fOLhRWE Received-SPF: none client-ip=212.227.126.133; envelope-from=felix.dietrich@sperrhaken.name; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_NONE=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:132105 Archived-At: Emanuel Berg via Users list for the GNU Emacs text editor writes: >>> Both =E2=80=98ispell-local-dictionary=E2=80=99 and =E2=80=98ispell-dict= ionary=E2=80=99 are >>> nil on my side >> >> Do >> >> M-x ispell-change-dictionary RET SPC >> >> to see what dictionaries are installed. > > Now I start to think it doesn't work for me either! > > I did > > $ sudo apt-get --install-suggests install iamerican-insane > $ sudo select-default-ispell > > and selected american-insane (the UI even mentions Emacs BTW) > > but the dictionary wouldn't turn up with > > M-x ispell-change-dictionary RET SPC Emacs defaults to using aspell for spell-checking. The package =E2=80=9Ciamerican-insane=E2=80=9D installs a dictionary for the ispell pro= gram. Both programs use different, incompatible formats for their dictionaries. If you set =E2=80=98ispell-program-name=E2=80=99 to =E2=80=9Cispell=E2=80=9D, Emac= s will offer the installed ispell dictionaries with =E2=80=9CM-x ispell-change-dictionary=E2=80=9D. Note, th= ough, that you also *cannot* share your personal dictionary between these two programs. You may generate an american-insane dictionary for aspell from the wordlist distributed in the package =E2=80=9Cwamerican-insane=E2=80=9D using: aspell --lang=3Den --encoding=3Dutf-8 \ create master /usr/lib/aspell/en_US-insane.rws \ then I did > > $ sudo apt-get --install-suggests install iamerican-\* > > and it installed all of it, I did 'ispell-change-dictionary' > again and all the smaller alternatives were now there, but > I picked -insane anyway, and what happened is, now "american" > turns up as an alternative in Emacs. I could not reproduce that. > Is this as it should be, i.e. I use the -insane version and it > is solved under the hood somehow? Or am I using > just iamerican? I don=CA=BCt know how to directly see which dictionary is used. Try lookin= g at the [ia]spell process=CA=BC arguments, either in emacs with =E2=80=9Clist-p= rocesses=E2=80=9D or in the shell with =E2=80=9Cps=E2=80=9D. In the shell, you may also look at= a list of open files of the [ia]spell process using =E2=80=9Clsof -p IASPELL_PID=E2=80=9D. Debian does some Debian things under the hood to make the installed dictionaries selectable in Emacs. They also ship custom versions of =E2=80=9Cispell.el=E2=80=9D and =E2=80=9Cflyspell.el=E2=80=9D. Check the p= ackage =E2=80=9Cdictionaries-common=E2=80=9D. --=20 Felix Dietrich