dict: 日常更新; close #502

This commit is contained in:
Dvel
2023-10-09 21:31:10 +08:00
parent c2d62e4385
commit 9b1ebf0fb7
14 changed files with 594 additions and 81 deletions

View File

@@ -74,6 +74,8 @@ local corrections = {
["nuan he"] = { text = "暖和", comment = "nuan huo" },
["mo ling liang ke"] = { text = "模棱两可", comment = "mo leng liang ke" },
["pan yang hu"] = { text = "鄱阳湖", comment = "po yang hu" },
["bo jing"] = { text = "脖颈", comment = "bo geng" },
["bo jing er"] = { text = "脖颈儿", comment = "bo geng er" },
-- 错字
["ceng jin"] = { text = "曾今", comment = "曾经" },
["an nai"] = { text = "按耐", comment = "按捺(na)" },

View File

@@ -1,3 +1,5 @@
-- 这个 Lua 给英文单词后面自动加一个空格 #496
local function add_space_to_english_word(input)
-- 匹配纯英文单词并在单词后添加空格
input = input:gsub("(%a+)", "%1 ")

View File

@@ -1,4 +1,4 @@
-- 九宫格专用
-- 九宫格专用iRime 用,仓输入法不用
-- 拼写规则通过 xlit 转写: xlit/abcdefghijklmnopqrstuvwxyz/22233344455566677778889999/
-- 然后通过此 Lua 将输入框的数字转为对应的拼音或英文
local function t9_preedit(input, env)