Re: GtkSpell problems



On Mon, Jun 02, 2003 at 03:58:01PM -0700, Evan Martin wrote:
On Mon, 2003-06-02 at 15:13, René Seindal wrote:
It indicates all numbers as misspelled.  I have no idea about how to
change that.  It is a major nuisance.

When right-clicking on a word, I have the option of adding the word to
the dictionary, but the addition is not persistent.  The next time I
open the document, the words are indicated as misspelled again.  How do
I get it to save these additions to a user specific dictionary.

I've been distracted with other projects for a while (it looks like I
made the last release almost exactly a half year ago), so there are a
number of GtkSpell bugs piling up that I ought to get to.  I'll add
these to the list.

If anyone is interested in a project to hack, feel free to email me or
the gtkspell-devel list (see http://gtkspell.sf.net).  :)

Hi

I had a quick look at the gtkspell code and the aspell documentation,
and it strikes me that in the function 

        static void
        add_to_dictionary(GtkWidget *menuitem, GtkSpell *spell)

you should call

        aspell_speller_add_to_personal(spell->speller, word, strlen(word));

instead of the current

        aspell_speller_add_to_session(spell->speller, word, strlen(word));

As I understand the docs, that should make the addition permanent.
Maybe the right thing to do would be to have both options on the menu:
"add to session" and "add to dictionary".


The Aspell docs have the following (note the 'session' or 'personal'
syntax used):

 If the user decided to add the word to the session or personal
 dictionary the the word can be be added using the add_to_session or
 add_to_personal methods respectfully like so:

    aspell_speller_add_to_session|personal(spell_checker, <word>, <size>); 

 It is better to let the spell checker manage these words rather than
 doing it your self so that the words have a change of appearing in the
 suggestion list.



-- 
René Seindal (rene seindal dk)                  http://sights.seindal.dk/




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