projects
/
platform
/
upstream
/
ibus-libpinyin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e166822
)
uses pinyin_load_phrase_library
author
Peng Wu
<alexepico@gmail.com>
Wed, 4 Jul 2012 07:19:05 +0000
(15:19 +0800)
committer
Peng Wu
<alexepico@gmail.com>
Wed, 4 Jul 2012 07:19:05 +0000
(15:19 +0800)
src/PYLibPinyin.cc
patch
|
blob
|
history
diff --git
a/src/PYLibPinyin.cc
b/src/PYLibPinyin.cc
index
dd56fa7
..
621863b
100644
(file)
--- a/
src/PYLibPinyin.cc
+++ b/
src/PYLibPinyin.cc
@@
-64,6
+64,7
@@
LibPinyinBackEnd::allocPinyinInstance ()
g_free(userdir); userdir = NULL;
}
m_pinyin_context = pinyin_init ("/usr/share/libpinyin/data", userdir);
g_free(userdir); userdir = NULL;
}
m_pinyin_context = pinyin_init ("/usr/share/libpinyin/data", userdir);
+ pinyin_load_phrase_library(m_pinyin_context, 2);
g_free(userdir);
}
g_free(userdir);
}
@@
-87,7
+88,8
@@
LibPinyinBackEnd::allocChewingInstance ()
if (retval) {
g_free(userdir); userdir = NULL;
}
if (retval) {
g_free(userdir); userdir = NULL;
}
- m_chewing_context = pinyin_init ("/usr/share/libpinyin/data", NULL);
+ m_chewing_context = pinyin_init ("/usr/share/libpinyin/data", userdir);
+ pinyin_load_phrase_library(m_chewing_context, 2);
g_free(userdir);
}
g_free(userdir);
}