From b84ea7a5186480e7e50a3a85ab492002c004a4aa Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 17 Dec 2024 10:22:58 +0800 Subject: Update gen_binary_files.cpp --- utils/storage/gen_binary_files.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'utils/storage/gen_binary_files.cpp') diff --git a/utils/storage/gen_binary_files.cpp b/utils/storage/gen_binary_files.cpp index 0d66c45..e3f2d81 100644 --- a/utils/storage/gen_binary_files.cpp +++ b/utils/storage/gen_binary_files.cpp @@ -24,10 +24,12 @@ #include "utils_helper.h" static const gchar * table_dir = "."; +static gboolean gen_punct_table = FALSE; static GOptionEntry entries[] = { {"table-dir", 0, 0, G_OPTION_ARG_FILENAME, &table_dir, "table directory", NULL}, + {"gen-punct-table", 0, 0, G_OPTION_ARG_NONE, &gen_punct_table, "generate punctuation table", NULL}, {NULL} }; @@ -143,7 +145,8 @@ int main(int argc, char * argv[]){ ADDON_SYSTEM_PHRASE_INDEX, phrase_files, type); - generate_punct_table(SYSTEM_PUNCT_TABLE); + if (gen_punct_table) + generate_punct_table(SYSTEM_PUNCT_TABLE); return 0; } -- cgit