-
Notifications
You must be signed in to change notification settings - Fork 8
/
cangjie6_express.schema.yaml
158 lines (144 loc) · 3.97 KB
/
cangjie6_express.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
# Rime schema settings
# encoding: utf-8
schema:
name: 蒼頡·快打模式
schema_id: cangjie6_express
version: "0.1"
author:
- 朱邦復先生
- 沈紅蓮女士
description: |
第六代蒼頡檢字法
碼表源自風易辭,雪齋、惜緣和crazy4u整理
快打模式:單字自動上屛無連打
dependencies:
- luna_pinyin
- jyutping
switches:
- name: extended_charset
states: [ 通用, 增廣 ]
reset: 1
# 默認開啓Unihan全字集
- name: simplification
states: [ 漢字, 汉字 ]
reset: 0
- name: ascii_mode
reset: 0
- name: full_shape
states: [ 半角, 全角 ]
reset: 0
engine:
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- affix_segmentor@pinyin_lookup
- affix_segmentor@jyutping_lookup
- affix_segmentor@reverse_lookup
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- table_translator
- script_translator@pinyin_lookup
- script_translator@jyutping_lookup
filters:
- simplifier@simplify
- uniquifier
- reverse_lookup_filter@pinyin_reverse_lookup
- reverse_lookup_filter@jyutping_reverse_lookup
simplify:
option_name: simplification
tips: all # 簡化字模式下提示對應的傳統漢字
tags: [ abc ]
speller:
alphabet: zyxwvutsrqponmlkjihgfedcba
delimiter: " "
auto_select: true
translator:
dictionary: cangjie6
prism: cangjie6_express
enable_user_dict: true
# 不想自動調頻的話,將上條中「true」改爲「false」
user_dict: cangjie6_express
enable_charset_filter: true
enable_sentence: false
sentence_over_completion: true
preedit_format:
- xlit|abcdefghijklmnopqrstuvwxyz|日月金木水火土竹戈十大中一弓人心手口尸廿山女田止卜片|
comment_format:
- xlit|abcdefghijklmnopqrstuvwxyz~|日月金木水火土竹戈十大中一弓人心手口尸廿山女田止卜片・|
reverse_lookup:
tag: reverse_lookup
prefix: "`"
# 反查引導鍵「`」
suffix: ;
tips: 【反查】
closing_tips: 【蒼頡】
extra_tags:
- pinyin_lookup
- jyutping_lookup
# 若不想在【反查】時加入漢語拼音或粵拼反查,請在上兩條中刪去相應「pinyin_lookup」或「jyutping_lookup」
pinyin_lookup:
tag: pinyin_lookup
prefix: "`P"
# 獨用漢語拼音反查在反查鍵「`」之後再鍵入〔大寫〕「P」
suffix: ;
dictionary: luna_pinyin
preedit_format:
- xform/([nl])v/$1ü/
- xform/([nl])ue/$1üe/
- xform/([jqxy])v/$1u/
tips: 【漢拼反查】
closing_tips: 【蒼頡】
jyutping_lookup:
tag: jyutping_lookup
prefix: "`J"
# 獨用粵拼反查在反查鍵「`」之後再鍵入〔大寫〕「J」
suffix: ;
dictionary: jyutping
tips: 【粵拼反查】
closing_tips: 【蒼頡】
pinyin_reverse_lookup:
tags: [ pinyin_lookup ]
dictionary: cangjie6
overwrite_comment: true # 覆蓋其他提示
comment_format: &comment
- xform/$/〕/
- xform/^/〔/
- xlit|abcdefghijklmnopqrstuvwxyz |日月金木水火土竹戈十大中一弓人心手口尸廿山女田止卜片、|
jyutping_reverse_lookup:
tags: [ jyutping_lookup ]
dictionary: cangjie6
overwrite_comment: true # 覆蓋其他提示
comment_format: *comment
punctuator:
import_preset: symbols
# 請在這裏更改標點設置,具體範例參照symbols.yaml本節
key_binder:
import_preset: default
bindings:
- { when: has_menu, accept: comma, send: comma }
- { when: has_menu, accept: period, send: period }
recognizer:
import_preset: default
patterns:
email: ^[a-z][-_.0-9a-z]*@.*$
url: ^(www[.]|https?:|ftp:|mailto:).*$
reverse_lookup: "`[a-z]*;?$"
# 反查引導鍵
pinyin_lookup: "`P[a-z]*;?$"
# 漢語拼音反查引導鍵
jyutping_lookup: "`J[a-z]*;?$"
# 粵拼反查引導鍵
punct: ^/[0-9]?[a-z]*$
# 以「/」引導特殊符號