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

Get a list of correction from ispell

3 views
Skip to first unread message

Aurélien Aptel

unread,
Feb 10, 2012, 1:15:14 PM2/10/12
to help-gn...@gnu.org
Hi all,

I want to get a list of correction for a word (using the ispell-mode).
Note that Flyspell works correctly.

ispell-current-dictionary
=> "francais"

(lookup-words "maiso*") ;; maison, house in french

Debugger entered--Lisp error: (error "egrep error: /bin/egrep:
/usr/dict/words: No such file or directory")
signal(error ("egrep error: /bin/egrep: /usr/dict/words: No such
file or directory"))
error("%s error: %s" "egrep" "/bin/egrep: /usr/dict/words: No such
file or directory")
[...]


lookup-words wants a dictionary file, and without the optional
argument it's using /usr/dict/words instead. How can I can a list of
correction using ispell-current-dictionnary?

Eli Zaretskii

unread,
Feb 10, 2012, 3:03:22 PM2/10/12
to help-gn...@gnu.org
> Date: Fri, 10 Feb 2012 19:15:14 +0100
> From: Aurélien Aptel <aurelien.a...@gmail.com>
>
> (lookup-words "maiso*") ;; maison, house in french
>
> Debugger entered--Lisp error: (error "egrep error: /bin/egrep:
> /usr/dict/words: No such file or directory")
> signal(error ("egrep error: /bin/egrep: /usr/dict/words: No such
> file or directory"))
> error("%s error: %s" "egrep" "/bin/egrep: /usr/dict/words: No such
> file or directory")
> [...]
>
>
> lookup-words wants a dictionary file, and without the optional
> argument it's using /usr/dict/words instead. How can I can a list of
> correction using ispell-current-dictionnary?

You can't. lookup-words invokes ispell in a way that cannot use your
usual dictionary. It needs a list of words instead. For the details,
read the man pages of Ispell the program (the `L' command in Ispell).

Just find somewhere a list of French words and put it in
/usr/dict/words; then the command will work.


Peter Dyballa

unread,
Feb 10, 2012, 3:08:49 PM2/10/12
to Aurélien Aptel, help-gn...@gnu.org

Am 10.2.2012 um 19:15 schrieb Aurélien Aptel:

> How can I can a list of correction using ispell-current-dictionnary?

You can try to customise the group "ispell". You can reach this from the Options menu. It's possible that ispell will use the customised alternate values when it can't find the proper ones.

Alternatively create hard or symbolic links for the files ispell expects!

--
Greetings

Pete

There are very few jobs that actually require a penis or vagina. All other jobs should be open to everybody.
– Florynce Kennedy


0 new messages