diff options
author | chenxiajian <chenxiajian1985@gmail.com> | 2011-08-09 16:52:20 +0000 |
---|---|---|
committer | chenxiajian <chenxiajian1985@gmail.com> | 2011-08-09 16:52:20 +0000 |
commit | 64c70b0e4a5fd3429bbd153a2adcc964cd61438a (patch) | |
tree | aaa6fe63accc0ba9a2ba950d3c400acca8945639 | |
parent | 363c8f46e3c08bb6382af12c0cbaaa4f8fcea46b (diff) | |
download | enchant-64c70b0e4a5fd3429bbd153a2adcc964cd61438a.tar.gz |
get param at enchant
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/branches/gsoc2011hyphenation@30153 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
-rw-r--r-- | src/ispell/ispell_checker.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ispell/ispell_checker.cpp b/src/ispell/ispell_checker.cpp index 498b1a4..aecf34c 100644 --- a/src/ispell/ispell_checker.cpp +++ b/src/ispell/ispell_checker.cpp @@ -315,7 +315,8 @@ using namespace std; char * ISpellChecker::hyphenate(const char * const utf8Word, const char *const tag) { //we must choose the right language tag - string result=Hyphenator(RFC_3066::Language(tag)).hyphenate(utf8Word).c_str(); + char* param_value = enchant_broker_get_param (m_broker, "enchant.ispell.hyphenation.dictionary.path"); + string result=Hyphenator(RFC_3066::Language(tag),param_value).hyphenate(utf8Word).c_str(); char* temp=new char[result.length()]; strcpy(temp,result.c_str()); |