diff options
author | Peng Wu <alexepico@gmail.com> | 2013-11-04 13:34:01 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2013-11-04 13:34:09 +0800 |
commit | 54eb9848d09b7d68b908258d07bbf36b7a47a20d (patch) | |
tree | f4254264073195a317a6883862c3e64f1bd1f5b5 /src/zhuyin.cpp | |
parent | 1ba2f10f6af8120ef6ec3ad9887c50af7f151c40 (diff) | |
download | libzhuyin-54eb9848d09b7d68b908258d07bbf36b7a47a20d.tar.gz libzhuyin-54eb9848d09b7d68b908258d07bbf36b7a47a20d.tar.xz libzhuyin-54eb9848d09b7d68b908258d07bbf36b7a47a20d.zip |
use chewing tsi.src
Diffstat (limited to 'src/zhuyin.cpp')
-rw-r--r-- | src/zhuyin.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/zhuyin.cpp b/src/zhuyin.cpp index eba3bb1..f006831 100644 --- a/src/zhuyin.cpp +++ b/src/zhuyin.cpp @@ -237,8 +237,7 @@ zhuyin_context_t * zhuyin_init(const char * systemdir, const char * userdir){ context->m_phrase_index = new FacadePhraseIndex; /* hack here: directly call load phrase library. */ - zhuyin_load_phrase_library(context, GB_DICTIONARY); - zhuyin_load_phrase_library(context, MERGED_DICTIONARY); + zhuyin_load_phrase_library(context, TSI_DICTIONARY); context->m_system_bigram = new Bigram; filename = g_build_filename(context->m_system_dir, SYSTEM_BIGRAM, NULL); @@ -334,8 +333,8 @@ bool zhuyin_load_phrase_library(zhuyin_context_t * context, bool zhuyin_unload_phrase_library(zhuyin_context_t * context, guint8 index){ - /* gb_char.bin and merged.bin can't be unloaded. */ - if (GB_DICTIONARY == index || MERGED_DICTIONARY == index) + /* tsi.bin can't be unloaded. */ + if (TSI_DICTIONARY == index) return false; assert(index < PHRASE_INDEX_LIBRARY_COUNT); @@ -378,7 +377,7 @@ bool zhuyin_iterator_add_phrase(import_iterator_t * iter, /* pinyin_option_t options = PINYIN_CORRECT_ALL | USE_TONE; */ pinyin_option_t options = USE_TONE; - FullPinyinParser2 parser; + ChewingDirectParser2 parser; ChewingKeyVector keys = g_array_new(FALSE, FALSE, sizeof(ChewingKey)); ChewingKeyRestVector key_rests = |