unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Speck (Spell checker for Emacs)
Date: Tue, 21 Apr 2015 18:10:19 +0300	[thread overview]
Message-ID: <831tjd5xgk.fsf@gnu.org> (raw)
In-Reply-To: <5536279E.9080204@gmx.at>

> Date: Tue, 21 Apr 2015 12:34:06 +0200
> From: martin rudalics <rudalics@gmx.at>
> Cc: help-gnu-emacs@gnu.org
> 
> Initially, speck was written without Hunspell support.  I added it as
> soon as the first executables for Windows appeared (that was quite some
> time before any other Emacs Spell Checker was able to talk to Hunspell).
> The customization variables are still from that early period, there was
> no "normal" installation procedure at that time IIRC.  Moreover, I never
> upgraded my spell engines since then.  So probably support is missing or
> incorrect in this area.

FWIW, when I was reading the Hunspell-related parts of Speck, I found
myself wondering time and again why its invocation is so complicated.
You don't really need to tell it where its dictionaries are, because
it already knows where to find them: that's what a correct
installation guarantees.

Likewise with encoding: you should use UTF-8 throughout, as that's the
native encoding for Hunspell; anything else it will need to convert.

Finally, Speck should really learn from ispell.el how to set up most
or all of the variables by asking Hunspell itself, instead of asking
the user to figure out how to do that by hand.

> I faintly remember Xah Lee spending hours on setting up Hunspell for
> Windows until he gave up.  Maybe that was the reason.

Upstream Hunspell is buggy, even today, and the Windows build is even
more so.  It needs non-trivial patches to work correctly.  (E.g., I
believe it still produces byte offsets instead of character offsets,
which won't work in Emacs with UTF-8 encoding.)  I suspect that people
who "gave up" on Hunspell simply used one of those "compile and
forget" Windows ports of Hunspell, made by people who never test their
ported binaries before they make them available for download.

Hunspell which has its bugs fixed and works correctly doesn't need any
setup with ispell.el/flyspell.el, and only a bit more so with Speck.



  parent reply	other threads:[~2015-04-21 15:10 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-21 10:34 Speck (Spell checker for Emacs) martin rudalics
2015-04-21 12:18 ` Alexander Shukaev
2015-04-21 15:19   ` Eli Zaretskii
2015-04-21 15:26     ` Alexander Shukaev
2015-04-22  9:33   ` martin rudalics
2015-04-22 10:50     ` Alexander Shukaev
     [not found] ` <mailman.1265.1429618691.904.help-gnu-emacs@gnu.org>
2015-04-21 12:57   ` Sebastien Vauban
2015-04-21 15:10 ` Eli Zaretskii [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-04-17 22:55 Alexander Shukaev
2015-04-18 11:10 ` tomas
2015-04-18 12:24   ` Alexander Shukaev
2015-04-18 13:15     ` tomas
2015-04-18 13:56       ` Alexander Shukaev
2015-04-18 14:13         ` tomas
2015-04-18 14:46           ` Eli Zaretskii
2015-04-18 15:19 ` Eli Zaretskii
2015-04-18 16:16   ` Alexander Shukaev
2015-04-18 16:33     ` Eli Zaretskii
2015-04-18 16:36       ` Alexander Shukaev
2015-04-18 16:41         ` Eli Zaretskii
2015-04-18 16:56           ` Eli Zaretskii
2015-04-18 17:20             ` Alexander Shukaev
2015-04-18 17:34               ` Eli Zaretskii
2015-04-18 19:44                 ` Alexander Shukaev
2015-04-18 20:22                   ` Alexander Shukaev

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=831tjd5xgk.fsf@gnu.org \
    --to=eliz@gnu.org \
    --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.
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).