feat: add Trans.util.test.query_youdao file ,.. and some utility function

This commit is contained in:
JuanZoran
2023-01-06 23:05:10 +08:00
parent a1488b2d9b
commit 2f6520940a
10 changed files with 225 additions and 19 deletions

View File

@@ -16,24 +16,12 @@ M.conf = {
'Definition',
},
window = {
-- NOTE :可选的风格:['fixed', 'relative', .. TODO]
-- width 和 height说明
-- 大于1
-- 如果style为fixed , 则为固定的长宽
-- 如果style为relative , 则为最大长宽
-- 小于1:
-- 如果style为fixed , 则为默认
-- 如果style为relative , 则为无限制
-- 0 ~ 1:
-- 相对长宽
cursor = {
style = 'fixed',
border = 'rounded',
width = 30,
height = 30,
},
float = {
style = 'fixed',
border = 'rounded',
width = 0.8,
height = 0.9,
@@ -43,7 +31,7 @@ M.conf = {
-- limit = {
-- En = 1, -- 只显示第一行,(一般为最广泛的释义)
-- },
limit = nil,
limit = nil,
},
},
ui = {
@@ -98,6 +86,9 @@ M.conf = {
unknown_conf = true,
},
},
map = {
-- TODO
},
-- TODO add online translate engine
-- online_search = {
-- enable = false,