-
Notifications
You must be signed in to change notification settings - Fork 1
/
jyutcitzi_web.schema.yaml
123 lines (110 loc) · 3.37 KB
/
jyutcitzi_web.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
# Rime schema
# encoding: utf-8
schema:
schema_id: jyutcitzi_web
name: 粵切字 (禾旡·比`·版)
version: "2"
author:
- jyutcitzi <jyutcitzi_now@protonmail.com>
switches:
- name: ascii_mode
reset: 0
states: [ 中文, 西文 ]
- name: full_shape
states: [ 半角, 全角 ]
- options: [ noop, trad_hk, trad_tw ]
states: [ 不轉換, 香港繁體, 臺灣正體 ]
reset: 1
- name: ascii_punct
states: [ 。,, ., ]
- name: emoji_suggestion
reset: 1
states: [ "🈚️️\uFE0E", "🈶️️\uFE0F" ]
engine:
processors:
- ascii_composer
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- abc_segmentor
- punct_segmentor
translators:
- punct_translator
- script_translator
filters:
- simplifier@trad_tw
- simplifier@trad_hk
- simplifier@simp_cn
- simplifier@emoji_suggestion
- uniquifier
translator:
dictionary: jyutcitzi_web
spelling_hints: 8
preedit_format:
- xform/([aeioumngptkR])vv/$1⁴/
- xform/([aeioumngptkR])VV/$1⁴/
- xform/([aeioumngptkR])xx/$1⁵/
- xform/([aeioumngptkR])qq/$1⁶/
- xform/([aeioumngptkR])v/$1¹/
- xform/([aeioumngptkR])V/$1¹/
- xform/([aeioumngptkR])x/$1²/
- xform/([aeioumngptkR])q/$1³/
speller:
alphabet: zyxwvutsrqponmlkjihgfedcbaRV # VXQ
delimiter: " '"
algebra:
# setting 1: prefer - and = (55, 11) over ' and " (51/53, 21/31)
- derive/([123456])// # 忽略声调
# setting 2: prefer ' and " (55, 11) over - and = (51/53, 21/31)
# - derive/([723856])// # 忽略声调
- xform/2/x/ # 陰上
- xform/5/xx/ # 陽上
- xform/3/q/ # 陰去
- xform/6/qq/ # 陽去
# setting 1: prefer - and = (55, 11) over ' and " (51/53, 21/31)
- xform/1/v/ # 陰平
- xform/4/vv/ # 陽平
- xform/7/V/ # 陰平 (alternative)
- xform/8/VV/ # 陽平 (alternative)
# setting 2: prefer ' and " (55, 11) over - and = (51/53, 21/31)
# - derive/([723856])// # 忽略声调
# - xform/1/V/ # 陰平
# - xform/4/VV/ # 陽平
# - xform/7/v/ # 陰平 (alternative)
# - xform/8/vv/ # 陽平 (alternative)
- derive/wl/r/ # 容錯
- derive/^jy?([aeiou])/y$1/ # 容錯 je -> ye, jyu -> yu
- derive/^jyu/ju/ # 容錯 jyu -> ju
- derive/yu/y/ # 容錯 jyu -> jy
- derive/eoi$/oey/ # 容錯
- derive/eoi$/eoy/ # 容錯
- derive/eo/oe/ # 容錯 eo/oe 不分
- derive/oe(ng|k)$/eo$1/ # 容錯
- derive/aa$/a/ # 容錯
- abbrev/^([a-z]).+$/$1/ # 首字母簡拼
- abbrev/^([a-z]{2}).+$/$1/ # 首2字母簡拼
trad_tw:
option_name: trad_tw
opencc_config: t2tw.json
trad_hk:
option_name: trad_hk
opencc_config: t2hk.json
emoji_suggestion:
opencc_config: emoji.json
option_name: emoji_suggestion
tips: all
punctuator: # 設定符號表,這裏直接導入預設的
import_preset: default
half_shape: &symtable
"Q" : ¯
"W" : ´ # or ˊ
"E" : "`" # or ˋ
"A" : ⁼
"S" : ˝
"D" : ゙
"F" : ·
full_shape: *symtable