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 12:00:15 +0100 Message-ID: <87wo5ibutc.fsf@yandex.com> References: <224138621.319007.1589125910422@mail1.libero.it> <83pnbbdb7v.fsf@gnu.org> <975708441.345932.1589191850034@mail1.libero.it> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="129026"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: , emacs-devel@gnu.org To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 11 13:01:47 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 1jY6Bu-000XSY-Li for ged-emacs-devel@m.gmane-mx.org; Mon, 11 May 2020 13:01:46 +0200 Original-Received: from localhost ([::1]:36954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jY6Bt-0006na-Ne for ged-emacs-devel@m.gmane-mx.org; Mon, 11 May 2020 07:01:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53152) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jY6Ac-0005nv-Gf for emacs-devel@gnu.org; Mon, 11 May 2020 07:00:26 -0400 Original-Received: from forward103o.mail.yandex.net ([2a02:6b8:0:1a2d::606]:36229) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jY6AZ-0003OV-Oo for emacs-devel@gnu.org; Mon, 11 May 2020 07:00:25 -0400 Original-Received: from mxback18o.mail.yandex.net (mxback18o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::69]) by forward103o.mail.yandex.net (Yandex) with ESMTP id E5FFC5F81838; Mon, 11 May 2020 14:00:17 +0300 (MSK) Original-Received: from sas2-ee0cb368bd51.qloud-c.yandex.net (sas2-ee0cb368bd51.qloud-c.yandex.net [2a02:6b8:c08:b7a3:0:640:ee0c:b368]) by mxback18o.mail.yandex.net (mxback/Yandex) with ESMTP id wO2CLmrs8Q-0HvKPTxm; Mon, 11 May 2020 14:00:17 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1589194817; bh=fTByCky8ubnpUAFV/HcMEnfPFiLyGcBMzeDiCGDxau4=; h=In-Reply-To:Subject:To:From:Cc:Cc:Date:References:Message-ID; b=YB3vshUFnL9OPjdLbaEoC+jKbvIloXQ0cDUHi/Uo/Si2HlfqjYdT+gi9VrgxkQT4H kM2/JM6LFcX6aQHkF5T4lLGc4uJ634E0nlyS5Xdjd3pytX+2YwyqCURPOfZCigXxTW I5BWT0GFxDwaOlg5CCO5of6W86JG75errWAi0Vls= Authentication-Results: mxback18o.mail.yandex.net; dkim=pass header.i=@yandex.com Original-Received: by sas2-ee0cb368bd51.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id thMqdp88w6-0GQCjM9i; Mon, 11 May 2020 14:00:16 +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: <975708441.345932.1589191850034@mail1.libero.it> (Angelo Graziosi's message of "Mon, 11 May 2020 12:10:49 +0200 (CEST)") Face: iVBORw0KGgoAAAANSUhEUgAAACwAAAAMCAIAAACWSshgAAAABmJLR0QA/wD/AP+gvaeTAAAA jUlEQVQ4je2UsQrDMBBDJedciLcM+e/Szyj0G/JdIddepsBtAdljtdxiyc9GNrcNpUBTeWH6AMB7 WZ7rKqaQ1hrMRDtqmqQYUorNM2q9X3kDQer3SarOobLjQITq/qapp8DcZS/wuyA6CBBhET1nGCNr bUAxH6T+Ov7FTBDuHfZczB6Ifde/meqY5J2TTgEOLasK+kYwAAAAAElFTkSuQmCC Received-SPF: pass client-ip=2a02:6b8:0:1a2d::606; envelope-from=m43cap@yandex.com; helo=forward103o.mail.yandex.net X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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:249776 Archived-At: Hello Angelo, >>>>> Angelo Graziosi writes: >> Il 10 maggio 2020 alle 18.08 Eli Zaretskii ha scritto: >> >> >> > Date: Sun, 10 May 2020 17:51:50 +0200 (CEST) > From: Angelo >> Graziosi >> > >> > I see that some browser allow for spelling in two languages >> (say > italian and english). Can we do the same in Emacs? How? >> >> You mean, spell-checking text that mixes 2 languages? That's >> possible with Hunspell, yes. > 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 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. Best wishes, Colin. Colin Baxter URL: http://www.Colin-Baxter.com