From: Gustavo Barros <gusbrs.2016@gmail.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 08:41:49 -0300 [thread overview]
Message-ID: <87v9l2itqa.fsf@gmail.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)")
Hi Angelo,
On Mon, May 11 2020, Angelo Graziosi wrote:
>> 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?
>
> TIA
It is indeed possible with hunspell, as Eli mentioned. I use the
following settings for this:
#+begin_src emacs-lisp
(use-package ispell
:custom
(ispell-program-name "hunspell")
(ispell-dictionary "en_US,pt_BR")
:config
;; from https://emacs.stackexchange.com/a/21379/18951
(ispell-set-spellchecker-params)
(ispell-hunspell-add-multi-dic "en_US,pt_BR"))
#+end_src
It works very well for me.
You might interested in a recent thread about spell-checking at Reddit:
https://www.reddit.com/r/emacs/comments/fxs92h/spell_checkers_in_emacs_in_2020/
Using multiple dictionaries was also discussed there. In particular, I
received nice tips from Alan Third on how to fine tune hunspell for the
case quote contractions (common in English) with curly quotes and
multiple dictionaries.
HTH,
Gustavo.
next prev parent reply other threads:[~2020-05-11 11:41 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
2020-05-11 11:28 ` H. Dieter Wilhelm
2020-05-11 12:24 ` Colin Baxter
2020-05-11 11:41 ` Gustavo Barros [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87v9l2itqa.fsf@gmail.com \
--to=gusbrs.2016@gmail.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).