summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchenxiajian <chenxiajian1985@gmail.com>2011-08-23 16:25:16 +0000
committerchenxiajian <chenxiajian1985@gmail.com>2011-08-23 16:25:16 +0000
commit6a239a72b989bbb5da83d2d4017b27633c2505dc (patch)
tree937f3b64dfd8554377e6ba73fe698a4a3c50ba80
parente8b815794d9137607c84f8c509fc03494cc24d11 (diff)
downloadenchant-6a239a72b989bbb5da83d2d4017b27633c2505dc.tar.gz
comment in ISpell
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/branches/gsoc2011hyphenation@30282 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
-rw-r--r--src/ispell/Hyphenator.cpp3
-rw-r--r--src/ispell/ispell_checker.cpp1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/ispell/Hyphenator.cpp b/src/ispell/Hyphenator.cpp
index 75bced3..9fe9350 100644
--- a/src/ispell/Hyphenator.cpp
+++ b/src/ispell/Hyphenator.cpp
@@ -62,6 +62,9 @@ static auto_ptr<HyphenationTree> read_hyphenation_table(const char *filename) {
* loaded. */
#include <fstream>
using namespace std;
+
+// From here, we arrange the dic file in the folder "language"
+// you can just copy your languages hyphenation dictionary into it. So that our abiword will support your language s hyphenation.
Hyphenate::Hyphenator::Hyphenator(const RFC_3066::Language& lang,string dicPath) {
setlocale(LC_CTYPE, "");
string path = "";
diff --git a/src/ispell/ispell_checker.cpp b/src/ispell/ispell_checker.cpp
index e078307..0a6f1d8 100644
--- a/src/ispell/ispell_checker.cpp
+++ b/src/ispell/ispell_checker.cpp
@@ -605,6 +605,7 @@ ispell_provider_request_dict (EnchantProvider * me, const char *const tag)
strcpy(tagTmp,tag);
dict->user_data = (void *) checker;
dict->tag = tagTmp;
+ // we set the connetion with backend
dict->check = ispell_dict_check;
dict->suggest = ispell_dict_suggest;
dict->hyphenate = ispell_dict_hyphenate;