Shawn Riordan
2010-09-18 10:03:06 UTC
This is probably a basic question.
But I am stumped.
How does Aspell find it's dictionaries?
I found a link to a list of dictionaries.
(ftp://ftp.gnu.org/gnu/aspell/dict/0index.html)
and grabbed both the 5.0 and 6.0 english dictionaries.
But they gave me no hints about where to unzip them.
So, I put them in my program's debug directory.
But whenever I run my code, I get "No word lists can be found for language
"en_US"".
Here is my code:
AspellConfig *pASCnfg = new_aspell_config();
aspell_config_replace(pASCnfg, "lang", "en_US");
AspellCanHaveError *pASCHE = new_aspell_speller(pASCnfg);
if(aspell_error_number(pASCHE) != 0)
{
// this always trips with "No word lists can be found for language
"en_US""
MessageBoxA(NULL,aspell_error_message(pASCHE),"foo",MB_OK);
}
What am I doing wrong?
Do I need to tell Aspell where to look for the dictionaries?
But I am stumped.
How does Aspell find it's dictionaries?
I found a link to a list of dictionaries.
(ftp://ftp.gnu.org/gnu/aspell/dict/0index.html)
and grabbed both the 5.0 and 6.0 english dictionaries.
But they gave me no hints about where to unzip them.
So, I put them in my program's debug directory.
But whenever I run my code, I get "No word lists can be found for language
"en_US"".
Here is my code:
AspellConfig *pASCnfg = new_aspell_config();
aspell_config_replace(pASCnfg, "lang", "en_US");
AspellCanHaveError *pASCHE = new_aspell_speller(pASCnfg);
if(aspell_error_number(pASCHE) != 0)
{
// this always trips with "No word lists can be found for language
"en_US""
MessageBoxA(NULL,aspell_error_message(pASCHE),"foo",MB_OK);
}
What am I doing wrong?
Do I need to tell Aspell where to look for the dictionaries?