help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [newbie] emacs flyspell not understands well accented chars


From: Oliver Scholz
Subject: Re: [newbie] emacs flyspell not understands well accented chars
Date: Mon, 02 Jun 2003 13:14:33 +0200
User-agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3.50 (windows-nt)

address@hidden (Kai Großjohann) writes:

> "Eli Zaretskii" <address@hidden> 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é!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]