Re: Spellcheck second language
authorThomas Jost <schnouki@schnouki.net>
Thu, 16 Feb 2012 17:47:42 +0000 (18:47 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:44:36 +0000 (09:44 -0800)
f2/557eef6484ca33721fb6407311edabf609872a [new file with mode: 0644]

diff --git a/f2/557eef6484ca33721fb6407311edabf609872a b/f2/557eef6484ca33721fb6407311edabf609872a
new file mode 100644 (file)
index 0000000..2e27965
--- /dev/null
@@ -0,0 +1,138 @@
+Return-Path: <schnouki@schnouki.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id E91E7429E48\r
+       for <notmuch@notmuchmail.org>; Thu, 16 Feb 2012 09:47:51 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.1\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id I90rlXep7kpP for <notmuch@notmuchmail.org>;\r
+       Thu, 16 Feb 2012 09:47:47 -0800 (PST)\r
+Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222])\r
+       by olra.theworths.org (Postfix) with ESMTP id A019B429E42\r
+       for <notmuch@notmuchmail.org>; Thu, 16 Feb 2012 09:47:47 -0800 (PST)\r
+Received: from thor.loria.fr (thor.loria.fr [152.81.12.250])\r
+       by ks3536.kimsufi.com (Postfix) with ESMTPSA id 3D0076C000B;\r
+       Thu, 16 Feb 2012 18:47:46 +0100 (CET)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net;\r
+       s=key-schnouki; t=1329414466;\r
+       bh=PYiM5D3bA5cBMl0/b92QbcgfH0w58odtOb+7Ljhp1jg=;\r
+       h=From:To:Subject:In-Reply-To:References:Date:Message-ID:\r
+       MIME-Version:Content-Type;\r
+       b=gmgcTJSc+4VGhTbws7002Z74cUZnZoyaqE2YJMoiv+OgOeOUOMJqWJL40g88yyngm\r
+       j8cweAFzouSotyj3Lm4m38oUHhKgyuSPQmVbYpXyfC7H0duckys0aI7wCiGFSNVBOr\r
+       dG//aLHWY3EV2U5WOAjsF88eaqLaBQrlsy1LghaQ=\r
+From: Thomas Jost <schnouki@schnouki.net>\r
+To: Philippe LeCavalier <support@plecavalier.com>, notmuch@notmuchmail.org\r
+Subject: Re: Spellcheck second language\r
+In-Reply-To: <878vk2ohgp.fsf@plc.plecavalier.com>\r
+References: <878vk2ohgp.fsf@plc.plecavalier.com>\r
+User-Agent: Notmuch/0.11.1+214~g9a53dc2 (http://notmuchmail.org)\r
+       Emacs/24.0.93.1 (x86_64-unknown-linux-gnu)\r
+Date: Thu, 16 Feb 2012 18:47:42 +0100\r
+Message-ID: <87obsyd60x.fsf@thor.loria.fr>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha1; protocol="application/pgp-signature"\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Thu, 16 Feb 2012 17:47:52 -0000\r
+\r
+--=-=-=\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Thu, 16 Feb 2012 11:45:10 -0500, Philippe LeCavalier <support@plecavalie=\r
+r.com> wrote:\r
+> Hi.\r
+>=20\r
+> I get this[1] when envoking keybindings to a second language\r
+> flyspell. Any ideas? I've already tried alternate titles to reference\r
+> the dictionary in question ie french, francais and fran=C3=A7ais to no av=\r
+ail.\r
+>=20\r
+> Also, how would I apply a variation to the dictionary ie. fr_ca?\r
+>=20\r
+> ref.\r
+> [1] ispell-change-dictionary: Undefined dictionary: fran=C3=A7ais\r
+>=20\r
+> rel sys details:\r
+> emacs 23.3-9.fc16\r
+> hunspell 1.3.2-1.fc16\r
+> hunspell-en 0.20110318-1.fc16\r
+> hunspell-fr 4.1-1.fc16\r
+>=20\r
+> Please ask if you need more info.\r
+\r
+Hi Philippe,\r
+\r
+Do you have aspell? If you do, do you also have aspell-fr? I don't know\r
+ispell.el very well, but apparently it will try to use aspell, then\r
+ispell, then hunspell in that order. So if you have /usr/bin/aspell but\r
+not the French aspell dictionary, that may explain your problem.\r
+\r
+Now for fr_CA... I don't use it myself (only fr_FR) and apparently\r
+there's no specific file for fr_CA (nor fr_BE btw) in aspell-fr. So I\r
+guess you should try to stick with "francais".\r
+\r
+If you *really* want to use fr_CA, you may have to switch to hunspell,\r
+since hunspell-fr *has* a dictionary for fr_CA. The problem is then to\r
+tell emacs about this dictionary. Here's something that almost works:\r
+\r
+     (setq ispell-program-name "/usr/bin/hunspell"\r
+           ispell-extra-args '("-i" "latin1"))\r
+     (add-to-list 'ispell-local-dictionary-alist\r
+                  (cons "fr_CA" (cdr (assoc "francais" ispell-dictionary-ba=\r
+se-alist))))\r
+\r
+(it copies settings from the fr_FR dictionary but names it fr_CA).\r
+Problems:\r
+=2D you need to enter the encoding manually to avoid getting such errors:\r
+     UTF-8 encoding error. Missing continuation byte in 0. [...]\r
+  but of course this means that this won't work in UTF-8 buffers...\r
+=2D using these settings, I get another error when changing the dictionary\r
+  to american and running flyspell-buffer ("Can't check region"). I have\r
+  to revert to aspell for it to work again.\r
+\r
+So even if it's not a perfect solution, you should probably keep on\r
+using "francais" with aspell.\r
+\r
+Hope this helps.\r
+\r
+Best regards\r
+\r
+=2D-=20\r
+Thomas/Schnouki\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.12 (GNU/Linux)\r
+\r
+iQEcBAEBAgAGBQJPPUE/AAoJEOQWxbmv9eBxkL8H/1RdEdHff4L0PYJFEzRIe+zJ\r
+JhM+IJ40bVNxHuhNHwhnkNBB5+ZxfyEPyQxunjCOPC+eOloNIyzGU7WK8g5p1UuY\r
+FzDxYUYlYVEWUX7I0l1nBtJMQgBDX1gZVPcXJ4zuYMXL4Mw5rg8uy40H9yg/OBy4\r
+vTq3lhq5XWc4is0geyBD8VqUCd0FKs9mK5w2ik06is+jl3sbBsjhp9yTxN8RH8ha\r
+5AZvgIrbYtbbC/himD1BPUN5yBGFkaV5LSnxPMJHKfEyyiZGPhbV7jKnATLxlu16\r
+PUjQtWV8zALScbiYUal7pq3LwnfSJjJWIufpWgZT0nrnq6MGqWcmfuKXP0pZVkg=\r
+=Y7eo\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r