summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-10-08 11:32:12 +0800
committerPeng Wu <alexepico@gmail.com>2016-10-09 13:37:09 +0800
commit2fbe4eda9e2b320e072984cd5c22778e26ac0107 (patch)
treec20f13a5d28d36d8d410ae8d8814df414e1e20ef
parent15b6a438c28731497cba02c155a577eb89355adc (diff)
downloadlibpinyin-2fbe4eda9e2b320e072984cd5c22778e26ac0107.tar.gz
libpinyin-2fbe4eda9e2b320e072984cd5c22778e26ac0107.tar.xz
libpinyin-2fbe4eda9e2b320e072984cd5c22778e26ac0107.zip
import open-gram dictionary
-rw-r--r--src/include/novel_types.h9
-rw-r--r--src/storage/table_info.cpp1
2 files changed, 6 insertions, 4 deletions
diff --git a/src/include/novel_types.h b/src/include/novel_types.h
index 061f690..491bfb8 100644
--- a/src/include/novel_types.h
+++ b/src/include/novel_types.h
@@ -154,10 +154,11 @@ typedef enum {
RESERVED = 0,
GB_DICTIONARY = 1,
GBK_DICTIONARY = 2,
- MERGED_DICTIONARY = 3,
- ADDON_DICTIONARY = 4,
- NETWORK_DICTIONARY = 5,
- USER_DICTIONARY = 6,
+ OPENGRAM_DICTIONARY = 3,
+ MERGED_DICTIONARY = 4,
+ ADDON_DICTIONARY = 5,
+ NETWORK_DICTIONARY = 6,
+ USER_DICTIONARY = 7,
} PHRASE_INDEX_LIBRARIES;
G_END_DECLS
diff --git a/src/storage/table_info.cpp b/src/storage/table_info.cpp
index f496c7a..0bffcfe 100644
--- a/src/storage/table_info.cpp
+++ b/src/storage/table_info.cpp
@@ -131,6 +131,7 @@ static guint8 to_index_of_default_tables(const char * str) {
HANDLE(RESERVED);
HANDLE(GB_DICTIONARY);
HANDLE(GBK_DICTIONARY);
+ HANDLE(OPENGRAM_DICTIONARY);
HANDLE(MERGED_DICTIONARY);
HANDLE(ADDON_DICTIONARY);
HANDLE(NETWORK_DICTIONARY);