rime_frost.custom.yaml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. patch:
  2. engine/processors/+:
  3. - lua_processor@*cold_word_drop.processor
  4. engine/filters/+:
  5. - lua_filter@*cold_word_drop.filter
  6. translator/dictionary: rime_frost.custom
  7. switches:
  8. - name: ascii_mode
  9. states: [中, 英]
  10. - name: ascii_punct
  11. states: ["中标", "英标"]
  12. # reset: 1 # 默认英标
  13. - name: traditionalization
  14. states: [简, 繁]
  15. - name: emoji
  16. states: [表情关, 表情开]
  17. - name: full_shape
  18. states: [半角, 全角]
  19. - name: search_single_char # search.lua 的功能开关,辅码查词时是否单字优先
  20. abbrev: [词, 单]
  21. states: [正常, 单字]
  22. reduce_english_filter:
  23. mode: custom
  24. idx: 3
  25. words: [
  26. aid, ann,
  27. bail, bait, bam, band, bans, bat, bay, bend, bent, benz, bib, bid, bien, biz, boc, bop, bos, bud, buf, bus, bach, bench, bush, bog,
  28. cab, cad, cain, cam, cans, cap, cef, chad, chan, chap, chef, cher, chew, chic, chin, chip, chit, coup, cum, cunt, cur, couch,
  29. dab, dag, dal, dam, dent, dew, dial, diet, dim, din, dip, dis, dit, doug, dub, dug, dunn, don,
  30. fab, fax, fob, fog, foul, fur, fend,
  31. gag, gail, gain, gal, gam, gaol, ged, gel, ger, guam, gus, gut,
  32. hail, ham, hank, hans, hat, hay, heil, heir, hem, hep, hex, hud, hum, hung, hunk, hut, hush,
  33. jim, jug,
  34. kat, key,
  35. lab, lad, lag, laid, lam, laos, lap, lat, lax, lay, led, leg, lex, liam, lib, lichen, lid, lied, lien, lies, linn, lip, lit, liz, lob, lug, lund, lung, lux, lash, loch, lush,
  36. mag, maid, mann, mar, mat, med, mel, mend, mens, ment, mil, mins, mint, mob, moc, mop, mos, mot, mud, mug, mum, mesh,
  37. nap, nat, nay, neil, nib, nip, noun, nous, nun, nut, nail, nash,
  38. 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, pinch, pouch,
  39. rand, rant, rent, rep, res, ret, rex, rib, rid, rig, rim, rub, rug, rum, runc, runs, ranch,
  40. sac, sail, sal, sam, sans, sap, saw, sax, sew, sham, shaw, shin, sig, sin, sip, sis, suit, sung, suns, sup, sur, sus, ship,
  41. tad, tail, taj, tar, tax, tec, ted, tel, ter, tex, tic, tied, tier, ties, tim, tin, tit, tour, tout, tum,
  42. wag, wand, womens, wap, wax, weir, won, went,
  43. yan, yen, yes,
  44. zach,
  45. my, mt, dj, as, js, cs, ak, ps, cd, cn, hk, bt, pk, ml
  46. ]
  47. speller/algebra:
  48. #-----------------------------------
  49. # 让 bei 都能由 be 打出来
  50. - derive/^([b])ei$/$1e/
  51. #-----------------------------------
  52. - derive/^([zcs])h/$1/
  53. - derive/^([zcs])([^h])/$1h$2/
  54. - derive/ang$/an/
  55. - derive/an$/ang/
  56. - derive/eng$/en/
  57. - derive/en$/eng/
  58. - derive/in$/ing/
  59. - derive/ing$/in/
  60. - derive/ian$/iang/
  61. - derive/iang$/ian/
  62. - derive/uan$/uang/
  63. - derive/uang$/uan/
  64. - derive/ong$/on/
  65. - derive/on$/ong/
  66. #-----------------------------------
  67. - erase/^hm$/
  68. - erase/^m$/
  69. - erase/^n$/
  70. - erase/^ng$/
  71. # shih -> 时候
  72. - abbrev/^([a-z]).+$/$1/
  73. - abbrev/^([zcs]h).+$/$1/
  74. - abbrev/^([a-z]i).+$/$1/
  75. - derive/^([nl])ve$/$1ue/
  76. - derive/^([jqxy])u/$1v/
  77. - derive/^([nl])ue$/$1ve/
  78. - derive/^([jqxy])v/$1u/
  79. - derive/([zcs])h(a|e|i|u|ai|ei|an|en|ou|uo|ua|un|ui|uan|uai|uang|ang|eng|ong)$/h$1$2/
  80. - derive/([wfghk])ai$/$1ia/
  81. - derive/([wfghkz])ei$/$1ie/
  82. - derive/([jqx])ie$/$1ei/
  83. - derive/([rtypsdghklzcbnm])ao$/$1oa/
  84. - derive/([ypfm])ou$/$1uo/
  85. - derive/([wrtypsdfghklzcbnm])ang$/$1nag/
  86. - derive/([wrtypsdfghklzcbnm])ang$/$1agn/
  87. - derive/([wrtpsdfghklzcbnm])eng$/$1neg/
  88. - derive/([wrtpsdfghklzcbnm])eng$/$1egn/
  89. - derive/([qtypdjlxbnm])ing$/$1nig/
  90. - derive/([qtypdjlxbnm])ing$/$1ign/
  91. - derive/([rtysdghklzcn])ong$/$1nog/
  92. - derive/([rtysdghklzcn])ong$/$1ogn/
  93. - derive/([qtpdjlxbnm])iao$/$1ioa/
  94. - derive/([qtpdjlxbnm])iao$/$1oia/
  95. - derive/([rtsghkzc])ui$/$1iu/
  96. - derive/([qjlxnm])iu$/$1ui/
  97. - derive/([qjlxn])iang$/$1aing/
  98. - derive/([qjlxn])iang$/$1inag/
  99. - derive/([g|k|h|zh|sh])ua$/$1au/
  100. - derive/([g|h|k|zh|ch|sh])uai$/$1aui/
  101. - derive/([qrtysdghjklzxcn])uan$/$1aun/
  102. - derive/([nlyjqx])ue$/$1eu/
  103. - derive/([g|h|k|zh|ch|sh])uang$/$1aung/
  104. - derive/([g|h|k|zh|ch|sh])uang$/$1uagn/
  105. - derive/([g|h|k|zh|ch|sh])uang$/$1unag/
  106. - derive/([g|h|k|zh|ch|sh])uang$/$1augn/
  107. - derive/([jqx])iong$/$1inog/
  108. - derive/([jqx])iong$/$1oing/
  109. - derive/([jqx])iong$/$1iogn/
  110. - derive/([jqx])iong$/$1oign/
  111. - derive/([rtsdghkzc])o(u|ng)$/$1o/
  112. - derive/(.+)ong$/$1on/
  113. - derive/([tl])eng$/$1en/
  114. - derive/([qwrtypsdfghjklzxcbnm])([aeio])ng$/$1ng/