librime-lua icon indicating copy to clipboard operation
librime-lua copied to clipboard

add SegmenReg active_text(string)

Open shewer opened this issue 1 year ago • 0 comments

便於取得 substr , 減少 lua string.sub 定位問題 string.sub( inp, seg._start+1 , seg._end )

function tran.func(inp, seg, env)
    local active_inp = seg:active_text(inp)
     ....
 end

shewer avatar Apr 14 '24 08:04 shewer