Skip to content

Releases: shewer/librime-lua

librime plugin librime-lua

27 Jul 03:47
a13205d
Compare
Choose a tag to compare
#177

Merge branch 'hchunhui:master' into master

#157 librime-lua mac windows version

06 Jun 08:43
c219707
Compare
Choose a tag to compare

#131: rebase from fork/master

18 Aug 21:24
Compare
Choose a tag to compare
Pre-release
Signed-off-by: Shewer Lu <shewer@gmail.com>

增加 TableTranslator ScriptTranslator Reg

14 Apr 16:24
Compare
Choose a tag to compare

增加 TableTranslator ScriptTranslator
可將 輸入法包入 lua_translator
可利用 TranslatorOptions 動態 切換開關
lua_translator@table_tran@translator @module@name_space

function init_func(env)
     local ticket=Ticket(env.engine , env.name_space)  -- (env.engine, "cangjie5")
    env.tarn=TableTranslator(   ticket) 
    env.tran.option.tags="abc"   --  reset tag
    env.tran.option.enable_complation=true  -- turn on/off  
end
function tran_func(input,seg,env)
      for cand in  env.tran:query(input,seq):iter() do 
              yield(cand)
       end
end 

add ProjectionReg

31 Mar 07:53
Compare
Choose a tag to compare
add ProjectionReg Pre-release
Pre-release

增加
ConfigListReg ConfigValue ConfigItem 方便 env.engine.schema.config取值
Projection 是 algebra 字串轉換 接口 需要 ConfigList 導入 pattern ( preedit_format)
ConfigValue 基本上 就是字串 get_bool get_int get_double 只是 字串 <--> type
所以 可以用 tostring( ) 直接設值

之前 reverdb 注音轉換 用 lua 可是燒腦
env.p1 = Projection()
env.p1:load( env.engine.schema.config:get_list( "translator/commet_format") )
p2:apply( context.input)

ddv

29 Mar 20:03
c8fa963
Compare
Choose a tag to compare
ddv Pre-release
Pre-release
Update QUICK_START.md