-
Notifications
You must be signed in to change notification settings - Fork 2
/
jyut6ping3_yale_new.schema.yaml
46 lines (41 loc) · 1.32 KB
/
jyut6ping3_yale_new.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
# Rime schema
# encoding: utf-8
__include: jyut6ping3.schema:/
schema:
schema_id: jyut6ping3_yale_new
name: 粵語拼音(新耶魯拼音版)
version: "2020.05.29"
description: |-
採用香港語言學學會粵語拼音方案
https://www.lshk.org/jyutping
支援新版耶魯拼音顯示
Telegram 用户交流組 https://t.me/rime_cantonese
translator:
prism: jyut6ping3_yale_new
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/(^|[ '])jy/$1y/
- xform/(^|[ '])j/$1y/
- xform/(^|[ '])z/$1j/
- xform/(^|[ '])c/$1ch/
- xform/eu/ew/
- xform/oe|eo/eu/
- xform/aa($|[vxq '])/a$1/
- xform/([aeioumngptk])vv/$1⁴/
- xform/([aeioumngptk])xx/$1⁵/
- xform/([aeioumngptk])qq/$1⁶/
- xform/([aeioumngptk])v/$1¹/
- xform/([aeioumngptk])x/$1²/
- xform/([aeioumngptk])q/$1³/