From 51e7af528a4fe1c5da660eba48268369225c064c Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Thu, 15 Oct 2015 11:07:08 +0800 Subject: use PinyinDirectParser2 --- src/storage/chewing_large_table.cpp | 2 +- src/storage/phrase_index.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storage/chewing_large_table.cpp b/src/storage/chewing_large_table.cpp index 5e5bdd8..a51592a 100644 --- a/src/storage/chewing_large_table.cpp +++ b/src/storage/chewing_large_table.cpp @@ -679,7 +679,7 @@ bool ChewingLargeTable::load_text(FILE * infile) { glong len = g_utf8_strlen(phrase, -1); - FullPinyinParser2 parser; + PinyinDirectParser2 parser; ChewingKeyVector keys; ChewingKeyRestVector key_rests; diff --git a/src/storage/phrase_index.cpp b/src/storage/phrase_index.cpp index 3f13042..a18ff9d 100644 --- a/src/storage/phrase_index.cpp +++ b/src/storage/phrase_index.cpp @@ -557,7 +557,7 @@ bool FacadePhraseIndex::load_text(guint8 phrase_index, FILE * infile){ } pinyin_option_t options = USE_TONE; - FullPinyinParser2 parser; + PinyinDirectParser2 parser; ChewingKeyVector keys = g_array_new(FALSE, FALSE, sizeof(ChewingKey)); ChewingKeyRestVector key_rests = g_array_new(FALSE, FALSE, sizeof(ChewingKeyRest)); -- cgit