[prev in list] [next in list] [prev in thread] [next in thread]
List: aspell-user
Subject: [Aspell-user] how to set list options using C API
From: "Dormont, Dan \(Corporate\)" <Dan.Dormont () corporate ! ge ! com>
Date: 2004-04-18 22:58:14
Message-ID: F8BB56D118C502469DB7A80AD317164B0ACCC3EC () STAMLVEM01 ! e2k ! ad ! ge ! com
[Download RAW message or body]
Hi,
I'm invoking aspell through the C API in my application but I can't figure out how to \
set a config option from a list, specifically "extra-dicts". I see there's a \
function aspell_config_retrieve_list, but I don't see how to save those changes back. \
Here's what I've tried so far:
AspellMutableContainer * extra_dict;
AspellStringList * string_list;
AspellConfig * spell_config = new_aspell_config();
aspell_config_replace(spell_config, "lang", "en");
string_list = new_aspell_string_list();
extra_dict = aspell_string_list_to_mutable_container(string_list);
aspell_config_retrieve_list(spell_config, "extra-dict", extra_dict);
aspell_mutable_container_add(extra_dict, DICT_PATH);
delete_aspell_string_list(string_list);
That runs fine, but it doesn't seem to make the change. Any suggestions?
Thanks,
Daniel Dormont
____________________________________
SupportCentral - GE Corporate
Share Knowledge, Find Answers
900 Chapel Street, 7th. Floor
New Haven, CT 06510
Ph:(203) 787-7028 Dial-Comm 8*233-7028
E-Mail : dan.dormont@corporate.ge.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic