From: Bob Rogers <rogers@rgrjr.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 67857@debbugs.gnu.org
Subject: bug#67857: 30.0.50; ispell fails on apostrophes when the dictionary includes contractions
Date: Sun, 17 Dec 2023 13:22:07 -0800 [thread overview]
Message-ID: <25983.26239.904439.633771@orion.rgrjr.com> (raw)
In-Reply-To: <83a5q9l3fl.fsf@gnu.org>
From: Eli Zaretskii <eliz@gnu.org>
Date: Sun, 17 Dec 2023 08:59:42 +0200
> Date: Sat, 16 Dec 2023 13:03:46 -0800
> From: Bob Rogers <rogers@rgrjr.com>
>
> . . .
>
> 4. Type M-$. The sole offered replacement is "wouldn't" but the
> text it offers to replace is "wiouldn"; typing "0" to take the
> replacement results in "this wouldn't't work" in the buffer.
Doesn't happen for me . . .
You are looking at the wrong places to try fixing this. First, the
default for OTHERCHARS in English and American dictionaries is "[']"
(see ispell-dictionary-base-alist), and likewise for the "default"
dictionary, so this already includes the apostrophe.
Yes, I see this.
However, when ispell.el uses Hunspell, it doesn't use this database
for OTHERCHARS; instead, it looks in the dictionary's affix file, see
ispell-parse-hunspell-affix-file. So you should look in your affix
file and see if the apostrophe is mentioned there. In my affix file
for English, I see this line:
WORDCHARS 0123456789'
which includes the apostrophe. See hunspell(4) man page for more
details about the affix file and its settings.
Yes, this is my problem; the apostrophe was missing, and ispell DTRT
when I add it. (I think I understand now what "different character
maps" means.) Thanks for pointing me in the right direction.
My affix file also has this line, which also includes the apostrophe:
TRY esianrtolcdugmphbyfvkwzESIANRTOLCDUGMPHBYFVKWZ'-
Not sure if it's relevant, but I though I'd mention it for
completeness.
Mine has the apostrophe (though not the hyphen), so I left it alone.
I see no bug in Emacs here. ispell.el works as intended.
Agreed; this is probably an openSUSE config problem. Unfortunately, I
can't file a bug with them because they are still shipping 27.2 (at
least in their openSUSE Leap 15.5 release) and I can't reproduce this
issue in that version.
-- Bob
next prev parent reply other threads:[~2023-12-17 21:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-16 21:03 bug#67857: 30.0.50; ispell fails on apostrophes when the dictionary includes contractions Bob Rogers
2023-12-17 6:59 ` Eli Zaretskii
2023-12-17 21:22 ` Bob Rogers [this message]
2023-12-18 3:27 ` Eli Zaretskii
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=25983.26239.904439.633771@orion.rgrjr.com \
--to=rogers@rgrjr.com \
--cc=67857@debbugs.gnu.org \
--cc=eliz@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.