-
Notifications
You must be signed in to change notification settings - Fork 0
/
tcAL2O3.schema.yaml
185 lines (170 loc) · 6.16 KB
/
tcAL2O3.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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
# Rime schema
# encoding: utf-8
schema:
schema_id: tcAL2O3
name: "tcAL₂O₃"
version: "2020.12.24"
author:
- 发明创始:学者秋风
- 方案修改:伪学者 Mark
description: |
蓝宝石繁体方案“tcAL2O3”
Mark自用
单击“z”键重复上一次输入
双击“z”键拼音反查
dependencies:
- mk_fy
- pin
switches:
- name: ascii_mode
reset: 0 # 默认0或没有注明则为前者,若选1则为后者.下同
states: [ 中文, 英文 ]
- name: full_shape
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
- affix_segmentor@tcAL2O3abbr #用户自定义分割器
- affix_segmentor@tcAL2O3five #用户自定义分割器
# - punct_segmentor
- fallback_segmentor
translators:
# - punct_translator
- reverse_lookup_translator@mk_fy #这两个反查的顺序直接决定优先级
- reverse_lookup_translator@pin #这两个反查的顺序直接决定优先级
- history_translator@history
- table_translator
- table_translator@tcAL2O3abbr # 两字二简词、三字三简词、四字成语首字打首、次码,五字以上直取首码到底
- table_translator@tcAL2O3five # 五码去重。三字以上的词,
filters:
- reverse_lookup_filter@weight # 新的词频提示
# - simplifier@spelling # 用于提示词频
- uniquifier # 必须放在最下面一行,过滤上面产生的重复候选,比如来自上面的 "simplifier@spelling"
speller:
alphabet: 'zyxwvutsrqponmlkjihgfedcba' #定义可用于输入的键
# delimiter: " '"
translator:
dictionary: tcAL2O3 # 引入主码表"tcAL2O3.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 # 最大自動成詞詞長
always_show_comments: true
comment_format: # 提示碼自定義
- xform/~// # 去掉编码提示前的波浪线
abc_segmentor: # 標識常規的文字段落,加上abc這個tag
extra_tags:
- tcAL2O3abbr
- tcAL2O3five
tcAL2O3abbr: # 两码二简词、三码三简词
tag: tcAL2O3abbr
dictionary: tcAL2O3abbr
initial_quality: 0.01 # 降低二、三码简词的优先级
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
always_show_comments: true
comment_format:
- xform/~// # 去掉编码提示前的波浪线
tcAL2O3five: # 五码去重
tag: tcAL2O3five
dictionary: tcAL2O3five
initial_quality: 0.01 # 降低优先级
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
always_show_comments: true
comment_format:
- xform/~// # 去掉编码提示前的波浪线
pin: # 全拼反查
dictionary: pin
initial_quality: 1 #設定此翻譯器出字優先級
overwrite_comment: true
prefix: "zz"
mk_fy: # 双拼反查
dictionary: pin
initial_quality: 1 #設定此翻譯器出字優先級
prism: mk_fy # 把这一行注掉就还原为全拼反查
overwrite_comment: true
prefix: "zz"
history: #重复上次输入
input: z
size: 1
initial_quality: 1
recognizer:
import_preset: default
patterns:
reverse_lookup: "^zz[a-z]*$" #反查引导键
# reverse_lookup: "^`[a-z]*'?$" #反查引导键
# punctuator:
# import_preset: default
#spelling: # 词频提示
# opencc_config: spelling.json
# option_name: spelling
# show_in_comment: true
# comment_format:
# - xform/☯/ · /
# - xform/://
# - xform/?//
# - xform/“//
# - xform/://
# - xform/,//
# - xform/s/·/
# - xform/t/·/
# - xform/<br>/\r/
## - "xlit|1234567890|₁₂₃₄₅₆₇₈₉₀|"
# - xlit|1234567890|¹²³⁴⁵⁶⁷⁸⁹⁰|
# tips: all # 去掉就没有提示
## tags:
## - abc
weight: # ˉ¨^ˇ˜˙ˋˊ
option_name: weight
tags: [ abc ]
dictionary: weight
# overwrite_comment: true
comment_format:
- xform/☯/ · /
- xform/://
- xform/?//
- xform/“//
- xform/://
- xform/,//
- xform/e/˜/
- xform/s/¨/
- xform/t/ˉ/
- xform/<br>/\r/
# - "xlit|1234567890|₁₂₃₄₅₆₇₈₉₀|"
- xlit|1234567890|¹²³⁴⁵⁶⁷⁸⁹⁰|
key_binder:
import_preset: default #以 default.custom.yaml 中的设置为准