From 80cd70033fbf0d8b327edc6ceef2f81bbb586945 Mon Sep 17 00:00:00 2001 From: Shewer Lu Date: Fri, 20 Jan 2023 16:48:48 +0800 Subject: [PATCH 1/4] Update release-ci.yml --- .github/workflows/release-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-ci.yml b/.github/workflows/release-ci.yml index 0b339b1c60..7ff8e1bef5 100644 --- a/.github/workflows/release-ci.yml +++ b/.github/workflows/release-ci.yml @@ -21,7 +21,7 @@ jobs: rime_plugins: rime/librime-charcode hchunhui/librime-lua lotem/librime-octagram lotem/librime-proto release: - needs: [macos, windows] + needs: [macos, windows, linux] runs-on: ubuntu-latest steps: - name: Download artifacts From 457455df222809f424e7df9cbc9efe6cde0f9466 Mon Sep 17 00:00:00 2001 From: shewer Date: Fri, 15 Dec 2023 15:19:48 +0800 Subject: [PATCH 2/4] reset release-ci.yml Signed-off-by: shewer --- .github/workflows/release-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-ci.yml b/.github/workflows/release-ci.yml index f55d9f9cdc..5ec226053a 100644 --- a/.github/workflows/release-ci.yml +++ b/.github/workflows/release-ci.yml @@ -24,7 +24,7 @@ jobs: rime_plugins: hchunhui/librime-lua lotem/librime-octagram rime/librime-predict release: - needs: [macos, windows, linux] + needs: [macos, windows] runs-on: ubuntu-latest steps: - name: Download artifacts From b41d1242f8ba4b17d608ea0b9298aac668eb6e84 Mon Sep 17 00:00:00 2001 From: shewer Date: Wed, 5 Jun 2024 06:14:13 +0800 Subject: [PATCH 3/4] loading configuration from ticket.schema Signed-off-by: shewer --- src/rime/gear/script_translator.cc | 3 ++- src/rime/gear/table_translator.cc | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/rime/gear/script_translator.cc b/src/rime/gear/script_translator.cc index 028b659e58..09e05958ab 100644 --- a/src/rime/gear/script_translator.cc +++ b/src/rime/gear/script_translator.cc @@ -171,7 +171,8 @@ ScriptTranslator::ScriptTranslator(const Ticket& ticket) : Translator(ticket), Memory(ticket), TranslatorOptions(ticket) { if (!engine_) return; - if (Config* config = engine_->schema()->config()) { + if (Config* config = ticket.schema->config()) { + DLOG(INFO) << "loading configuration from schema_id: " << ticket.schema->schema_id(); config->GetInt(name_space_ + "/spelling_hints", &spelling_hints_); config->GetBool(name_space_ + "/always_show_comments", &always_show_comments_); diff --git a/src/rime/gear/table_translator.cc b/src/rime/gear/table_translator.cc index a43a77f939..6ba5f6a82b 100644 --- a/src/rime/gear/table_translator.cc +++ b/src/rime/gear/table_translator.cc @@ -210,7 +210,8 @@ TableTranslator::TableTranslator(const Ticket& ticket) : Translator(ticket), Memory(ticket), TranslatorOptions(ticket) { if (!engine_) return; - if (Config* config = engine_->schema()->config()) { + if (Config* config = ticket.schema->config()) { + DLOG(INFO) << "loading configuration from schema_id: " << ticket.schema->schema_id(); config->GetBool(name_space_ + "/enable_charset_filter", &enable_charset_filter_); config->GetBool(name_space_ + "/enable_sentence", &enable_sentence_); From 1320e8281bdcfe91df7dc56eede8b19bf57c6afe Mon Sep 17 00:00:00 2001 From: shewer Date: Wed, 5 Jun 2024 06:45:19 +0800 Subject: [PATCH 4/4] fixed clang-format Signed-off-by: shewer --- src/rime/gear/script_translator.cc | 3 ++- src/rime/gear/table_translator.cc | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/rime/gear/script_translator.cc b/src/rime/gear/script_translator.cc index 09e05958ab..2593aec75b 100644 --- a/src/rime/gear/script_translator.cc +++ b/src/rime/gear/script_translator.cc @@ -172,7 +172,8 @@ ScriptTranslator::ScriptTranslator(const Ticket& ticket) if (!engine_) return; if (Config* config = ticket.schema->config()) { - DLOG(INFO) << "loading configuration from schema_id: " << ticket.schema->schema_id(); + DLOG(INFO) << "loading configuration from schema_id: " + << ticket.schema->schema_id(); config->GetInt(name_space_ + "/spelling_hints", &spelling_hints_); config->GetBool(name_space_ + "/always_show_comments", &always_show_comments_); diff --git a/src/rime/gear/table_translator.cc b/src/rime/gear/table_translator.cc index 6ba5f6a82b..b86dba2142 100644 --- a/src/rime/gear/table_translator.cc +++ b/src/rime/gear/table_translator.cc @@ -211,7 +211,8 @@ TableTranslator::TableTranslator(const Ticket& ticket) if (!engine_) return; if (Config* config = ticket.schema->config()) { - DLOG(INFO) << "loading configuration from schema_id: " << ticket.schema->schema_id(); + DLOG(INFO) << "loading configuration from schema_id: " + << ticket.schema->schema_id(); config->GetBool(name_space_ + "/enable_charset_filter", &enable_charset_filter_); config->GetBool(name_space_ + "/enable_sentence", &enable_sentence_);