hchunhui / librime-lua

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

suport Projection([ConfigList| string of table]) , proj:load([ConfigList| string of table] #368

Closed shewer closed 1 month ago

shewer commented 2 months ago

cl = config:get_list('translator/comment_formant')

-- old  Projection() & load(configlist) 
  proj = Projection()
  proj:load( cl)

-- new Projection( [ConfigList | table] )
   proj = Projection(cl) --1
   proj =  Projection( { 'xlit/abc/xyz'})  -- 2 

-- new proj:load([ConfigList | table] )
    proj:load( {'xlit/abc/xyz'})