From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Speck (Spell checker for Emacs) Date: Tue, 21 Apr 2015 18:10:19 +0300 Message-ID: <831tjd5xgk.fsf@gnu.org> References: "CAKu-7WybujeXgnHPUjLyt_J07LtMN4cvwWTj_p1vha+EXuP6GQ@mail.gmail.com" <5536279E.9080204@gmx.at> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1429629054 30713 80.91.229.3 (21 Apr 2015 15:10:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Apr 2015 15:10:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 21 17:10:47 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YkZow-0004h7-RB for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Apr 2015 17:10:43 +0200 Original-Received: from localhost ([::1]:59060 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkZov-00071k-Ta for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Apr 2015 11:10:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkZoj-00071Y-3K for help-gnu-emacs@gnu.org; Tue, 21 Apr 2015 11:10:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YkZoe-0001Q1-TX for help-gnu-emacs@gnu.org; Tue, 21 Apr 2015 11:10:28 -0400 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:58043) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkZoe-0001PR-F4 for help-gnu-emacs@gnu.org; Tue, 21 Apr 2015 11:10:24 -0400 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NN500L00WF2CL00@mtaout25.012.net.il> for help-gnu-emacs@gnu.org; Tue, 21 Apr 2015 18:06:04 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NN500LGPWM4TV00@mtaout25.012.net.il> for help-gnu-emacs@gnu.org; Tue, 21 Apr 2015 18:06:04 +0300 (IDT) In-reply-to: <5536279E.9080204@gmx.at> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.181 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103909 Archived-At: > Date: Tue, 21 Apr 2015 12:34:06 +0200 > From: martin rudalics > 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.