hchunhui / librime-lua

Extending RIME with Lua scripts
BSD 3-Clause "New" or "Revised" License
357 stars 43 forks source link

added new function of SpansReg #367

Closed shewer closed 4 weeks ago

shewer commented 2 months ago

擴展 Spans

-- return Spans 
cand:spans()
segment:spans()
composition:spans()

-- spans api 
spans:add_vertex( size_t vertex)  
spans:clear() --  vertices = {}
spans.vertices -- return **size_t** of  lua_table
spans.vertices = { 5, 4, 2 , "3 " ,4 }  -- vertices = { 2, 3, 4, 5}
hchunhui commented 4 weeks ago

@ksqsf 可以请你帮忙review一下吗?