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

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

Re: ispell-complete-word in spanish


From: Kevin Rodgers
Subject: Re: ispell-complete-word in spanish
Date: Tue, 10 Jan 2006 13:53:44 -0700
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

Hamilton Temple wrote:
In GNU Emacs 21.4.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2005-12-15 on icaro
configured using `configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-x --with-xpm --with-jpeg --with-tiff --with-gif --with-png --with-x-toolkit=athena --build=i686-pc-linux-gnu'
Important settings:
  value of $LC_ALL: address@hidden
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: address@hidden
  locale-coding-system: iso-latin-9
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

I'm not sure if this is an emacs bug or a badly configured ispell. My ispell configuration is:

(setq-default ispell-program-name "aspell")
;;(setq-default ispell-program-name "ispell")
(setq ispell-dictionary "castellano")
(setq ispell-complete-word-dict "/usr/share/dict/spanish")

Ispell/Aspell checks spelling in words with accentuated chars correctly. My problem is related to ispell-complete-word and flyspell. Flyspell/Aspell doesn't recognizes accentuated chars. If I have the word "drástico" and call ispell-complete-word , then It uses "stico" as "search string". That occurs without mattering where the accentuated
vowel is inside the word.

In Latin-9, á is \341, which is in both the CASECHARS and NOT-CASECHARS
regexps of the "castellano" entry in ispell-dictionary-alist.  But the
call to (ispell-get-word nil "\\*") fails here to find the beginning of
the word and stops at the accented character:

    ;; move to front of word
    (re-search-backward ispell-not-casechars (point-min) 'start)

However, I can get it to work by making ispell-decode-string a no-op:

(defun ispell-decode-string (str) str)

--
Kevin Rodgers





reply via email to

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