summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);