-
Notifications
You must be signed in to change notification settings - Fork 0
/
leimaau_jyutping_zhuyin_nospaces.schema.yaml
135 lines (128 loc) · 4.25 KB
/
leimaau_jyutping_zhuyin_nospaces.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
# Rime schema
# encoding: utf-8
schema:
schema_id: leimaau_jyutping_zhuyin_nospaces
name: "粤拼注音_nospaces"
version: "20180428"
author:
- LeiMaau
description: |
採用『香港語言學會粵語拼音方案』
聲調輸入 q平 v上 x去 (雙擊爲陽調)
提供多種字體轉換方案
switches:
- name: ascii_mode
reset: 0
states: [ 中文, 西文 ]
- name: full_shape
states: [ 半角, 全角 ]
#- name: simplification
# states: [ 漢字, 汉字 ]
- options: [zh_simp, zh_tw ]
reset: 0
states:
- 汉字
- 漢字
- name: ascii_punct
states: [ 。,, ., ]
engine:
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- script_translator
- reverse_lookup_translator
filters:
- uniquifier
speller:
alphabet: 'zyxwvutsrqponmlkjihgfedcba;/,.'
initials: zyxwvutsrqponmlkjihgfedcba
delimiter: " '"
algebra:
- derive/([123456])// # 忽略声调
#- derive/^([aeiou])/q$1/ # 增加 q 表示喉塞
#- xform/1/q/
#- xform/4/qq/
#- xform/2/v/
#- xform/5/vv/
#- xform/3/x/
#- xform/6/xx/
- derive/^ng/q/ # 容錯 ng -> q
- derive/ng([123456]?)$/q$1/ # 容錯 ng -> q
- derive/^kw/x/ # 容錯 x -> kw
- derive/^gw/v/ # 容錯 x -> gw
- derive/eo/w/ # 容錯 eo -> w
- derive/oe/w/ # 容錯 oe -> w
#- derive/^(z|c|s)i$/$1z/ # 模糊 (zcs)i -> (zcs)z
#- derive/^(z|c|s)i$/$1y/ # 模糊 (zcs)i -> (zcs)y
#- derive/^jy?([aeiour])/y$1/ # 容錯 j -> y
#- derive/^jyu/yu/ # 容錯 jyu -> yu
#- derive/^jyu/ju/ # 容錯 jyu -> ju
- derive/aa/r/ # 容錯 aa -> r
#- derive/aa$/a/ # 容錯 aa -> a
#- derive/dik$/d/ # 快出「的」字
#- derive/oe(ng|k)$/eo$1/ # 容錯 oe(ng|k) -> eo(ng|k)
#- derive/eo([int])$/oe$1/ # 容錯 eo(int) -> oe(int)
#- derive/^(g|k)w/$1u/ # 廣州式
#- derive/aau$/ao/ # 廣州式 aau -> ao
- derive/^([ltdghnkszc])yu/$1y/ # 教院式 jyu -> jy,yu -> y
- derive/^jyu/y/ # 教院式 jyu -> jy,yu -> y
#- derive/yu/y/ # 教院式 jyu -> jy,yu -> y
#- derive/eoi$/eoy/ # 教院式 eoi <-> eoy
#- derive/eo([int])$/u$1/ # 模糊 eo(int) -> u(int)
- derive/(^[bpmfdnlgkh])ei([123456]?)$/$1i$2/ # 模糊 ei -> i
#- derive/ou([123456]?)$/u$1/ # 模糊 ou -> u
- derive/(^[zcbnmsdhltpq])ou([123456]?)$/$1u$2/ # 模糊 ou -> u zou cou bou nou mou sou dou hou lou tou pou
- derive/^ngou([123456]?)$/ngu$1/ # ngou
#- derive/e(m|n|ng|k)$/i$1/ # 模糊 e(m|n|ng|k) -> i(m|n|ng|k)
#- derive/a(m|p)$/o$1/ # 模糊 a(m|p) -> o(m|p)
- 'xform 1 ;'
- 'xform 2 /'
- 'xform 3 ,'
- 'xform 6 \.'
- 'xform 5 v'
- 'xform 4 x'
#- abbrev/^([a-z]).+$/$1/ # 首字母簡拼
#- abbrev/^([gk]w).+$/$1/ # 聲母簡拼
menu:
alternative_select_keys: "123456789"
page_size: 9
translator:
dictionary: leimaau_jyutping_zhuyin_nospaces
spelling_hints: 9
preedit_format:
#- xform/([aeioumngptk])qq/$1⁴/
#- xform/([aeioumngptk])q/$1¹/
#- xform/([aeioumngptk])vv/$1⁵/
#- xform/([aeioumngptk])v/$1²/
#- xform/([aeioumngptk])xx/$1⁶/
#- xform/([aeioumngptk])x/$1³/
- 'xform ([aeioumngptkqrwy]); $1¹'
- 'xform ([aeioumngptkqrwy])x $1⁴'
- 'xform ([aeioumngptkqrwy])/ $1²'
- 'xform ([aeioumngptkqrwy])\. $1⁶'
- 'xform ([aeioumngptkqrwy]), $1³'
- 'xform ([aeioumngptkqrwy])v $1⁵'
#- 'xform r aa'
#- 'xform q ng'
#reverse_lookup:
# dictionary: luna_pinyin
# prefix: "`"
# suffix: "'"
# tips: 〔反查〕
# preedit_format:
# - xform/([nljqxy])v/$1ü/
# - xform/([nl])ue/$1üe/