From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reuben Thomas Newsgroups: gmane.emacs.bugs Subject: bug#13109: 24.1; flyspell highlights words containing curly quotes which ispell-buffer accepts Date: Fri, 3 May 2013 21:20:21 +0100 Message-ID: References: <87lidaenqo.fsf@sc3d.org> <83r4n2nzn0.fsf@gnu.org> <838v9anex9.fsf@gnu.org> <87d2yheb2k.fsf@mail.jurta.org> <87a9tkz1id.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0158c7389b871c04dbd61497 X-Trace: ger.gmane.org 1367613373 681 80.91.229.3 (3 May 2013 20:36:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 May 2013 20:36:13 +0000 (UTC) Cc: 13109@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 03 22:36:12 2013 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 1UYMi9-0008WR-Rk for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 May 2013 22:36:10 +0200 Original-Received: from localhost ([::1]:57161 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYMi9-0006jh-Ds for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 May 2013 16:36:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYMi1-0006iC-I9 for bug-gnu-emacs@gnu.org; Fri, 03 May 2013 16:36:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UYMhw-0000Ez-DQ for bug-gnu-emacs@gnu.org; Fri, 03 May 2013 16:36:01 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53239) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYMTo-00040O-C5 for bug-gnu-emacs@gnu.org; Fri, 03 May 2013 16:21:20 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UYMUT-0003r8-Tb for bug-gnu-emacs@gnu.org; Fri, 03 May 2013 16:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Reuben Thomas Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 May 2013 20:22:01 +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.136761247014703 (code B ref 13109); Fri, 03 May 2013 20:22:01 +0000 Original-Received: (at 13109) by debbugs.gnu.org; 3 May 2013 20:21:10 +0000 Original-Received: from localhost ([127.0.0.1]:57348 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UYMTd-0003p3-HB for submit@debbugs.gnu.org; Fri, 03 May 2013 16:21:10 -0400 Original-Received: from exprod7og128.obsmtp.com ([64.18.2.121]:34500) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1UYMTZ-0003om-By for 13109@debbugs.gnu.org; Fri, 03 May 2013 16:21:07 -0400 Original-Received: from mail-fa0-f69.google.com ([209.85.161.69]) (using TLSv1) by exprod7ob128.postini.com ([64.18.6.12]) with SMTP ID DSNKUYQcBiScqErkb9P1wvofjJLCmbXFxvYp@postini.com; Fri, 03 May 2013 13:20:23 PDT Original-Received: by mail-fa0-f69.google.com with SMTP id k10so3176776fak.4 for <13109@debbugs.gnu.org>; Fri, 03 May 2013 13:20:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-received:in-reply-to:references:date :message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=pVg7KqsPhmT/eRUIFVbUUsdFSE+9H2z+ZybQ/fQ89RU=; b=QfSrScvDssNYwsIsN6GtZoDP0IYrgdUdj0y8QeY/qfYmb/m/l8uABoQ25+1QB5l/5J TWTsIx6VNQ/gyoWmhrBt9mGpraj3uXO2iRcyxiZQxab5UOTIPZ9jrfiWW8oA4c+uCsET PfX4Nz+RJD81S3z9Kb2vUePl8dLfhWtEZLkWeJI6PKu2xELUAaIycdP4FjPPj5kA7dcv +7s8Uap9rmKkSNkCSEYgOTBsfePvXv2Rw1Y6MEGPQAQV4FQja56pA1cJVrdhwj3TbrQJ 9nbniOeuEbIl3h2axNfzka5OWjZ2bVJ+Uxn3jGhmAXvCCbwJUByM8HZCGuBzbaOX27Gn 0zHg== X-Received: by 10.152.26.225 with SMTP id o1mr4750086lag.43.1367612422204; Fri, 03 May 2013 13:20:22 -0700 (PDT) X-Received: by 10.152.26.225 with SMTP id o1mr4750083lag.43.1367612422058; Fri, 03 May 2013 13:20:22 -0700 (PDT) Original-Received: by 10.152.19.2 with HTTP; Fri, 3 May 2013 13:20:21 -0700 (PDT) In-Reply-To: X-Gm-Message-State: ALoCoQnBw4xnzRndEQ+y0M2/zvvN27dsraGjYmIFdv2gQZ9buXp3h2mRzI3jpH4pDnfGuVw78YcKRUoUrQwZ8pFi51rAxdW6E8qur8qTJIFnsPZqkGisH1i9pB3BEMxKtArG3c9gJxttv6h1VA37Pp6eUxZgBj5NtAXFjotLDxk9WQeBD1epRAQ= 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:73933 Archived-At: --089e0158c7389b871c04dbd61497 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 3 May 2013 21:15, Reuben Thomas wrote: > On 11 December 2012 23:07, Juri Linkov wrote: > >> >> `ispell-aspell-find-dictionary' reads the ispell data from >> 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 chec= k, >> and fail because they don't use the `compat' mappings from >> iso-8859-1.cmap. >> > > This finally annoyed me sufficiently that I decided I wanted a workaround= . > Fortunately, this is easy, as it merely involves reapplying a version of > the fix I used to use when ispell-buffer didn't work. I now have the > following line in my custom.el: > > '(ispell-local-dictionary-alist (quote (("british" "[[:alpha:]]" > "[^[:alpha:]]" "'=92" t ("-d" "en_GB") nil utf-8)))) > > I've copied the default settings and added a curly single quote to the > list of permitted "other characters". I imagine one can do the same for > other languages. It's ugly (principally because it copies rather than > overwriting information) but that information (the other entries in the > record) doesn't change often, so it'll do until a more comprehensive > solution is applied. > Belay that, it doesn't work. It seems I have to type a new word for flyspell to complain; merely passing the cursor over an old one (which suffices to remove a highlight in a word that has been added to the dictionary) does not suffice. If anyone can offer a functioning workaround, I'd be most grateful. --=20 http://rrt.sc3d.org --089e0158c7389b871c04dbd61497 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable
On 3 May 2013 21:15, Reuben Thomas <<= a href=3D"mailto:rrt@sc3d.org" target=3D"_blank">rrt@sc3d.org> wrote:
On 11 December 2012 23:07, Juri Linkov <= span dir=3D"ltr"><ju= ri@jurta.org> wrote:
>> `ispell-aspell-find-dictionary' reads the ispell data fro= m
This fix means that aspell developers added a mapping from
2019 (RIGHT SINGLE QUOTATION MARK) to 27 (APOSTROPHE)
in their character `compat' table. =A0This explains why
`ispell-buffer' does work while `ispell-word' and `flyspell' do= n'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,<= br> and fail because they don't use the `compat' mappings from iso-8859= -1.cmap.
=A0
This finally annoyed me suffic= iently that I decided I wanted a workaround. Fortunately, this is easy, as = it merely involves reapplying a version of the fix I used to use when ispel= l-buffer didn't work. I now have the following line in my custom.el:
=A0'(ispell-local-dictionary-alist (quote (("british" &qu= ot;[[:alpha:]]" "[^[:alpha:]]" "'=92" t ("= ;-d" "en_GB") nil utf-8))))

I've copied the default settings and added a curly single quote to the = list of permitted "other characters". I imagine one can do the sa= me for other languages. It's ugly (principally because it copies rather= than overwriting information) but that information (the other entries in t= he record) doesn't change often, so it'll do until a more comprehen= sive solution is applied.

Belay that, it doesn't work. It seems I have to type a new word = for flyspell to complain; merely passing the cursor over an old one (which = suffices to remove a highlight in a word that has been added to the diction= ary) does not suffice.

If anyone can offer a functioning workaround, I'd be most grateful.=

--
http://rrt.sc3d.org
--089e0158c7389b871c04dbd61497--