feat: reduce_english_filter.lua 增加一键全降低
This commit is contained in:
parent
9431167725
commit
0e843f998f
@ -94,22 +94,37 @@ date_translator:
|
|||||||
timestamp: timestamp # 时间戳: 1669716794
|
timestamp: timestamp # 时间戳: 1669716794
|
||||||
|
|
||||||
|
|
||||||
# Lua 配置: 降低部分英语单词在候选项的位置
|
# Lua 配置: 降低部分英语单词在候选项的位置。
|
||||||
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
|
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
|
||||||
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」
|
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」
|
||||||
# 降低之后: 输入 rug 得到 「1.如果 2.rug …… 」
|
# 降低之后: 输入 rug 得到 「1.如果 2.rug …… 」
|
||||||
|
# 几种模式:
|
||||||
|
# all 降低所有 3~4 位长度、前 2~3 位是完整拼音、最后一位是声母的单词
|
||||||
|
# none 不降低任何单词,相当于没有启用这个 Lua
|
||||||
|
# custom 自定义,只降低 custom 里的
|
||||||
|
# (匹配的是编码,不是单词)
|
||||||
reduce_english_filter:
|
reduce_english_filter:
|
||||||
# 降低到第 idx 个位置
|
mode: custom # all | none | custom
|
||||||
idx: 2
|
idx: 2 # 降低到第 idx 个位置
|
||||||
# 要降低的单词,匹配的是输入码,即全小写。
|
# 自定义的单词列表,示例列表没有降低部分常用单词,如 and cat mail Mac but bad shit ……
|
||||||
words: [nav, uid, wig,
|
words: [aid, ann,
|
||||||
rug, bus, ship, laos, bail, bam, bans, bib, bos, chic, chit, dab, dag,
|
bail, bait, bam, band, bans, bat, bay, bend, bent, benz, bib, bid, bien, biz, boc, bop, bos, bud, buf,
|
||||||
dal, dit, dub, dug, fab, gam, ger, gus, hem, hep, hud, kat, lam, lax, lex, lug,
|
cab, cad, cain, cam, cans, cap, cas, cef, chad, chan, chap, chef, cher, chew, chic, chin, chip, chit, coup, cum, cunt, cur,
|
||||||
lux, moc, mos, mot, mum, nad, nay, nib, nip, pak, pap, pax, rig, rum, sac, sal,
|
dab, dag, dal, dam, dent, dew, dial, diet, dim, din, dip, dis, dit, doug, dub, dug, dunn,
|
||||||
sax, sec, shin, sis, ska, slang, sus, tad, taj, tac, tic, yep, yum, fax, cain,
|
fab, fax, fob, fog, foul, fur,
|
||||||
key, mob, buy, dam, wap, yes, but, put, lag, buf, lip, aid, aim, dig, dim, din,
|
gag, gail, gain, gal, gam, gaol, ged, gel, ger, guam, gus, gut,
|
||||||
dip, pail, cad, chap, bend, lid, gem, tin, tum, my, went, youd, hes, tex, sum,
|
hail, ham, hank, hans, hat, hay, heil, heir, hem, hep, hud, hum, hung, hunk, hut,
|
||||||
hex, hail, heil, gail, tit]
|
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
|
timestamp: timestamp # 时间戳: 1669716794
|
||||||
|
|
||||||
|
|
||||||
# Lua 配置: 降低部分英语单词在候选项的位置
|
# Lua 配置: 降低部分英语单词在候选项的位置。
|
||||||
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
|
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
|
||||||
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」
|
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」
|
||||||
# 降低之后: 输入 rug 得到 「1.如果 2.rug …… 」
|
# 降低之后: 输入 rug 得到 「1.如果 2.rug …… 」
|
||||||
|
# 几种模式:
|
||||||
|
# all 降低所有 3~4 位长度、前 2~3 位是完整拼音、最后一位是声母的单词
|
||||||
|
# none 不降低任何单词,相当于没有启用这个 Lua
|
||||||
|
# custom 自定义,只降低 custom 里的
|
||||||
|
# (匹配的是编码,不是单词)
|
||||||
reduce_english_filter:
|
reduce_english_filter:
|
||||||
# 降低到第 idx 个位置
|
mode: custom # all | none | custom
|
||||||
idx: 2
|
idx: 2 # 降低到第 idx 个位置
|
||||||
# 要降低的单词,匹配的是输入码,即全小写。
|
# 自定义的单词列表,示例列表没有降低部分常用单词,如 and cat mail Mac but bad shit ……
|
||||||
words: [nav, uid, wig,
|
words: [aid, ann,
|
||||||
rug, bus, ship, laos, bail, bam, bans, bib, bos, chic, chit, dab, dag,
|
bail, bait, bam, band, bans, bat, bay, bend, bent, benz, bib, bid, bien, biz, boc, bop, bos, bud, buf,
|
||||||
dal, dit, dub, dug, fab, gam, ger, gus, hem, hep, hud, kat, lam, lax, lex, lug,
|
cab, cad, cain, cam, cans, cap, cas, cef, chad, chan, chap, chef, cher, chew, chic, chin, chip, chit, coup, cum, cunt, cur,
|
||||||
lux, moc, mos, mot, mum, nad, nay, nib, nip, pak, pap, pax, rig, rum, sac, sal,
|
dab, dag, dal, dam, dent, dew, dial, diet, dim, din, dip, dis, dit, doug, dub, dug, dunn,
|
||||||
sax, sec, shin, sis, ska, slang, sus, tad, taj, tac, tic, yep, yum, fax, cain,
|
fab, fax, fob, fog, foul, fur,
|
||||||
key, mob, buy, dam, wap, yes, but, put, lag, buf, lip, aid, aim, dig, dim, din,
|
gag, gail, gain, gal, gam, gaol, ged, gel, ger, guam, gus, gut,
|
||||||
dip, pail, cad, chap, bend, lid, gem, tin, tum, my, went, youd, hes, tex, sum,
|
hail, ham, hank, hans, hat, hay, heil, heir, hem, hep, hud, hum, hung, hunk, hut,
|
||||||
hex, hail, heil, gail, tit]
|
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
|
timestamp: timestamp # 时间戳: 1669716794
|
||||||
|
|
||||||
|
|
||||||
# Lua 配置: 降低部分英语单词在候选项的位置
|
# Lua 配置: 降低部分英语单词在候选项的位置。
|
||||||
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
|
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
|
||||||
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」
|
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」
|
||||||
# 降低之后: 输入 rug 得到 「1.如果 2.rug …… 」
|
# 降低之后: 输入 rug 得到 「1.如果 2.rug …… 」
|
||||||
|
# 几种模式:
|
||||||
|
# all 降低所有 3~4 位长度、前 2~3 位是完整拼音、最后一位是声母的单词
|
||||||
|
# none 不降低任何单词,相当于没有启用这个 Lua
|
||||||
|
# custom 自定义,只降低 custom 里的
|
||||||
|
# (匹配的是编码,不是单词)
|
||||||
reduce_english_filter:
|
reduce_english_filter:
|
||||||
# 降低到第 idx 个位置
|
mode: custom # all | none | custom
|
||||||
idx: 2
|
idx: 2 # 降低到第 idx 个位置
|
||||||
# 要降低的单词,匹配的是输入码,即全小写。
|
# 自定义的单词列表,示例列表没有降低部分常用单词,如 and cat mail Mac but bad shit ……
|
||||||
words: [nav, uid, wig,
|
words: [aid, ann,
|
||||||
rug, bus, ship, laos, bail, bam, bans, bib, bos, chic, chit, dab, dag,
|
bail, bait, bam, band, bans, bat, bay, bend, bent, benz, bib, bid, bien, biz, boc, bop, bos, bud, buf,
|
||||||
dal, dit, dub, dug, fab, gam, ger, gus, hem, hep, hud, kat, lam, lax, lex, lug,
|
cab, cad, cain, cam, cans, cap, cas, cef, chad, chan, chap, chef, cher, chew, chic, chin, chip, chit, coup, cum, cunt, cur,
|
||||||
lux, moc, mos, mot, mum, nad, nay, nib, nip, pak, pap, pax, rig, rum, sac, sal,
|
dab, dag, dal, dam, dent, dew, dial, diet, dim, din, dip, dis, dit, doug, dub, dug, dunn,
|
||||||
sax, sec, shin, sis, ska, slang, sus, tad, taj, tac, tic, yep, yum, fax, cain,
|
fab, fax, fob, fog, foul, fur,
|
||||||
key, mob, buy, dam, wap, yes, but, put, lag, buf, lip, aid, aim, dig, dim, din,
|
gag, gail, gain, gal, gam, gaol, ged, gel, ger, guam, gus, gut,
|
||||||
dip, pail, cad, chap, bend, lid, gem, tin, tum, my, went, youd, hes, tex, sum,
|
hail, ham, hank, hans, hat, hay, heil, heir, hem, hep, hud, hum, hung, hunk, hut,
|
||||||
hex, hail, heil, gail, tit]
|
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
|
timestamp: timestamp # 时间戳: 1669716794
|
||||||
|
|
||||||
|
|
||||||
# Lua 配置: 降低部分英语单词在候选项的位置
|
# Lua 配置: 降低部分英语单词在候选项的位置。
|
||||||
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
|
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
|
||||||
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」
|
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」
|
||||||
# 降低之后: 输入 rug 得到 「1.如果 2.rug …… 」
|
# 降低之后: 输入 rug 得到 「1.如果 2.rug …… 」
|
||||||
|
# 几种模式:
|
||||||
|
# all 降低所有 3~4 位长度、前 2~3 位是完整拼音、最后一位是声母的单词
|
||||||
|
# none 不降低任何单词,相当于没有启用这个 Lua
|
||||||
|
# custom 自定义,只降低 custom 里的
|
||||||
|
# (匹配的是编码,不是单词)
|
||||||
reduce_english_filter:
|
reduce_english_filter:
|
||||||
# 降低到第 idx 个位置
|
mode: custom # all | none | custom
|
||||||
idx: 2
|
idx: 2 # 降低到第 idx 个位置
|
||||||
# 要降低的单词,匹配的是输入码,即全小写。
|
# 自定义的单词列表,示例列表没有降低部分常用单词,如 and cat mail Mac but bad shit ……
|
||||||
words: [nav, uid, wig,
|
words: [aid, ann,
|
||||||
rug, bus, ship, laos, bail, bam, bans, bib, bos, chic, chit, dab, dag,
|
bail, bait, bam, band, bans, bat, bay, bend, bent, benz, bib, bid, bien, biz, boc, bop, bos, bud, buf,
|
||||||
dal, dit, dub, dug, fab, gam, ger, gus, hem, hep, hud, kat, lam, lax, lex, lug,
|
cab, cad, cain, cam, cans, cap, cas, cef, chad, chan, chap, chef, cher, chew, chic, chin, chip, chit, coup, cum, cunt, cur,
|
||||||
lux, moc, mos, mot, mum, nad, nay, nib, nip, pak, pap, pax, rig, rum, sac, sal,
|
dab, dag, dal, dam, dent, dew, dial, diet, dim, din, dip, dis, dit, doug, dub, dug, dunn,
|
||||||
sax, sec, shin, sis, ska, slang, sus, tad, taj, tac, tic, yep, yum, fax, cain,
|
fab, fax, fob, fog, foul, fur,
|
||||||
key, mob, buy, dam, wap, yes, but, put, lag, buf, lip, aid, aim, dig, dim, din,
|
gag, gail, gain, gal, gam, gaol, ged, gel, ger, guam, gus, gut,
|
||||||
dip, pail, cad, chap, bend, lid, gem, tin, tum, my, went, youd, hes, tex, sum,
|
hail, ham, hank, hans, hat, hay, heil, heir, hem, hep, hud, hum, hung, hunk, hut,
|
||||||
hex, hail, heil, gail, tit]
|
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
|
timestamp: timestamp # 时间戳: 1669716794
|
||||||
|
|
||||||
|
|
||||||
# Lua 配置: 降低部分英语单词在候选项的位置
|
# Lua 配置: 降低部分英语单词在候选项的位置。
|
||||||
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
|
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
|
||||||
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」
|
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」
|
||||||
# 降低之后: 输入 rug 得到 「1.如果 2.rug …… 」
|
# 降低之后: 输入 rug 得到 「1.如果 2.rug …… 」
|
||||||
|
# 几种模式:
|
||||||
|
# all 降低所有 3~4 位长度、前 2~3 位是完整拼音、最后一位是声母的单词
|
||||||
|
# none 不降低任何单词,相当于没有启用这个 Lua
|
||||||
|
# custom 自定义,只降低 custom 里的
|
||||||
|
# (匹配的是编码,不是单词)
|
||||||
reduce_english_filter:
|
reduce_english_filter:
|
||||||
# 降低到第 idx 个位置
|
mode: custom # all | none | custom
|
||||||
idx: 2
|
idx: 2 # 降低到第 idx 个位置
|
||||||
# 要降低的单词,匹配的是输入码,即全小写。
|
# 自定义的单词列表,示例列表没有降低部分常用单词,如 and cat mail Mac but bad shit ……
|
||||||
words: [nav, uid, wig,
|
words: [aid, ann,
|
||||||
rug, bus, ship, laos, bail, bam, bans, bib, bos, chic, chit, dab, dag,
|
bail, bait, bam, band, bans, bat, bay, bend, bent, benz, bib, bid, bien, biz, boc, bop, bos, bud, buf,
|
||||||
dal, dit, dub, dug, fab, gam, ger, gus, hem, hep, hud, kat, lam, lax, lex, lug,
|
cab, cad, cain, cam, cans, cap, cas, cef, chad, chan, chap, chef, cher, chew, chic, chin, chip, chit, coup, cum, cunt, cur,
|
||||||
lux, moc, mos, mot, mum, nad, nay, nib, nip, pak, pap, pax, rig, rum, sac, sal,
|
dab, dag, dal, dam, dent, dew, dial, diet, dim, din, dip, dis, dit, doug, dub, dug, dunn,
|
||||||
sax, sec, shin, sis, ska, slang, sus, tad, taj, tac, tic, yep, yum, fax, cain,
|
fab, fax, fob, fog, foul, fur,
|
||||||
key, mob, buy, dam, wap, yes, but, put, lag, buf, lip, aid, aim, dig, dim, din,
|
gag, gail, gain, gal, gam, gaol, ged, gel, ger, guam, gus, gut,
|
||||||
dip, pail, cad, chap, bend, lid, gem, tin, tum, my, went, youd, hes, tex, sum,
|
hail, ham, hank, hans, hat, hay, heil, heir, hem, hep, hud, hum, hung, hunk, hut,
|
||||||
hex, hail, heil, gail, tit]
|
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
|
timestamp: timestamp # 时间戳: 1669716794
|
||||||
|
|
||||||
|
|
||||||
# Lua 配置: 降低部分英语单词在候选项的位置
|
# Lua 配置: 降低部分英语单词在候选项的位置。
|
||||||
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
|
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
|
||||||
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」
|
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」
|
||||||
# 降低之后: 输入 rug 得到 「1.如果 2.rug …… 」
|
# 降低之后: 输入 rug 得到 「1.如果 2.rug …… 」
|
||||||
|
# 几种模式:
|
||||||
|
# all 降低所有 3~4 位长度、前 2~3 位是完整拼音、最后一位是声母的单词
|
||||||
|
# none 不降低任何单词,相当于没有启用这个 Lua
|
||||||
|
# custom 自定义,只降低 custom 里的
|
||||||
|
# (匹配的是编码,不是单词)
|
||||||
reduce_english_filter:
|
reduce_english_filter:
|
||||||
# 降低到第 idx 个位置
|
mode: custom # all | none | custom
|
||||||
idx: 2
|
idx: 2 # 降低到第 idx 个位置
|
||||||
# 要降低的单词,匹配的是输入码,即全小写。
|
# 自定义的单词列表,示例列表没有降低部分常用单词,如 and cat mail Mac but bad shit ……
|
||||||
words: [nav, uid, wig,
|
words: [aid, ann,
|
||||||
rug, bus, ship, laos, bail, bam, bans, bib, bos, chic, chit, dab, dag,
|
bail, bait, bam, band, bans, bat, bay, bend, bent, benz, bib, bid, bien, biz, boc, bop, bos, bud, buf,
|
||||||
dal, dit, dub, dug, fab, gam, ger, gus, hem, hep, hud, kat, lam, lax, lex, lug,
|
cab, cad, cain, cam, cans, cap, cas, cef, chad, chan, chap, chef, cher, chew, chic, chin, chip, chit, coup, cum, cunt, cur,
|
||||||
lux, moc, mos, mot, mum, nad, nay, nib, nip, pak, pap, pax, rig, rum, sac, sal,
|
dab, dag, dal, dam, dent, dew, dial, diet, dim, din, dip, dis, dit, doug, dub, dug, dunn,
|
||||||
sax, sec, shin, sis, ska, slang, sus, tad, taj, tac, tic, yep, yum, fax, cain,
|
fab, fax, fob, fog, foul, fur,
|
||||||
key, mob, buy, dam, wap, yes, but, put, lag, buf, lip, aid, aim, dig, dim, din,
|
gag, gail, gain, gal, gam, gaol, ged, gel, ger, guam, gus, gut,
|
||||||
dip, pail, cad, chap, bend, lid, gem, tin, tum, my, went, youd, hes, tex, sum,
|
hail, ham, hank, hans, hat, hay, heil, heir, hem, hep, hud, hum, hung, hunk, hut,
|
||||||
hex, hail, heil, gail, tit]
|
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
|
name: en
|
||||||
version: "2023-10-14"
|
version: "2023-10-22"
|
||||||
sort: by_weight
|
sort: by_weight
|
||||||
...
|
...
|
||||||
# +_+
|
# +_+
|
||||||
@ -1980,7 +1980,7 @@ bindings bindings
|
|||||||
binds binds
|
binds binds
|
||||||
bingo bingo
|
bingo bingo
|
||||||
binoculars binoculars
|
binoculars binoculars
|
||||||
bins bins
|
# bins bins
|
||||||
bio bio
|
bio bio
|
||||||
biochem biochem
|
biochem biochem
|
||||||
biochemical biochemical
|
biochemical biochemical
|
||||||
@ -5720,7 +5720,7 @@ doubles doubles
|
|||||||
doubt doubt
|
doubt doubt
|
||||||
doubtless doubtless
|
doubtless doubtless
|
||||||
doubts doubts
|
doubts doubts
|
||||||
doug doug
|
Doug Doug
|
||||||
dough dough
|
dough dough
|
||||||
doughty doughty
|
doughty doughty
|
||||||
Douglas Douglas
|
Douglas Douglas
|
||||||
@ -7549,7 +7549,6 @@ fourth fourth
|
|||||||
fowl fowl
|
fowl fowl
|
||||||
fowler fowler
|
fowler fowler
|
||||||
fox fox
|
fox fox
|
||||||
Fox Fox
|
|
||||||
# fp fp
|
# fp fp
|
||||||
# fpo fpo
|
# fpo fpo
|
||||||
# fprintf fprintf
|
# fprintf fprintf
|
||||||
@ -8347,7 +8346,7 @@ GTA GTA
|
|||||||
# gtk gtk
|
# gtk gtk
|
||||||
# gu gu
|
# gu gu
|
||||||
Guadeloupe Guadeloupe
|
Guadeloupe Guadeloupe
|
||||||
guam guam
|
Guam Guam
|
||||||
guarantee guarantee
|
guarantee guarantee
|
||||||
guaranteed guaranteed
|
guaranteed guaranteed
|
||||||
guarantees guarantees
|
guarantees guarantees
|
||||||
@ -8501,7 +8500,7 @@ Hannah Hannah
|
|||||||
Hannover Hannover
|
Hannover Hannover
|
||||||
Hanoi Hanoi
|
Hanoi Hanoi
|
||||||
Hanover Hanover
|
Hanover Hanover
|
||||||
hans hans
|
Hans Hans
|
||||||
Hansard Hansard
|
Hansard Hansard
|
||||||
hansen hansen
|
hansen hansen
|
||||||
Hanson Hanson
|
Hanson Hanson
|
||||||
@ -12402,7 +12401,7 @@ myths myths
|
|||||||
# nabble nabble
|
# nabble nabble
|
||||||
# nach nach
|
# nach nach
|
||||||
# nacional nacional
|
# nacional nacional
|
||||||
nad nad
|
# nad nad
|
||||||
# nadu nadu
|
# nadu nadu
|
||||||
nail nail
|
nail nail
|
||||||
nails nails
|
nails nails
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#
|
#
|
||||||
---
|
---
|
||||||
name: en_ext
|
name: en_ext
|
||||||
version: "2023-10-17"
|
version: "2023-10-22"
|
||||||
sort: by_weight
|
sort: by_weight
|
||||||
...
|
...
|
||||||
# 一些杂项
|
# 一些杂项
|
||||||
@ -122,6 +122,24 @@ Chandler Chandler
|
|||||||
Phoebe Phoebe
|
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 iPhone 999
|
||||||
iPhone 15 iPhone 4
|
iPhone 15 iPhone 4
|
||||||
@ -168,20 +186,6 @@ Windows 8 Windows 8
|
|||||||
Windows 10 Windows 10
|
Windows 10 Windows 10
|
||||||
Windows 11 Windows 11
|
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
|
iPhone 3G iPhone3G
|
||||||
@ -821,7 +825,6 @@ PaintCode PaintCode
|
|||||||
Parallels Desktop ParallelsDesktop
|
Parallels Desktop ParallelsDesktop
|
||||||
Password Password
|
Password Password
|
||||||
Paste Paste
|
Paste Paste
|
||||||
Paw Paw
|
|
||||||
PayPal PayPal
|
PayPal PayPal
|
||||||
PhotoDesk PhotoDesk
|
PhotoDesk PhotoDesk
|
||||||
Picatext Picatext
|
Picatext Picatext
|
||||||
@ -1236,7 +1239,6 @@ Windows Media Player MediaPlayer
|
|||||||
Visual Studio Code VisualStudioCode
|
Visual Studio Code VisualStudioCode
|
||||||
Visual Studio Code VSCode
|
Visual Studio Code VSCode
|
||||||
PowerShell PowerShell
|
PowerShell PowerShell
|
||||||
.NET .NET
|
|
||||||
Surface Surface
|
Surface Surface
|
||||||
MSN MSN
|
MSN MSN
|
||||||
Skype Skype
|
Skype Skype
|
||||||
|
@ -7,19 +7,70 @@ local M = {}
|
|||||||
function M.init(env)
|
function M.init(env)
|
||||||
local config = env.engine.schema.config
|
local config = env.engine.schema.config
|
||||||
env.name_space = env.name_space:gsub("^*", "")
|
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")
|
local list = config:get_list(env.name_space .. "/words")
|
||||||
for i = 0, list.size - 1 do
|
for i = 0, list.size - 1 do
|
||||||
local word = list:get_value_at(i).value
|
local word = list:get_value_at(i).value
|
||||||
M.words[word] = true
|
M.words[word] = true
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
function M.func(input, env)
|
function M.func(input, env)
|
||||||
-- filter start
|
-- filter start
|
||||||
local code = env.engine.context.input
|
local code = env.engine.context.input
|
||||||
if M.words[code] then
|
if M.map[code] then
|
||||||
local pending_cands = {}
|
local pending_cands = {}
|
||||||
local index = 0
|
local index = 0
|
||||||
for cand in input:iter() do
|
for cand in input:iter() do
|
||||||
|
@ -13,7 +13,7 @@ import_tables:
|
|||||||
|
|
||||||
# 中英混输词库
|
# 中英混输词库
|
||||||
- en_dicts/cn_en # 全拼
|
- 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_flypy # 小鹤双拼
|
||||||
# - en_dicts/cn_en_double_pinyin_mspy # 微软双拼
|
# - en_dicts/cn_en_double_pinyin_mspy # 微软双拼
|
||||||
# - en_dicts/cn_en_double_pinyin_sogou # 搜狗双拼
|
# - en_dicts/cn_en_double_pinyin_sogou # 搜狗双拼
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
schema:
|
schema:
|
||||||
schema_id: rime_ice
|
schema_id: rime_ice
|
||||||
name: 雾凇拼音
|
name: 雾凇拼音
|
||||||
version: "2023-08-07"
|
version: "2023-10-22"
|
||||||
author:
|
author:
|
||||||
- Dvel
|
- Dvel
|
||||||
description: |
|
description: |
|
||||||
@ -85,21 +85,37 @@ date_translator:
|
|||||||
timestamp: ts # 时间戳: 1669716794
|
timestamp: ts # 时间戳: 1669716794
|
||||||
|
|
||||||
|
|
||||||
# Lua 配置: 降低部分英语单词在候选项的位置
|
# Lua 配置: 降低部分英语单词在候选项的位置。
|
||||||
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
|
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
|
||||||
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」
|
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」
|
||||||
# 降低之后: 输入 rug 得到 「1.如果 2.rug …… 」
|
# 降低之后: 输入 rug 得到 「1.如果 2.rug …… 」
|
||||||
|
# 几种模式:
|
||||||
|
# all 降低所有 3~4 位长度、前 2~3 位是完整拼音、最后一位是声母的单词
|
||||||
|
# none 不降低任何单词,相当于没有启用这个 Lua
|
||||||
|
# custom 自定义,只降低 custom 里的
|
||||||
|
# (匹配的是编码,不是单词)
|
||||||
reduce_english_filter:
|
reduce_english_filter:
|
||||||
# 降低到第 idx 个位置
|
mode: custom # all | none | custom
|
||||||
idx: 2
|
idx: 2 # 降低到第 idx 个位置
|
||||||
# 要降低的单词,匹配的是输入码,即全小写。
|
# 自定义的单词列表,示例列表没有降低部分常用单词,如 and cat mail Mac but bad shit ……
|
||||||
words: [rug, bus, ship, laos, bail, bam, bans, bib, bos, chic, chit, dab, dag,
|
words: [aid, ann,
|
||||||
dal, dit, dub, dug, fab, gam, ger, gus, hem, hep, hud, kat, lam, lax, lex, lug,
|
bail, bait, bam, band, bans, bat, bay, bend, bent, benz, bib, bid, bien, biz, boc, bop, bos, bud, buf,
|
||||||
lux, moc, mos, mot, mum, nad, nay, nib, nip, pak, pap, pax, rig, rum, sac, sal,
|
cab, cad, cain, cam, cans, cap, cas, cef, chad, chan, chap, chef, cher, chew, chic, chin, chip, chit, coup, cum, cunt, cur,
|
||||||
sax, sec, shin, sis, ska, slang, sus, tad, taj, tac, tic, yep, yum, fax, cain,
|
dab, dag, dal, dam, dent, dew, dial, diet, dim, din, dip, dis, dit, doug, dub, dug, dunn,
|
||||||
key, mob, buy, dam, wap, yes, but, put, lag, buf, lip, aid, aim, dig, dim, din,
|
fab, fax, fob, fog, foul, fur,
|
||||||
dip, pail, cad, chap, bend, lid, gem, tin, tum, my, went, youd, hes, tex, sum,
|
gag, gail, gain, gal, gam, gaol, ged, gel, ger, guam, gus, gut,
|
||||||
hex, hail, heil, gail, tit]
|
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