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

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

Re: Is it possible to transform text before feeding it to ispell?


From: Eli Zaretskii
Subject: Re: Is it possible to transform text before feeding it to ispell?
Date: Tue, 08 Sep 2015 18:54:51 +0300

> From: Marcin Borkowski <mbork@mbork.pl>
> Date: Tue, 08 Sep 2015 10:29:00 +0200
> 
> assume that I have an \(i\|hun\)spell dictionary in encoding X, and my
> document is in encoding Y.  Does Emacs have any facility for translating
> the text before feeding it to ispell, and translating it back when
> presenting alternatives?

Emacs already does all that automatically.  Recall that text in the
buffer you are spell-checking is already decoded into the internal
representation, so the file's encoding is irrelevant.  As for the
dictionary encoding, ispell.el detects that automatically (and if it
fails, you can help it by customizing ispell-dictionary-alist), and
encodes/decodes the words as needed when it talks to the spelling
back-end.



reply via email to

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