-
Notifications
You must be signed in to change notification settings - Fork 0
/
tcAL2O3five.schema.yaml
133 lines (120 loc) · 4.78 KB
/
tcAL2O3five.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
128
129
130
131
132
# Rime schema
# encoding: utf-8
schema:
schema_id: tcAL2O3five
name: "tcAL2O3five"
version: "2020.0810"
author:
- 发明创始:秋风
- 方案修改:Mark
description: |
“蓝宝石tcAL2O3five”
Mark自用
“z”键拼音反查
dependencies:
- pin
switches:
- name: ascii_mode
reset: 0 # 默认0或没有注明则为前者,若选1则为后者.下同
states: [ 中文, 英文 ]
- name: full_shape
states: [ 半角, 全角 ]
# - name: simplification
# states: [ 漢字, 汉字 ] #用了这个可以在反查时显示简体,这就不用引外部词库了,用原装的就好
- name: extended_charset
states: [ 通用, 增廣 ]
reset: 1
- name: ascii_punct
states: [ 。,, ., ]
- name: spelling
states: [码, 音]
reset: 1
engine:
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher # 与 recognizer 配合设置反查触发
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- reverse_lookup_translator
- history_translator@history
- table_translator
filters:
- uniquifier
- "simplifier@spelling"
speller:
alphabet: 'zyxwvutsrqponmlkjihgfedcba' #定义可用于输入的键
delimiter: " '"
translator:
dictionary: tcAL2O3five # 引入主码表"tcAL2O3five.dict.yaml"
initial_quality: 1 #設定此翻譯器出字優先級
enable_charset_filter: false # 是否開啓字符集過濾
enable_encoder: false # 是否開啓自動造詞
encode_commit_history: false # 是否對已上屛詞自動成詞
enable_completion: true # 提前顯示尚未輸入完整碼的字
enable_sentence: false # 太极图自动组句
enable_user_dict: false # 是否开启用户词典(用户词典记录动态字词频、用户词
max_phrase_length: 40 # 最大自動成詞詞長
disable_user_dict_for_patterns:
- "^z.*$"
- "^[a-y]{1,2}$"
always_show_comments: true
comment_format: # 提示碼自定義
- xform/~// # 去掉编码提示前的波浪线
preedit_format: # 上屛碼自定義
- "xform/^/🚴/" # 提示简体输入方式
abc_segmentor: # 標識常規的文字段落,加上abc這個tag
extra_tags:
reverse_lookup:
dictionary: pin
prism: mk_fy # 反查改为双拼,把这一行注掉就还原为全拼反查
overwrite_comment: true
prefix: "zz"
preedit_format:
- "xform/^/🏂/" # 提示拼音反查
recognizer:
import_preset: default
patterns:
reverse_lookup: "^zz[a-z]*$" #反查引导键
punctuator:
# import_preset: default
history: #重复上次输入
input: z
size: 1
initial_quality: 1
spelling:
opencc_config: spelling.json
option_name: spelling
show_in_comment: true
comment_format:
- "xform/☯/ · /"
- "xform/<br>/\r/"
key_binder:
# import_preset: default #以 default.custom.yaml 中的设置为准
#下面的关于 bindings 可以删掉了
# 不!!!!千万不要删掉!
bindings: #如没在 default.custom.yaml 中设置,则使用以下设置
- {accept: Return, send: Escape, when: composing}
- {accept: semicolon, send: 2, when: has_menu} #打字时,分号──2选
- {accept: apostrophe, send: 3, when: has_menu} #打字时,引号──3选
- { accept: comma, send: 4, when: has_menu} #打字时,逗号──4选
- { accept: period, send: 5, when: has_menu} #打字时,句号──5选
- { accept: slash, send: 6, when: has_menu} #打字时,撇斜杠──6选
- { accept: bracketleft, send: 7, when: has_menu} #打字时,左方括号──7选
- { accept: bracketright, send: 8, when: has_menu} #打字时,右方括号──8选
- { accept: minus, send: Page_Up, when: paging} #减号向前翻页
- { accept: equal, send: Page_Down, when: has_menu} #加号向后翻页
- {accept: "Control+8", select: .next, when: always} #切换方案
- {accept: "Control+7", toggle: spelling, when: always} #切换显示词频
# minus/减号,equal/等号,comma/逗号,period/句号,exclam/感叹号,numbersign/井号,percent/百分号,semicolon/分号,apostrophe/单引号,bracketleft/左中括号,bracketright/右中括号