summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;