Selaa lähdekoodia

frist commit for 白霜customer setting

Dew-OF-Aurora 5 kuukautta sitten
vanhempi
sitoutus
b979036627

+ 37 - 22
custom/default.custom.yaml

@@ -1,27 +1,42 @@
 patch:
+  # 方案列表
+  schema_list:
+    # 可以直接删除或注释不需要的方案,对应的 *.schema.yaml 方案文件也可以直接删除
+    - schema: rime_frost # 白霜拼音(全拼)
+    # - schema: rime_frost_double_pinyin # 自然码双拼
+    # - schema: rime_frost_double_pinyin_mspy # 微软双拼
+    # - schema: rime_frost_double_pinyin_sogou # 搜狗双拼
+    # - schema: rime_frost_double_pinyin_flypy # 小鹤双拼
+    # - schema: rime_frost_double_pinyin_abc      # 智能 ABC 双拼
+    # - schema: rime_frost_double_pinyin_ziguang  # 紫光双拼
+
   # 菜单
   menu:
-    page_size: 8  # 候选词个数
-    # alternative_select_labels: [ ①, ②, ③, ④, ⑤, ⑥, ⑦, ⑧, ⑨, ⑩ ]  # 修改候选项标签
-    # alternative_select_keys: ASDFGHJKL  # 如编码字符占用数字键,则需另设选字键
-    # ascii_mode、inline、no_inline、vim_mode 等等设定,可参考 /Library/Input Methods/Squirrel.app/Contents/SharedSupport/squirrel.yaml
-  # 中西文切换
-  #
-  # 【good_old_caps_lock】 CapsLock 切换到大写或切换中英。
-  # (macOS 偏好设置的优先级更高,如果勾选【使用大写锁定键切换“ABC”输入法】则始终会切换输入法)
-  #
-  # 切换中英:
-  # 不同的选项表示:打字打到一半时按下了 CapsLock、Shift、Control 后: 
-  # commit_code  上屏原始的编码,然后切换到英文
-  # commit_text  上屏拼出的词句,然后切换到英文
-  # clear        清除未上屏内容,然后切换到英文
-  # inline_ascii 无输入时,切换中英;有输入时,切换到临时英文模式,按回车上屏后回到中文状态
-  # noop         屏蔽快捷键,不切换中英,但不要屏蔽 CapsLock
+    page_size: 8 # 候选词个数
+
+  # 方案选单相关
+  switcher:
+    caption: 「方案选单」
+    hotkeys:
+      - F4
+      - Control+grave
+      - Control+Shift+grave
+      # - Alt+grave
+    save_options: # 开关记忆(方案中的 switches),从方案选单(而非快捷键)切换时会记住的选项,需要记忆的开关不能设定 reset
+      - ascii_punct
+      - traditionalization
+      - emoji
+      - full_shape
+      - search_single_char
+    fold_options: true # 呼出时是否折叠,多方案时建议折叠 true ,一个方案建议展开 false
+    abbreviate_options: true # 折叠时是否缩写选项
+    option_list_separator: " / " # 折叠时的选项分隔符
+
   ascii_composer:
-    good_old_caps_lock: true  # true | false
+    good_old_caps_lock: true # true | false
     switch_key:
-      Caps_Lock: clear  # commit_code | commit_text | clear
-      Shift_L: clear     # commit_code | commit_text | inline_ascii | clear | noop
-      Shift_R: clear     # commit_code | commit_text | inline_ascii | clear | noop
-      Control_L: noop   # commit_code | commit_text | inline_ascii | clear | noop
-      Control_R: noop   # commit_code | commit_text | inline_ascii | clear | noop
+      Caps_Lock: clear # commit_code | commit_text | clear
+      Shift_L: commit_code # commit_code | commit_text | inline_ascii | clear | noop
+      Shift_R: noop # commit_code | commit_text | inline_ascii | clear | noop
+      Control_L: noop # commit_code | commit_text | inline_ascii | clear | noop
+      Control_R: noop # commit_code | commit_text | inline_ascii | clear | noop

+ 133 - 0
custom/rime_frost.custom.yaml

@@ -0,0 +1,133 @@
+patch:
+  switches:
+    - name: ascii_mode
+      states: [中, 西]
+    - name: ascii_punct # 中英标点
+      states: [¥, $]
+    - name: traditionalization
+      states: [简, 繁]
+    - name: emoji
+      states: [💀, 😄]
+    - name: full_shape
+      states: [半角, 全角]
+    - name: search_single_char # search.lua 的功能开关,辅码查词时是否单字优先
+      abbrev: [词, 单]
+      states: [正常, 单字]
+
+  reduce_english_filter/mode: all
+
+  custom_phrase:
+    dictionary: ""
+    user_dict: custom_phrase # 可以修改这里,改成自己的 txt 文件
+    db_class: tabledb # 只读数据库,无法动态调频;设为 tabledb 可以动态调频
+    enable_completion: false # 补全提示
+    enable_sentence: false # 禁止造句
+    initial_quality: 1000 # custom_phrase 的权重应该比 pinyin 和 melt_eng 大
+
+  speller:
+    # 如果不想让什么标点直接上屏,可以加在 alphabet,或者编辑标点符号为两个及以上的映射
+    alphabet: zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA`/
+    # initials 定义仅作为始码的按键,排除 ` 让单个的 ` 可以直接上屏
+    initials: zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
+    delimiter: " '" # 第一位<空格>是拼音之间的分隔符;第二位<'>表示可以手动输入单引号来分割拼音。
+    algebra:
+      ### 模糊音
+      # 声母
+      - derive/^([zcs])h/$1/ # zh* ch* sh* 派生出 z* c* s*
+      - derive/^([zcs])([^h])/$1h$2/ # z* c* s*    派生出 zh* ch* sh*
+      - derive/ang$/an/
+      - derive/an$/ang/
+      - derive/eng$/en/
+      - derive/en$/eng/
+      - derive/in$/ing/
+      - derive/ing$/in/
+      - derive/ian$/iang/
+      - derive/iang$/ian/
+      - derive/uan$/uang/
+      - derive/uang$/uan/
+      - derive/ong$/on/
+      - derive/on$/ong/
+
+      ### 超级简拼
+      - erase/^hm$/ # 响应超级简拼,取消「噷 hm」的独占(如果拼音词库有这个音节的话,雾凇里没有)
+      - erase/^m$/ # 响应超级简拼,取消「呣 m」的独占(如果拼音词库有这个音节的话,雾凇里没有)
+      - erase/^n$/ # 响应超级简拼,取消「嗯 n」的独占(如果拼音词库有这个音节的话,雾凇里没有)
+      - erase/^ng$/ # 响应超级简拼,取消「嗯 ng」的独占(如果拼音词库有这个音节的话,雾凇里没有)
+
+      - abbrev/^([a-z]).+$/$1/ # 超级简拼
+      - abbrev/^([zcs]h).+$/$1/ # 超级简拼中,zh ch sh 视为整体(ch'sh → 城市),而不是像这样分开(c'h's'h → 吃好睡好)。
+      - abbrev/^([a-z]i).+$/$1/
+
+      ### v u 转换
+      # 雾凇的词库严格按照正确的 u v(ü) 注音的,支持使用 qu/qv nue/nve 来输入 qu nve
+      - derive/^([nl])ve$/$1ue/
+      - derive/^([jqxy])u/$1v/
+      # 以防引入的其他词库没按照正确方式注音,也做一个转换
+      - derive/^([nl])ue$/$1ve/
+      - derive/^([jqxy])v/$1u/
+
+      ### 自动纠错
+      ########## START 这几个有副作用的规则圈起来,方便取舍
+      # 这些规则对全拼简拼混输有副作用:如「x'ai 喜爱」被纠错为「xia 下」
+      # zh、ch、sh
+      - 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/ # hzi → zhi
+      # - derive/([zcs])h([aeiu])$/$1$2h/ # zih → zhi
+      ########## END
+      # ai
+      - derive/^([wghk])ai$/$1ia/ # wia → wai
+      # ei
+      - derive/([wfghkz])ei$/$1ie/ # wie → wei
+      # ie
+      - derive/([jqx])ie$/$1ei/ # jei → jie
+      # ao
+      - derive/([rtypsdghklzcbnm])ao$/$1oa/
+      # ou
+      - derive/([ypfm])ou$/$1uo/
+      # uo(无)
+      # ang
+      - derive/([wrtypsdfghklzcbnm])ang$/$1nag/
+      - derive/([wrtypsdfghklzcbnm])ang$/$1agn/
+      # eng
+      - derive/([wrtpsdfghklzcbnm])eng$/$1neg/
+      - derive/([wrtpsdfghklzcbnm])eng$/$1egn/
+      # ing
+      - derive/([qtypdjlxbnm])ing$/$1nig/
+      - derive/([qtypdjlxbnm])ing$/$1ign/
+      # ong
+      - derive/([rtysdghklzcn])ong$/$1nog/
+      - derive/([rtysdghklzcn])ong$/$1ogn/
+      # iao
+      - derive/([qtpdjlxbnm])iao$/$1ioa/
+      - derive/([qtpdjlxbnm])iao$/$1oia/
+      # ui
+      - derive/([rtsghkzc])ui$/$1iu/
+      # iu
+      - derive/([qjlxnm])iu$/$1ui/
+      # iang
+      - derive/([qjlxn])iang$/$1aing/
+      - derive/([qjlxn])iang$/$1inag/
+      # ua
+      - derive/([g|k|h|zh|sh])ua$/$1au/
+      # uai
+      - derive/([g|h|k|zh|ch|sh])uai$/$1aui/
+      # - derive/([g|h|k|zh|ch|sh])uai$/$1uia/ # 和「会啊、追啊」等常用词有冲突
+      # uan
+      - derive/([qrtysdghjklzxcn])uan$/$1aun/
+      # - derive/([qrtysdghjklzxcn])uan$/$1una/ # 和「去哪、露娜」等常用词有冲突
+      # ue
+      - derive/([nlyjqx])ue$/$1eu/
+      # uang
+      - derive/([g|h|k|zh|ch|sh])uang$/$1aung/
+      - derive/([g|h|k|zh|ch|sh])uang$/$1uagn/
+      - derive/([g|h|k|zh|ch|sh])uang$/$1unag/
+      - derive/([g|h|k|zh|ch|sh])uang$/$1augn/
+      # iong
+      - derive/([jqx])iong$/$1inog/
+      - derive/([jqx])iong$/$1oing/
+      - derive/([jqx])iong$/$1iogn/
+      - derive/([jqx])iong$/$1oign/
+      # 其他
+      - derive/([rtsdghkzc])o(u|ng)$/$1o/ # do → dou|dong
+      - derive/(.+)ong$/$1on/ # lon → long
+      - derive/([tl])eng$/$1en/ # ten → teng
+      - derive/([qwrtypsdfghjklzxcbnm])([aeio])ng$/$1ng/ # lng → lang、leng、ling、long

+ 0 - 147
custom/rime_ice.custom.yaml

@@ -1,147 +0,0 @@
-# 添加了模糊音的自定义配置文件 rime_ice.custom.yaml
-# https://github.com/Mark24Code/rime-auto-deploy/issues/1
-patch:
-  # 拼写设定
-  speller:
-    # 如果不想让什么标点直接上屏,可以加在 alphabet,或者编辑标点符号为两个及以上的映射
-    alphabet: zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
-    delimiter: " '"  # 第一位<空格>是拼音之间的分隔符;第二位<'>表示可以手动输入单引号来分割拼音。
-    algebra:
-      ### 模糊音
-      # 声母
-      - derive/^([zcs])h/$1/          # z c s → zh ch sh
-      - derive/^([zcs])([^h])/$1h$2/  # zh ch sh → z c s
-      - derive/^l/n/  # n → l
-      - derive/^n/l/  # l → n
-      - derive/^f/h/  # …………
-      - derive/^h/f/  # …………
-      # - derive/^l/r/
-      # - derive/^r/l/
-      # - derive/^g/k/
-      # - derive/^k/g/
-      # 韵母
-      # - derive/ang/an/
-      # - derive/an/ang/
-      # - derive/eng/en/
-      # - derive/en/eng/
-      # - derive/in/ing/
-      # - derive/ing/in/
-      # - derive/ian/iang/
-      # - derive/iang/ian/
-      # - derive/uan/uang/
-      # - derive/uang/uan/
-      # - derive/ai/an/
-      # - derive/an/ai/
-      # - derive/ong/un/
-      # - derive/un/ong/
-      # - derive/ong/on/
-      # - derive/iong/un/
-      # - derive/un/iong/
-      # - derive/ong/eng/
-      # - derive/eng/ong/
-      # 拼音音节
-      # - derive/^fei$/hui/
-      # - derive/^hui$/fei/
-      # - derive/^hu$/fu/
-      # - derive/^fu$/hu/
-      # - derive/^wang$/huang/
-      # - derive/^huang$/wang/
-
-      ### 旧时的拼写规则
-      # - derive/un$/uen/
-      # - derive/ui$/uei/
-      # - derive/iu$/iou/
-
-      ### 超级简拼
-      - erase/^hm$/ # 响应超级简拼,取消「噷 hm」的独占
-      - erase/^m$/  # 响应超级简拼,取消「呣 m」的独占
-      - erase/^n$/  # 响应超级简拼,取消「嗯 n」的独占
-      - erase/^ng$/ # 响应超级简拼,取消「嗯 ng」的独占
-      - abbrev/^([a-z]).+$/$1/   # 超级简拼
-      - abbrev/^([zcs]h).+$/$1/  # 超级简拼中,zh ch sh 视为整体(ch'sh → 城市),而不是像这样分开(c'h's'h → 吃好睡好)。
-
-      ### v u 转换,增加对词库中「nue/nve」「qu/qv」等不同注音的支持
-      - derive/^([nl])ue$/$1ve/
-      - derive/^([nl])ve$/$1ue/
-      - derive/^([jqxy])u/$1v/
-      - derive/^([jqxy])v/$1u/
-
-      ### 可输入大写字母,做了 xlit 转写是为了适配双拼
-      - xlit/āḃçďēḟḡĥīĵḱĺḿńōṕɋŕśťūṽẃẋȳź/ABCDEFGHIJKLMNOPQRSTUVWXYZ/
-
-      ### 自动纠错
-      # 有些规则对全拼简拼混输有副作用:如「x'ai 喜爱」被纠错为「xia 下」
-      # zh、ch、sh
-      - 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/  # hzi → zhi
-      - derive/([zcs])h([aeiu])$/$1$2h/  # zih → zhi
-      # ai
-      - derive/^([wghk])ai$/$1ia/  # wia → wai
-      # ia
-      - derive/([qjx])ia$/$1ai/  # qai → qia
-      # ei
-      - derive/([wtfghkz])ei$/$1ie/
-      # ie
-      - derive/([jqx])ie$/$1ei/
-      # ao
-      - derive/([rtypsdghklzcbnm])ao$/$1oa/
-      # ou
-      - derive/([ypfm])ou$/$1uo/
-      # uo(无)
-      # an
-      - derive/([wrtypsdfghklzcbnm])an$/$1na/
-      # en
-      - derive/([wrpsdfghklzcbnm])en$/$1ne/
-      # ang
-      - derive/([wrtypsdfghklzcbnm])ang$/$1nag/
-      - derive/([wrtypsdfghklzcbnm])ang$/$1agn/
-      # eng
-      - derive/([wrtpsdfghklzcbnm])eng$/$1neg/
-      - derive/([wrtpsdfghklzcbnm])eng$/$1egn/
-      # ing
-      - derive/([qtypdjlxbnm])ing$/$1nig/
-      - derive/([qtypdjlxbnm])ing$/$1ign/
-      # ong
-      - derive/([rtysdghklzcn])ong$/$1nog/
-      - derive/([rtysdghklzcn])ong$/$1ogn/
-      # iao
-      - derive/([qtpdjlxbnm])iao$/$1ioa/
-      - derive/([qtpdjlxbnm])iao$/$1oia/
-      # ui
-      - derive/([rtsghkzc])ui$/$1iu/
-      # iu
-      - derive/([qjlxnm])iu$/$1ui/
-      # ian
-      - derive/([qtpdjlxbnm])ian$/$1ain/
-      # - derive/([qtpdjlxbnm])ian$/$1ina/ # 和「李娜、蒂娜、缉拿」等常用词有冲突
-      # in
-      - derive/([qypjlxbnm])in$/$1ni/
-      # iang
-      - derive/([qjlxn])iang$/$1aing/
-      - derive/([qjlxn])iang$/$1inag/
-      # ua
-      - derive/([g|k|h|zh|sh])ua$/$1au/
-      # uai
-      - derive/([g|h|k|zh|ch|sh])uai$/$1aui/
-      - derive/([g|h|k|zh|ch|sh])uai$/$1uia/
-      # uan
-      - derive/([qrtysdghjklzxcn])uan$/$1aun/
-      # - derive/([qrtysdghjklzxcn])uan$/$1una/ # 和「去哪、露娜」等常用词有冲突
-      # un
-      - derive/([qrtysdghjklzxc])un$/$1nu/
-      # ue
-      - derive/([nlyjqx])ue$/$1eu/
-      # uang
-      - derive/([g|h|k|zh|ch|sh])uang$/$1aung/
-      - derive/([g|h|k|zh|ch|sh])uang$/$1uagn/
-      - derive/([g|h|k|zh|ch|sh])uang$/$1unag/
-      - derive/([g|h|k|zh|ch|sh])uang$/$1augn/
-      # iong
-      - derive/([jqx])iong$/$1inog/
-      - derive/([jqx])iong$/$1oing/
-      - derive/([jqx])iong$/$1iogn/
-      - derive/([jqx])iong$/$1oign/
-      # 其他
-      - derive/([rtsdghkzc])o(u|ng)$/$1o/ # do → dou|dong
-      - derive/ong$/on/ # lon → long
-      - derive/([tl])eng$/$1en/ # ten → teng
-      - derive/([qwrtypsdfghjklzxcbnm])([aeio])ng$/$1ng/ # lng → lang、leng、ling、long

+ 17 - 17
custom/squirrel.custom.yaml

@@ -1,28 +1,28 @@
 patch:
   # ascii_mode、inline、no_inline、vim_mode 等等设定,可参考 /Library/Input Methods/Squirrel.app/Contents/SharedSupport/squirrel.yaml
   app_options:
-    #com.raycast.macos:
-    #  ascii_mode: true   # 初始爲西文模式
-    #com.microsoft.VSCode:
-    #  ascii_mode: true   # 初始爲西文模式
-    #  vim_mode: true
-    #md.obsidian:
-    #  ascii_mode: true   # 初始爲西文模式
-    #  vim_mode: true
-    #org.alacritty:
-    #  ascii_mode: true   # 初始爲西文模式
-    #com.jetbrains.intellij:
-    #  ascii_mode: true
-    #  vim_mode: true
+    com.apple.Spotlight: # 聚焦搜索
+      ascii_mode: false # true默认英文,false默认中文
+    com.apple.Terminal: # 终端
+      ascii_mode: true
+    com.microsoft.VSCode: # Visual Studio Code
+      ascii_mode: true
+      ascii_punct: true # 中文状态输出英文标点(半角)
+    com.termius-dmg.mac: # termius
+      ascii_mode: true
+    com.jetbrains.intellij: # idea
+      ascii_mode: true
+    com.jetbrains.CLion:
+      ascii_mode: true
 
   style:
     # 选择皮肤,亮色与暗色主题
     # color_scheme: purity_of_form_custom
     # color_scheme_dark: purity_of_form_custom
-    # color_scheme: macos_light
-    # color_scheme_dark: macos_dark
-    color_scheme: mac_light
-    color_scheme_dark: mac_dark
+    color_scheme: macos_light
+    color_scheme_dark: macos_dark
+    # color_scheme: mac_light
+    # color_scheme_dark: mac_dark
 
     # 预设选项:(可被皮肤覆盖;如果皮肤没写,则默认使用这些属性。)
     text_orientation: horizontal # horizontal | vertical

+ 0 - 60
custom/weasel.custom.yaml

@@ -1,60 +0,0 @@
-patch:
-  style:
-    # color_scheme: ms_sogou
-    color_scheme: ms_wechat_light
-    # color_scheme: ms_wechat_dark
-
-    font_face: "微软雅黑"
-    font_point: 14
-    horizontal: true
-    inline_preedit: true
-    label_font_point: 14
-    layout:
-      border: 2
-      round_corner: 0
-      margin_x: 5
-      margin_y: 5
-      hilite_padding: 5
-      hilite_spacing: 5
-      spacing: 5
-      candidate_spacing: 20
-
-  preset_color_schemes:
-    ms_sogou:
-      name: 搜狗
-      author: Mark24Code
-      back_color: 0xFFFFFF
-      border_color: 0xFFFFFF
-      text_color: 0xD9884F
-      hilited_text_color: 0xD9884F
-      hilited_back_color: 0xFFFFFF
-      hilited_candidate_text_color: 0x0D4FE9
-      hilited_candidate_back_color: 0xFFFFFF
-      candidate_text_color: 0xD67F42
-      comment_text_color: 0xFFFFFF
-
-    ms_wechat_light:
-      name: 微信light
-      author: Mark24Code
-      back_color: 0xFFFFFF
-      border_color: 0xFFFFFF
-      text_color: 0x69AD2E
-      hilited_text_color: 0xFFFFFF
-      hilited_back_color: 0x69AD2E
-      hilited_candidate_text_color: 0xFFFFFF
-      hilited_candidate_back_color: 0x69AD2E
-      candidate_text_color: 0x69AD2E
-      comment_text_color: 0xFFFFFF
-
-    ms_wechat_dark:
-      name: 微信dark
-      author: Mark24Code
-      back_color: 0x000000
-      border_color: 0x000000
-      text_color: 0x69AD2E
-      hilited_text_color: 0xD8D8D8
-      hilited_back_color: 0x69AD2E
-      hilited_candidate_text_color: 0xD8D8D8
-      hilited_candidate_back_color: 0x69AD2E
-      candidate_text_color: 0x69AD2E
-      comment_text_color: 0xFFFFFF