Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

shewer
Copy link
Contributor

@shewer shewer commented Sep 25, 2024

  • 簡化 Projection 初始化程序
  • 支持 lua_table 引數
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'}) 

…ing,...] ])

Signed-off-by: Shewer Lu <shewer@gmail.com>
…serdata userdata

Signed-off-by: Shewer Lu <shewer@gmail.com>
…ist| string of table])

Signed-off-by: shewer <shewer@gmail.com>
…ist| string of table])

Signed-off-by: shewer <shewer@gmail.com>
…ist| string of table])

Signed-off-by: shewer <shewer@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant