all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Heslin <pj@heslin.eclipse.co.uk>
To: emacs-devel@gnu.org
Subject: Re: Adding ispell-multi.el and friends to Emacs
Date: Mon, 18 Jun 2007 00:11:59 +0100	[thread overview]
Message-ID: <87abuygoqo.fsf@heslin.eclipse.co.uk> (raw)
In-Reply-To: 87645ml132.fsf@jurta.org

Juri Linkov <juri@jurta.org> writes:

>>> > I think it should be the default.  Most users won't make real use of
>>> > more than one dictionary, so they won't lose anything.  Those that do
>>> > should get the benefit of this.
>>> 
>>> I think almost everyone whose native language isn't English does make
>>> use of more than one dictionary...
>>
>> But usually not at the same time.
>
> Spell-checking of mixed multi-language texts is not a rare need.
>
> How well does ispell-multi.el deal with this?  Can it detect different
> languages in the same buffer and check them with different ispell
> dictionaries? 

Yes, but only for flyspell (this is exactly what flyspell-babel and
flyspell-xml-lang do).  Flyspell provides a hook it calls before
spell-checking each word, which makes it easy ensure the correct
dictionary for each word in the buffer.

I don't use ispell on its own, so I did not look previously into what it
would take to add this feature to ispell-buffer and friends. I have
taken a quick look now at ispell.el and it seems that ispell-buffer
sends the text of the buffer to the ispell process one line at a time.
This design makes it impossible to switch language in mid-line.

Perhaps it would be a simple change to modify ispell-process-line so
that it loops over the words in a line and sends each one to ispell
individually, switching processes if the language has changed.  Or it
might be hairy to change that function -- I don't know the code well
enough to guess what the complications might be.

Peter

-- 
Peter Heslin (http://www.dur.ac.uk/p.j.heslin)

  reply	other threads:[~2007-06-17 23:11 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-14 12:58 Adding ispell-multi.el and friends to Emacs Peter Heslin
2007-06-15  8:48 ` Richard Stallman
2007-06-15 23:00   ` Peter Heslin
2007-06-16 18:50     ` Richard Stallman
2007-06-16 19:46       ` Frank Schmitt
2007-06-17 21:05         ` Agustin Martin
2007-06-17 21:31           ` Juri Linkov
2007-06-17 23:11             ` Peter Heslin [this message]
2007-06-18  9:55               ` Agustin Martin
2007-06-18 12:35                 ` martin rudalics
2007-06-19 13:14                   ` Agustin Martin
2007-06-20 12:46                     ` martin rudalics
2007-06-20 23:09                       ` Agustin Martin
2007-06-21 18:44                 ` Davis Herring
2007-06-18 21:31               ` Richard Stallman
2007-06-15  9:21 ` martin rudalics
2007-06-15 22:53   ` Peter Heslin
2007-06-16 10:03     ` martin rudalics
2007-06-16 10:55     ` Eli Zaretskii
2007-06-16 12:24       ` martin rudalics
2007-06-18 10:02     ` Agustin Martin
2007-06-18 12:37       ` martin rudalics
2007-06-19 15:13         ` Agustin Martin
2007-06-20 12:47           ` martin rudalics
2007-06-20 23:33             ` Agustin Martin
2007-06-21 17:32               ` Richard Stallman
2007-06-21 17:59                 ` David Kastrup
2007-06-21 21:39                 ` Peter Heslin
2007-06-22 16:24                   ` Richard Stallman
2007-06-22 21:22                     ` Peter Heslin
2007-06-23 18:26                       ` Richard Stallman
2008-01-13 17:19                         ` Dan Nicolaescu
2007-06-21 21:25               ` Peter Heslin

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=87abuygoqo.fsf@heslin.eclipse.co.uk \
    --to=pj@heslin.eclipse.co.uk \
    --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.