weasel输入法几个配置修改
1. 隐藏中英文切换图标
weasel输入法在切换中英文的时候会在光标处显示一个中英文切换图标,有时候这个图标会挡住光标,影响输入体验。旧版本只能通过修改源码来隐藏这个图标,根据这个issue 修改下面这个文件即可: RimeWithWeasel.cpp
在新版本的weasel输入法中,可以通过配置文件来隐藏这个图标,修改weasel.custom.yaml文件,添加下面这行配置即可:
patch:
show_notifications: false
2. Shift 键切换中英文
之前一直用的搜狗输入法,使用 Shift 切换中英文时会直接把当前的拼音输入,然后切换到英文输入状态,继续输入英文。weasel可以通过修改 default.custom.yaml 文件来实现这个功能,添加下面的配置:
patch:
"ascii_composer/switch_key/Shift_L": commit_code
"ascii_composer/switch_key/Shift_R": commit_code
参考 https://blog.csdn.net/sdujava2011/article/details/84098971
最终配置
输入方案使用了雾凇拼音输入法(rime-ice)。
default.custom.yaml 文件的最终配置如下:
customization:
distribution_code_name: Weasel
distribution_version: 0.16.1
generator: "Rime::SwitcherSettings"
modified_time: "Sun Sep 29 09:31:23 2024"
rime_version: 1.11.2
patch:
"ascii_composer/switch_key/Shift_L": commit_code
"ascii_composer/switch_key/Shift_R": commit_code
"menu/page_size": 8
schema_list:
- {schema: rime_ice}
weasel.custom.yaml 文件的最终配置如下:
customization:
distribution_code_name: Weasel
distribution_version: 0.14.3
generator: "Weasel::UIStyleSettings"
modified_time: "Mon Oct 12 13:03:55 2020"
rime_version: 1.5.3
patch:
"style/color_scheme": metroblue
"preset_color_schemes/metro":
author: flypy.com
back_color: 0xffffff
border_color: 0xe89f00
comment_text_color: 0x666666
hilited_back_color: 0xffffff
hilited_candidate_back_color: 0xe89f00
hilited_candidate_text_color: 0xffffff
hilited_comment_text_color: 0x666666
hilited_text_color: 0x000000
label_color: 0x666666
name: metro
text_color: 0x000000
"style/color_scheme": flypy
"style/display_tray_icon": false
"style/font_point": 12
"style/horizontal": true
"style/inline_preedit": true
"style/layout/border_width": 1
"style/layout/candidate_spacing": 30
"style/layout/hilite_padding": 12
"style/layout/hilite_spacing": 2
"style/layout/margin_x": 12
"style/layout/margin_y": 10
"style/layout/min_height": 0
"style/layout/min_width": 100
"style/layout/round_corner": 0
"style/layout/spacing": 10
"style/window/@0/move": ""
"show_notifications": false