-
Notifications
You must be signed in to change notification settings - Fork 2
/
jyut6ping3_morrison.schema.yaml
81 lines (65 loc) · 2.08 KB
/
jyut6ping3_morrison.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
75
76
77
78
79
80
81
# Rime schema
# encoding: utf-8
__include: jyut6ping3.schema:/
schema:
schema_id: jyut6ping3_morrison
name: 粵語拼音(Morrison拼音版)
version: "2020.05.29"
description: |-
採用香港語言學學會粵語拼音方案
https://www.lshk.org/jyutping
支援Morrison(1828)拼音顯示 (註:唔標調)
Telegram 用户交流組 https://t.me/rime_cantonese
translator:
prism: jyut6ping3_morrison
preedit_format:
############## 正則化:轉換為正確粵拼 ##############
- xform/([^ 'a])a(?=$|[ '])|aa?(?=[vxq])/$1aa/
- xform/(^|[ '])[jy]u(?!ng|k)/$1jyu/
- xform/(^|[ '])y(?=$|[ '])/$1j/
- xform/(^|[ '])yu?(n|t)?(?=$|[vxq '])/$1jyu$2/
- xform/(^|[ '])y/$1j/
- xform/(oe|eo)y(?=$|[vxq '])/eoi/
- xform/yu?/yu/
- xform/oe([int])(?=$|[vxq '])/eo$1/
- xform/eo(ng|k)?(?=$|[vxq '])/oe$1/
- xform/q(?=[aeiou])//
- xform/(g|k)wu/$1u/
###################################################
- xform/(^|[ '])([bdgz])/$1\U$2\E/
- xlit/BDGZ/ptkc/
- xform/(^|[ '])c/$1ts/
- xform/(^|[ '])j/$1y/
- xform/(^|[ '])ng/$1g/
- xform/aai/AI/
- xform/aau/AOU/
- xform/aa/A/
- xform/ai/EI/
- xform/au/ăw/
- xform/a([tk]|ng)/ă$1/
- xform/a([mn])/U$1/
- xform/(^|[^aeiou])e($|[vxq '])/$1Ay$2/
- xform/(^|[^aeiou])ei/$1E/
- xform/oe($|[vxq '])/EUĕ$1/
- xform/oe(ng|k)/EO$1/
- xform/(^|[^aeiou])i($|[vxq '])/$1E$2/
- xform/(^|[^aeiou])iu/$1Ew/
- xform/(^|[^aeiou])i([mnpt])($|[vxq '])/$1EE$2$3/
- xform/(^|[^aeiou])oi/$1Oy/
- xform/ou/Ow/
- xform/(^|[^aeiou])o(n|t)($|[vxq '])/$1OA$2$3/
- xform/eoi/Uy/
- xform/eo/U/
- xform/ui/OOy/
- xform/(^|[^aeiouy])u(n|t)?($|[vxq '])/$1OO$2$3/
- xform/yun(?!g)/une/ # 冇串錯
- xform/yut/uet/
- xform/yu/u/
- xform/(^|[ 'h])(m|ng)($|[vxq '])/$1i$2$3/
- xlit/AEIOU/aeiou/
- xform/([aeioumngptk])vv/$1⁴/
- xform/([aeioumngptk])xx/$1⁵/
- xform/([aeioumngptk])qq/$1⁶/
- xform/([aeioumngptk])v/$1¹/
- xform/([aeioumngptk])x/$1²/
- xform/([aeioumngptk])q/$1³/