feat: reduce_english_filter.lua 增加一键全降低
This commit is contained in:
parent
9431167725
commit
0e843f998f
@ -94,22 +94,37 @@ date_translator:
|
||||
timestamp: timestamp # 时间戳: 1669716794
|
||||
|
||||
|
||||
# Lua 配置: 降低部分英语单词在候选项的位置
|
||||
# Lua 配置: 降低部分英语单词在候选项的位置。
|
||||
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
|
||||
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」
|
||||
# 降低之后: 输入 rug 得到 「1.如果 2.rug …… 」
|
||||
# 几种模式:
|
||||
# all 降低所有 3~4 位长度、前 2~3 位是完整拼音、最后一位是声母的单词
|
||||
# none 不降低任何单词,相当于没有启用这个 Lua
|
||||
# custom 自定义,只降低 custom 里的
|
||||
# (匹配的是编码,不是单词)
|
||||
reduce_english_filter:
|
||||
# 降低到第 idx 个位置
|
||||
idx: 2
|
||||
# 要降低的单词,匹配的是输入码,即全小写。
|
||||
words: [nav, uid, wig,
|
||||
rug, bus, ship, laos, bail, bam, bans, bib, bos, chic, chit, dab, dag,
|
||||
dal, dit, dub, dug, fab, gam, ger, gus, hem, hep, hud, kat, lam, lax, lex, lug,
|
||||
lux, moc, mos, mot, mum, nad, nay, nib, nip, pak, pap, pax, rig, rum, sac, sal,
|
||||
sax, sec, shin, sis, ska, slang, sus, tad, taj, tac, tic, yep, yum, fax, cain,
|
||||
key, mob, buy, dam, wap, yes, but, put, lag, buf, lip, aid, aim, dig, dim, din,
|
||||
dip, pail, cad, chap, bend, lid, gem, tin, tum, my, went, youd, hes, tex, sum,
|
||||
hex, hail, heil, gail, tit]
|
||||
mode: custom # all | none | custom
|
||||
idx: 2 # 降低到第 idx 个位置
|
||||
# 自定义的单词列表,示例列表没有降低部分常用单词,如 and cat mail Mac but bad shit ……
|
||||
words: [aid, ann,
|
||||
bail, bait, bam, band, bans, bat, bay, bend, bent, benz, bib, bid, bien, biz, boc, bop, bos, bud, buf,
|
||||
cab, cad, cain, cam, cans, cap, cas, cef, chad, chan, chap, chef, cher, chew, chic, chin, chip, chit, coup, cum, cunt, cur,
|
||||
dab, dag, dal, dam, dent, dew, dial, diet, dim, din, dip, dis, dit, doug, dub, dug, dunn,
|
||||
fab, fax, fob, fog, foul, fur,
|
||||
gag, gail, gain, gal, gam, gaol, ged, gel, ger, guam, gus, gut,
|
||||
hail, ham, hank, hans, hat, hay, heil, heir, hem, hep, hud, hum, hung, hunk, hut,
|
||||
jim, jug,
|
||||
kat,
|
||||
lab, lad, lag, laid, lam, laos, lap, lat, lax, lay, led, leg, lex, liam, lib, lid, lied, lien, lies, linn, lip, lit, liz, lob, lug, lund, lung, lux,
|
||||
mag, maid, mann, mar, mat, med, mel, mend, mens, ment, mil, mins, mint, mob, moc, mod, mop, mos, mot, mud, mug, mum, nail,
|
||||
nap, nat, nay, neil, nib, nip, noun, nous, nun, nut,
|
||||
pac, paid, pail, pain, pair, pak, pal, pam, pans, pant, pap, par, pat, paw, pax, pens, pic, pier, pies, pins, pint, pit, pix, pod, pop, pos, pot, pour, pow, pub,
|
||||
rand, rant, rent, rep, res, ret, rex, rib, rid, rig, rim, rub, rug, rum, runs,
|
||||
sac, sail, sal, sam, sans, sap, saw, sax, sew, sham, shaw, shin, sig, sin, sip, sis, suit, sung, suns, sup, sur, sus,
|
||||
tad, tail, taj, tar, tax, tec, ted, tel, ter, tex, tic, tied, tier, ties, tim, tin, tit, tour, tout, tum,
|
||||
wag, wand, wap, wax, weir, won,
|
||||
yan, yen]
|
||||
|
||||
|
||||
# 主翻译器,拼音
|
||||
|
@ -93,22 +93,37 @@ date_translator:
|
||||
timestamp: timestamp # 时间戳: 1669716794
|
||||
|
||||
|
||||
# Lua 配置: 降低部分英语单词在候选项的位置
|
||||
# Lua 配置: 降低部分英语单词在候选项的位置。
|
||||
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
|
||||
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」
|
||||
# 降低之后: 输入 rug 得到 「1.如果 2.rug …… 」
|
||||
# 几种模式:
|
||||
# all 降低所有 3~4 位长度、前 2~3 位是完整拼音、最后一位是声母的单词
|
||||
# none 不降低任何单词,相当于没有启用这个 Lua
|
||||
# custom 自定义,只降低 custom 里的
|
||||
# (匹配的是编码,不是单词)
|
||||
reduce_english_filter:
|
||||
# 降低到第 idx 个位置
|
||||
idx: 2
|
||||
# 要降低的单词,匹配的是输入码,即全小写。
|
||||
words: [nav, uid, wig,
|
||||
rug, bus, ship, laos, bail, bam, bans, bib, bos, chic, chit, dab, dag,
|
||||
dal, dit, dub, dug, fab, gam, ger, gus, hem, hep, hud, kat, lam, lax, lex, lug,
|
||||
lux, moc, mos, mot, mum, nad, nay, nib, nip, pak, pap, pax, rig, rum, sac, sal,
|
||||
sax, sec, shin, sis, ska, slang, sus, tad, taj, tac, tic, yep, yum, fax, cain,
|
||||
key, mob, buy, dam, wap, yes, but, put, lag, buf, lip, aid, aim, dig, dim, din,
|
||||
dip, pail, cad, chap, bend, lid, gem, tin, tum, my, went, youd, hes, tex, sum,
|
||||
hex, hail, heil, gail, tit]
|
||||
mode: custom # all | none | custom
|
||||
idx: 2 # 降低到第 idx 个位置
|
||||
# 自定义的单词列表,示例列表没有降低部分常用单词,如 and cat mail Mac but bad shit ……
|
||||
words: [aid, ann,
|
||||
bail, bait, bam, band, bans, bat, bay, bend, bent, benz, bib, bid, bien, biz, boc, bop, bos, bud, buf,
|
||||
cab, cad, cain, cam, cans, cap, cas, cef, chad, chan, chap, chef, cher, chew, chic, chin, chip, chit, coup, cum, cunt, cur,
|
||||
dab, dag, dal, dam, dent, dew, dial, diet, dim, din, dip, dis, dit, doug, dub, dug, dunn,
|
||||
fab, fax, fob, fog, foul, fur,
|
||||
gag, gail, gain, gal, gam, gaol, ged, gel, ger, guam, gus, gut,
|
||||
hail, ham, hank, hans, hat, hay, heil, heir, hem, hep, hud, hum, hung, hunk, hut,
|
||||
jim, jug,
|
||||
kat,
|
||||
lab, lad, lag, laid, lam, laos, lap, lat, lax, lay, led, leg, lex, liam, lib, lid, lied, lien, lies, linn, lip, lit, liz, lob, lug, lund, lung, lux,
|
||||
mag, maid, mann, mar, mat, med, mel, mend, mens, ment, mil, mins, mint, mob, moc, mod, mop, mos, mot, mud, mug, mum, nail,
|
||||
nap, nat, nay, neil, nib, nip, noun, nous, nun, nut,
|
||||
pac, paid, pail, pain, pair, pak, pal, pam, pans, pant, pap, par, pat, paw, pax, pens, pic, pier, pies, pins, pint, pit, pix, pod, pop, pos, pot, pour, pow, pub,
|
||||
rand, rant, rent, rep, res, ret, rex, rib, rid, rig, rim, rub, rug, rum, runs,
|
||||
sac, sail, sal, sam, sans, sap, saw, sax, sew, sham, shaw, shin, sig, sin, sip, sis, suit, sung, suns, sup, sur, sus,
|
||||
tad, tail, taj, tar, tax, tec, ted, tel, ter, tex, tic, tied, tier, ties, tim, tin, tit, tour, tout, tum,
|
||||
wag, wand, wap, wax, weir, won,
|
||||
yan, yen]
|
||||
|
||||
|
||||
# 主翻译器,拼音
|
||||
|
@ -94,22 +94,37 @@ date_translator:
|
||||
timestamp: timestamp # 时间戳: 1669716794
|
||||
|
||||
|
||||
# Lua 配置: 降低部分英语单词在候选项的位置
|
||||
# Lua 配置: 降低部分英语单词在候选项的位置。
|
||||
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
|
||||
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」
|
||||
# 降低之后: 输入 rug 得到 「1.如果 2.rug …… 」
|
||||
# 几种模式:
|
||||
# all 降低所有 3~4 位长度、前 2~3 位是完整拼音、最后一位是声母的单词
|
||||
# none 不降低任何单词,相当于没有启用这个 Lua
|
||||
# custom 自定义,只降低 custom 里的
|
||||
# (匹配的是编码,不是单词)
|
||||
reduce_english_filter:
|
||||
# 降低到第 idx 个位置
|
||||
idx: 2
|
||||
# 要降低的单词,匹配的是输入码,即全小写。
|
||||
words: [nav, uid, wig,
|
||||
rug, bus, ship, laos, bail, bam, bans, bib, bos, chic, chit, dab, dag,
|
||||
dal, dit, dub, dug, fab, gam, ger, gus, hem, hep, hud, kat, lam, lax, lex, lug,
|
||||
lux, moc, mos, mot, mum, nad, nay, nib, nip, pak, pap, pax, rig, rum, sac, sal,
|
||||
sax, sec, shin, sis, ska, slang, sus, tad, taj, tac, tic, yep, yum, fax, cain,
|
||||
key, mob, buy, dam, wap, yes, but, put, lag, buf, lip, aid, aim, dig, dim, din,
|
||||
dip, pail, cad, chap, bend, lid, gem, tin, tum, my, went, youd, hes, tex, sum,
|
||||
hex, hail, heil, gail, tit]
|
||||
mode: custom # all | none | custom
|
||||
idx: 2 # 降低到第 idx 个位置
|
||||
# 自定义的单词列表,示例列表没有降低部分常用单词,如 and cat mail Mac but bad shit ……
|
||||
words: [aid, ann,
|
||||
bail, bait, bam, band, bans, bat, bay, bend, bent, benz, bib, bid, bien, biz, boc, bop, bos, bud, buf,
|
||||
cab, cad, cain, cam, cans, cap, cas, cef, chad, chan, chap, chef, cher, chew, chic, chin, chip, chit, coup, cum, cunt, cur,
|
||||
dab, dag, dal, dam, dent, dew, dial, diet, dim, din, dip, dis, dit, doug, dub, dug, dunn,
|
||||
fab, fax, fob, fog, foul, fur,
|
||||
gag, gail, gain, gal, gam, gaol, ged, gel, ger, guam, gus, gut,
|
||||
hail, ham, hank, hans, hat, hay, heil, heir, hem, hep, hud, hum, hung, hunk, hut,
|
||||
jim, jug,
|
||||
kat,
|
||||
lab, lad, lag, laid, lam, laos, lap, lat, lax, lay, led, leg, lex, liam, lib, lid, lied, lien, lies, linn, lip, lit, liz, lob, lug, lund, lung, lux,
|
||||
mag, maid, mann, mar, mat, med, mel, mend, mens, ment, mil, mins, mint, mob, moc, mod, mop, mos, mot, mud, mug, mum, nail,
|
||||
nap, nat, nay, neil, nib, nip, noun, nous, nun, nut,
|
||||
pac, paid, pail, pain, pair, pak, pal, pam, pans, pant, pap, par, pat, paw, pax, pens, pic, pier, pies, pins, pint, pit, pix, pod, pop, pos, pot, pour, pow, pub,
|
||||
rand, rant, rent, rep, res, ret, rex, rib, rid, rig, rim, rub, rug, rum, runs,
|
||||
sac, sail, sal, sam, sans, sap, saw, sax, sew, sham, shaw, shin, sig, sin, sip, sis, suit, sung, suns, sup, sur, sus,
|
||||
tad, tail, taj, tar, tax, tec, ted, tel, ter, tex, tic, tied, tier, ties, tim, tin, tit, tour, tout, tum,
|
||||
wag, wand, wap, wax, weir, won,
|
||||
yan, yen]
|
||||
|
||||
|
||||
# 主翻译器,拼音
|
||||
|
@ -94,22 +94,37 @@ date_translator:
|
||||
timestamp: timestamp # 时间戳: 1669716794
|
||||
|
||||
|
||||
# Lua 配置: 降低部分英语单词在候选项的位置
|
||||
# Lua 配置: 降低部分英语单词在候选项的位置。
|
||||
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
|
||||
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」
|
||||
# 降低之后: 输入 rug 得到 「1.如果 2.rug …… 」
|
||||
# 几种模式:
|
||||
# all 降低所有 3~4 位长度、前 2~3 位是完整拼音、最后一位是声母的单词
|
||||
# none 不降低任何单词,相当于没有启用这个 Lua
|
||||
# custom 自定义,只降低 custom 里的
|
||||
# (匹配的是编码,不是单词)
|
||||
reduce_english_filter:
|
||||
# 降低到第 idx 个位置
|
||||
idx: 2
|
||||
# 要降低的单词,匹配的是输入码,即全小写。
|
||||
words: [nav, uid, wig,
|
||||
rug, bus, ship, laos, bail, bam, bans, bib, bos, chic, chit, dab, dag,
|
||||
dal, dit, dub, dug, fab, gam, ger, gus, hem, hep, hud, kat, lam, lax, lex, lug,
|
||||
lux, moc, mos, mot, mum, nad, nay, nib, nip, pak, pap, pax, rig, rum, sac, sal,
|
||||
sax, sec, shin, sis, ska, slang, sus, tad, taj, tac, tic, yep, yum, fax, cain,
|
||||
key, mob, buy, dam, wap, yes, but, put, lag, buf, lip, aid, aim, dig, dim, din,
|
||||
dip, pail, cad, chap, bend, lid, gem, tin, tum, my, went, youd, hes, tex, sum,
|
||||
hex, hail, heil, gail, tit]
|
||||
mode: custom # all | none | custom
|
||||
idx: 2 # 降低到第 idx 个位置
|
||||
# 自定义的单词列表,示例列表没有降低部分常用单词,如 and cat mail Mac but bad shit ……
|
||||
words: [aid, ann,
|
||||
bail, bait, bam, band, bans, bat, bay, bend, bent, benz, bib, bid, bien, biz, boc, bop, bos, bud, buf,
|
||||
cab, cad, cain, cam, cans, cap, cas, cef, chad, chan, chap, chef, cher, chew, chic, chin, chip, chit, coup, cum, cunt, cur,
|
||||
dab, dag, dal, dam, dent, dew, dial, diet, dim, din, dip, dis, dit, doug, dub, dug, dunn,
|
||||
fab, fax, fob, fog, foul, fur,
|
||||
gag, gail, gain, gal, gam, gaol, ged, gel, ger, guam, gus, gut,
|
||||
hail, ham, hank, hans, hat, hay, heil, heir, hem, hep, hud, hum, hung, hunk, hut,
|
||||
jim, jug,
|
||||
kat,
|
||||
lab, lad, lag, laid, lam, laos, lap, lat, lax, lay, led, leg, lex, liam, lib, lid, lied, lien, lies, linn, lip, lit, liz, lob, lug, lund, lung, lux,
|
||||
mag, maid, mann, mar, mat, med, mel, mend, mens, ment, mil, mins, mint, mob, moc, mod, mop, mos, mot, mud, mug, mum, nail,
|
||||
nap, nat, nay, neil, nib, nip, noun, nous, nun, nut,
|
||||
pac, paid, pail, pain, pair, pak, pal, pam, pans, pant, pap, par, pat, paw, pax, pens, pic, pier, pies, pins, pint, pit, pix, pod, pop, pos, pot, pour, pow, pub,
|
||||
rand, rant, rent, rep, res, ret, rex, rib, rid, rig, rim, rub, rug, rum, runs,
|
||||
sac, sail, sal, sam, sans, sap, saw, sax, sew, sham, shaw, shin, sig, sin, sip, sis, suit, sung, suns, sup, sur, sus,
|
||||
tad, tail, taj, tar, tax, tec, ted, tel, ter, tex, tic, tied, tier, ties, tim, tin, tit, tour, tout, tum,
|
||||
wag, wand, wap, wax, weir, won,
|
||||
yan, yen]
|
||||
|
||||
|
||||
# 主翻译器,拼音
|
||||
|
@ -94,22 +94,37 @@ date_translator:
|
||||
timestamp: timestamp # 时间戳: 1669716794
|
||||
|
||||
|
||||
# Lua 配置: 降低部分英语单词在候选项的位置
|
||||
# Lua 配置: 降低部分英语单词在候选项的位置。
|
||||
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
|
||||
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」
|
||||
# 降低之后: 输入 rug 得到 「1.如果 2.rug …… 」
|
||||
# 几种模式:
|
||||
# all 降低所有 3~4 位长度、前 2~3 位是完整拼音、最后一位是声母的单词
|
||||
# none 不降低任何单词,相当于没有启用这个 Lua
|
||||
# custom 自定义,只降低 custom 里的
|
||||
# (匹配的是编码,不是单词)
|
||||
reduce_english_filter:
|
||||
# 降低到第 idx 个位置
|
||||
idx: 2
|
||||
# 要降低的单词,匹配的是输入码,即全小写。
|
||||
words: [nav, uid, wig,
|
||||
rug, bus, ship, laos, bail, bam, bans, bib, bos, chic, chit, dab, dag,
|
||||
dal, dit, dub, dug, fab, gam, ger, gus, hem, hep, hud, kat, lam, lax, lex, lug,
|
||||
lux, moc, mos, mot, mum, nad, nay, nib, nip, pak, pap, pax, rig, rum, sac, sal,
|
||||
sax, sec, shin, sis, ska, slang, sus, tad, taj, tac, tic, yep, yum, fax, cain,
|
||||
key, mob, buy, dam, wap, yes, but, put, lag, buf, lip, aid, aim, dig, dim, din,
|
||||
dip, pail, cad, chap, bend, lid, gem, tin, tum, my, went, youd, hes, tex, sum,
|
||||
hex, hail, heil, gail, tit]
|
||||
mode: custom # all | none | custom
|
||||
idx: 2 # 降低到第 idx 个位置
|
||||
# 自定义的单词列表,示例列表没有降低部分常用单词,如 and cat mail Mac but bad shit ……
|
||||
words: [aid, ann,
|
||||
bail, bait, bam, band, bans, bat, bay, bend, bent, benz, bib, bid, bien, biz, boc, bop, bos, bud, buf,
|
||||
cab, cad, cain, cam, cans, cap, cas, cef, chad, chan, chap, chef, cher, chew, chic, chin, chip, chit, coup, cum, cunt, cur,
|
||||
dab, dag, dal, dam, dent, dew, dial, diet, dim, din, dip, dis, dit, doug, dub, dug, dunn,
|
||||
fab, fax, fob, fog, foul, fur,
|
||||
gag, gail, gain, gal, gam, gaol, ged, gel, ger, guam, gus, gut,
|
||||
hail, ham, hank, hans, hat, hay, heil, heir, hem, hep, hud, hum, hung, hunk, hut,
|
||||
jim, jug,
|
||||
kat,
|
||||
lab, lad, lag, laid, lam, laos, lap, lat, lax, lay, led, leg, lex, liam, lib, lid, lied, lien, lies, linn, lip, lit, liz, lob, lug, lund, lung, lux,
|
||||
mag, maid, mann, mar, mat, med, mel, mend, mens, ment, mil, mins, mint, mob, moc, mod, mop, mos, mot, mud, mug, mum, nail,
|
||||
nap, nat, nay, neil, nib, nip, noun, nous, nun, nut,
|
||||
pac, paid, pail, pain, pair, pak, pal, pam, pans, pant, pap, par, pat, paw, pax, pens, pic, pier, pies, pins, pint, pit, pix, pod, pop, pos, pot, pour, pow, pub,
|
||||
rand, rant, rent, rep, res, ret, rex, rib, rid, rig, rim, rub, rug, rum, runs,
|
||||
sac, sail, sal, sam, sans, sap, saw, sax, sew, sham, shaw, shin, sig, sin, sip, sis, suit, sung, suns, sup, sur, sus,
|
||||
tad, tail, taj, tar, tax, tec, ted, tel, ter, tex, tic, tied, tier, ties, tim, tin, tit, tour, tout, tum,
|
||||
wag, wand, wap, wax, weir, won,
|
||||
yan, yen]
|
||||
|
||||
|
||||
# 主翻译器,拼音
|
||||
|
@ -94,22 +94,37 @@ date_translator:
|
||||
timestamp: timestamp # 时间戳: 1669716794
|
||||
|
||||
|
||||
# Lua 配置: 降低部分英语单词在候选项的位置
|
||||
# Lua 配置: 降低部分英语单词在候选项的位置。
|
||||
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
|
||||
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」
|
||||
# 降低之后: 输入 rug 得到 「1.如果 2.rug …… 」
|
||||
# 几种模式:
|
||||
# all 降低所有 3~4 位长度、前 2~3 位是完整拼音、最后一位是声母的单词
|
||||
# none 不降低任何单词,相当于没有启用这个 Lua
|
||||
# custom 自定义,只降低 custom 里的
|
||||
# (匹配的是编码,不是单词)
|
||||
reduce_english_filter:
|
||||
# 降低到第 idx 个位置
|
||||
idx: 2
|
||||
# 要降低的单词,匹配的是输入码,即全小写。
|
||||
words: [nav, uid, wig,
|
||||
rug, bus, ship, laos, bail, bam, bans, bib, bos, chic, chit, dab, dag,
|
||||
dal, dit, dub, dug, fab, gam, ger, gus, hem, hep, hud, kat, lam, lax, lex, lug,
|
||||
lux, moc, mos, mot, mum, nad, nay, nib, nip, pak, pap, pax, rig, rum, sac, sal,
|
||||
sax, sec, shin, sis, ska, slang, sus, tad, taj, tac, tic, yep, yum, fax, cain,
|
||||
key, mob, buy, dam, wap, yes, but, put, lag, buf, lip, aid, aim, dig, dim, din,
|
||||
dip, pail, cad, chap, bend, lid, gem, tin, tum, my, went, youd, hes, tex, sum,
|
||||
hex, hail, heil, gail, tit]
|
||||
mode: custom # all | none | custom
|
||||
idx: 2 # 降低到第 idx 个位置
|
||||
# 自定义的单词列表,示例列表没有降低部分常用单词,如 and cat mail Mac but bad shit ……
|
||||
words: [aid, ann,
|
||||
bail, bait, bam, band, bans, bat, bay, bend, bent, benz, bib, bid, bien, biz, boc, bop, bos, bud, buf,
|
||||
cab, cad, cain, cam, cans, cap, cas, cef, chad, chan, chap, chef, cher, chew, chic, chin, chip, chit, coup, cum, cunt, cur,
|
||||
dab, dag, dal, dam, dent, dew, dial, diet, dim, din, dip, dis, dit, doug, dub, dug, dunn,
|
||||
fab, fax, fob, fog, foul, fur,
|
||||
gag, gail, gain, gal, gam, gaol, ged, gel, ger, guam, gus, gut,
|
||||
hail, ham, hank, hans, hat, hay, heil, heir, hem, hep, hud, hum, hung, hunk, hut,
|
||||
jim, jug,
|
||||
kat,
|
||||
lab, lad, lag, laid, lam, laos, lap, lat, lax, lay, led, leg, lex, liam, lib, lid, lied, lien, lies, linn, lip, lit, liz, lob, lug, lund, lung, lux,
|
||||
mag, maid, mann, mar, mat, med, mel, mend, mens, ment, mil, mins, mint, mob, moc, mod, mop, mos, mot, mud, mug, mum, nail,
|
||||
nap, nat, nay, neil, nib, nip, noun, nous, nun, nut,
|
||||
pac, paid, pail, pain, pair, pak, pal, pam, pans, pant, pap, par, pat, paw, pax, pens, pic, pier, pies, pins, pint, pit, pix, pod, pop, pos, pot, pour, pow, pub,
|
||||
rand, rant, rent, rep, res, ret, rex, rib, rid, rig, rim, rub, rug, rum, runs,
|
||||
sac, sail, sal, sam, sans, sap, saw, sax, sew, sham, shaw, shin, sig, sin, sip, sis, suit, sung, suns, sup, sur, sus,
|
||||
tad, tail, taj, tar, tax, tec, ted, tel, ter, tex, tic, tied, tier, ties, tim, tin, tit, tour, tout, tum,
|
||||
wag, wand, wap, wax, weir, won,
|
||||
yan, yen]
|
||||
|
||||
|
||||
# 主翻译器,拼音
|
||||
|
@ -14,7 +14,7 @@
|
||||
# 转化应当大写的单词
|
||||
---
|
||||
name: en
|
||||
version: "2023-10-14"
|
||||
version: "2023-10-22"
|
||||
sort: by_weight
|
||||
...
|
||||
# +_+
|
||||
@ -1980,7 +1980,7 @@ bindings bindings
|
||||
binds binds
|
||||
bingo bingo
|
||||
binoculars binoculars
|
||||
bins bins
|
||||
# bins bins
|
||||
bio bio
|
||||
biochem biochem
|
||||
biochemical biochemical
|
||||
@ -5720,7 +5720,7 @@ doubles doubles
|
||||
doubt doubt
|
||||
doubtless doubtless
|
||||
doubts doubts
|
||||
doug doug
|
||||
Doug Doug
|
||||
dough dough
|
||||
doughty doughty
|
||||
Douglas Douglas
|
||||
@ -7549,7 +7549,6 @@ fourth fourth
|
||||
fowl fowl
|
||||
fowler fowler
|
||||
fox fox
|
||||
Fox Fox
|
||||
# fp fp
|
||||
# fpo fpo
|
||||
# fprintf fprintf
|
||||
@ -8347,7 +8346,7 @@ GTA GTA
|
||||
# gtk gtk
|
||||
# gu gu
|
||||
Guadeloupe Guadeloupe
|
||||
guam guam
|
||||
Guam Guam
|
||||
guarantee guarantee
|
||||
guaranteed guaranteed
|
||||
guarantees guarantees
|
||||
@ -8501,7 +8500,7 @@ Hannah Hannah
|
||||
Hannover Hannover
|
||||
Hanoi Hanoi
|
||||
Hanover Hanover
|
||||
hans hans
|
||||
Hans Hans
|
||||
Hansard Hansard
|
||||
hansen hansen
|
||||
Hanson Hanson
|
||||
@ -12402,7 +12401,7 @@ myths myths
|
||||
# nabble nabble
|
||||
# nach nach
|
||||
# nacional nacional
|
||||
nad nad
|
||||
# nad nad
|
||||
# nadu nadu
|
||||
nail nail
|
||||
nails nails
|
||||
|
@ -7,7 +7,7 @@
|
||||
#
|
||||
---
|
||||
name: en_ext
|
||||
version: "2023-10-17"
|
||||
version: "2023-10-22"
|
||||
sort: by_weight
|
||||
...
|
||||
# 一些杂项
|
||||
@ -122,6 +122,24 @@ Chandler Chandler
|
||||
Phoebe Phoebe
|
||||
|
||||
|
||||
# 特定的排序,为了每组的排序,code 必须保持一致
|
||||
hell hell 2
|
||||
he'll hell 1
|
||||
shell shell 2
|
||||
she'll shell 1
|
||||
well well 2
|
||||
we'll well 1
|
||||
ill ill 2
|
||||
I'll ill 1
|
||||
ID id 2
|
||||
I'd id 1
|
||||
shed shed 2
|
||||
she'd shed 1
|
||||
net net 2
|
||||
.NET net 1
|
||||
.NET dotnet
|
||||
|
||||
|
||||
# 带权重的系列
|
||||
iPhone iPhone 999
|
||||
iPhone 15 iPhone 4
|
||||
@ -168,20 +186,6 @@ Windows 8 Windows 8
|
||||
Windows 10 Windows 10
|
||||
Windows 11 Windows 11
|
||||
|
||||
# 为了每组的排序,code 必须保持一致
|
||||
hell hell 2
|
||||
he'll hell 1
|
||||
shell shell 2
|
||||
she'll shell 1
|
||||
well well 2
|
||||
we'll well 1
|
||||
ill ill 2
|
||||
I'll ill 1
|
||||
ID id 2
|
||||
I'd id 1
|
||||
shed shed 2
|
||||
she'd shed 1
|
||||
|
||||
|
||||
# +_+
|
||||
iPhone 3G iPhone3G
|
||||
@ -821,7 +825,6 @@ PaintCode PaintCode
|
||||
Parallels Desktop ParallelsDesktop
|
||||
Password Password
|
||||
Paste Paste
|
||||
Paw Paw
|
||||
PayPal PayPal
|
||||
PhotoDesk PhotoDesk
|
||||
Picatext Picatext
|
||||
@ -1236,7 +1239,6 @@ Windows Media Player MediaPlayer
|
||||
Visual Studio Code VisualStudioCode
|
||||
Visual Studio Code VSCode
|
||||
PowerShell PowerShell
|
||||
.NET .NET
|
||||
Surface Surface
|
||||
MSN MSN
|
||||
Skype Skype
|
||||
|
@ -7,19 +7,70 @@ local M = {}
|
||||
function M.init(env)
|
||||
local config = env.engine.schema.config
|
||||
env.name_space = env.name_space:gsub("^*", "")
|
||||
M.idx = config:get_int(env.name_space .. "/idx") -- 要插入的位置
|
||||
M.words = {} -- 要过滤的词
|
||||
|
||||
-- 要降低到的位置
|
||||
M.idx = config:get_int(env.name_space .. "/idx")
|
||||
|
||||
-- 所有 3~4 位长度、前 2~3 位是完整拼音、最后一位是声母的单词
|
||||
local all = { "aid", "aim", "air", "and", "ann", "ant", "any", "bad", "bag", "bail", "bait", "bam", "ban", "band",
|
||||
"bang", "bank", "bans", "bar", "bat", "bay", "bend", "benq", "bent", "benz", "bib", "bid", "bien", "big", "bin",
|
||||
"bind", "bit", "biz", "bob", "boc", "bop", "bos", "bot", "bow", "box", "boy", "bud", "buf", "bug", "bus",
|
||||
"but", "buy", "cab", "cad", "cain", "cam", "can", "cans", "cant", "cap", "car", "cas", "cat", "cef", "cen",
|
||||
"cent", "chad", "chan", "chap", "char", "chat", "chef", "chen", "cher", "chew", "chic", "chin", "chip", "chit",
|
||||
"coup", "cum", "cunt", "cup", "cur", "cut", "dab", "dad", "dag", "dal", "dam", "day", "def", "del", "den",
|
||||
"dent", "deny", "der", "dew", "dial", "did", "died", "dies", "diet", "dig", "dim", "din", "dip", "dir", "dis",
|
||||
"dit", "diy", "doug", "dub", "dug", "dun", "dunn", "end", "err", "fab", "fan", "fans", "faq", "far", "fat",
|
||||
"fax", "fob", "fog", "for", "foul", "four", "fox", "fun", "fur", "gag", "gail", "gain", "gal", "gam", "gan",
|
||||
"gang", "gank", "gaol", "gap", "gas", "gay", "ged", "gel", "gem", "gen", "ger", "get", "guam", "guid", "gum",
|
||||
"gun", "guns", "gus", "gut", "guy", "had", "hail", "hair", "ham", "han", "hand", "hang", "hank", "hans", "has",
|
||||
"hat", "hay", "heil", "heir", "hem", "hen", "hep", "her", "hex", "hey", "hour", "hub", "hud", "hug", "huh",
|
||||
"hum", "hung", "hunk", "hunt", "hut", "jim", "jug", "junk", "kat", "kent", "key", "lab", "lad", "lag", "laid",
|
||||
"lam", "lan", "land", "lang", "laos", "lap", "lat", "law", "lax", "lay", "led", "leg", "len", "let", "lex",
|
||||
"liam", "liar", "lib", "lid", "lied", "lien", "lies", "ling", "link", "linn", "lip", "lit", "liz", "lob", "log",
|
||||
"lol", "lot", "loud", "low", "lug", "lund", "lung", "lux", "mac", "mad", "mag", "maid", "mail", "main", "man",
|
||||
"mann", "many", "map", "mar", "mat", "max", "may", "med", "mel", "men", "mend", "mens", "ment", "met", "mic",
|
||||
"mid", "mil", "min", "mind", "ming", "mins", "mint", "mit", "mix", "mob", "moc", "mod", "mom", "mop", "mos",
|
||||
"mot", "mud", "mug", "mum", "nad", "nail", "nan", "nap", "nas", "nat", "nay", "neil", "net", "new", "nib", "nil",
|
||||
"nip", "noun", "nous", "nun", "nut", "our", "out", "pac", "pad", "paid", "pail", "pain", "pair", "pak", "pal",
|
||||
"pam", "pan", "pans", "pant", "pap", "par", "pat", "paw", "pax", "pay", "pens", "pic", "pier", "pies", "pig",
|
||||
"pin", "ping", "pink", "pins", "pint", "pit", "pix", "pod", "pop", "por", "pos", "pot", "pour", "pow", "pub",
|
||||
"put", "rand", "rang", "rank", "rant", "red", "rent", "rep", "res", "ret", "rex", "rib", "rid", "rig", "rim",
|
||||
"rip", "rub", "rug", "ruin", "rum", "run", "runs", "sac", "sad", "said", "sail", "sal", "sam", "san", "sand",
|
||||
"sang", "sans", "sap", "sat", "saw", "sax", "say", "sec", "send", "sent", "set", "sew", "sex", "sham", "shaw",
|
||||
"shed", "shin", "ship", "shit", "shut", "sig", "sim", "sin", "sip", "sir", "sis", "sit", "six", "soul", "soup",
|
||||
"sour", "sub", "suit", "sum", "sun", "sung", "suns", "sup", "sur", "sus", "tab", "tad", "tag", "tail", "taj",
|
||||
"tan", "tang", "tank", "tap", "tar", "tax", "tec", "ted", "tel", "ten", "ter", "tex", "tic", "tied", "tier",
|
||||
"ties", "tim", "tin", "tip", "tit", "tour", "tout", "tum", "wag", "wait", "wan", "wand", "want", "wap", "war",
|
||||
"was", "wax", "way", "weir", "went", "won", "wow", "yan", "yang", "yen", "yep", "yes", "yet", "yin", "your",
|
||||
"yum", "zen", "zip" }
|
||||
M.all = {}
|
||||
for _, v in ipairs(all) do
|
||||
M.all[v] = true
|
||||
end
|
||||
|
||||
-- 自定义
|
||||
M.words = {}
|
||||
local list = config:get_list(env.name_space .. "/words")
|
||||
for i = 0, list.size - 1 do
|
||||
local word = list:get_value_at(i).value
|
||||
M.words[word] = true
|
||||
end
|
||||
|
||||
-- 模式
|
||||
local mode = config:get_string(env.name_space .. "/mode")
|
||||
if mode == "all" then
|
||||
M.map = M.all
|
||||
elseif mode == "custom" then
|
||||
M.map = M.words
|
||||
else
|
||||
M.map = {}
|
||||
end
|
||||
end
|
||||
|
||||
function M.func(input, env)
|
||||
-- filter start
|
||||
local code = env.engine.context.input
|
||||
if M.words[code] then
|
||||
if M.map[code] then
|
||||
local pending_cands = {}
|
||||
local index = 0
|
||||
for cand in input:iter() do
|
||||
|
@ -13,7 +13,7 @@ import_tables:
|
||||
|
||||
# 中英混输词库
|
||||
- en_dicts/cn_en # 全拼
|
||||
# - en_dicts/cn_en_double_pinyin # 自然码双拼
|
||||
# - en_dicts/cn_en_double_pinyin # 自然码双拼
|
||||
# - en_dicts/cn_en_double_pinyin_flypy # 小鹤双拼
|
||||
# - en_dicts/cn_en_double_pinyin_mspy # 微软双拼
|
||||
# - en_dicts/cn_en_double_pinyin_sogou # 搜狗双拼
|
||||
|
@ -6,7 +6,7 @@
|
||||
schema:
|
||||
schema_id: rime_ice
|
||||
name: 雾凇拼音
|
||||
version: "2023-08-07"
|
||||
version: "2023-10-22"
|
||||
author:
|
||||
- Dvel
|
||||
description: |
|
||||
@ -85,21 +85,37 @@ date_translator:
|
||||
timestamp: ts # 时间戳: 1669716794
|
||||
|
||||
|
||||
# Lua 配置: 降低部分英语单词在候选项的位置
|
||||
# Lua 配置: 降低部分英语单词在候选项的位置。
|
||||
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
|
||||
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」
|
||||
# 降低之后: 输入 rug 得到 「1.如果 2.rug …… 」
|
||||
# 几种模式:
|
||||
# all 降低所有 3~4 位长度、前 2~3 位是完整拼音、最后一位是声母的单词
|
||||
# none 不降低任何单词,相当于没有启用这个 Lua
|
||||
# custom 自定义,只降低 custom 里的
|
||||
# (匹配的是编码,不是单词)
|
||||
reduce_english_filter:
|
||||
# 降低到第 idx 个位置
|
||||
idx: 2
|
||||
# 要降低的单词,匹配的是输入码,即全小写。
|
||||
words: [rug, bus, ship, laos, bail, bam, bans, bib, bos, chic, chit, dab, dag,
|
||||
dal, dit, dub, dug, fab, gam, ger, gus, hem, hep, hud, kat, lam, lax, lex, lug,
|
||||
lux, moc, mos, mot, mum, nad, nay, nib, nip, pak, pap, pax, rig, rum, sac, sal,
|
||||
sax, sec, shin, sis, ska, slang, sus, tad, taj, tac, tic, yep, yum, fax, cain,
|
||||
key, mob, buy, dam, wap, yes, but, put, lag, buf, lip, aid, aim, dig, dim, din,
|
||||
dip, pail, cad, chap, bend, lid, gem, tin, tum, my, went, youd, hes, tex, sum,
|
||||
hex, hail, heil, gail, tit]
|
||||
mode: custom # all | none | custom
|
||||
idx: 2 # 降低到第 idx 个位置
|
||||
# 自定义的单词列表,示例列表没有降低部分常用单词,如 and cat mail Mac but bad shit ……
|
||||
words: [aid, ann,
|
||||
bail, bait, bam, band, bans, bat, bay, bend, bent, benz, bib, bid, bien, biz, boc, bop, bos, bud, buf,
|
||||
cab, cad, cain, cam, cans, cap, cas, cef, chad, chan, chap, chef, cher, chew, chic, chin, chip, chit, coup, cum, cunt, cur,
|
||||
dab, dag, dal, dam, dent, dew, dial, diet, dim, din, dip, dis, dit, doug, dub, dug, dunn,
|
||||
fab, fax, fob, fog, foul, fur,
|
||||
gag, gail, gain, gal, gam, gaol, ged, gel, ger, guam, gus, gut,
|
||||
hail, ham, hank, hans, hat, hay, heil, heir, hem, hep, hud, hum, hung, hunk, hut,
|
||||
jim, jug,
|
||||
kat,
|
||||
lab, lad, lag, laid, lam, laos, lap, lat, lax, lay, led, leg, lex, liam, lib, lid, lied, lien, lies, linn, lip, lit, liz, lob, lug, lund, lung, lux,
|
||||
mag, maid, mann, mar, mat, med, mel, mend, mens, ment, mil, mins, mint, mob, moc, mod, mop, mos, mot, mud, mug, mum, nail,
|
||||
nap, nat, nay, neil, nib, nip, noun, nous, nun, nut,
|
||||
pac, paid, pail, pain, pair, pak, pal, pam, pans, pant, pap, par, pat, paw, pax, pens, pic, pier, pies, pins, pint, pit, pix, pod, pop, pos, pot, pour, pow, pub,
|
||||
rand, rant, rent, rep, res, ret, rex, rib, rid, rig, rim, rub, rug, rum, runs,
|
||||
sac, sail, sal, sam, sans, sap, saw, sax, sew, sham, shaw, shin, sig, sin, sip, sis, suit, sung, suns, sup, sur, sus,
|
||||
tad, tail, taj, tar, tax, tec, ted, tel, ter, tex, tic, tied, tier, ties, tim, tin, tit, tour, tout, tum,
|
||||
wag, wand, wap, wax, weir, won,
|
||||
yan, yen]
|
||||
|
||||
|
||||
# 主翻译器,拼音
|
||||
|
Loading…
x
Reference in New Issue
Block a user