From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Oliver Scholz Newsgroups: gmane.emacs.help Subject: Re: [newbie] emacs flyspell not understands well accented chars Date: Mon, 02 Jun 2003 13:14:33 +0200 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <84znl0ubx6.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1054552562 13596 80.91.224.249 (2 Jun 2003 11:16:02 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 2 Jun 2003 11:16:02 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 02 13:15:57 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19MnHo-0003Vu-00 for ; Mon, 02 Jun 2003 13:15:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19MnIX-0005qM-Cn for gnu-help-gnu-emacs@m.gmane.org; Mon, 02 Jun 2003 07:16:17 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news.rwth-aachen.de!fu-berlin.de!uni-berlin.de!dialin-145-254-195-053.arcor-ip.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: dialin-145-254-195-053.arcor-ip.net (145.254.195.53) Original-X-Trace: fu-berlin.de 1054552491 9380081 145.254.195.53 (16 [87814]) X-Attribution: os X-Face: "HgH2sgK|bfH$; PiOJI6|qUCf.ve<51_Od(%ynHr?=>znn#~#oS>",F%B8&\vus),2AsPYb -n>PgddtGEn}s7kH?7kH{P_~vu?]OvVN^qD(L)>G^gDCl(U9n{:d>'DkilN!_K"eNzjrtI4Ya6;Td% IZGMbJ{lawG+'J>QXPZD&TwWU@^~A}f^zAb[Ru;CT(UA]c& User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:n1eJvS7x7qv7T926GbYvZ/W5Pds= Original-Xref: shelby.stanford.edu gnu.emacs.help:113976 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10470 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10470 kai.grossjohann@gmx.net (Kai Großjohann) writes: > "Eli Zaretskii" writes: > >> I suspect this is because your locale sets Emacs up to use Latin-9 >> encoding, while Ispell's dictionary is encoded in Latin-1. Current >> released versions of Emacs see Latin-1 and Latin-9 as different >> characters, sigh... > > It's fairly easy to fool ispell. I use the following kludge: > > (require 'ispell) > (add-to-list 'ispell-local-dictionary-alist > '("ndeutsch8-15" > "[a-zA-Z\xf44\xf56\xf5c\xf5f\xf64\xf76\xf7c]" > "[^a-zA-Z\xf44\xf56\xf5c\xf5f\xf64\xf76\xf7c]" > "[']" t > ("-C" "-d" "ndeutsch") > "~latin1" iso-8859-15)) > > I took the ndeutsch8 entry and modified it slightly. Note that the > next-to-last item still says "~latin1", and the ispell dictionary > name still says "ndeutsch", but the last item in the list is now > iso-8859-15 instead of iso-8859-1. [...] I suspect (but have not tested it) that if the OP replaces the two regexps with "[[:alpha:]]" and "[^[:alpha:]]" respectively, it could work right of the box with Italian, too. Oliver -- 14 Prairial an 211 de la Révolution Liberté, Egalité, Fraternité!