From: Rolando Pereira <ei08150@fe.up.pt>
To: 6434@debbugs.gnu.org
Subject: bug#6434: 23.1.93; Portuguese spell-checking doesn't work with words that contain the ç character
Date: Tue, 15 Jun 2010 23:19:08 +0100 [thread overview]
Message-ID: <20100615221907.GA20255@rolando-desktop> (raw)
Using ispell with a Portuguese dictionary to spell check a word that
contains either the ç or Ç characters causes the spellchecker to act as
if those characters were word boundaries.
Here the relevant part of the variable ispell-dictionary-base-alist
in my ispell.el.gz file:
("portugues" ; Portuguese mode
"[a-zA-Z\301\302\311\323\340\341\342\351\352\355\363\343\372]"
"[^a-zA-Z\301\302\311\323\340\341\342\351\352\355\363\343\372]"
"[']" t ("-C") "~latin1" iso-8859-1)
The second string, corresponding to the string returned by
the function ispell-get-casechars, should contain the values \347 and
\307, corresponding, in that order, to the ç and Ç characters.
Also, those values should appear in the third string, which is the one
that is returned by the function ispell-get-not-casechars.
In both cases, these values should appear inside the [].
However, trying to set the variable ispell-dictionary-base-alist with
the correct values on my .emacs, doesn't appear to solve the problem.
The way I found to fix it, is by changing the return values of the
functions ispell-get-casechars and ispell-get-not-casechars as so:
(defun ispell-get-casechars ()
"[a-zA-ZÁÂÉÓàáâéêíóãúçÇ]")
(defun ispell-get-not-casechars ()
"[^a-zA-ZÁÂÉÓàáâéêíóãúçÇ]")
My emacs version, as returned by the emacs-version command is:
GNU Emacs 23.1.93.1 (i686-pc-linux-gnu, GTK+ Version 2.14.4) of
2010-03-04 on rolando-desktop
next reply other threads:[~2010-06-15 22:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-15 22:19 Rolando Pereira [this message]
2010-06-16 13:52 ` bug#6434: 23.1.93; Portuguese spell-checking doesn't work with words that contain the ç character Agustin Martin
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100615221907.GA20255@rolando-desktop \
--to=ei08150@fe.up.pt \
--cc=6434@debbugs.gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.