On Sun, Mar 20, 2005 at 11:38:17PM +0100, Reuben Thomas wrote:
> OK. I reactivated dictionaries-common's .el init code, added the 
> following:
> 
> >(debian-ispell-add-dictionary-entry
> > '("british+accs"
> >   "[A-ZÑÔa-zñô]"
> >   "[^A-ZÑÔa-zñô]"
> >   "[']"
> >   nil
> >   ("-B" "-d" "british-w_accents")
> >   nil
> >   iso-8859-1)
> > "aspell")
> >(setq ispell-dictionary-alist debian-ispell-dictionary-alist)
> 
> to my .emacs, set ispell-local-dictionary to "british+accs", and it 
> doesn't work: accented characters are still treated as non-word 
> characters (so "rôle" doesn't spell-check).
> 

Strange, that is working here with the sample file I copied. Furthermore,
directly modifying ispell-dictionary-alist also works, as long as you do not
reload ispell.el,

; -------------------------------
 (setq ispell-dictionary-alist
       (append ispell-dictionary-alist
              '(("british+accs"                           ; British version
                 "[A-ZÑÔa-zñô]"
                 "[^A-ZÑÔa-zñô]"
                 "[']" 
                 nil 
                 ("-B" "-d" "british-w_accents")
                 nil 
                 iso-8859-1))))
; --------------------------------

* Blind guess: Was the original code filed as latin1 or utf8?

Try with the octal codes (I hope they are not messed), that is how the
example is expected to go in the new README.emacs file.

; --------------------
(debian-ispell-add-dictionary-entry
  '("british+accs"
    "[A-Z\321\324a-z\361\364]"
    "[^A-Z\321\324a-z\361\364]"
    "[']"
    nil
    ("-B" "-d" "british-w_accents")
    nil
    iso-8859-1)
  "aspell")
; --------------------

After Easter I will take a look at the ispell-local-dictionary-alist stuff,
to see how to make it work as expected.

Thanks for your feedback,

Cheers,

-- 
Agustin

Reply via email to