summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2024-09-29 14:04:44 +0800
committerPeng Wu <alexepico@gmail.com>2024-09-29 14:04:44 +0800
commit82c4ecfd79c94a46aa9fe8034f9840ae5bc96fe6 (patch)
treee0c46567885396df05ec3a094a6e56f402cff3b5
parentbfcf58960acfa5d6aa64f2f67fa05b0ce2b63c8e (diff)
downloadlibpinyin-82c4ecfd79c94a46aa9fe8034f9840ae5bc96fe6.tar.gz
libpinyin-82c4ecfd79c94a46aa9fe8034f9840ae5bc96fe6.tar.xz
libpinyin-82c4ecfd79c94a46aa9fe8034f9840ae5bc96fe6.zip
Update punct table file name
-rw-r--r--data/Makefile.am3
-rw-r--r--src/pinyin_internal.h2
-rw-r--r--tests/storage/test_punct_table.cpp2
3 files changed, 4 insertions, 3 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 0407d9a..b33652f 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -20,7 +20,8 @@ tablefiles = gb_char.table gbk_char.table \
art.table culture.table economy.table \
geology.table history.table life.table \
nature.table people.table science.table \
- society.table sport.table technology.table
+ society.table sport.table technology.table \
+ punct.table
binfiles = ${tablefiles:.table=.bin}
diff --git a/src/pinyin_internal.h b/src/pinyin_internal.h
index db6a8e4..93ea8af 100644
--- a/src/pinyin_internal.h
+++ b/src/pinyin_internal.h
@@ -63,7 +63,7 @@
#define USER_PHRASE_INDEX "user_phrase_index.bin"
#define ADDON_SYSTEM_PINYIN_INDEX "addon_pinyin_index.bin"
#define ADDON_SYSTEM_PHRASE_INDEX "addon_phrase_index.bin"
-#define SYSTEM_PUNCT_TABLE "punct.db"
+#define SYSTEM_PUNCT_TABLE "punct.bin"
using namespace pinyin;
diff --git a/tests/storage/test_punct_table.cpp b/tests/storage/test_punct_table.cpp
index d8fe3cd..8c0aad2 100644
--- a/tests/storage/test_punct_table.cpp
+++ b/tests/storage/test_punct_table.cpp
@@ -46,7 +46,7 @@ void print_table(PunctTable & table) {
int main(int argc, char * argv[]){
PunctTable table;
- check_result(table.attach("/tmp/punct.db", ATTACH_CREATE|ATTACH_READWRITE));
+ check_result(table.attach("/tmp/punct.bin", ATTACH_CREATE|ATTACH_READWRITE));
printf("created table.\n");
print_table(table);