aspell-user
[Top][All Lists]
Advanced

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

Re: [Aspell-user] dictionary locations


From: Shawn Riordan
Subject: Re: [Aspell-user] dictionary locations
Date: Sun, 19 Sep 2010 12:12:12 -0700

I solved my problem by switching to Hunspell.
The spell check engine used by Firefox, Chrome and Open Office.

It's dictionaries are available pre-built.
You can put them anywhere you want.
You just pass the full path and filename of the dictionary to the constructor of the Hunspell class.

It's all terribly easy.  

I only needed to use 3 methods on the hunspell class, to give my application the ability to check spelling on words and supply suggestions.
It took less than a day to finish that feature.

My only hiccup was that the compiler in MS Visual Studio was unhappy with a method named "near()" in one of hunspell's classes.
For now, I have just gone through and renamed it "nearx()".   I may go back and look at it some more later.



On Sun, Sep 19, 2010 at 10:31 AM, Anthony Dardis <address@hidden> wrote:
I'm having a problem like Shawn Riordan's. I'm on Mac OS X 10.5.8. Aspell is installed and works correctly through Aquamacs. I want to use the C API to use Aspell in a little programming puzzle (Euler Project Problem 59). I've installed the en_US dictionary, and aspell works correctly from the command line. But when I run this code (basically exactly from the Aspell C API doc):


 AspellConfig * spell_config = new_aspell_config();
 aspell_config_replace(spell_config, "lang", "en_US");
 AspellCanHaveError * possible_err = new_aspell_speller(spell_config);
 AspellSpeller * spell_checker = 0;
 if (aspell_error_number(possible_err) != 0) {
   printf ("%s\nl", aspell_error_message(possible_err));
   return EXIT_FAILURE;
 }
 else
   spell_checker = to_aspell_speller(possible_err);

I get


No word lists can be found for the language "en_US".

_______________________________________________
Aspell-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/aspell-user


reply via email to

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