-
Notifications
You must be signed in to change notification settings - Fork 0
/
wugniu_gninpou.custom.yaml
174 lines (155 loc) · 4.12 KB
/
wugniu_gninpou.custom.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
# wugniu_gninpou.custom.yaml
# encoding: utf-8
#
# 吳語(寧波)輸入法模糊音定製模板
#
# author:
# - Shin Zoqchiuq <shinzoqchiuq@outlook.com>
#
# https://github.com/NGLI/rime-wugniu_gninpou/wiki/%E4%BD%BF%E7%94%A8#%E6%A8%A1%E7%B3%8A%E9%9F%B3
#
# 使用方法:
# 需要開啓(關閉)哪組模糊音,就在行首刪去(加上) # 號。
# 修改後保存文件。將文件放到Rime的「用戶文件夾」。
#
# 「用戶文件夾」的位置:
# ~/.config/ibus/rime (Linux)
# ~/Library/Rime (Mac OS)
# %APPDATA%\Rime (Windows)
#
# 於重新部署後生效
#
patch:
# 模糊音設置 容錯設置
"speller/algebra":
- xform/^([bcdfghjklpqstvwxyz])$/$1_/
# 還原城區音系
- xform/(\w*)-(\w*)/$1/
# io韻消失
- erase/(^|c|j|gn|kn|[csz]h)(y|i)o$/
## 轉爲吳語協會式拼音
#- xform/q/h/
#- xform/(?<=[yi])o(?=\d|\b)/uo/
#- xform/(i|y)au/$1o/
#- xform/([mnl])h/$1/
#- xform/nk/ng/
#- xform/([gk])ni(?=[nqh]|\d|\b)/nyi/
#- xform/([gk])ni(?=[aoue])/ny/
#- xform/(?<=[szh])yu(?[nqh])/oe/
#- xform/er/r/
# 兼容吳語協會式拼音
- derive/q/h/
- derive/(i|y)au/$1o/
- derive/([gk])ni(?=[nqh]|\d|\b)/nyi/
- derive/([gk])ni(?=[aoue])/ny/
- derive/(?<=[szh])yu(?=[nqh])/oe/
- derive/er/r/
# 模糊音
## 謝夜不分
#- derive/zhi(?=[aoue])/y/
#- derive/zhi(?=[nqh]|$)/yi/
# 胡符不分
- derive/wu$/vu/
- derive/vu$/wu/
## 饅姆不分
#- derive/mun/m/
# 亂漏不分
- derive/loe/leu/
# 新派
# 且采不分
- derive/c(h)?ie$/ts$1e/
- derive/jie$/dze/
- derive/(?<=[sz])hie$/e/
- derive/^ye$/ghe/
# 降壯不分
- derive/ciaon/tsaon/
# 穿秋不分
- derive/ts(h)?oe$/c$1ieu/
- derive/dzoe$/jieu/
- derive/^(s|z)oe$/$1hieu/
# 掛架不分
- derive/(kh?)uo/$1o/
# 話夏不分
- derive/wo/gho/
- derive/^(h)?uo/$1o/
# 官孤不分
- derive/(?<![iy])un/u/
# 春沖不分 出促不分
- derive/(?<=[szh])(yu|oe)(?=[nqh])/o/
# 羣窮不分 缺吃不分
- derive/(^y|i)u(?=[nqh])/$1o/
- derive/(^y|i)o(?=[nqh])/$1u/
# 約一不分
- derive/ia(?=q|h)/i/
- derive/ya(?=q|h)/yi/
# 新新派
## 歡夫不分
#- derive/hun/fu/
## 江高不分
#- derive/aon/au/
## 朋排不分
#- derive/an/a/
## 藍來不分
#- derive/ae/e/
## 九舉不分
#- derive/(?<=[yi])eu/u/
## 芋魚不分
#- derive/^n$/ng/
# 清鼻邊音
- derive/([mnl])h/$1/
- derive/kn/gn/
- derive/nk/ng/
# 容錯 gn(ny) => n kn => nh
- derive/(gn|ny)i/ni/
- derive/kni/nhi/
- derive/ny(?=[aoue])/ni/
# 簡拼
- abbrev/^([a-z]).+$/$1/
- abbrev/^([pmtnlszckg]h|[kg]n|n[kg]|tsh?|dz).+$/$1/
# 容錯 un => oe
- derive/([pbmw]|ph)un/$1oe/
- derive/^([kgh]|kh)?un/$1uoe/
# 容錯 au => ao
- derive/au/ao/
# c組聲母後自動加i
- derive/^(c|j|gn|kn|[csz]h)i(?=[aoue])/$1/
# 容錯 介音、主元音順序調換
- derive/^(.+)([iu])([aeou])([euonqh])$/$1$3$2$4/
# 容錯 oe => eo
- derive/oe/eo/
# 容錯 ao => oa
- derive/ao/oa/
# 容錯 ae => ea
- derive/ae/ea/
## 容錯 y- => ghi-
#- derive/yi|y(?=[aeou])/ghi/
## 容錯 w- => ghu-
#- derive/wu|w(?=[aeo])/ghu/
# 輸入提示設置
"translator/comment_format":
# 還原城區音系
- xform/(\w*)-(\w*)/$1/
- xform/(\b|c|j|gn|kn|[csz]h)(y|i)o\b//
# 顯示吳語協會式拼音
#- xform/q/h/
#- xform/(i|y)au/$1o/
#- xform/([mnl])h/$1/
#- xform/nk/ng/
#- xform/([gk])ni(?=[nqh]|\d|\b)/nyi/
#- xform/([gk])ni(?=[aoue])/ny/
#- xform/(?<=[szh])yu(?=[nqh])/oe/
#- xform/er/r/
# 反查標註設置
"reverse_lookup/comment_format":
# 還原城區音系
- xform/(\w*)-(\w*)/$1/
- xform/(\b|c|j|gn|kn|[csz]h)(y|i)o\b//
# 顯示吳語協會式拼音
#- xform/q/h/
#- xform/(i|y)au/$1o/
#- xform/([mnl])h/$1/
#- xform/nk/ng/
#- xform/([gk])ni(?=[nqh]|\d|\b)/nyi/
#- xform/([gk])ni(?=[aoue])/ny/
#- xform/(?<=[szh])yu(?=[nqh])/oe/
#- xform/er/r/