From e4ff45d7e2b72c96e8238d3ab15b49a6dfd9692d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=B0=B8=E5=85=A8?= Date: Tue, 20 Jan 2026 06:38:05 +0000 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86config=E5=8F=8A?= =?UTF-8?q?=E5=85=B6=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/default.custom.yaml | 42 +++++++ config/default.yaml | 252 +++++++++++++++++++++++++++++++++++++ config/weasel.custom.yaml | 26 ++++ config/weasel.yaml | 182 +++++++++++++++++++++++++++ 4 files changed, 502 insertions(+) create mode 100644 config/default.custom.yaml create mode 100644 config/default.yaml create mode 100644 config/weasel.custom.yaml create mode 100644 config/weasel.yaml diff --git a/config/default.custom.yaml b/config/default.custom.yaml new file mode 100644 index 0000000..fb40eb8 --- /dev/null +++ b/config/default.custom.yaml @@ -0,0 +1,42 @@ +customization: + distribution_code_name: Weasel + distribution_version: 0.17.4 + generator: "Rime::SwitcherSettings" + modified_time: "Thu Jan 15 09:51:09 2026" + rime_version: 1.13.1 +patch: + schema_list: + - {schema: wanxiang} + menu: + page_size: 3 # 候选词个数,不得超过6个,7890代表声调 + + # 中西文切换 +# +# good_old_caps_lock: +# true 切换大写 +# false 切换中英 +# macOS 偏好设置的优先级更高,如果勾选【使用大写锁定键切换“ABC”输入法】则始终会切换输入法。 +# +# 切换中英: +# 不同的选项表示:打字打到一半时按下了 CapsLock、Shift、Control 后: +# commit_code 上屏原始的编码,然后切换到英文 +# commit_text 上屏拼出的词句,然后切换到英文 +# clear 清除未上屏内容,然后切换到英文 +# inline_ascii 切换到临时英文模式,按回车上屏后回到中文状态 +# noop 屏蔽快捷键,不切换中英,但不要屏蔽 CapsLock + ascii_composer: + good_old_caps_lock: true # true | false + switch_key: + Caps_Lock: clear # commit_code | commit_text | clear + Shift_L: noop # 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: commit_code # commit_code | commit_text | inline_ascii | clear | noop + key_binder: + bindings: + # 翻页 , . + - { when: paging, accept: comma, send: Page_Up } + - { when: has_menu, accept: period, send: Page_Down } + - { when: always, accept: Control+space, toggle: ascii_mode } + - { when: has_menu, accept: Shift+Shift_L, send: 2} + - { when: has_menu, accept: Shift+Shift_R, send: 3} \ No newline at end of file diff --git a/config/default.yaml b/config/default.yaml new file mode 100644 index 0000000..f747cfb --- /dev/null +++ b/config/default.yaml @@ -0,0 +1,252 @@ +# Rime default settings +# encoding: utf-8 + + +# 要比共享目录的同名文件的 config_version 大才可以生效 +config_version: 'LTS' + + +# 方案列表 +schema_list: + - schema: wanxiang + +# - schema: wanxiang_t9 +# 菜单 +menu: + page_size: 5 # 候选词个数,不得超过6个,7890代表声调 + alternative_select_labels: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] # 修改候选项标签,Windows用这行会自动加点 + #alternative_select_labels: [ ⒈, ⒉, ⒊, ⒋, ⒌, ⒍, ⒎, ⒏, ⒐, ⒑ ] # 修改候选项标签,Linux用这行用了加点字符 + #alternative_select_keys: ASDFGHJKL # 这里战略性占用选字按键,如编码字符占用数字键,则需另设选字键 + + +# 方案选单相关 +switcher: + caption: 「方案选单」 + hotkeys: + - Control+grave + # - Alt+grave + save_options: # 开关记忆(方案中的 switches),从方案选单(而非快捷键)切换时会记住的选项,需要记忆的开关不能设定 reset + - ascii_punct + - s2t + - s2hk + - s2tw + - emoji + - full_shape + - prediction + - super_tips + - charset_filter + - chaifen_switch + - tone_display + - fuzhu_hint + - tone_hint + - full_pinyin + - chinese_english + - zh_only + - en_only + - search_single_char + fold_options: true # 呼出时是否折叠,多方案时建议折叠 true ,一个方案建议展开 false + abbreviate_options: true # 折叠时是否缩写选项 + option_list_separator: ' / ' # 折叠时的选项分隔符 + + +# 中西文切换 +# +# good_old_caps_lock: +# true 切换大写 +# false 切换中英 +# macOS 偏好设置的优先级更高,如果勾选【使用大写锁定键切换“ABC”输入法】则始终会切换输入法。 +# +# 切换中英: +# 不同的选项表示:打字打到一半时按下了 CapsLock、Shift、Control 后: +# commit_code 上屏原始的编码,然后切换到英文 +# commit_text 上屏拼出的词句,然后切换到英文 +# clear 清除未上屏内容,然后切换到英文 +# inline_ascii 切换到临时英文模式,按回车上屏后回到中文状态 +# noop 屏蔽快捷键,不切换中英,但不要屏蔽 CapsLock +ascii_composer: + good_old_caps_lock: true # true | false + switch_key: + Caps_Lock: clear # commit_code | commit_text | clear + #Shift_L: commit_code # commit_code | commit_text | inline_ascii | clear | noop + #Shift_R: commit_code # 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 + + +# 处理符合特定规则的输入码,如网址、反查 +# 此处配置较为通用的选项,各方案中另增加了和方案功能绑定的 patterns。 +recognizer: + patterns: + +# 快捷键 +key_binder: + bindings: + # Tab / Shift+Tab 切换光标至下/上一个拼音 + #- { when: composing, accept: Shift+Tab, send: Shift+Left } + #- { when: composing, accept: Tab, send: Shift+Right } + # Tab / Shift+Tab 翻页 + # - { when: has_menu, accept: Shift+Tab, send: Page_Up } + # - { when: has_menu, accept: Tab, send: Page_Down } + + # numbered_mode_switch: + # - { when: always, select: .next, accept: Control+Shift+1 } # 在最近的两个方案之间切换 + # - { when: always, select: .next, accept: Control+Shift+exclam } # 在最近的两个方案之间切换 + # - { when: always, toggle: ascii_mode, accept: Control+Shift+2 } # 切换中英 + # - { when: always, toggle: ascii_mode, accept: Control+Shift+at } # 切换中英 + # - { when: always, toggle: full_shape, accept: Control+Shift+5 } # 切换全半角 + # - { when: always, toggle: full_shape, accept: Control+Shift+percent } # 切换全半角 + + # emacs_editing: + # - { when: composing, accept: Control+p, send: Up } + # - { when: composing, accept: Control+n, send: Down } + # - { when: composing, accept: Control+b, send: Left } + # - { when: composing, accept: Control+f, send: Right } + # - { when: composing, accept: Control+a, send: Home } + # - { when: composing, accept: Control+e, send: End } + # - { when: composing, accept: Control+d, send: Delete } + - { when: composing, accept: Control+k, toggle: xxxxx } #释放Ctrl+k=ctrl+del 万象用来调序,且删除属于低频场景,建议双手操作 + # - { when: composing, accept: Control+h, send: BackSpace } + # - { when: composing, accept: Control+g, send: Escape } + # - { when: composing, accept: Control+bracketleft, send: Escape } + # - { when: composing, accept: Control+y, send: Page_Up } + # - { when: composing, accept: Alt+v, send: Page_Up } + # - { when: composing, accept: Control+v, send: Page_Down } + + # optimized_mode_switch: + # - { when: always, accept: Control+Shift+space, select: .next } + # - { when: always, accept: Shift+space, toggle: ascii_mode } + # - { when: always, accept: Control+comma, toggle: full_shape } + # - { when: always, accept: Control+period, toggle: ascii_punct } + # - { when: always, accept: Control+slash, toggle: traditionalization } + + # 将小键盘 0~9 . 映射到主键盘,数字金额大写的 Lua 如 R1234.5678 可使用小键盘输入 + - {accept: KP_0, send: 0, when: composing} + - {accept: KP_1, send: 1, when: composing} + - {accept: KP_2, send: 2, when: composing} + - {accept: KP_3, send: 3, when: composing} + - {accept: KP_4, send: 4, when: composing} + - {accept: KP_5, send: 5, when: composing} + - {accept: KP_6, send: 6, when: composing} + - {accept: KP_7, send: 7, when: composing} + - {accept: KP_8, send: 8, when: composing} + - {accept: KP_9, send: 9, when: composing} + - {accept: KP_Decimal, send: period , when: composing} + - {accept: KP_Multiply, send: asterisk, when: composing} + - {accept: KP_Add, send: plus, when: composing} + - {accept: KP_Subtract, send: minus, when: composing} + - {accept: KP_Divide, send: slash, when: composing} + - {accept: KP_Enter, send: Return, when: composing} + +# 按键速查 +# https://github.com/LEOYoon-Tsaw/Rime_collections/blob/master/Rime_description.md +# (没有 Command 键,不支持) +# accept 和 send 可用字段除 A-Za-z0-9 外,还包含以下键盘上实际有的键: +# (区分大小写) +# BackSpace 退格 +# Tab 水平定位符 +# Linefeed 换行 +# Clear 清除 +# Return 回车 +# Pause 暂停 +# Sys_Req 印屏 +# Escape 退出 +# Delete 删除 +# Home 原位 +# Left 左箭头 +# Up 上箭头 +# Right 右箭头 +# Down 下箭头 +# Prior、Page_Up 上翻 +# Next、Page_Down 下翻 +# End 末位 +# Begin 始位 +# Shift_L 左Shift +# Shift_R 右Shift +# Control_L 左Ctrl +# Control_R 右Ctrl +# Meta_L 左Meta +# Meta_R 右Meta +# Alt_L 左Alt +# Alt_R 右Alt +# Super_L 左Super +# Super_R 右Super +# Hyper_L 左Hyper +# Hyper_R 右Hyper +# Caps_Lock 大写锁 +# Shift_Lock 上档锁 +# Scroll_Lock 滚动锁 +# Num_Lock 小键板锁 +# Select 选定 +# Print 打印 +# Execute 运行 +# Insert 插入 +# Undo 还原 +# Redo 重做 +# Menu 菜单 +# Find 搜寻 +# Cancel 取消 +# Help 帮助 +# Break 中断 +# space 空格 +# exclam ! +# quotedbl " +# numbersign # +# dollar $ +# percent % +# ampersand & +# apostrophe ' +# parenleft ( +# parenright ) +# asterisk * +# plus + +# comma , +# minus - +# period . +# slash / +# colon : +# semicolon ; +# less < +# equal = +# greater > +# question ? +# at @ +# bracketleft [ +# backslash \ +# bracketright ] +# asciicircum ^ +# underscore _ +# grave ` +# braceleft { +# bar | +# braceright } +# asciitilde ~ +# KP_Space 小键板空格 +# KP_Tab 小键板水平定位符 +# KP_Enter 小键板回车 +# KP_Delete 小键板删除 +# KP_Home 小键板原位 +# KP_Left 小键板左箭头 +# KP_Up 小键板上箭头 +# KP_Right 小键板右箭头 +# KP_Down 小键板下箭头 +# KP_Prior、KP_Page_Up 小键板上翻 +# KP_Next、KP_Page_Down 小键板下翻 +# KP_End 小键板末位 +# KP_Begin 小键板始位 +# KP_Insert 小键板插入 +# KP_Equal 小键板等于 +# KP_Multiply 小键板乘号 +# KP_Add 小键板加号 +# KP_Subtract 小键板减号 +# KP_Divide 小键板除号 +# KP_Decimal 小键板小数点 +# KP_0 小键板0 +# KP_1 小键板1 +# KP_2 小键板2 +# KP_3 小键板3 +# KP_4 小键板4 +# KP_5 小键板5 +# KP_6 小键板6 +# KP_7 小键板7 +# KP_8 小键板8 +# KP_9 小键板9 diff --git a/config/weasel.custom.yaml b/config/weasel.custom.yaml new file mode 100644 index 0000000..a7dc316 --- /dev/null +++ b/config/weasel.custom.yaml @@ -0,0 +1,26 @@ +customization: + distribution_code_name: Weasel + distribution_version: 0.17.4 + generator: "Weasel::UIStyleSettings" + modified_time: "Thu Jan 15 09:51:11 2026" + rime_version: 1.13.1 +patch: + preset_color_schemes/+: + jianchun: + name: 简纯 + author: amzxyz + back_color: '0xf2f2f2' + border_color: '0x734000' + text_color: '0x2815C8' + hilited_text_color: '0x2815C8' + hilited_back_color: '0xf2f2f2' + hilited_comment_text_color: '0xffffff' + hilited_candidate_text_color: '0xffffff' + hilited_candidate_back_color: '0x734000' + hilited_label_color: '0xdedede' + candidate_text_color: '0x000000' + comment_text_color: '0x000000' + label_color: '0x91897e' + "style/color_scheme": jianchun + style: + candidate_list_layout: stack \ No newline at end of file diff --git a/config/weasel.yaml b/config/weasel.yaml new file mode 100644 index 0000000..eaf31b1 --- /dev/null +++ b/config/weasel.yaml @@ -0,0 +1,182 @@ +# Weasel settings +# encoding: utf-8 + +config_version: "LTS" + +# [app_options] +# 针对特定应用的设置 +app_options: + cmd.exe: + ascii_mode: true + ascii_punct: true + idea64.exe: + ascii_mode: false + ascii_punct: true + Code.exe: + ascii_mode: false + ascii_punct: true + Bandizip.exe: + ascii_mode: true # 英文模式 + 7zFM.exe: + ascii_mode: true # 英文模式 + firefox.exe: + inline_preedit: true # 行内显示预编辑区:规避 + # cmd.exe: + # ascii_mode: true # 英文模式 + # conhost.exe: + # ascii_mode: true + # windowsterminal.exe: + # ascii_mode: true + # wt.exe: + # ascii_mode: true + # pwsh.exe: + # ascii_mode: true + # powershell.exe: + # ascii_mode: true + # mintty.exe: + # ascii_mode: true + # nvim-qt.exe: + # ascii_mode: true + # vim_mode: true # vim 模式, Esc 切换到 ascii 状态 +# [End of ] + +# [global settings] +show_notifications: true # 是否显示状态变化的通知:true;false;option_list(方案内的开头 option) +show_notifications_time: 1200 # 通知显示的时间,单位 ms +global_ascii: false # 切换为 ascii 模式时,是否影响所有窗口:true;false +# [End of ] + +# [style] +# 字体;候选项、候选窗口的行为、布局及样式 +style: + color_scheme: win11_light # 默认配色方案 + color_scheme_dark: win11_dark + # 全局字体 + # 格式:字体1:起始码位:结束码位:字重:字形,字体2……,字体会依次 fallback + # 详细设定请参考 + font_face: "Segoe UI Emoji, Microsoft YaHei, SF Pro, Noto Color Emoji" + label_font_face: "Microsoft YaHei" # 标签字体 + comment_font_face: "Microsoft YaHei" # 注释字体 + font_point: 12 # 全局字体字号 + label_font_point: 11 # 标签字体字号,不设定 fallback 到 font_point + comment_font_point: 11 # 注释字体字号,不设定 fallback 到 font_point + + inline_preedit: true # 行内显示预编辑区:true;false + preedit_type: composition # 预编辑区内容:composition(编码); preview(选中的候选);preview_all(全部候选) + + fullscreen: false # 候选窗口全屏显示:true;false + horizontal: true # 候选项横排:true;false + vertical_text: false # 竖排文本:true;false + # text_orientation: horizontal # 文本排列方向,效果和 `vertical_text` 相同:horizontal;vertical + vertical_text_left_to_right: false # 竖排方向是否从左到右:true;false + vertical_text_with_wrap: false # 文本竖排模式下,自动换行:true;false + vertical_auto_reverse: false # 文本竖排模式下,候选窗口位于光标上方时倒序排列:true;false + + label_format: "%s." # 标签字符:例如 %s. 效果为 1. 2. 3. .... + mark_text: "" # 标记字符,显示在选中的候选标签前,需要在配色方案中指定颜色;如该项为空字符串 "" 而配色方案中 hilited_mark_color 非透明色,则显示 Windows 11 输入法风格标记 + ascii_tip_follow_cursor: false # 切换 ASCII 模式时,提示跟随鼠标,而非输入光标 + enhanced_position: true # 无法定位候选框时,在窗口左上角显示候选框:true;false + display_tray_icon: false # 托盘显示独立于语言栏的额外图标:true;false + antialias_mode: default # 次像素反锯齿设定:default;force_dword;cleartype;grayscale;aliased + candidate_abbreviate_length: 30 # 候选项略写,超过此数字则用省略号代替。设置为 0 则不启用此功能 + # mouse_hover_ms: 0 # ! 已弃用。鼠标悬停选词响应时间(ms),设置为 0 时禁用该功能 + hover_type: semi_hilite # 鼠标在候选窗口悬停时:none(无动作);hilite(选中鼠标下的候选);semi_hilite(高亮鼠标下的候选) + + paging_on_scroll: true # 在候选窗口上滑动滚轮的行为:true(翻页);false (选中下一个候选) + click_to_capture: false # 鼠标点击候选项,创建截图:true;false + + layout: + align_type: center # 标签、候选文字、注解文字之间的相对对齐方式 + max_height: 2800 # 候选框最大高度、宽度。超过设定值会尝试自动折叠,设置为 0 不启用此功能 + max_width: 1400 # 2800 + min_height: 0 # 候选框最小高度、宽度 + min_width: 50 #80 + #type: horizontal # 布局类型;功能近似 style 下的窗口控制选项 horizontal; vertical + border_width: 1 # 边框宽度,别名 `border` + border: 1 + margin_x: 8 # 主体元素和候选框的左右、上下边距,为负值时,不显示候选框 + margin_y: 8 + spacing: 18 # inline_preedit 为 false 时,编码区域和候选区域的间距 + candidate_spacing: 15 # 候选项之间的间距 + hilite_spacing: 6 # 候选项和相应标签的间距,候选项与注解文字之间的距离 + hilite_padding: 6 # 高亮区域和内部文字的间距,影响高亮区域大小 + hilite_padding_y: 5 # 高亮区域和内部文字的左右、上下间距,如无特殊指定则依 hilite_padding 设置 + hilite_padding_x: 5 + shadow_offset_x: "-8" # 阴影绘制的偏离距离 + shadow_offset_y: "8" + shadow_radius: 8 # 阴影区域半径,为 0 不显示阴影;需要同时在配色方案中指定非透明的阴影颜色 + corner_radius: 8 # 候选窗口圆角半径 + round_corner: 8 # 候选背景色块圆角半径,别名 `hilited_corner_radius` +preset_color_schemes: + win11_light: + name: "Win11浅色 / Win11light" + text_color: 0x191919 + label_color: 0x191919 + hilited_label_color: 0x191919 + back_color: 0xf9f9f9 + border_color: 0x009e5a00 + hilited_mark_color: 0xc06700 + hilited_candidate_back_color: 0xf0f0f0 + shadow_color: 0x20000000 + + wechat: + name: "微信/Wechat" + text_color: 0x424242 + label_color: 0x999999 + back_color: 0xFFFFFF + border_color: 0xFFFFFF + comment_text_color: 0x999999 + candidate_text_color: 0x3c3c3c + hilited_comment_text_color: 0xFFFFFF + hilited_back_color: 0x79af22 + hilited_text_color: 0xFFFFFF + hilited_label_color: 0xFFFFFF + hilited_candidate_back_color: 0x79af22 + shadow_color: 0x20000000 + + Lumk_light: + name: "鹿鸣/Lumk light" + author: "Lumk X " + back_color: 0xF9F9F9 + border_color: 0xE2E7F5 + candidate_text_color: 0x121212 + comment_text_color: 0x8E8E8E + hilited_candidate_back_color: 0xECE4FC + hilited_candidate_label_color: 0xB18FF4 + hilited_candidate_text_color: 0x7A40EC + hilited_label_color: 0xA483EC + hilited_mark_color: 0x7A40EC + label_color: 0x888785 + text_color: 0x8100EB + shadow_color: 0x20000000 + + amber-7: + name: 淡白/weasel + author: 五笔小筑 + # 背景设置 + back_color: 0xffffff # 窗口背景 + border_color: 0xE99321 # 窗口边框 + shadow_color: 0x00000000 # 窗口阴影 + # 内选区域 + text_color: 0xE99321 # 文字 + hilited_text_color: 0x2238dc # 编码 + hilited_back_color: 0xffffff # 背景 + hilited_shadow_color: 0x00000000 # 阴影 + # 以下两项在 inline_preedit: false 时生效 + nextpage_color: 0x0000FF # 翻页箭头颜色:下一页;不设置则不显示箭头 + prevpage_color: 0x0000FF # 翻页箭头颜色:上一页;不设置则不显示箭头 + # 激活候选项 + hilited_mark_color: 0x00000000 # 激活标签 + hilited_label_color: 0x2021FF #序号文字 + hilited_candidate_text_color: 0x2021FF #候选文字 + hilited_comment_text_color: 0x000000 #提示文字 + hilited_candidate_back_color: 0xECF1FC #激活背景 + hilited_candidate_border_color: 0xCFDCFD #激活边框 + hilited_candidate_shadow_color: 0x00000000 #激活阴影 + # 其它候选项 + label_color: 0xE99321 #序号文字 + candidate_text_color: 0xE99321 #候选文字 + comment_text_color: 0x000000 #提示文字 + candidate_back_color: 0xffffff #候选背景 + candidate_border_color: 0xffffff #候选边框 + candidate_shadow_color: 0x00000000 #候选阴影