-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjyut6ping3_bpmf_ng.schema.yaml
74 lines (62 loc) · 1.65 KB
/
jyut6ping3_bpmf_ng.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
# Rime schema
# encoding: utf-8
__include: jyut6ping3.schema:/
schema:
schema_id: jyut6ping3_bpmf_ng
name: 粵語拼音(國民政府注音版)
version: "2020.05.26"
description: |-
採用香港語言學學會粵語拼音方案
https://www.lshk.org/jyutping
支援國民政府注音顯示
Telegram 用户交流組 https://t.me/rime_cantonese
translator:
dictionary: jyut6ping3
prism: jyut6ping3_bpmf_ng
spelling_hints: 8
preedit_format:
# m/ng 轉換
- xform/(^|[ '])(m)(qq?|xx?|vv?)?($|[ '])/$1ㆬ$3$4/
- xform/(^|[ '])(ng)(qq?|xx?|vv?)?($|[ '])/$1ㆭ$3$4/
# 聲調
- xform/([ptk])qq/$1ʻ/
- xform/([ptk])q/$1/
- xform/([ptk])v/$1˙/
- xform/vv/ˊ/
- xform/v/ˉ/
- xform/xx/˘/
- xform/x/ˇ/
- xform/qq/ˆ/
- xform/q/ˋ/
# jung 特例
- xform/jung/ㄩㄥ/
# 聲母簡拼
- xform/jy/y/
- xform/yu/v/
- xform/(j|y)i/i/
- xform/(j|y)/i/
- xform/gw/ㄍㄨ/
- xform/kw/ㄎㄨ/
- xform/wu/u/
- xform/w/u/
# 雙字符轉換
- xform/(oe|eo)/O/
- xform/(^|[ '])ng/$1x/
- xform/ng/X$1/
# aa 轉換
- xform/aai/ㄞ/
- xform/aau/ㄠ/
- xform/aam/ㆰ/ # 借臺語符號一用
- xform/aan/ㄢ/
- xform/aaX/ㄤ/
- xform/aa/A/
# e 轉換
- xform/ei/ㄟ/
# o 轉換
- xform/ou/ㄡ/
- xform/on/干/ #借用漢字「干」
- xform/oX/丄/ #借用漢字「丄」
# 尾音轉換
- xform/(A|a|e|i|o|u|v|O)(m|n|X|p|t|k)/$1\U$2/
# 轉換成注音符號
- "xlit|abcdefghiklmnopstuvxzAOMNXPTK|ㆿㄅㄘㄉㄝㄈㄍㄏㄧㄎㄌㄇㄋㄛㄆㄙㄊㄨㄩㄫㄗㄚ¥ㆬㄣㄥㆴㆵㆶ|"