aspell-user
[Top][All Lists]
Advanced

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

FW: [Aspell-user] newbie questions


From: Erik.Ostermueller
Subject: FW: [Aspell-user] newbie questions
Date: Fri, 8 Nov 2002 09:17:19 -0600

for the record . . .

-----Original Message-----
From: Francois Boudreau [mailto:address@hidden
Sent: Friday, November 08, 2002 7:40 AM
To: Ostermueller, Erik
Subject: RE: [Aspell-user] newbie questions


>
> Does ASpell have an API for adding words to the dictionary?
> If not, has anyone worked on an initial design for this?
>

There is one to add words to the personal dictionary and to the session.

int aspell_speller_add_to_personal(struct AspellSpeller * ths, const
char *
word, int word_size);
int aspell_speller_add_to_session(struct AspellSpeller * ths, const char
*
word, int word_size);

There's also API to access the wordlist, though I'm not to sure what you
can
do with them after.

const struct AspellWordList * aspell_speller_personal_word_list(struct
AspellSpeller * ths);
const struct AspellWordList * aspell_speller_session_word_list(struct
AspellSpeller * ths);
const struct AspellWordList * aspell_speller_main_word_list(struct
AspellSpeller * ths);

And don't forget to save your changes.
int aspell_speller_save_all_word_lists(struct AspellSpeller * ths);

Look at aspell.h


Francois Boudreau






reply via email to

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