From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sharon Kimble Newsgroups: gmane.emacs.help Subject: Re: Getting Emacs to play nice with Hunspell and apostrophes Date: Sat, 07 Jun 2014 18:53:47 +0100 Message-ID: <87ha3wobbo.fsf@skimble.plus.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1402163671 4275 80.91.229.3 (7 Jun 2014 17:54:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Jun 2014 17:54:31 +0000 (UTC) Cc: Emacs Users To: Nikolai Weibull Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 07 19:54:25 2014 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 1WtKoy-0006Se-67 for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Jun 2014 19:54:24 +0200 Original-Received: from localhost ([::1]:52634 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtKox-0002v0-OK for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Jun 2014 13:54:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtKoc-0002ut-PS for help-gnu-emacs@gnu.org; Sat, 07 Jun 2014 13:54:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WtKoY-0004iX-3B for help-gnu-emacs@gnu.org; Sat, 07 Jun 2014 13:54:02 -0400 Original-Received: from avasout05.plus.net ([84.93.230.250]:50143) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtKoX-0004iP-TE for help-gnu-emacs@gnu.org; Sat, 07 Jun 2014 13:53:58 -0400 Original-Received: from london ([146.200.3.27]) by avasout05 with smtp id BVtt1o0090ayHzm01VtuxF; Sat, 07 Jun 2014 18:53:55 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=ZOpZmBLb c=1 sm=1 tr=0 a=1qFLlyIsB1i2/jn6pGinrQ==:117 a=1qFLlyIsB1i2/jn6pGinrQ==:17 a=0Bzu9jTXAAAA:8 a=dOUBY0j0ER4A:10 a=1JC6ceS7Hm4A:10 a=ihvODaAuJD4A:10 a=EBOSESyhAAAA:8 a=LlzXLoV6AAAA:8 a=xtERp6CFAAAA:8 a=iI7HsYTVAAAA:8 a=UWYNLaUOSfI3SmZt3fsA:9 a=qYjJ_9QW9AsyP_bx:21 a=LSRuMw9KeL4ls7Ww:21 a=QEXdDO2ut3YA:10 a=siCsnTVVztAA:10 a=peWN_RDPNhwFTkCdozoA:9 X-AUTH: skimble:2500 In-Reply-To: (Nikolai Weibull's message of "Sat, 7 Jun 2014 17:39:25 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.91 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 84.93.230.250 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:98070 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Nikolai Weibull writes: > Hi! > > How do I get Emacs to play nice with Hunspell and apostrophes. I > thought I had it covered, but it seems that something has changed and > now M-x ispell won=E2=80=99t recognize =E2=80=9Cisn=E2=80=99t=E2=80=9D as= a word anymore. > > First off, what English dictionary should I be using? > > Second, how do I get Emacs to send words containing apostrophes to Hunspe= ll? > > Fiddling with WORDCHARS in en_US.aff seems so wrong, as Emacs will > then send stuff like 'isn't' as a word. > > The final step is getting =E2=80=9Cisn=E2=80=99t=E2=80=9D to work with Un= icode apostrophes, > but let=E2=80=99s take it one step at a time. > > It=E2=80=99s beyond me how this isn=E2=80=99t working, but I=E2=80=99m su= re I=E2=80=99m doing something wrong. > This is from my "init.el" - =2D-8<---------------cut here---------------start------------->8--- ;; Use hunspell instead of ispell (if (file-exists-p "/usr/bin/hunspell") (progn (setq ispell-program-name "hunspell") (eval-after-load "ispell" '(progn (defun ispell-get-coding-system () 'utf-8))))) (setq ispell-program-name "hunspell")=20 (require 'rw-hunspell) (require 'rw-language-and-country-codes) (require 'rw-ispell) (setq ispell-dictionary "en_GB_hunspell") =2D-8<---------------cut here---------------end--------------->8--- Hopefully this will help you get going with hunspell, which I have found is good! :) This is all I have set up for hunspell and it works okay with "isn=E2=80=99t" as I've just corrected it in this email. If you want copies of "rw-hunspell, rw-language-and-country-codes, rw-ispell" I can priv mail them to you, but I think that I got them From=20emacswiki. Sharon. =2D-=20 A taste of linux =3D http://www.sharons.org.uk my git repo =3D https://bitbucket.org/boudiccas/dots TGmeds =3D http://www.tgmeds.org.uk Debian testing, fluxbox 1.3.5, emacs 24.3.91.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJTk1GsAAoJEDaBgBkK+INb0MQP/0y2HP69Wkw+vAEG+7spj66g SZQB1cdT9FOmUjBkgkSLNkg9MKEe6qgd9QW0yto3Jb2NEXUYYcdSr4Q5vYwBe3+b MJqyzAfs8zuQY6Jjgy3JMLLnrF1xC/i4zV6UNFVKjtJKtXpxI09W/PQnuarQd8uk gVVQKDC+NyM0YDwybeBaPJj/gayAecaI6oM9I5fEP2et+dncbwFBERX9uwoEdS7h N8OBAOhvHXf+SfgIJnr7AM81kSP/7bRYZlWj0tWOwlEsQAfqzDKPYl2wiuOe6she KAKkvxxqgDuTI1s2hEJTTDovfcNCeLGBL1tOSE0bENNRM1pgf0GCtj/Ca5iZX3z0 USD3KCQTN8VnZnHYBbPnpV8huDnwaXStMTnPj2Kpq1G7P9G3uTnQin7/dCWDoS1q aX/UEDVUyhJlKJlNbdIdAaOz9JAZ5eU/nCg2inNtvf6039c2P19yLSQ/+XeISyw7 X7+p2GIxmlMOrZtcdYVPGMUk1bVj9Ync41xKRdRAygScuXaLD10WO0nuYC8BJtTG 2kMrmJNfZ3N4kg03oW+Lap+Pk5hYTb49hTVph1JditrsHI7tc2YDVM3tOuTjURsR JjtcQYnvl348JxYIlPnET8txxP819Q1mLblv79oH9KbVBB3FAjRgtNqAucHQRibg IsOQi7b72NbLv/HUOQob =7O4J -----END PGP SIGNATURE----- --=-=-=--