all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Colin Baxter <m43cap@yandex.com>
To: Angelo Graziosi <angelo.g0@libero.it>
Cc: , emacs-devel@gnu.org
Subject: Re: About multiple spelling in Emacs
Date: Mon, 11 May 2020 12:00:15 +0100	[thread overview]
Message-ID: <87wo5ibutc.fsf@yandex.com> (raw)
In-Reply-To: <975708441.345932.1589191850034@mail1.libero.it> (Angelo Graziosi's message of "Mon, 11 May 2020 12:10:49 +0200 (CEST)")

Hello Angelo,
>>>>> Angelo Graziosi <angelo.g0@libero.it> 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



  parent reply	other threads:[~2020-05-11 11:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-10 15:51 About multiple spelling in Emacs Angelo Graziosi
2020-05-10 16:08 ` Eli Zaretskii
2020-05-11 10:10   ` Angelo Graziosi
2020-05-11 10:18     ` Manuel Uberti
2020-05-11 11:00     ` Colin Baxter [this message]
2020-05-11 11:28       ` H. Dieter Wilhelm
2020-05-11 12:24         ` Colin Baxter
2020-05-11 11:41     ` Gustavo Barros
2020-05-11 15:16     ` Eli Zaretskii
2020-05-11 20:20       ` Angelo Graziosi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wo5ibutc.fsf@yandex.com \
    --to=m43cap@yandex.com \
    --cc=angelo.g0@libero.it \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.