-
Notifications
You must be signed in to change notification settings - Fork 0
/
wugniu_kazoe.custom.yaml
95 lines (81 loc) · 2.22 KB
/
wugniu_kazoe.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
# wugniu_kazoe.custom.yaml
# encoding: utf-8
#
# 吳語(嘉善)輸入法模糊音定製模板
#
# author:
# - Shin Zoqchiuq <shinzoqchiuq@outlook.com>
#
# https://ngli.github.io/%E4%BD%BF%E7%94%A8/%E6%A8%A1%E7%B3%8A%E9%9F%B3.html
#
# 使用方法:
# 需要開啓(關閉)哪組模糊音,就在行首刪去(加上) # 號。
# 修改後保存文件。將文件放到Rime的「用戶文件夾」。
#
# 「用戶文件夾」的位置:
# ~/.config/ibus/rime (Linux)
# ~/Library/Rime (Mac OS)
# %APPDATA%\Rime (Windows)
#
# 於重新部署後生效
#
patch:
# 模糊音設置 容錯設置
"speller/algebra":
- xform/^([bcdfghjklpqstvwxyz])$/$1_/
# 以下這行不要改動
- xform/\d//
## 轉爲吳語協會式拼音
#- xform/q/h/
#- xform/gni(?=[nqh]|\d|\b)/nyi/
#- xform/gni(?=[aoue])/ny/
#- xform/er/r/
# 兼容吳語協會式拼音
- derive/q/h/
- derive/gni(?=[nqh]|\d|\b)/nyi/
- derive/gni(?=[aoue])/ny/
- derive/er/r/
# 打黨不分
- derive/aon/an/
# 聲母簡拼
- abbrev/^([a-z]).+$/$1/
- abbrev/^([pmtnlszckg]h|gn|ng|tsh?|dz).+$/$1/
# 容錯 au => ao
- derive/au/ao/
# c組聲母後自動加i
- derive/^(c|j|gn|[csz]h)i(?=[aoue])/$1/
# 容錯 介音、主元音順序調換
- derive/^(.+)([iu])([aeou])([euonqh])$/$1$3$2$4/
# 容錯 oe => eo
- derive/oe/eo/
# 容錯 ao => oa
- derive/ao/oa/
## 容錯 y- => ghi-
#- derive/yi|y(?=[aeou])/ghi/
## 容錯 w- => ghu-
#- derive/wu|w(?=[aeo])/ghu/
# 輸入提示設置
"translator/comment_format":
# 顯示吳語協會式拼音
#- xform/q/h/
#- xform/([gk])ni(?=[nqh]|\d|\b)/nyi/
#- xform/([gk])ni(?=[aoue])/ny/
#- xform/er/r/
# 不顯示單字調
- xform/\d//
## 多字不顯示聲調
#- xform/( .+)\d/$1/
#- xform/\d(.+?)(?=\b)/$1/
## 聲調上標
#- xlit/12345678/¹²³⁴⁵⁶⁷⁸/
# 反查標註設置
"reverse_lookup/comment_format":
# 顯示吳語協會式拼音
#- xform/q/h/
#- xform/([gk])ni(?=[nqh]|\d|\b)/nyi/
#- xform/([gk])ni(?=[aoue])/ny/
#- xform/er/r/
# 不顯示單字調
- xform/\d//
## 聲調上標
#- xlit/12345678/¹²³⁴⁵⁶⁷⁸/