[prev in list] [next in list] [prev in thread] [next in thread] 

List:       aspell-user
Subject:    FW: [Aspell-user] newbie questions
From:       <Erik.Ostermueller () alltel ! com>
Date:       2002-11-08 15:17:19
Message-ID: B40A0CDFFD21DF40BF0C88B714B92F08B79417 () LITEXCH5 ! alltel ! com
[Download RAW message or body]

for the record . . .

-----Original Message-----
From: Francois Boudreau [mailto:fboudreau@accentus.ca]
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





[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic