-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathqiannairong.schema.yaml
More file actions
211 lines (194 loc) · 4.34 KB
/
Copy pathqiannairong.schema.yaml
File metadata and controls
211 lines (194 loc) · 4.34 KB
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
# Rime schema
# encoding: utf-8
schema:
schema_id: qiannairong
name: 錢乃榮上海閒話
version: "2024.07.30"
author:
- Cathaylab <goetiansoc@proton.me>
description: |
上海閒話
拼寫方案採用錢乃榮式
https://zh.wikipedia.org/wiki/%E9%92%B1%E4%B9%83%E8%8D%A3%E5%BC%8F%E4%B8%8A%E6%B5%B7%E8%AF%9D%E6%8B%BC%E9%9F%B3%E6%96%B9%E6%A1%88
http://wu-chinese.com/minidict/
dependencies:
- luna_pinyin
switches:
- name: simplification
states: [漢字, 汉字]
- name: ascii_mode
reset: 0
states: [中文, 西文]
- name: full_shape
reset: 0
states: [半角, 全角]
- name: extended_charset
reset: 1
states: [通用, 增廣]
- name: ascii_punct
reset: 0
states: [。,, .,]
engine:
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- affix_segmentor@luna_pinyin
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- script_translator
- script_translator@luna_pinyin
filters:
- simplifier
- uniquifier
- reverse_lookup_filter@yahwe_zaone_reverse_lookup
speller:
alphabet: ";zyxwvutsrqponmlkjihgfedcba"
delimiter: " '"
algebra:
- xform/'/;/
- xform/\d+$//
- abbrev/^([a-z]).+$/$1/
- abbrev/^(([ptsck]|ts)h).+$/$1/
- abbrev/^(ts).+$/$1/
- abbrev/^(ny).+$/$1/
- abbrev/^(ng).+$/$1/
- abbrev/^(gh).+$/$1/
# 雙擊拼寫加快打字速度
- derive/^bh/bb/
- derive/^dh/dd/
- derive/^gh/gg/
- derive/^sh/ss/
- derive/^xh/xx/
- derive/^jh/jj/
- derive/^fh/ff/
- derive/^fh/ff/
# 簡化拼寫
- derive/^xia/xa/
- derive/^jia/ja/
- derive/^xhia/xha/
- derive/^jhia/jha/
- derive/^xhia/xxa/
- derive/^jhia/jja/
- derive/^qia/qa/
- derive/^xio/xo/
- derive/^jio/jo/
- derive/^xhio/xho/
- derive/^jhio/jho/
- derive/^xhio/xxo/
- derive/^jhio/jjo/
- derive/^qio/qo/
- derive/^xuoe/xoe/
- derive/^juoe/joe/
- derive/^xhuoe/xhoe/
- derive/^jhuoe/jhoe/
- derive/^xhuoe/xxoe/
- derive/^jhuoe/jjoe/
- derive/^quoe/qoe/
- derive/^xuoe/xioe/
- derive/^juoe/jioe/
- derive/^xhuoe/xhioe/
- derive/^jhuoe/jhioe/
- derive/^xhuoe/xxioe/
- derive/^jhuoe/jjioe/
- derive/^quoe/qioe/
- derive/^sy/s/
- derive/^shy/sh/
- derive/^ssy/ss/
- derive/^cy/c/
- derive/^zy/z/
- derive/^zy/z/
- derive/uik$/uk/
- derive/uik$/uh/
# 適應㗂艚
- derive/^xuoe/xuan/
- derive/^juoe/juan/
- derive/^xhuoe/xhuan/
- derive/^jhuoe/jhuan/
- derive/^xhuoe/xxuan/
- derive/^jhuoe/jjuan/
- derive/^quoe/quan/
- derive/e$/ai/
- derive/uek$/uok/
- derive/uek$/uoh/
# 模糊音
- derive/ak$/ek/
- derive/ek$/ak/
- derive/ak$/ek/
- derive/an$/ang/
- derive/ang$/an/
- derive/^wh/w/
- derive/^yh/y/
- derive/^bh/b/
- derive/^dh/d/
- derive/^hh//
- derive/^gh/g/
- derive/^xh/jh/
- derive/^xh/jj/
# 拼寫變化適應吳語協會
- derive/ek$/eh/
- derive/ak$/ah/
- derive/ik$/ih/
- derive/ao$/au/
- derive/in$/ing/
- derive/en$/eng/
- derive/ou$/eu/
- derive/ong$/on/
- derive/ang$/aon/
- derive/ong$/ung/
- derive/^fh/v/
- derive/^qi/chi/
# 反向模糊尖團音
- derive/^xi/si/
- derive/^xhi/shi/
- derive/^xhi/ssi/
- derive/^qi/tshi/
- derive/^ji/tsi/
- derive/^xhi/zi/
#- derive/^zi(?=a)/y/ # 謝謝 zia ya; 好像 hau yan
translator:
dictionary: qiannairong
prism: qiannairong
spelling_hints: 6
comment_format:
- xform/\d+//
luna_pinyin:
tag: luna_pinyin
dictionary: luna_pinyin
prefix: "`"
suffix: ";"
tips: 〔普通話〕
preedit_format:
- xform/([nl])v/$1ü/
- xform/([nl])ue/$1üe/
- xform/([jqxy])v/$1u/
qiannairong_reverse_lookup:
tags: [luna_pinyin]
overwrite_comment: false
dictionary: qiannairong
comment_format:
- xform/\d+//
punctuator:
import_preset: symbols
full_shape:
":": [:, ;]
half_shape:
":": [:, ;]
key_binder:
import_preset: default
recognizer:
import_preset: default
patterns:
punct: "^/([0-9]0?|[a-z]+)$"
luna_pinyin: "`[a-z]*;?$"