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: Tassilo Horn
Subject: Re: Is it possible to transform text before feeding it to ispell?
Date: Tue, 08 Sep 2015 13:45:52 +0200
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux)

Alexis <flexibeast@gmail.com> writes:

>> 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?
>
> i don't know about ready-made solutions for this, but perhaps
> something could be built around the `google-translate` package that's
> available from MELPA and Marmalade?

I'm pretty sure Marcin means something else when he says translating,
i.e., translating from one encoding to another encoding, not translating
between languages.  For example, one might have the German word
"m{\"a}{\ss}igen" in a ASCII-encoded TeX buffer and what should actually
be passed to ispell/hunspell is "mäßigen" in UTF-8 encoding where the
translation would be `iso-tex2iso' and `iso-iso2tex'.

Bye,
Tassilo



reply via email to

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