-
Notifications
You must be signed in to change notification settings - Fork 0
/
wugniu_sonkaon.custom.yaml
92 lines (81 loc) · 2.19 KB
/
wugniu_sonkaon.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
# wugniu_sonkaon.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/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/ts(h?)i/c$1i/
- derive/^(s|z)i/$1hi/
# 割鴿不分
- derive/oe(?=q|h)/e/
# 革鴿不分
- derive/eo(?=q|h)/e/
# 力立不分
- derive/ie(?=q|h)/i/
- derive/ye(?=q|h)/yi/
# 握屋不分
- derive/u?ao(?=q|h)/o/
- derive/iao(?=q|h)/io/
# 聲母簡拼
- abbrev/^([a-z]).+$/$1/
- abbrev/^([pmtnlszckg]h|gn|ng|tsh?|dz).+$/$1/
# 容錯 au => ao
- derive/au/ao/
## 容錯 eu => ou
#- derive/eu/ou/
# c組聲母後自動加i
- derive/^(c|j|gn|[csz]h)i(?=[aoue])/$1/
# 容錯 介音、主元音順序調換
- derive/^(.+)([iu])([aeou])([euonqh])$/$1$3$2$4/
# 容錯 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/q/h/
#- xform/([gk])ni(?=[nqh]|\d|\b)/nyi/
#- xform/([gk])ni(?=[aoue])/ny/
#- xform/er/r/
# 反查標註設置
"reverse_lookup/comment_format":
# 顯示吳語協會式拼音
#- xform/q/h/
#- xform/([gk])ni(?=[nqh]|\d|\b)/nyi/
#- xform/([gk])ni(?=[aoue])/ny/
#- xform/er/r/