소스 검색

wanxiang first commit

Dew-OF-Aurora 2 달 전
부모
커밋
4145f24bac
4개의 변경된 파일22개의 추가작업 그리고 371개의 파일을 삭제
  1. 5 21
      custom/default.custom.yaml
  2. 0 86
      custom/rime_frost.custom.yaml
  3. 1 264
      custom/squirrel.custom.yaml
  4. 16 0
      custom/wanxiang.custom.yaml

+ 5 - 21
custom/default.custom.yaml

@@ -1,22 +1,6 @@
 patch:
-  schema_list:
-    - schema: rime_frost
-  menu/page_size: 8
-
-  # 方案选单相关
-  switcher:
-    caption: 「方案选单」
-    hotkeys:
-      - F4
-    save_options:
-      - ascii_punct
-      - traditionalization
-      - emoji
-      - full_shape
-      - search_single_char
-    fold_options: false
-    abbreviate_options: true
-    option_list_separator: " / "
-
-  key_binder/reduce_freq_cand: "Control+j" # 匹配当前输入码后隐藏指定的候选字词 或候选词条放到第四候选位置
-  key_binder/drop_cand: "Control+d" # 强制删词, 无视输入的编码
+  "switcher/hotkeys/+":
+    - F3
+  "switcher/fold_options/": true
+  "switcher/abbreviate_options/": false
+  "switcher/option_list_separator/": " | "

+ 0 - 86
custom/rime_frost.custom.yaml

@@ -1,86 +0,0 @@
-patch:
-  engine/processors/+:
-    - lua_processor@*cold_word_drop.processor
-  engine/filters/+:
-    - lua_filter@*cold_word_drop.filter
-
-  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
-
-  "speller/algebra":
-    - derive/^([zcs])h/$1/
-    - derive/^([zcs])([^h])/$1h$2/
-    - 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$/
-    - erase/^m$/
-    - erase/^n$/
-    - erase/^ng$/
-    - abbrev/^([a-z]).+$/$1/
-    - abbrev/^([zcs]h).+$/$1/
-    - abbrev/^([a-z]i).+$/$1/
-    - derive/^([nl])ve$/$1ue/
-    - derive/^([jqxy])u/$1v/
-    - derive/^([nl])ue$/$1ve/
-    - derive/^([jqxy])v/$1u/
-    - 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/
-    - derive/([wfghk])ai$/$1ia/
-    - derive/([wfghkz])ei$/$1ie/
-    - derive/([jqx])ie$/$1ei/
-    - derive/([rtypsdghklzcbnm])ao$/$1oa/
-    - derive/([ypfm])ou$/$1uo/
-    - derive/([wrtypsdfghklzcbnm])ang$/$1nag/
-    - derive/([wrtypsdfghklzcbnm])ang$/$1agn/
-    - derive/([wrtpsdfghklzcbnm])eng$/$1neg/
-    - derive/([wrtpsdfghklzcbnm])eng$/$1egn/
-    - derive/([qtypdjlxbnm])ing$/$1nig/
-    - derive/([qtypdjlxbnm])ing$/$1ign/
-    - derive/([rtysdghklzcn])ong$/$1nog/
-    - derive/([rtysdghklzcn])ong$/$1ogn/
-    - derive/([qtpdjlxbnm])iao$/$1ioa/
-    - derive/([qtpdjlxbnm])iao$/$1oia/
-    - derive/([rtsghkzc])ui$/$1iu/
-    - derive/([qjlxnm])iu$/$1ui/
-    - derive/([qjlxn])iang$/$1aing/
-    - derive/([qjlxn])iang$/$1inag/
-    - derive/([g|k|h|zh|sh])ua$/$1au/
-    - derive/([g|h|k|zh|ch|sh])uai$/$1aui/
-    - derive/([qrtysdghjklzxcn])uan$/$1aun/
-    - derive/([nlyjqx])ue$/$1eu/
-    - 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/
-    - derive/([jqx])iong$/$1inog/
-    - derive/([jqx])iong$/$1oing/
-    - derive/([jqx])iong$/$1iogn/
-    - derive/([jqx])iong$/$1oign/
-    - derive/([rtsdghkzc])o(u|ng)$/$1o/
-    - derive/(.+)ong$/$1on/
-    - derive/([tl])eng$/$1en/
-    - derive/([qwrtypsdfghjklzxcbnm])([aeio])ng$/$1ng/

+ 1 - 264
custom/squirrel.custom.yaml

@@ -26,179 +26,12 @@ patch:
     border_width: 0
     line_spacing: 5
     spacing: 10
-    #candidate_format: '%c. %@'
-    #base_offset: 6
     font_face: "Lucida Grande"
     font_point: 21
     label_font_point: 18
     comment_font_point: 18
 
-  # 皮肤列表
   preset_color_schemes:
-    macos_light:
-      name: "MacOS 浅色/MacOS Light"
-      author: 小码哥
-      font_face: "PingFangSC" # 字体及大小
-      font_point: 16
-      label_font_face: "PingFangSC" # 序号字体及大小
-      label_font_point: 12
-      comment_font_face: "PingFangSC" # 注字体及大小
-      comment_font_point: 16
-      candidate_format: "%c\u2005%@\u2005" # 编号 %c 和候选词 %@ 前后的空间
-      candidate_list_layout: linear # 候选排布:层叠 stacked | 行 linear
-      text_orientation: horizontal # 行文向: 横 horizontal | 纵 vertical
-      inline_preedit: true # 拼音位于: 候选框 false | 行内 true
-      translucency: false # 磨砂: false | true
-      mutual_exclusive: false # 色不叠加: false | true
-      border_height: 1 # 外边框 高
-      border_width: 1 # 外边框 宽
-      corner_radius: 5 # 外边框 圆角半径
-      hilited_corner_radius: 5 # 选中框 圆角半径
-      surrounding_extra_expansion: 0 # 候选项背景相对大小?
-      shadow_size: 0 # 阴影大小
-      line_spacing: 5 # 行间距
-      base_offset: 0 # 字基高
-      alpha: 1 # 透明度,0~1
-      spacing: 10 # 拼音与候选项之间的距离 (inline_preedit: false)
-      color_space: srgb # 色彩空间: srgb | display_p3
-      back_color: 0xFFFFFF # 底色
-      hilited_candidate_back_color: 0xD75A00 # 选中底色
-      label_color: 0x999999 # 序号颜色
-      hilited_candidate_label_color: 0xFFFFFF # 选中序号颜色
-      candidate_text_color: 0x3c3c3c # 文字颜色
-      hilited_candidate_text_color: 0xFFFFFF # 选中文字颜色
-      comment_text_color: 0x999999 # 注颜色
-      hilited_comment_text_color: 0xFFFFFF # 选中注颜色
-      text_color: 0x424242 # 拼音颜色 (inline_preedit: false)
-      hilited_text_color: 0xFFFFFF # 选中拼音颜色 (inline_preedit: false)
-      candidate_back_color: 0xFFFFFF # 候选项底色
-      # preedit_back_color:                   # 拼音底色 (inline_preedit: false)
-      hilited_back_color: 0xD75A00 # 选中拼音底色 (inline_preedit: false)
-      border_color: 0xFFFFFF # 外边框颜色
-
-    macos_dark:
-      name: "MacOS 深色/MacOS Dark"
-      author: 小码哥
-      font_face: "PingFangSC" # 字体及大小
-      font_point: 16
-      label_font_face: "PingFangSC" # 序号字体及大小
-      label_font_point: 12
-      comment_font_face: "PingFangSC" # 注字体及大小
-      comment_font_point: 16
-      candidate_format: "%c\u2005%@\u2005" # 编号 %c 和候选词 %@ 前后的空间
-      candidate_list_layout: linear # 候选排布:层叠 stacked | 行 linear
-      text_orientation: horizontal # 行文向: 横 horizontal | 纵 vertical
-      inline_preedit: true # 拼音位于: 候选框 false | 行内 true
-      translucency: false # 磨砂: false | true
-      mutual_exclusive: false # 色不叠加: false | true
-      border_height: 1 # 外边框 高
-      border_width: 1 # 外边框 宽
-      corner_radius: 5 # 外边框 圆角半径
-      hilited_corner_radius: 5 # 选中框 圆角半径
-      surrounding_extra_expansion: 0 # 候选项背景相对大小?
-      shadow_size: 0 # 阴影大小
-      line_spacing: 5 # 行间距
-      base_offset: 0 # 字基高
-      alpha: 1 # 透明度,0~1
-      spacing: 10 # 拼音与候选项之间的距离 (inline_preedit: false)
-      color_space: srgb # 色彩空间: srgb | display_p3
-      back_color: 0x1f1e2d # 底色
-      hilited_candidate_back_color: 0xD75A00 # 选中底色
-      label_color: 0x999999 # 序号颜色
-      hilited_candidate_label_color: 0xFFFFFF # 选中序号颜色
-      candidate_text_color: 0xe9e9ea # 文字颜色
-      hilited_candidate_text_color: 0xFFFFFF # 选中文字颜色
-      comment_text_color: 0x999999 # 注颜色
-      hilited_comment_text_color: 0x999999 # 选中注颜色
-      text_color: 0x808080 # 拼音颜色 (inline_preedit: false)
-      hilited_text_color: 0xFFFFFF # 选中拼音颜色 (inline_preedit: false)
-      candidate_back_color: 0x1f1e2d # 候选项底色
-      # preedit_back_color:                   # 拼音底色 (inline_preedit: false)
-      hilited_back_color: 0xD75A00 # 选中拼音底色 (inline_preedit: false)
-      border_color: 0x050505 # 外边框颜色
-
-    wechat_light:
-      name: "微信浅色/Wechat Light"
-      author: 小码哥
-      font_face: "PingFangSC" # 字体及大小
-      font_point: 16
-      label_font_face: "PingFangSC" # 序号字体及大小
-      label_font_point: 13
-      comment_font_face: "PingFangSC" # 注字体及大小
-      comment_font_point: 16
-      candidate_format: "%c\u2005%@\u2005" # 编号 %c 和候选词 %@ 前后的空间
-      candidate_list_layout: linear # 候选排布:层叠 stacked | 行 linear
-      text_orientation: horizontal # 行文向: 横 horizontal | 纵 vertical
-      inline_preedit: true # 拼音位于: 候选框 false | 行内 true
-      translucency: false # 磨砂: false | true
-      mutual_exclusive: false # 色不叠加: false | true
-      border_height: 1 # 外边框 高
-      border_width: 1 # 外边框 宽
-      corner_radius: 5 # 外边框 圆角半径
-      hilited_corner_radius: 5 # 选中框 圆角半径
-      surrounding_extra_expansion: 0 # 候选项背景相对大小?
-      shadow_size: 0 # 阴影大小
-      line_spacing: 5 # 行间距
-      base_offset: 0 # 字基高
-      alpha: 1 # 透明度,0~1
-      spacing: 10 # 拼音与候选项之间的距离 (inline_preedit: false)
-      color_space: srgb # 色彩空间: srgb | display_p3
-      back_color: 0xFFFFFF # 底色
-      hilited_candidate_back_color: 0x79af22 # 选中底色
-      label_color: 0x999999 # 序号颜色
-      hilited_candidate_label_color: 0xFFFFFF # 选中序号颜色
-      candidate_text_color: 0x3c3c3c # 文字颜色
-      hilited_candidate_text_color: 0xFFFFFF # 选中文字颜色
-      comment_text_color: 0x999999 # 注颜色
-      hilited_comment_text_color: 0x999999 # 选中注颜色
-      text_color: 0x424242 # 拼音颜色 (inline_preedit: false)
-      hilited_text_color: 0x999999 # 选中拼音颜色 (inline_preedit: false)
-      candidate_back_color: 0xFFFFFF # 候选项底色
-      # preedit_back_color:                   # 拼音底色 (inline_preedit: false)
-      hilited_back_color: 0x79af22 # 选中拼音底色 (inline_preedit: false)
-      border_color: 0xFFFFFF # 外边框颜色
-
-    wechat_dark:
-      name: "微信深色/Wechat Dark"
-      author: 小码哥
-      font_face: "PingFangSC" # 字体及大小
-      font_point: 16
-      label_font_face: "PingFangSC" # 序号字体及大小
-      label_font_point: 13
-      comment_font_face: "PingFangSC" # 注字体及大小
-      comment_font_point: 16
-      candidate_format: "%c\u2005%@\u2005" # 编号 %c 和候选词 %@ 前后的空间
-      candidate_list_layout: linear # 候选排布:层叠 stacked | 行 linear
-      text_orientation: horizontal # 行文向: 横 horizontal | 纵 vertical
-      inline_preedit: true # 拼音位于: 候选框 false | 行内 true
-      translucency: false # 磨砂: false | true
-      mutual_exclusive: false # 色不叠加: false | true
-      border_height: 1 # 外边框 高
-      border_width: 1 # 外边框 宽
-      corner_radius: 5 # 外边框 圆角半径
-      hilited_corner_radius: 5 # 选中框 圆角半径
-      surrounding_extra_expansion: 0 # 候选项背景相对大小?
-      shadow_size: 0 # 阴影大小
-      line_spacing: 5 # 行间距
-      base_offset: 0 # 字基高
-      alpha: 1 # 透明度,0~1
-      spacing: 10 # 拼音与候选项之间的距离 (inline_preedit: false)
-      color_space: srgb # 色彩空间: srgb | display_p3
-      back_color: 0x151515 # 底色
-      hilited_candidate_back_color: 0x79af22 # 选中底色
-      label_color: 0x999999 # 序号颜色
-      hilited_candidate_label_color: 0xFFFFFF # 选中序号颜色
-      candidate_text_color: 0xbbbbbb # 文字颜色
-      hilited_candidate_text_color: 0xFFFFFF # 选中文字颜色
-      comment_text_color: 0x999999 # 注颜色
-      hilited_comment_text_color: 0xFFFFFF # 选中注颜色
-      text_color: 0xbbbbbb # 拼音颜色 (inline_preedit: false)
-      hilited_text_color: 0x999999 # 选中拼音颜色 (inline_preedit: false)
-      candidate_back_color: 0x151515 # 候选项底色
-      # preedit_back_color:                   # 拼音底色 (inline_preedit: false)
-      hilited_back_color: 0x79af22 # 选中拼音底色 (inline_preedit: false)
-      border_color: 0x292929 # 外边框颜色
-
     mac_light:
       name: Mac浅色
       horizontal: true # true横排,false竖排
@@ -222,6 +55,7 @@ patch:
       hilited_candidate_text_color: 0xFFFFFF # 第一候选项文字颜色
       hilited_candidate_label_color: 0xFFFFFF # 第一候选项编号颜色
       hilited_comment_text_color: 0x999999 # 注解文字高亮
+
     mac_dark:
       name: Mac深色
       horizontal: true # true横排,false竖排
@@ -245,100 +79,3 @@ patch:
       hilited_candidate_text_color: 0xFFFFFF # 第一候选项文字颜色
       hilited_candidate_label_color: 0xFFFFFF # 第一候选项编号颜色
       hilited_comment_text_color: 0x999999 # 注解文字高亮
-
-    mac_green:
-      name: Mac绿色
-      horizontal: true # true横排,false竖排
-      candidate_format: "%c %@ " # 用 1/6 em 空格 U+2005 来控制编号 %c 和候选词 %@ 前后的空间
-      corner_radius: 5 # 窗口圆角
-      hilited_corner_radius: 5 # 高亮圆角
-      line_spacing: 10 # 行间距(适用于竖排)
-      border_height: 4 # 窗口上下高度,大于圆角半径才生效
-      border_width: 4 # 窗口左右宽度,大于圆角半径才生效
-      font_face: "PingFangSC" # 候选词字体
-      font_point: 21 # 候选字大小
-      label_font_point: 13 # 候选编号大小
-      text_color: 0x424242 # 拼音行文字颜色
-      back_color: 0xFFFFFF # 候选条背景色
-      border_color: 0xFFFFFF # 边框色
-      label_color: 0x999999 # 预选栏编号颜色
-      candidate_text_color: 0x3c3c3c # 预选项文字颜色
-      comment_text_color: 0x999999 # 拼音等提示文字颜色
-      hilited_text_color: 0x999999 # 高亮拼音 (需要开启内嵌编码)
-      hilited_candidate_back_color: 0x32A14C # 第一候选项背景色
-      hilited_candidate_text_color: 0xFFFFFF # 第一候选项文字颜色
-      hilited_candidate_label_color: 0xFFFFFF # 第一候选项编号颜色
-      hilited_comment_text_color: 0x999999 # 注解文字高亮
-
-    mac_orange:
-      name: Mac橙色
-      horizontal: true # true横排,false竖排
-      candidate_format: "%c %@ " # 用 1/6 em 空格 U+2005 来控制编号 %c 和候选词 %@ 前后的空间
-      corner_radius: 5 # 窗口圆角
-      hilited_corner_radius: 5 # 高亮圆角
-      line_spacing: 10 # 行间距(适用于竖排)
-      border_height: 4 # 窗口上下高度,大于圆角半径才生效
-      border_width: 4 # 窗口左右宽度,大于圆角半径才生效
-      font_face: "PingFangSC" # 候选词字体
-      font_point: 21 # 候选字大小
-      label_font_point: 13 # 候选编号大小
-      text_color: 0x424242 # 拼音行文字颜色
-      back_color: 0xFFFFFF # 候选条背景色
-      border_color: 0xFFFFFF # 边框色
-      label_color: 0x999999 # 预选栏编号颜色
-      candidate_text_color: 0x3c3c3c # 预选项文字颜色
-      comment_text_color: 0x999999 # 拼音等提示文字颜色
-      hilited_text_color: 0x999999 # 高亮拼音 (需要开启内嵌编码)
-      hilited_candidate_back_color: 0x0E6BD8 # 第一候选项背景色
-      hilited_candidate_text_color: 0xFFFFFF # 第一候选项文字颜色
-      hilited_candidate_label_color: 0xFFFFFF # 第一候选项编号颜色
-      hilited_comment_text_color: 0x999999 # 注解文字高亮
-
-    mac_blue:
-      name: Mac浅蓝
-      horizontal: true # true横排,false竖排
-      candidate_format: "%c %@ " # 用 1/6 em 空格 U+2005 来控制编号 %c 和候选词 %@ 前后的空间
-      corner_radius: 5 # 窗口圆角
-      font_face: "PingFangSC" # 候选词字体
-      font_point: 21 # 候选字大小
-      label_font_point: 13 # 候选编号大小
-      line_spacing: 10 # 行间距(适用于竖排)
-      text_color: 0x424242 # 拼音行文字颜色
-      back_color: 0xFFFFFF # 候选条背景色
-      border_color: 0xFFFFFF # 边框色
-      label_color: 0x999999 # 预选栏编号颜色
-      candidate_text_color: 0x3c3c3c # 预选项文字颜色
-      comment_text_color: 0x999999 # 拼音等提示文字颜色
-      hilited_text_color: 0x999999 # 高亮拼音 (需要开启内嵌编码)
-      hilited_back_color: 0xF8AA4D # 第一候选项背景背景色
-      hilited_candidate_text_color: 0xFFFFFF # 第一候选项文字颜色
-      hilited_candidate_label_color: 0xFFFFFF # 第一候选项编号颜色
-      hilited_comment_text_color: 0x999999 # 注解文字高亮
-
-    win10:
-      horizontal: true # true横排,false竖排
-      candidate_format: "%c %@  " # 如果是竖排建议改为 "%c\u2005%@"
-      font_point: 17 # 候选文字大小
-      label_font_point: 16 # 候选编号大小
-      corner_radius: 0 # 候选条圆角
-      border_width: 6 # 窗口左右宽度
-      border_height: 6 # 窗口左右高度
-      margin_x: 12 # 字起始距左边距离
-      margin_y: 12 # 字上下边距
-      spacing: 10 # 间距
-      candidate_spacing: 24 # 候选字间隔
-      line_spacing: 10 # 行间距(适用于竖排)
-      hilite_spacing: 8 # 序号和候选字之间的间隔
-      hilite_padding: 12 # 候选字背景色色块高度 若想候选字背景色块无边界填充候选框,仅需其高度和候选字上下边距一致即可
-      round_corner: 0 # 候选字背景色块圆角幅度
-      candidate_text_color: 0x000000 # 预选项文字颜色
-      comment_text_color: 0x888888 # 拼音等提示文字颜色
-      text_color: 0x000000 # 拼音行文字颜色
-      back_color: 0xffffff # 候选条背景色,24位色值,16进制,BGR顺序
-      hilited_text_color: 0x000000 # 高亮拼音 (需要开启内嵌编码)
-      hilited_back_color: 0xffffff # 第一候选项背景背景色
-      hilited_candidate_text_color: 0xffffff # 第一候选项文字颜色
-      hilited_candidate_back_color: 0xcc8f29 # 候选文字背景色
-      hilited_comment_text_color: 0xffffff # 注解文字高亮
-      hilited_label_color: 0xffffff # 已选字的数字的颜色
-      label_color: 0x888888 # 预选栏编号颜色

+ 16 - 0
custom/wanxiang.custom.yaml

@@ -0,0 +1,16 @@
+patch:
+  "speller/algebra/+":
+    - derive/^([zcs])h/$1/
+    - derive/^([zcs])([^h])/$1h$2/
+    - 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/