On Sun, Sep 29, 2024 at 06:09:16PM +0100, Reuben Thomas wrote: > Package: dictionaries-common > Version: 1.29.7 > Severity: normal > > Please update debian-ispell.el to support Enchant. I can help with this if > desired, being both the Enchant upstream maintainer, and the author of > Emacs’s Enchant support in ispell.el. > > Since Enchant uses other spell-checkers under the hood, in particular both > aspell and hunspell, it would be possible to reuse the Debian-specific code > for finding appropriate dictionaries. Alternatively, since Enchant has its > own mechanisms for configuring what to use, similar to those used in > debian-ispell.el (e.g. based on the user’s configured language) it would be > possible simply to do nothing. This might reduce confusion and complexity.
Hi, Reuben, I have been looking a bit at this. It is not only debian-ispell.el, but probably also DictionariesCommon.pm. There are some things that may not be directly reusable, e.g., aspell supports "aspell -d castellano check file.txt" while enchant not, only locale supported selection is allowed. So, some aspell entries cannot be directly reused. I have a rough first cut that does not yet address above issue. Will think a bit more about this. spellchecker priorities will be the same as in FSF Emacs. > It seems to me that there are some non-Enchant-related things that could be > changed, or perhaps removed; for example, there’s a comment that says: > “Leave hunspell as last option, hunspell support for -a is still too buggy”, > yet I used hunspell for many years from Emacs with no problem, until quite > recently. Here, and elsewhere it might be possible to remove Debian-specific > code, and avoid future confusion and breakage. This comment is really ancient. Fixed in git repo. Thanks for your suggestion. -- Agustin

