unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Reuben Thomas via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 42248@debbugs.gnu.org
Subject: bug#42248: Problems between Flyspell and Enchant
Date: Mon, 7 Sep 2020 00:53:52 +0100	[thread overview]
Message-ID: <CAOnWdojfjVG5GWXk5eJODo+Pqkrs_bhx0LKbxgoDJwbY_t4RWg@mail.gmail.com> (raw)
In-Reply-To: <878sfvwbr0.fsf@disroot.org>

[-- Attachment #1: Type: text/plain, Size: 2005 bytes --]

[I'm the Enchant maintainer and author of the Enchant support in ispell.el,
so it's All My Fault :) Sorry!]

I cannot reproduce the problem with numbers being detected as misspellings
from the command line with enchant-2 2.2.8 or 2.2.10. (As all the digits
are in WORDCHARS, it is expected that numbers should pass spell-checking.)

I looked into the matter of "-B". It would be quite tiresome to have to
teach ispell.el which spelling checkers accept -B. I notice that hunspell
does not support -B, but it does accept it; indeed, it seems to happily
accept and discard any unknown option. I think Enchant should silently
ignore -B, as it does with -m to work with Emacs.
I agree that the en_US dictionary should contain ' in its WORDCHARS. I
found another, recent, Debian bug about this, this time on the correct
package (the dictionaries):
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=964257 I have merged the
two bug reports in the hopes that this might help!

Note that quotation marks work correctly in the Debian en_GB dictionary,
though there is another problem there: WORDCHARS contains only the curly
quote. This is because hunspell contains the following special rule: if
either the straight or curly single right quote is listed in WORDCHARS,
then the other is also allowed. I have implemented this logic in Enchant
2.2.10 in its hunspell backend (recently released).

I found a couple of minor bugs in enchant: first, it gives an unhelpful
error message when asked for a language it doesn't have; and secondly, at
least for me `enchant-lsmod-2 -list-dicts` does not list the en_US
dictionary even though it is installed. I will look into those, as the
second in particular affects Emacs.

I agree with the patch to ispell.el, in all three points, though for me the
invocation of enchant-lsmod-2 does not fail with the extra argument (this
will be why I didn't notice the problem when I originally wrote the code).
I am happy to install this patch if Eli agrees.

-- 
https://rrt.sc3d.org

[-- Attachment #2: Type: text/html, Size: 3522 bytes --]

  parent reply	other threads:[~2020-09-06 23:53 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-07 16:06 bug#42248: 27.0.91; With enchant-2.2.8 from Guix, Flyspell errors out or gives lots of false positives Jorge P. de Morais Neto
     [not found] ` <CADwFkm=7Pus_bMhUita=70qsRjfRiNN+oe-YnsCucpParnfPcA@mail.gmail.com>
2020-08-20  1:35   ` Jorge P. de Morais Neto
2020-08-20  1:56     ` Jorge P. de Morais Neto
2020-08-20 13:18     ` Eli Zaretskii
2020-08-20 15:36       ` Jorge P. de Morais Neto
2020-08-20 16:02         ` Eli Zaretskii
2020-08-20 17:49           ` Jorge P. de Morais Neto
2020-08-20 17:52             ` Jorge P. de Morais Neto
2020-08-20 18:26             ` Eli Zaretskii
2020-08-22 20:54               ` Jorge P. de Morais Neto
2020-08-27 17:30                 ` Stefan Kangas
2020-08-27 17:49                   ` Eli Zaretskii
2020-08-27 19:05                     ` Stefan Kangas
2020-08-27 19:13                       ` Eli Zaretskii
2020-08-27 19:13                       ` Eli Zaretskii
2020-08-24 14:30               ` Jorge P. de Morais Neto
2020-08-24 14:42                 ` Eli Zaretskii
2020-08-30 18:51                   ` Jorge P. de Morais Neto
2020-08-24 15:08                 ` Stefan Kangas
2020-08-27 17:30                 ` Stefan Kangas
2020-08-27 17:49                   ` Eli Zaretskii
2020-08-27 19:05                     ` Stefan Kangas
2020-08-27 19:14                       ` Eli Zaretskii
2020-09-06 23:53 ` Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2020-09-07 15:48   ` bug#42248: Problems between Flyspell and Enchant Eli Zaretskii
2020-09-07 20:07     ` Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-09-07 21:20       ` Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-04-26 13:02         ` bug#42248: 27.0.91; With enchant-2.2.8 from Guix, Flyspell errors out or gives lots of false positives Lars Ingebrigtsen
2020-09-07 21:10   ` bug#42248: Problems between Flyspell and Enchant Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors

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=CAOnWdojfjVG5GWXk5eJODo+Pqkrs_bhx0LKbxgoDJwbY_t4RWg@mail.gmail.com \
    --to=bug-gnu-emacs@gnu.org \
    --cc=42248@debbugs.gnu.org \
    --cc=rrt@sc3d.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).