On Wed, Mar 30, 2005 at 04:15:48PM +0200, Reuben Thomas wrote:
> On Tue, 29 Mar 2005, Agustin Martin wrote:
> 
> >Please try if this works as seems to be working here. If so I will add this
> >mention to the README.emacs file.
> 
> Yes, this seems to work fine now. 

Not yet added, until the best fix is clear.

> Why can't I just use "utf8" as the 
> encoding in debian-ispell-add-dictionary-entry, though?

It should work (with utf-8, utf8 is not recognised by emacs as a mime charset)
as long as you put your casechars/non-casechars also in utf8 (even if you
put the octal codes, I think you need to put them for the utf-8 string
components). Otherwise you will get some errors,

--------
(Next local Ispell command will use british+accs dictionary)
Starting new Ispell process... [2 times]
ispell-get-word: Invalid regexp: "Unmatched [ or [^"
--------

In the meantime I noticed that aspell seems to accept encoding names in
the emacs mime-charset format, (e.g., iso-8859-1 intead of iso8859-1),
so another possibility is to try handling this from within ispell.el,
in pseudo-code something like

if (running_aspell){
   append_to_args("--encoding=" . ispell-coding-system)
}

This will not work with the spellchecking program defined in the Local Vars
section (at least in my preliminary tests), but should work with it defined
in ~/.emacs.

I could make this be a bit more clever so is not used for aspell 0.33, but
this should not be a big problem, I doubt anybody is using the
dictionaries-common system in woody with aspell-0.33.

Unless Brian Nelson (aspell maintainer) suggests something better this seems
a promising way to go, since this problem might also be present for some of
the official dicts too.

There also is a huge patch flying around,

http://sourceforge.net/tracker/index.php?func=detail&aid=945391&group_id=245&atid=300245

to make all the ispell.el <-> aspell communication be done in the buffer
encoding, but since it is rather large, I prefer to wait for ispell.el
upstream reaction on it.

By the way, I remembered that Brian was subscribed to the dictionaries-common
package, no need to cc him. Just slightly changing bug's title to attract his
attention.

Cheers,

-- 
Agustin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to