From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#19558: ispell in 24.4: hunspell cannot check German text Date: Sat, 10 Jan 2015 20:27:01 +0200 Message-ID: <83ppam5w5m.fsf@gnu.org> References: <54B1310D.4030600@h-rommerskirchen.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1420914497 26374 80.91.229.3 (10 Jan 2015 18:28:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Jan 2015 18:28:17 +0000 (UTC) Cc: 19558@debbugs.gnu.org To: Heinz Rommerskirchen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 10 19:28:11 2015 Return-path: Envelope-to: geb-bug-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 1YA0le-0007AA-ML for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Jan 2015 19:28:10 +0100 Original-Received: from localhost ([::1]:55909 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YA0ld-0002TF-Ug for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Jan 2015 13:28:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YA0la-0002T7-Bz for bug-gnu-emacs@gnu.org; Sat, 10 Jan 2015 13:28:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YA0lW-0001W9-BT for bug-gnu-emacs@gnu.org; Sat, 10 Jan 2015 13:28:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YA0lW-0001W5-7d for bug-gnu-emacs@gnu.org; Sat, 10 Jan 2015 13:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YA0lV-0005ti-S1 for bug-gnu-emacs@gnu.org; Sat, 10 Jan 2015 13:28:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Jan 2015 18:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19558 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19558-submit@debbugs.gnu.org id=B19558.142091442522548 (code B ref 19558); Sat, 10 Jan 2015 18:28:01 +0000 Original-Received: (at 19558) by debbugs.gnu.org; 10 Jan 2015 18:27:05 +0000 Original-Received: from localhost ([127.0.0.1]:42108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YA0ka-0005rb-OF for submit@debbugs.gnu.org; Sat, 10 Jan 2015 13:27:05 -0500 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:60858) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YA0kX-0005r6-Om for 19558@debbugs.gnu.org; Sat, 10 Jan 2015 13:27:02 -0500 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NHZ00100403OR00@mtaout25.012.net.il> for 19558@debbugs.gnu.org; Sat, 10 Jan 2015 20:23:00 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NHZ00G3W4ECSRA0@mtaout25.012.net.il>; Sat, 10 Jan 2015 20:23:00 +0200 (IST) In-reply-to: <54B1310D.4030600@h-rommerskirchen.de> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:98193 Archived-At: > Date: Sat, 10 Jan 2015 15:02:53 +0100 > From: Heinz Rommerskirchen > > When using hunspell ispell cannot check German texts. > > To recreate the problem create a file containing only the one line > > zwanzigjährigen Arbeitszeit bei der Motorenfabrik Jank gebracht. > (This is a valid fragment of German, but 'Jank' is a proper name unknown > to hunspell). I have used both latin-0 and utf8 encoding with no visible > difference. > $ emacs -Q > in *scratch buffer execute (setq ispell-program-name "hunspell") > open the file and type M-x ispell. > I got the error message > ispell-process-line: Ispell misalignment: word `Jank' point 52; probably > incompatible versions > > If you delete the first word in the file, ispell works fine and flags > the unknown 'Jank'. > > hunspell on the command line has no problems with this files. > I was also able to use hunspell by adding the following to my start files > (add-to-list 'ispell-local-dictionary-alist '("deutsch" "[[:alpha:]]" > "[^[:alpha:]]" "[']" t ("-d" "de_DE") nil iso-8859-1)) > > 'hunspell --version' gives > > $ hunspell --version > > @(#) International Ispell Version 3.2.06 (but really Hunspell 1.3.2) If this is an unpatched version 1.3.2 of Hunspell, then that's probably a known problem with Hunspell: it reports byte offsets of misspelled words rather than character offsets, something that Emacs doesn't expect. There are patches in the Hunspell bug tracker to fix this problem. FWIW, your test case works flawlessly for me in Emacs 24.4 with Hunspell 1.3.2 patched to fix that problem (and a few others).