unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#46298: 28.0.50; Best default for ispell-program-name
@ 2021-02-04 16:03 Peter Oliver
  2021-02-04 17:29 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Oliver @ 2021-02-04 16:03 UTC (permalink / raw)
  To: 46298

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

The default value of ispell-program-name is decided by looking in turn for the binaries aspell, ispell, hunspell and enchant-2, and using whichever is first found.  Would it make sense to sort these in order of which we believe to be best?

As I understand it, which backend is most accurate varies from language to language.  Assuming the quality of the Emacs integration is equal, I would suggest putting Enchant first on the list rather than last.  Enchant doesnʼt do any spellchecking itself, but instead selects a backend based on a per-language configuration preference, automatically skipping any backends which are not installed or for which dictionaries are not installed in the current language.

I notice that the Red Hat/Fedora packages patch Emacs to put Hunspell first on the list (https://src.fedoraproject.org/rpms/emacs/blob/rawhide/f/emacs-spellchecker.patch).  The rationale for this was that if Aspell was installed but the Aspell dictionaries for a language were not, then ispell-buffer fails (https://bugzilla.redhat.com/show_bug.cgi?id=713600).  If, instead, Enchant was tried first, this kind of tinkering would not be necessary.

-- 
Peter Oliver

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#46298: 28.0.50; Best default for ispell-program-name
  2021-02-04 16:03 bug#46298: 28.0.50; Best default for ispell-program-name Peter Oliver
@ 2021-02-04 17:29 ` Eli Zaretskii
  2021-02-05  9:50   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2021-02-04 17:29 UTC (permalink / raw)
  To: Peter Oliver; +Cc: 46298

> From: Peter Oliver <p.d.oliver@mavit.org.uk>
> Date: Thu, 4 Feb 2021 16:03:15 +0000 (GMT)
> 
> The default value of ispell-program-name is decided by looking in turn for the binaries aspell, ispell, hunspell and enchant-2, and using whichever is first found.  Would it make sense to sort these in order of which we believe to be best?

Not sure we need to change the order.  ispell-program-name is a
defcustom, which means users are invited to set it according to their
preferences.  We cannot pretend we know the preferences of each user.

> As I understand it, which backend is most accurate varies from language to language.  Assuming the quality of the Emacs integration is equal, I would suggest putting Enchant first on the list rather than last.  Enchant doesnʼt do any spellchecking itself, but instead selects a backend based on a per-language configuration preference, automatically skipping any backends which are not installed or for which dictionaries are not installed in the current language.

I have the impression that Enchant is still a new player on this
field, and keeps changing significantly.  Maybe it's good enough in
distros that use the latest versions, but what about people who have
older versions installed?

One more reason not to try to second guess what is best for the users,
I guess.

Does anyone else have an opinion?





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#46298: 28.0.50; Best default for ispell-program-name
  2021-02-04 17:29 ` Eli Zaretskii
@ 2021-02-05  9:50   ` Lars Ingebrigtsen
  2021-02-07  5:44     ` Richard Stallman
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2021-02-05  9:50 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 46298, Peter Oliver

Eli Zaretskii <eliz@gnu.org> writes:

> I have the impression that Enchant is still a new player on this
> field, and keeps changing significantly.  Maybe it's good enough in
> distros that use the latest versions, but what about people who have
> older versions installed?
>
> One more reason not to try to second guess what is best for the users,
> I guess.
>
> Does anyone else have an opinion?

Enchant does seem to be the more modern solution, so it might make sense
to have Emacs give it priority.  On the other hand, changing the
priority will mean that older users will suddenly start using Enchant
instead of ispell (or whatever), and changes like that are always
painful.

So I don't think it's worth it -- at this point, at least.  If, at some
point Enchant becomes the vastly preferred value, then we can
reevaluate, but my feeling is that that's not currently the case.  So
I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#46298: 28.0.50; Best default for ispell-program-name
  2021-02-05  9:50   ` Lars Ingebrigtsen
@ 2021-02-07  5:44     ` Richard Stallman
  2021-02-07 13:11       ` Peter Oliver
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Stallman @ 2021-02-07  5:44 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 46298, p.d.oliver

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > Enchant does seem to be the more modern solution, so it might make sense
  > to have Emacs give it priority.

It seems to be a front end for various spell checkers including Ispell.
Emacs already knows how to talk with them.
Does Enchant offer any features of its own?

-- 
Dr Richard Stallman
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)







^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#46298: 28.0.50; Best default for ispell-program-name
  2021-02-07  5:44     ` Richard Stallman
@ 2021-02-07 13:11       ` Peter Oliver
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Oliver @ 2021-02-07 13:11 UTC (permalink / raw)
  To: Richard Stallman; +Cc: 46298, Lars Ingebrigtsen

On Sun, 7 Feb 2021, Richard Stallman wrote:

>  > Enchant does seem to be the more modern solution, so it might make sense
>  > to have Emacs give it priority.
>
> It seems to be a front end for various spell checkers including Ispell.
> Emacs already knows how to talk with them.
> Does Enchant offer any features of its own?

Emacs ispell.el supports only three spell checkers (plus Enchant), whereas Enchant knows how to talk to seven.  My understanding is that general-purpose spell checkers perform particularly badly with some languages, so it would be of particular benefit for languages for which Enchant supports a dedicated checker.

-- 
Peter Oliver





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-02-07 13:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-04 16:03 bug#46298: 28.0.50; Best default for ispell-program-name Peter Oliver
2021-02-04 17:29 ` Eli Zaretskii
2021-02-05  9:50   ` Lars Ingebrigtsen
2021-02-07  5:44     ` Richard Stallman
2021-02-07 13:11       ` Peter Oliver

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).