2023-02-26 21:03:20 +01:00
|
|
|
|
# Rime default settings
|
|
|
|
|
# encoding: utf-8
|
|
|
|
|
#
|
|
|
|
|
# 小狼毫似乎不支持 Control+Shift 开头的快捷键,可自行修改成别的。
|
|
|
|
|
# 鼠须管在 Sublime Text、Telegram 等个别软件中也无法使用 Control+Shift+数字 的快捷键,可暂时用方案选单切换。
|
|
|
|
|
|
|
|
|
|
|
2023-04-06 14:38:38 +02:00
|
|
|
|
# 要比共享目录的同名文件的 config_version 大才可以生效
|
2023-08-07 17:34:23 +02:00
|
|
|
|
config_version: '2023-08-07'
|
2023-02-26 21:03:20 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 方案列表
|
|
|
|
|
schema_list:
|
2023-08-15 16:22:22 +02:00
|
|
|
|
# 可以直接删除或注释不需要的方案,对应的 *.schema.yaml 方案文件也可以直接删除。
|
|
|
|
|
- schema: rime_ice # 雾凇拼音(全拼)
|
|
|
|
|
- schema: double_pinyin # 自然码双拼
|
|
|
|
|
- schema: double_pinyin_abc # 智能 ABC 双拼
|
|
|
|
|
- schema: double_pinyin_mspy # 微软双拼
|
|
|
|
|
- schema: double_pinyin_sogou # 搜狗双拼
|
|
|
|
|
- schema: double_pinyin_flypy # 小鹤双拼
|
|
|
|
|
- schema: double_pinyin_ziguang # 紫光双拼
|
2023-02-26 21:03:20 +01:00
|
|
|
|
|
|
|
|
|
|
2023-03-01 12:30:21 +01:00
|
|
|
|
# 菜单
|
2023-02-26 21:03:20 +01:00
|
|
|
|
menu:
|
2023-03-04 04:58:42 +01:00
|
|
|
|
page_size: 5 # 候选词个数
|
2023-03-01 12:30:21 +01:00
|
|
|
|
# alternative_select_labels: [ ①, ②, ③, ④, ⑤, ⑥, ⑦, ⑧, ⑨, ⑩ ] # 修改候选项标签
|
|
|
|
|
# alternative_select_keys: ASDFGHJKL # 如编码字符占用数字键,则需另设选字键
|
2023-02-26 21:03:20 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 方案选单相关
|
|
|
|
|
switcher:
|
|
|
|
|
caption: 「方案选单」
|
|
|
|
|
hotkeys:
|
2023-04-09 09:04:49 +02:00
|
|
|
|
- F4
|
|
|
|
|
- Control+grave
|
2023-02-26 21:03:20 +01:00
|
|
|
|
# - Alt+grave
|
|
|
|
|
- Control+Shift+grave
|
2023-08-15 16:22:22 +02:00
|
|
|
|
save_options: # 开关记忆(方案中的 switches),从方案选单(而非快捷键)切换时会记住的选项,需要记忆的开关不能设定 reset
|
2023-02-26 21:03:20 +01:00
|
|
|
|
- ascii_punct
|
2023-08-15 16:22:22 +02:00
|
|
|
|
- full_shape
|
2023-02-26 21:03:20 +01:00
|
|
|
|
- traditionalization
|
|
|
|
|
- emoji
|
|
|
|
|
fold_options: true # 呼出时是否折叠,多方案时建议折叠 true ,一个方案建议展开 false
|
|
|
|
|
abbreviate_options: true # 折叠时是否缩写选项
|
|
|
|
|
option_list_separator: ' / ' # 折叠时的选项分隔符
|
|
|
|
|
|
|
|
|
|
|
2023-03-04 04:58:42 +01:00
|
|
|
|
# 中西文切换
|
|
|
|
|
#
|
2023-04-08 06:39:37 +02:00
|
|
|
|
# good_old_caps_lock:
|
|
|
|
|
# true 切换大写
|
|
|
|
|
# false 切换中英
|
|
|
|
|
# macOS 偏好设置的优先级更高,如果勾选【使用大写锁定键切换“ABC”输入法】则始终会切换输入法。
|
2023-02-26 21:03:20 +01:00
|
|
|
|
#
|
|
|
|
|
# 切换中英:
|
2023-05-03 17:08:27 +02:00
|
|
|
|
# 不同的选项表示:打字打到一半时按下了 CapsLock、Shift、Control 后:
|
2023-02-26 21:03:20 +01:00
|
|
|
|
# commit_code 上屏原始的编码,然后切换到英文
|
|
|
|
|
# commit_text 上屏拼出的词句,然后切换到英文
|
|
|
|
|
# clear 清除未上屏内容,然后切换到英文
|
2023-04-09 09:04:49 +02:00
|
|
|
|
# inline_ascii 切换到临时英文模式,按回车上屏后回到中文状态
|
2023-02-26 21:03:20 +01:00
|
|
|
|
# noop 屏蔽快捷键,不切换中英,但不要屏蔽 CapsLock
|
|
|
|
|
ascii_composer:
|
|
|
|
|
good_old_caps_lock: true # true | false
|
|
|
|
|
switch_key:
|
2023-04-09 09:04:49 +02:00
|
|
|
|
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
|
2023-02-26 21:03:20 +01:00
|
|
|
|
|
|
|
|
|
|
2023-04-11 16:46:29 +02:00
|
|
|
|
###################################################################################
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 下面的 punctuator recognizer key_binder 写了一些所有方案通用的配置项。
|
|
|
|
|
# 写在 default.yaml 里,方便多个方案引用,就是不用每个方案都写一遍了。
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 标点符号
|
|
|
|
|
# 设置为一个映射,就自动上屏;设置为多个映射,如 '/' : [ '/', ÷ ] 则进行复选。
|
|
|
|
|
# full_shape: 全角没改,使用预设值
|
|
|
|
|
# half_shape: 标点符号全部直接上屏,和 macOS 自带输入法的区别是
|
|
|
|
|
# '|' 是半角的,
|
|
|
|
|
# '~' 是半角的,
|
|
|
|
|
# '`'(反引号)没有改成 '·'(间隔号)。
|
2023-02-26 21:03:20 +01:00
|
|
|
|
punctuator:
|
|
|
|
|
full_shape:
|
2023-04-12 10:35:13 +02:00
|
|
|
|
' ' : { commit: ' ' }
|
|
|
|
|
',' : { commit: , }
|
|
|
|
|
'.' : { commit: 。 }
|
|
|
|
|
'<' : [ 《, 〈, «, ‹ ]
|
|
|
|
|
'>' : [ 》, 〉, », › ]
|
|
|
|
|
'/' : [ /, ÷ ]
|
|
|
|
|
'?' : { commit: ? }
|
|
|
|
|
';' : { commit: ; }
|
|
|
|
|
':' : { commit: : }
|
|
|
|
|
'''' : { pair: [ '‘', '’' ] }
|
|
|
|
|
'"' : { pair: [ '“', '”' ] }
|
|
|
|
|
'\' : [ 、, \ ]
|
|
|
|
|
'|' : [ ·, |, '§', '¦' ]
|
|
|
|
|
'`' : `
|
|
|
|
|
'~' : ~
|
|
|
|
|
'!' : { commit: ! }
|
|
|
|
|
'@' : [ @, ☯ ]
|
|
|
|
|
'#' : [ #, ⌘ ]
|
|
|
|
|
'%' : [ %, '°', '℃' ]
|
|
|
|
|
'$' : [ ¥, '$', '€', '£', '¥', '¢', '¤' ]
|
|
|
|
|
'^' : { commit: …… }
|
|
|
|
|
'&' : &
|
|
|
|
|
'*' : [ *, ·, ・, ×, ※, ❂ ]
|
|
|
|
|
'(' : (
|
|
|
|
|
')' : )
|
|
|
|
|
'-' : -
|
|
|
|
|
'_' : ——
|
|
|
|
|
'+' : +
|
|
|
|
|
'=' : =
|
|
|
|
|
'[' : [ 「, 【, 〔, [ ]
|
|
|
|
|
']' : [ 」, 】, 〕, ] ]
|
|
|
|
|
'{' : [ 『, 〖, { ]
|
|
|
|
|
'}' : [ 』, 〗, } ]
|
2023-02-26 21:03:20 +01:00
|
|
|
|
half_shape:
|
2023-04-11 16:46:29 +02:00
|
|
|
|
',' : ','
|
|
|
|
|
'.' : '。'
|
|
|
|
|
'<' : '《'
|
|
|
|
|
'>' : '》'
|
|
|
|
|
'/' : '/'
|
|
|
|
|
'?' : '?'
|
|
|
|
|
';' : ';'
|
|
|
|
|
':' : ':'
|
|
|
|
|
'''' : { pair: [ '‘', '’' ] }
|
|
|
|
|
'"' : { pair: [ '“', '”' ] }
|
|
|
|
|
'\' : '、'
|
|
|
|
|
'|' : '|'
|
|
|
|
|
'`' : '`'
|
|
|
|
|
'~' : '~'
|
|
|
|
|
'!' : '!'
|
|
|
|
|
'@' : '@'
|
|
|
|
|
'#' : '#'
|
|
|
|
|
'%' : '%'
|
|
|
|
|
'$' : '¥'
|
|
|
|
|
'^' : '……'
|
|
|
|
|
'&' : '&'
|
|
|
|
|
'*' : '*'
|
|
|
|
|
'(' : '('
|
|
|
|
|
')' : ')'
|
|
|
|
|
'-' : '-'
|
|
|
|
|
'_' : ——
|
|
|
|
|
'+' : '+'
|
|
|
|
|
'=' : '='
|
|
|
|
|
'[' : '【'
|
|
|
|
|
']' : '】'
|
|
|
|
|
'{' : '「'
|
|
|
|
|
'}' : '」'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 处理符合特定规则的输入码,如网址、反查
|
|
|
|
|
# 此处配置所有方案通用的;各方案中另设专有的,比如全拼的拼字用 u,双拼的拼字用 L
|
2023-02-26 21:03:20 +01:00
|
|
|
|
recognizer:
|
|
|
|
|
patterns:
|
2023-08-15 16:22:22 +02:00
|
|
|
|
email: "^[A-Za-z][-_.0-9A-Za-z]*@.*$" # 自带的,email 正则
|
|
|
|
|
# uppercase: "[A-Z][-_+.'0-9A-Za-z]*$" # 自带的,大写字母开头后,可以输入[-_+.'0-9A-Za-z]这些字符(和雾凇有些冲突,关闭了)
|
2023-04-11 16:46:29 +02:00
|
|
|
|
url: "^(www[.]|https?:|ftp[.:]|mailto:|file:).*$|^[a-z]+[.].+$" # 自带的,URL 正则
|
|
|
|
|
# 一些不直接上屏的配置示例:
|
|
|
|
|
# url_2: "^[A-Za-z]+[.].*" # 句号不上屏,支持 google.com abc.txt 等网址或文件名,使用句号翻页时需要注释掉
|
|
|
|
|
# colon: "^[A-Za-z]+:.*" # 冒号不上屏
|
|
|
|
|
# underscore: "^[A-Za-z]+_.*" # 下划线不上屏
|
2023-02-26 21:03:20 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 快捷键
|
|
|
|
|
key_binder:
|
2023-05-09 15:01:28 +02:00
|
|
|
|
# Lua 配置: 以词定字(上屏当前词句的第一个或最后一个字),和中括号翻页有冲突
|
|
|
|
|
select_first_character: "bracketleft" # 左中括号 [
|
|
|
|
|
select_last_character: "bracketright" # 右中括号 ]
|
2023-03-01 12:30:21 +01:00
|
|
|
|
|
2023-02-26 21:03:20 +01:00
|
|
|
|
bindings:
|
2023-04-13 13:54:32 +02:00
|
|
|
|
# Tab / Shift+Tab 切换光标至下/上一个拼音
|
2023-03-22 09:43:59 +01:00
|
|
|
|
- { when: composing, accept: Shift+Tab, send: Shift+Left }
|
|
|
|
|
- { when: composing, accept: Tab, send: Shift+Right }
|
2023-04-13 13:54:32 +02:00
|
|
|
|
# Tab / Shift+Tab 翻页
|
2023-03-22 09:43:59 +01:00
|
|
|
|
# - { when: has_menu, accept: Shift+Tab, send: Page_Up }
|
|
|
|
|
# - { when: has_menu, accept: Tab, send: Page_Down }
|
|
|
|
|
|
2023-04-13 13:54:32 +02:00
|
|
|
|
# Option/Alt + ←/→ 切换光标至下/上一个拼音
|
|
|
|
|
- { when: composing, accept: Alt+Left, send: Shift+Left }
|
|
|
|
|
- { when: composing, accept: Alt+Right, send: Shift+Right }
|
|
|
|
|
|
2023-03-22 09:43:59 +01:00
|
|
|
|
# 翻页 - =
|
|
|
|
|
- { when: has_menu, accept: minus, send: Page_Up }
|
|
|
|
|
- { when: has_menu, accept: equal, send: Page_Down }
|
|
|
|
|
|
|
|
|
|
# 翻页 , .
|
|
|
|
|
# - { when: paging, accept: comma, send: Page_Up }
|
|
|
|
|
# - { when: has_menu, accept: period, send: Page_Down }
|
|
|
|
|
|
|
|
|
|
# 翻页 [ ]
|
|
|
|
|
# - { when: paging, accept: bracketleft, send: Page_Up }
|
|
|
|
|
# - { when: has_menu, accept: bracketright, send: Page_Down }
|
|
|
|
|
|
|
|
|
|
# numbered_mode_switch:
|
|
|
|
|
# - { when: always, accept: Control+Shift+1, select: .next } # 在最近的两个方案之间切换
|
|
|
|
|
# - { when: always, accept: Control+Shift+2, toggle: ascii_mode } # 切换中英
|
|
|
|
|
- { when: always, accept: Control+Shift+3, toggle: ascii_punct } # 切换中英标点
|
2023-04-13 13:54:32 +02:00
|
|
|
|
- { when: always, accept: Control+Shift+4, toggle: traditionalization } # 切换简繁
|
2023-03-22 09:43:59 +01:00
|
|
|
|
# - { when: always, accept: Control+Shift+5, toggle: full_shape } # 切换全半角
|
|
|
|
|
|
|
|
|
|
# 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, send: Shift+Delete }
|
|
|
|
|
# - { 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 }
|
2023-02-26 21:03:20 +01:00
|
|
|
|
|
|
|
|
|
|
2023-04-11 16:46:29 +02:00
|
|
|
|
# 按键速查
|
|
|
|
|
# https://github.com/LEOYoon-Tsaw/Rime_collections/blob/master/Rime_description.md
|
2023-02-26 21:03:20 +01:00
|
|
|
|
# (没有 Command 键,不支持)
|
|
|
|
|
# accept 和 send 可用字段除 A-Za-z0-9 外,还包含以下键盘上实际有的键:
|
2023-08-15 16:22:22 +02:00
|
|
|
|
# (区分大小写)
|
2023-02-26 21:03:20 +01:00
|
|
|
|
# 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 中断
|
2023-04-10 09:38:21 +02:00
|
|
|
|
# space 空格
|
2023-02-26 21:03:20 +01:00
|
|
|
|
# exclam !
|
|
|
|
|
# quotedbl "
|
|
|
|
|
# numbersign #
|
|
|
|
|
# dollar $
|
|
|
|
|
# percent %
|
|
|
|
|
# ampersand &
|
|
|
|
|
# apostrophe '
|
|
|
|
|
# parenleft (
|
|
|
|
|
# parenright )
|
|
|
|
|
# asterisk *
|
|
|
|
|
# plus +
|
|
|
|
|
# comma ,
|
|
|
|
|
# minus -
|
|
|
|
|
# period .
|
|
|
|
|
# slash /
|
|
|
|
|
# colon :
|
|
|
|
|
# semicolon ;
|
|
|
|
|
# less <
|
|
|
|
|
# equal =
|
|
|
|
|
# greater >
|
|
|
|
|
# question ?
|
|
|
|
|
# at @
|
|
|
|
|
# bracketleft [
|
2023-04-10 09:38:21 +02:00
|
|
|
|
# backslash \
|
2023-02-26 21:03:20 +01:00
|
|
|
|
# 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
|