summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-02-20 10:54:32 +0800
committerPeng Wu <alexepico@gmail.com>2013-02-20 10:54:32 +0800
commitb30d259c0cd2c4f844048fa315b453d3b03af6bd (patch)
treeef629449bc1a1e215c30131131a94bcc2f7c8688 /src
parent4dc12953941dcc034bcbe680d529d24b88f79ddd (diff)
downloadibus-libpinyin-b30d259c0cd2c4f844048fa315b453d3b03af6bd.tar.gz
ibus-libpinyin-b30d259c0cd2c4f844048fa315b453d3b03af6bd.tar.bz2
ibus-libpinyin-b30d259c0cd2c4f844048fa315b453d3b03af6bd.zip
update dictionaries
Diffstat (limited to 'src')
-rw-r--r--src/PYConfig.cc2
-rw-r--r--src/PYLibPinyin.cc2
-rw-r--r--src/PYPConfig.cc6
3 files changed, 5 insertions, 5 deletions
diff --git a/src/PYConfig.cc b/src/PYConfig.cc
index 2ed964c..6a51110 100644
--- a/src/PYConfig.cc
+++ b/src/PYConfig.cc
@@ -62,7 +62,7 @@ Config::initDefaultValues (void)
m_init_simp_chinese = TRUE;
m_special_phrases = TRUE;
- m_dictionaries = "2";
+ m_dictionaries = "2;4;5;6;7;8;9;10;11;12;13";
}
diff --git a/src/PYLibPinyin.cc b/src/PYLibPinyin.cc
index d2cb5d1..a9a75e9 100644
--- a/src/PYLibPinyin.cc
+++ b/src/PYLibPinyin.cc
@@ -81,7 +81,7 @@ LibPinyinBackEnd::initPinyinContext (Config *config)
g_strfreev (indices);
/* load user phrase library. */
- pinyin_load_phrase_library (context, 15);
+ pinyin_load_phrase_library (context, USER_DICTIONARY);
return context;
}
diff --git a/src/PYPConfig.cc b/src/PYPConfig.cc
index f66b542..d75b5ed 100644
--- a/src/PYPConfig.cc
+++ b/src/PYPConfig.cc
@@ -101,7 +101,7 @@ LibPinyinConfig::initDefaultValues (void)
m_init_simp_chinese = TRUE;
m_special_phrases = TRUE;
- m_dictionaries = "2";
+ m_dictionaries = "2;4;5;6;7;8;9;10;11;12;13";
}
static const struct {
@@ -165,7 +165,7 @@ LibPinyinConfig::readDefaultValues (void)
g_warn_if_reached ();
}
m_ctrl_switch = read(CONFIG_CTRL_SWITCH, false);
- m_dictionaries = read (CONFIG_DICTIONARIES, std::string("2"));
+ m_dictionaries = read (CONFIG_DICTIONARIES, std::string("2;4;5;6;7;8;9;10;11;12;13"));
/* fuzzy pinyin */
if (read (CONFIG_FUZZY_PINYIN, false))
@@ -237,7 +237,7 @@ LibPinyinConfig::valueChanged (const std::string &section,
} else if (CONFIG_CTRL_SWITCH == name) {
m_ctrl_switch = normalizeGVariant (value, false);
} else if (CONFIG_DICTIONARIES == name) {
- m_dictionaries = normalizeGVariant (value, std::string("2"));
+ m_dictionaries = normalizeGVariant (value, std::string("2;4;5;6;7;8;9;10;11;12;13"));
}
/* fuzzy pinyin */
else if (CONFIG_FUZZY_PINYIN == name) {