[prev in list] [next in list] [prev in thread] [next in thread]
List: aspell-user
Subject: [Aspell-user] aspell under windows
From: "Vadim A. Khohlov" <xvadim () newmail ! ru>
Date: 2005-03-09 12:28:23
Message-ID: 200503091428.23443.xvadim () newmail ! ru
[Download RAW message or body]
Hi!
I am trying to develop program with aspell under Windows. I have install the
windows-port of aspell-0.5 and russian dictionary. The command line aspell is
work fine - it checks a file and commnad 'aspell dict' shows 'ru'.
But my code:
AspellConfig *config;
AspellDictInfoList *dlist;
AspellDictInfoEnumeration *den;
AspellDictInfo *entry;
std::cout << "test aspell\n";
config = new_aspell_config();
dlist = get_aspell_dict_info_list(config);
den = aspell_dict_info_list_elements(dlist);
while(entry = (AspellDictInfo*)aspell_dict_info_enumeration_next(den))
std::cout << entry->name << ' ' << entry->code << std::endl;
delete_aspell_dict_info_enumeration(den);
//return 0;
aspell_config_replace(config, "lang", "ru");
aspell_config_replace(config, "encoding", "koi8-r");
AspellCanHaveError *possible_err = new_aspell_speller(config);
AspellSpeller * spell_checker = 0;
if (aspell_error_number(possible_err) != 0)
{
puts(aspell_error_message(possible_err));
getchar();
return 1;
}
...
don't work.
1. the code
while(entry = (AspellDictInfo*)aspell_dict_info_enumeration_next(den))
std::cout << entry->name << ' ' << entry->code << std::endl;
delete_aspell_dict_info_enumeration(den);
don't show anything
2. the code
aspell_config_replace(config, "lang", "ru");
aspell_config_replace(config, "encoding", "koi8-r");
AspellCanHaveError *possible_err = new_aspell_speller(config);
AspellSpeller * spell_checker = 0;
if (aspell_error_number(possible_err) != 0)
{
puts(aspell_error_message(possible_err));
getchar();
return 1;
}
says:No word list can be found for the language ru.
What's I do wrong?
--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic