From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#13109: 24.1; flyspell highlights words containing curly quotes which ispell-buffer accepts Date: Wed, 12 Dec 2012 01:07:22 +0200 Organization: JURTA Message-ID: <87a9tkz1id.fsf@mail.jurta.org> References: <87lidaenqo.fsf@sc3d.org> <83r4n2nzn0.fsf@gnu.org> <838v9anex9.fsf@gnu.org> <87d2yheb2k.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1355268265 28493 80.91.229.3 (11 Dec 2012 23:24:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Dec 2012 23:24:25 +0000 (UTC) Cc: 13109@debbugs.gnu.org To: Reuben Thomas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 12 00:24:39 2012 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 1TiZBl-0004i5-Pg for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Dec 2012 00:24:37 +0100 Original-Received: from localhost ([::1]:51707 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiZBZ-0002ih-34 for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Dec 2012 18:24:25 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:51006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiZBW-0002gm-BO for bug-gnu-emacs@gnu.org; Tue, 11 Dec 2012 18:24:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TiZBT-0008Ur-5l for bug-gnu-emacs@gnu.org; Tue, 11 Dec 2012 18:24:22 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55735) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiZBT-0008Un-2X for bug-gnu-emacs@gnu.org; Tue, 11 Dec 2012 18:24:19 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TiZCA-0002Io-8C for bug-gnu-emacs@gnu.org; Tue, 11 Dec 2012 18:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Dec 2012 23:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13109 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13109-submit@debbugs.gnu.org id=B13109.13552682598785 (code B ref 13109); Tue, 11 Dec 2012 23:25:02 +0000 Original-Received: (at 13109) by debbugs.gnu.org; 11 Dec 2012 23:24:19 +0000 Original-Received: from localhost ([127.0.0.1]:37748 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TiZBS-0002He-LU for submit@debbugs.gnu.org; Tue, 11 Dec 2012 18:24:18 -0500 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:35884 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TiZBP-0002HQ-L8 for 13109@debbugs.gnu.org; Tue, 11 Dec 2012 18:24:16 -0500 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id F0735451C164; Tue, 11 Dec 2012 15:23:29 -0800 (PST) In-Reply-To: (Reuben Thomas's message of "Tue, 11 Dec 2012 16:20:42 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:68353 Archived-At: >> `ispell-aspell-find-dictionary' reads the ispell data from >> /usr/lib/aspell/en.dat that contains >> >> name en >> charset iso8859-1 >> special ' -*- >> soundslike en >> affix en >> #repl-table en_affix.dat > > Support for curly quotes in aspell appears to be partial and unreleased, > but Debian currently packages an unreleased version with this support; see: > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=533378 Thanks for the link. It refers to the diff at http://launchpadlibrarian.net/82990151/aspell_0.60.6-6_0.60.7~20110707-1.diff.gz that includes the following fix that implements the support for curly quotes in aspell: diff -Nru aspell-0.60.6/data/iso-8859-1.cmap aspell-0.60.7~20110707/data/iso-8859-1.cmap @@ -892,6 +892,7 @@ 2009 > 20 # compat 200A > 20 # compat +2019 > 27 # compat 2024 > 2E # compat 2025 > 2E 2E # compat This fix means that aspell developers added a mapping from 2019 (RIGHT SINGLE QUOTATION MARK) to 27 (APOSTROPHE) in their character `compat' table. This explains why `ispell-buffer' does work while `ispell-word' and `flyspell' don't. `ispell-word' and `flyspell' still use the information from /usr/lib/aspell/en.dat to parse the buffer to find the next word to check, and fail because they don't use the `compat' mappings from iso-8859-1.cmap. Applying a solution similar to the aspell fix above means that `ispell-get-word' should consult a character equivalence table (to be added in bug#13041 and bug#13131) and match curly quotes as straight quotes while searching the next word to check.