rime_ice.custom.yaml 4.3 KB

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