From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: ispell-complete-word in spanish
Date: Tue, 10 Jan 2006 13:53:44 -0700 [thread overview]
Message-ID: <dq16sr$635$1@sea.gmane.org> (raw)
In-Reply-To: <40ee7a700601100239v60bcfba9j@mail.gmail.com>
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: es_ES@euro
> 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: es_ES@euro
> 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
prev parent reply other threads:[~2006-01-10 20:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-10 10:39 ispell-complete-word in spanish Hamilton Temple
2006-01-10 20:53 ` Kevin Rodgers [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='dq16sr$635$1@sea.gmane.org' \
--to=ihs_4664@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).