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#19653: ispell misalignment with hunspell when Unicode apostrophe is used Date: Thu, 22 Jan 2015 19:41:54 +0200 Message-ID: <83egqmvhjx.fsf@gnu.org> References: <1421937605.31090.19.camel@gmx.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 1421948594 10148 80.91.229.3 (22 Jan 2015 17:43:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2015 17:43:14 +0000 (UTC) Cc: 19653@debbugs.gnu.org To: Tobias Getzner Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 22 18:43:13 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 1YELmi-0007Pt-La for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Jan 2015 18:43:12 +0100 Original-Received: from localhost ([::1]:55227 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YELmi-00068H-2x for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Jan 2015 12:43:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YELmb-00064Q-TW for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2015 12:43:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YELmY-0001uG-LA for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2015 12:43:05 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34501) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YELmY-0001u7-IS for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2015 12:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YELmY-000563-B4 for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2015 12:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Jan 2015 17:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19653 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19653-submit@debbugs.gnu.org id=B19653.142194852919485 (code B ref 19653); Thu, 22 Jan 2015 17:43:02 +0000 Original-Received: (at 19653) by debbugs.gnu.org; 22 Jan 2015 17:42:09 +0000 Original-Received: from localhost ([127.0.0.1]:53189 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YELlh-00054B-1K for submit@debbugs.gnu.org; Thu, 22 Jan 2015 12:42:09 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:35862) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YELla-00053a-EI for 19653@debbugs.gnu.org; Thu, 22 Jan 2015 12:42:04 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NIL007009Y9IQ00@a-mtaout23.012.net.il> for 19653@debbugs.gnu.org; Thu, 22 Jan 2015 19:41:55 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NIL007AHAHVEM90@a-mtaout23.012.net.il>; Thu, 22 Jan 2015 19:41:55 +0200 (IST) In-reply-to: <1421937605.31090.19.camel@gmx.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:98590 Archived-At: > From: Tobias Getzner > Date: Thu, 22 Jan 2015 15:40:05 +0100 > > I’ve noticed that when ispell.el (Emacs 24.4.1) is using hunspell (v. > 1.3.3) to spell-check a buffer containing the typographically correct > apostrophe («’»; U+2019), ispell will error out with the message > «ispell misalignment». > > The problem can be reproduced by setting ispell-program-name to > «hunspell», and spell-checking a buffer containing the string «abc’s > zzz». This yields the following error: > > > ispell-process-line: Ispell misalignment: word `zzz' point 9; probably incompatible versions I cannot reproduce this with Emacs 24.4 and Hunspell 1.3.2 (heavily patched to fix known problems in Hunspell). You didn't provide enough information for me to be sure I did the same as you, so here are the possible explanations for the different experience: . I use a different version of Hunspell, and yours has a bug. Hunspell is known to have a problem with reporting mis-spelled words with byte offsets, whereas Emacs expects character offsets, so dictionaries encoded in UTF-8 cause symptoms similar to those you report. My Hunspell is patched to avoid this problem. . I didn't change OTHERCHARS. Frankly, I think doing this asks for trouble, since the speller still uses the characters recorded in the .aff file. . You didn't tell which dictionary you used. I tried en_US and de_DE, and none of them produced these problems. Maybe this is specific to some dictionary you used. In particular, the encoding of that dictionary is important vs the encoding you tell ispell.el to use (if you customized that part). > This seems to be a regression from 24.3, where hunspell support was > working (with the caveat that the apostrophe had to be manually added > to the dictionary’s «OTHERCHARS»). Are you saying that the same version of Hunspell with the same dictionary worked in Emacs 24.3, where Emacs 24.4 doesn't? If so, please try to eliminate or at least minimize your ispell-related customizations, and try again. If the problem persists, please show the minimal set of customizations to reproduce the problem.