Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

lisp interface to ispell ?

0 views
Skip to first unread message

Andreas Politz

unread,
Nov 6, 2009, 2:39:52 PM11/6/09
to help-gn...@gnu.org

Hi,

ispell surely is a nice package, but sadly it's user-interface seems to
closely tied to it's functionality.

Does someone have a hack, or know a different package, in order to allow
elisp access to spelling functions ? E.g. like

(spell word language)

which at least returns t or nil.

The background is, that I am using a germnan input-method and it
frequently constructs words ,due to the contextless construction of
umlauts, which do not exists in _any_ language.

-ap

Teemu Likonen

unread,
Nov 6, 2009, 3:05:53 PM11/6/09
to
On 2009-11-06 20:39 (+0100), Andreas Politz wrote:

> Does someone have a hack, or know a different package, in order to allow
> elisp access to spelling functions ? E.g. like
>
> (spell word language)
>
> which at least returns t or nil.

Something like this?


(defun my-ispell-string (word lang)
(with-temp-buffer
(insert word)
(call-process-region (point-min) (point-max)
"ispell" t t nil "-l" "-d" lang)
(if (= (point-min) (point-max))
t)))

0 new messages