From 2fbe4eda9e2b320e072984cd5c22778e26ac0107 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Sat, 8 Oct 2016 11:32:12 +0800 Subject: import open-gram dictionary --- src/include/novel_types.h | 9 +++++---- src/storage/table_info.cpp | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src') 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); -- cgit