mirror of
https://github.com/d0zingcat/rime-ice.git
synced 2026-05-13 23:16:54 +00:00
chore: lua 加上缺失的 local
This commit is contained in:
@@ -7,7 +7,7 @@ local function add_space_to_english_word(input)
|
||||
end
|
||||
|
||||
-- 在候选项上屏时触发的函数
|
||||
function en_spacer(input, env)
|
||||
local function en_spacer(input, env)
|
||||
for cand in input:iter() do
|
||||
if cand.text:match("^[%a']+[%a']*$") then
|
||||
-- 如果候选项是纯英文单词,则在输入后添加一个空格
|
||||
|
||||
@@ -58,7 +58,7 @@ local function formatNum(num,t)
|
||||
end
|
||||
|
||||
-- 数值转换为中文
|
||||
function number2cnChar(num,flag,digitUnit,wordFigure) --flag=0中文小写反之为大写
|
||||
local function number2cnChar(num,flag,digitUnit,wordFigure) --flag=0中文小写反之为大写
|
||||
local st,result
|
||||
num=tostring(num) result=""
|
||||
local num1,num2=math.modf(num)
|
||||
|
||||
Reference in New Issue
Block a user