-
Notifications
You must be signed in to change notification settings - Fork 4
/
wubi86.schema.yaml
executable file
·127 lines (112 loc) · 4.98 KB
/
wubi86.schema.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# Rime schema
# encoding: utf-8
# https://github.com/gaboolic/rime-shuangpin-fuzhuma
schema:
schema_id: wubi86
name: 五笔86整句
version: "2024-04-24"
author:
- gaboolic (裁缝)
description: |
五笔整句 https://github.com/gaboolic/rime-shuangpin-fuzhuma
dependencies:
- stroke
- emoji
- easy_en
- jp_sela
__include: moqi.yaml:/switches_engine
__include: moqi.yaml:/phrase # 置顶
__include: moqi.yaml:/reverse #反查配置
__include: moqi.yaml:/opencc_config # 拆分 英汉互译 火星文
__include: moqi.yaml:/punctuator # 标点
__include: moqi.yaml:/guide # 引导前缀配置
speller:
max_code_length: 5
# table_translator翻译器,支持自动上屏。例如 “zmhu”可以自动上屏“怎么回事”
auto_select: true
auto_select_pattern: ^[a-z]+/|^[a-df-zA-DF-Z]\w{3}|^e\w{4}
# 如果不想让什么标点直接上屏,可以加在 alphabet,或者编辑标点符号为两个及以上的映射
alphabet: zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA[/|
# initials 定义仅作为始码的按键,排除 ` 让单个的 ` 可以直接上屏
initials: zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
# 第一位<空格>是拼音之间的分隔符;第二位<'>表示可以手动输入单引号来分割拼音。
delimiter: " '"
## speller 未允许 aj 表示 an
algebra:
__include: moqi.yaml:/speller_algebra
user_dict_set:
dictionary: wubi86.extended
initial_quality: 0
enable_completion: false
enable_sentence: false
## 默认为不超过 2 个字的候选项显示输入码;将 2 改为 0 可关闭编码提示,
## 改为 1 则是只显示单字的输入码,依此类推。
spelling_hints: 0
comment_format:
- "xform/(^|[ '])[^[]+[[]/$1/" ## 编码提示只显示辅助码部分
enable_user_dict: true # 是否开启自动调频
user_dict: user_ff.custom.dict
db_class: tabledb
# 自定义词典加词(ac引导)
add_user_dict:
tag: add_user_dict
dictionary: wubi86.extended
initial_quality: -1
user_dict: user_ff.custom.dict
# ↓ 用户词典格式,tabledb(文本) 或 userdb (二进制)。
db_class: tabledb
enable_charset_filter: false
enable_completion: true
enable_encoder: true
enable_sentence: true
enable_user_dict: true
encode_commit_history: false
preedit_format:
comment_format:
- "xform/(^|[ '])[^[]+[[]/$1/" ## 编码提示只显示辅助码部分
prefix: "AC"
tips: "〔自造词〕"
translator:
dictionary: wubi86.extended
initial_quality: 10000
enable_completion: false
## 默认为不超过 2 个字的候选项显示输入码;将 2 改为 0 可关闭编码提示,
## 改为 1 则是只显示单字的输入码,依此类推。
spelling_hints: 0
comment_format:
- "xform/(^|[ '])[^[]+[[]/$1/" ## 编码提示只显示辅助码部分
enable_user_dict: false # 是否开启自动调频
preedit_format:
# 快捷键
key_binder:
import_preset: default
bindings:
#- { when: composing, accept: Tab, send: '[' } ## 取消注释后:tab引导辅助码
- { when: composing, accept: Control+m, send: Return }
- { when: composing, accept: Control+w, send: Control+BackSpace }
- { when: has_menu, accept: semicolon, send: 2 }
# - { when: has_menu, accept: slash, send: 3 } # 用/进行选3
- { when: composing, accept: Control+i, send: Shift+Right }
- { when: composing, accept: Control+o, send: Shift+Left }
- { when: has_menu, accept: "Control+e", toggle: chinese_english }
# - { match: "[a-z]{1,3}", accept: Tab, send_sequence: "/1" }
# - { match: "[a-z]{1,3}", accept: "/", send_sequence: "/1" }
# - { match: "[a-z]{1,3}", accept: ".", send_sequence: "/1" }
# - { when: composing, match: "[a-z]{2}", accept: Tab, send: '|' }
## 启用光标回退至特定音节后、补充辅助码的功能。补充完辅助码后,可以再按一次tab回到整句检查
- { when: composing, accept: Control+1, send_sequence: '{Home}{Shift+Right}' }
- { when: composing, accept: Control+2, send_sequence: '{Home}{Shift+Right}{Shift+Right}' }
- { when: composing, accept: Control+3, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}' }
- { when: composing, accept: Control+4, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}' }
- { when: composing, accept: Control+5, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}' }
- { when: composing, accept: Control+6, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}' }
- { when: composing, accept: Control+7, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}' }
# 启用語言模型
#__include: moqi:/octagram/enable_for_sentence
custom_phrase_mqzg:
dictionary: ""
user_dict: custom_phrase/custom_phrase_xhzg
db_class: stabledb
enable_sentence: false
enable_completion: false
initial_quality: -1 #本表词和系统词重码居后