From: Richard Wordingham <richard.wordingham@ntlworld.com>
To: help-gnu-emacs@gnu.org
Subject: Re: correcting word groups (general spelling question)
Date: Wed, 1 Jul 2015 04:46:55 +0100 [thread overview]
Message-ID: <20150701044655.63e6e432@JRWUBU2> (raw)
In-Reply-To: <87zj3gwxhb.fsf@nl106-137-147.student.uu.se>
On Wed, 01 Jul 2015 02:08:32 +0200
Emanuel Berg <embe8573@student.uu.se> wrote:
> Yuri D'Elia <wavexx@thregr.org> writes:
>
> > If I add Kitteh to the dictionary, I will obviously
> > allow Kitteh to roam free in my text, which I don't
> > want. I really want to lean "Hello Kitteh" instead,
> > and also give auto-correct suggestions based on this
> > specific meaning, and not on the individual word.
>
> You can do it like this:
>
> (setq ispell-skip-region-alist
> (append ispell-skip-region-alist '(("Hello" . "Kitteh")) ))
No you can't. It would skip all of, "Hello James. We noq go around
saying, 'Hello Kitteh'.". "Noq" is a typo for "now".
> However, I consider this over-engineering. How many
> such combinations to you have?
>
> Why not just add "Kitteh"?
>
> Are you really that worried that will appear instead
> of the correct spelling?
A better example is "fro", which only appears in "to and fro". "Fro"
is a common typo for "for" and "from".
Hunspell seems to have a method of handling these words. It consists
of the qualifier -r on hunspell(1) and WARN in the affix file (see
hunspell(4)), along with a qualifier on the word itself in the
dictionary file. I haven't tried it, but presumably it relies on the
author being careless rather than ignorant of spelling.
Another approach is to move these words from the domain of
spell-checking to that of grammar-checking. It looks as though the
LibreOffice add-on langtool allows one to add grammar rules that would
check that Kitteh is preceded by Hello, and that 'fro' occurs in 'to
and fro'.
Richard.
next prev parent reply other threads:[~2015-07-01 3:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-30 11:16 correcting word groups (general spelling question) Yuri D'Elia
2015-07-01 0:08 ` Emanuel Berg
2015-07-01 3:46 ` Richard Wordingham [this message]
2015-07-01 17:27 ` Emanuel Berg
2015-07-01 17:47 ` John Mastro
2015-07-01 19:31 ` Richard Wordingham
2015-07-01 22:47 ` Emanuel Berg
2015-07-01 20:34 ` Yuri D'Elia
2015-07-01 22:50 ` Emanuel Berg
2015-07-08 10:19 ` Yuri D'Elia
2015-07-12 1:54 ` Emanuel Berg
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=20150701044655.63e6e432@JRWUBU2 \
--to=richard.wordingham@ntlworld.com \
--cc=help-gnu-emacs@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.