Преглед на файлове

Merge branch 'rime-ice' of https://git.dewofaurora.de/aurora/rime-auto-deploy into rime-ice

Dew-OF-Aurora преди 1 месец
родител
ревизия
c9989df46f
променени са 4 файла, в които са добавени 31 реда и са изтрити 8 реда
  1. 28 0
      custom/rime_ice.custom.yaml
  2. 1 1
      custom/squirrel.custom.yaml
  3. 1 4
      os/LinuxDistro.rb
  4. 1 3
      os/MacOS.rb

+ 28 - 0
custom/rime_ice.custom.yaml

@@ -15,6 +15,34 @@ patch:
     - name: search_single_char # search.lua 的功能开关,辅码查词时是否单字优先
       abbrev: [词, 单]
       states: [正常, 单字]
+  
+
+  reduce_english_filter:
+    mode: custom
+    idx: 2
+    words: [
+      aid, ann,
+      bail, bait, bam, band, bans, bat, bay, bend, bent, benz, bib, bid, bien, biz, boc, bop, bos, bud, buf, bus, bach, bench, bush, bog,
+      cab, cad, cain, cam, cans, cap, cef, chad, chan, chap, chef, cher, chew, chic, chin, chip, chit, coup, cum, cunt, cur, couch,
+      dab, dag, dal, dam, dent, dew, dial, diet, dim, din, dip, dis, dit, doug, dub, dug, dunn, don,
+      fab, fax, fob, fog, foul, fur, fend,
+      gag, gail, gain, gal, gam, gaol, ged, gel, ger, guam, gus, gut,
+      hail, ham, hank, hans, hat, hay, heil, heir, hem, hep, hex, hud, hum, hung, hunk, hut, hush,
+      jim, jug,
+      kat, key,
+      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,
+      mag, maid, mann, mar, mat, med, mel, mend, mens, ment, mil, mins, mint, mob, moc, mop, mos, mot, mud, mug, mum, mesh,
+      nap, nat, nay, neil, nib, nip, noun, nous, nun, nut, nail, nash,
+      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,
+      rand, rant, rent, rep, res, ret, rex, rib, rid, rig, rim, rub, rug, rum, runc, runs, ranch,
+      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, womens, wap, wax, weir, won, went,
+      yan, yen,
+      zach,
+      my, mt, dj, as, js, cs, ak, ps, cd, cn, hk, bt, pk, ml
+    ]
+
 
   "speller/algebra":
     - derive/^([zcs])h/$1/

+ 1 - 1
custom/squirrel.custom.yaml

@@ -13,10 +13,10 @@ patch:
       ascii_mode: true
     st:
       ascii_mode: true
+
   style:
     color_scheme: macos_light
     color_scheme_dark: macos_dark
-
     text_orientation: horizontal # horizontal | vertical
     candidate_list_layout: linear
     inline_preedit: true

+ 1 - 4
os/LinuxDistro.rb

@@ -71,10 +71,7 @@ https://wiki.archlinux.org/title/Rime
     class CopyCustomConfigJob < Job
       def call
         puts intro
-        system("cp ./custom/*.yaml #{Store.config_path}/")
-        sleep 1
-        system("cp ./custom/custom_phrase.txt #{Store.config_path}/")
-        sleep 1
+        system("cp -rf custom/. #{Store.config_path}/")
         return :next
       end
     end

+ 1 - 3
os/MacOS.rb

@@ -37,9 +37,7 @@ module RimeDeploy
     class CopyCustomConfigJob < Job
       def call
         puts intro
-        system("cp ./custom/*.yaml #{Store.config_path}/")
-        sleep 1
-        system("cp ./custom/custom_phrase.txt #{Store.config_path}/")
+        system("cp -rf custom/. #{Store.config_path}/")
         sleep 1
         return :next
       end