Skip to content

Commit

Permalink
perf(lua): disable translator engine checker for rime-ice
Browse files Browse the repository at this point in the history
  • Loading branch information
mirtlecn committed Jan 10, 2025
1 parent 80638c4 commit 5af5fac
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lua/search.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

-- 配置:辅码查字方法
-- --
Expand Down

0 comments on commit 5af5fac

Please sign in to comment.