dict: 日常更新 close #642

This commit is contained in:
Dvel
2024-01-28 18:02:52 +08:00
parent a142d50a94
commit 4071b9e2af
9 changed files with 417 additions and 126 deletions

View File

@@ -12,9 +12,9 @@
local M = {}
function M.init(env)
local config = env.engine.schema.config
env.name_space = env.name_space:gsub('^*', '')
M.style = config:get_string(env.name_space) or '{comment}'
local config = env.engine.schema.config
env.name_space = env.name_space:gsub('^*', '')
M.style = config:get_string(env.name_space) or '{comment}'
M.corrections = {
-- 错音
["hun dun"] = { text = "馄饨", comment = "hún tun" },
@@ -75,12 +75,13 @@ function M.init(env)
["bo jing"] = { text = "脖颈", comment = "bó gěng" },
["bo jing er"] = { text = "脖颈儿", comment = "bó gěng er" },
["jie zha"] = { text = "结扎", comment = "jié zā" },
["hai shen wei"] = { text = "海参崴", comment = "hǎi shēn wǎi" },
["hou pu"] = { text = "厚朴", comment = "hòu" },
["da wan ma"] = { text = "大宛马", comment = " yuān " },
["ci ya"] = { text = "龇牙", comment = "()" },
["ci zhe ya"] = { text = "龇着牙", comment = "()着牙" },
["ci ya lie zui"] = { text = "龇牙咧嘴", comment = "()牙咧嘴" },
["hai shen wei"] = { text = "海参崴", comment = "海参崴 wǎi" },
["hou pu"] = { text = "厚朴", comment = "厚朴 " },
["da wan ma"] = { text = "大宛马", comment = "大宛 yuān " },
["ci ya"] = { text = "龇牙", comment = " " },
["ci zhe ya"] = { text = "龇着牙", comment = " 着牙" },
["ci ya lie zui"] = { text = "龇牙咧嘴", comment = " 牙咧嘴" },
["tou pi xue"] = { text = "头皮屑", comment = "头皮屑 xiè" },
-- 错字
["pu jie"] = { text = "扑街", comment = "仆街" },
["pu gai"] = { text = "扑街", comment = "仆街" },
@@ -98,7 +99,7 @@ function M.init(env)
["da jia lai zhao cha"] = { text = "大家来找茬", comment = "大家来找碴" },
["da jia lai zhao cha er"] = { text = "大家来找茬儿", comment = "大家来找碴儿" },
["cou huo"] = { text = "凑活", comment = "凑合(he)" },
}
}
end
function M.func(input)