From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Colin Baxter Newsgroups: gmane.emacs.devel Subject: Re: About multiple spelling in Emacs Date: Mon, 11 May 2020 13:24:16 +0100 Message-ID: <87sgg6bqxb.fsf@yandex.com> References: <224138621.319007.1589125910422@mail1.libero.it> <83pnbbdb7v.fsf@gnu.org> <975708441.345932.1589191850034@mail1.libero.it> <87wo5ibutc.fsf@yandex.com> <868shy4so4.fsf@duenenhof-wilhelm.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="694"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: , Angelo Graziosi , emacs-devel@gnu.org To: dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 11 14:26:12 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jY7VZ-000Y0B-UG for ged-emacs-devel@m.gmane-mx.org; Mon, 11 May 2020 14:26:09 +0200 Original-Received: from localhost ([::1]:40068 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jY7VY-0005U5-TZ for ged-emacs-devel@m.gmane-mx.org; Mon, 11 May 2020 08:26:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37204) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jY7Tu-0003GR-E6 for emacs-devel@gnu.org; Mon, 11 May 2020 08:24:26 -0400 Original-Received: from forward101p.mail.yandex.net ([77.88.28.101]:54853) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jY7Tr-00054L-Rf for emacs-devel@gnu.org; Mon, 11 May 2020 08:24:25 -0400 Original-Received: from mxback27g.mail.yandex.net (mxback27g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:327]) by forward101p.mail.yandex.net (Yandex) with ESMTP id 4EAD92643F64; Mon, 11 May 2020 15:24:18 +0300 (MSK) Original-Received: from sas1-e20a8b944cac.qloud-c.yandex.net (sas1-e20a8b944cac.qloud-c.yandex.net [2a02:6b8:c14:6696:0:640:e20a:8b94]) by mxback27g.mail.yandex.net (mxback/Yandex) with ESMTP id IQEbLqQIak-OIMmiZrb; Mon, 11 May 2020 15:24:18 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1589199858; bh=D+V6ZeCIeqGOzu7kQrEkgTyhtzr8OV8kh2CELcSMqW0=; h=In-Reply-To:Subject:To:From:Cc:Cc:Date:References:Message-ID; b=ZeJ7/AUZe9STCdpVMPioKsTgd8L8FHBHYcHRkLgED78e7keGvv0VK4JZNjDnNMXzs 4yGDjwX9BKqZVwYYjUO9hDOaIT1XCB+/1SJbLUmy01G0uYKbW6AlYbaYiHEXMEl3r/ AO7nZb7G9F+9Ll2oLU++7q4LOUc14xS0o2iU0nRk= Authentication-Results: mxback27g.mail.yandex.net; dkim=pass header.i=@yandex.com Original-Received: by sas1-e20a8b944cac.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id hBjZyhg3PZ-OG28FIk6; Mon, 11 May 2020 15:24:17 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) X-Face: -P+89ASh_wrs;AUGm`!l[}/o-lyK}5W.gq\fkJ{#d6Gu,hWrZNz::iMm5PJb} __A96]-LUrl)X=uF=V|\3-\9/sXvBs/H In-Reply-To: <868shy4so4.fsf@duenenhof-wilhelm.de> (H. Dieter Wilhelm's message of "Mon, 11 May 2020 13:28:27 +0200") Face: iVBORw0KGgoAAAANSUhEUgAAACwAAAAMCAIAAACWSshgAAAABmJLR0QA/wD/AP+gvaeTAAAA jUlEQVQ4je2UsQrDMBBDJedciLcM+e/Szyj0G/JdIddepsBtAdljtdxiyc9GNrcNpUBTeWH6AMB7 WZ7rKqaQ1hrMRDtqmqQYUorNM2q9X3kDQer3SarOobLjQITq/qapp8DcZS/wuyA6CBBhET1nGCNr bUAxH6T+Ov7FTBDuHfZczB6Ifde/meqY5J2TTgEOLasK+kYwAAAAAElFTkSuQmCC Received-SPF: pass client-ip=77.88.28.101; envelope-from=m43cap@yandex.com; helo=forward101p.mail.yandex.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/11 08:24:18 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] 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_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:249778 Archived-At: Hello Dieter >>>>> H Dieter Wilhelm writes: > Hello Colin Colin Baxter writes: >> > But, how? How can I instruct Emacs to use two dictionaries, say >> > Italian and English? >> >> I use ispell and switch from English to Latin setting a local >> variable ispell-local-dictionary: "latin". If the file, however, >> has a mixture of English and Latin then I use a defun: >> >> #+begin_src elisp (defun my-ispell-latin () "Switch to the Latin >> dictionary." (interactive) ;; Change personal dict - 1st line >> personal dict must match language (latin) (setq >> ispell-personal-dictionary "~/.emacs-files/dicts/latin.pws") >> (ispell-change-dictionary "latin")) #+end_src > FYI: I'm using the very same Ispell commands but I've installed > Aspell and have the impression, that Emacs or Aspell - don't know > - is changing automatically the personal dictionary when using > ispell-change dictionary... >> To change back I use another defun for the next language, written >> in exactly the same way. Ok, I know, my method is crude, sort of >> cargo cult programming, but it works for me. > I think the above is working for larger language blocks but is not > so good for interspersed texts in another language. > As Eli mentioned already multiple language checking should work > with Hunspell under Emacs. I didn't yet convert to Hunspell but > maybe the following link will help you to set it up: > https://emacs.stackexchange.com/questions/21378/spell-check-with-multiple-dictionaries Thanks for your suggestion. There is another reason why I prefer ispell, which I didn't mention. I'm using aspell, which, as you know, works seamlessly with ispell, to compile a dictionary of specialist terms, and I don't want to change software mid-project. But thanks again - I didn't know of the link. Best wishes, Colin. Colin Baxter URL: http://www.Colin-Baxter.com