python/hypothesis: update to 6.122.3
[oi-userland.git] / components / desktop / abiword / patches / 01-enchant-2.patch
blobf6f5f9786c3f2a3438ace2fad750f47a932a83ef
1 --- AbiWord-release-3.0.6/configure.ac.orig
2 +++ AbiWord-release-3.0.6/configure.ac
3 @@ -94,7 +94,7 @@
6 # optional deps
7 -enchant_req='enchant >= 1.2.0'
8 +enchant_req='enchant-2'
9 gio_req='gio-2.0'
10 goffice_req='libgoffice-0.10 >= 0.10.0'
12 --- AbiWord-release-3.0.6/src/af/xap/xp/enchant_checker.cpp.orig
13 +++ AbiWord-release-3.0.6/src/af/xap/xp/enchant_checker.cpp
14 @@ -127,7 +127,7 @@
15 pvSugg->addItem (ucszSugg);
18 - enchant_dict_free_suggestions (m_dict, suggestions);
19 + enchant_dict_free_string_list (m_dict, suggestions);
22 return pvSugg;
23 @@ -139,7 +139,7 @@
25 if (word && len) {
26 UT_UTF8String utf8 (word, len);
27 - enchant_dict_add_to_personal (m_dict, utf8.utf8_str(), utf8.byteLength());
28 + enchant_dict_add (m_dict, utf8.utf8_str(), utf8.byteLength());
29 return true;
31 return false;
32 @@ -150,7 +150,7 @@
33 UT_return_val_if_fail (m_dict, false);
35 UT_UTF8String ignore (toCorrect, toCorrectLen);
36 - return enchant_dict_is_in_session (m_dict, ignore.utf8_str(), ignore.byteLength()) != 0;
37 + return enchant_dict_is_added (m_dict, ignore.utf8_str(), ignore.byteLength()) != 0;
40 void EnchantChecker::ignoreWord (const UT_UCSChar *toCorrect, size_t toCorrectLen)