aspell-user
[Top][All Lists]
Advanced

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

[Aspell-user] aspell under windows


From: Vadim A. Khohlov
Subject: [Aspell-user] aspell under windows
Date: Wed, 9 Mar 2005 14:28:23 +0200
User-agent: KMail/1.7.1

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?
--




reply via email to

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