From 5af5fac9f7522c2076e66e018c17f1c4a5d56aee Mon Sep 17 00:00:00 2001 From: mirtlecn Date: Fri, 10 Jan 2025 22:41:42 +0800 Subject: [PATCH] perf(lua): disable translator engine checker for rime-ice --- lua/search.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lua/search.lua b/lua/search.lua index b7f9b5e76..52d595138 100755 --- a/lua/search.lua +++ b/lua/search.lua @@ -123,13 +123,13 @@ function f.init( env ) env.if_reverse_lookup = false -- 配置:仅限 script_translator 引擎 - local engine = config:get_list( 'engine/translators' ) - local engine_table = {} - for i = 0, engine.size - 1 do engine_table[engine:get_value_at( i ).value] = true end - if not engine_table['script_translator'] then - log.error( '[search.lua]: script_translator not found in engine/translators, search.lua will not work' ) - return - end + -- local engine = config:get_list( 'engine/translators' ) + -- local engine_table = {} + -- for i = 0, engine.size - 1 do engine_table[engine:get_value_at( i ).value] = true end + -- if not engine_table['script_translator'] then + -- log.error( '[search.lua]: script_translator not found in engine/translators, search.lua will not work' ) + -- return + -- end -- 配置:辅码查字方法 -- --