-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nguphing-syphiq.schema.yaml
69 lines (65 loc) · 1.53 KB
/
nguphing-syphiq.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
# Rime schema
# encoding: utf-8
__include: nguphing.schema:/
schema:
schema_id: nguphing-syphiq
name: 吳語四拼
version: "20240224"
author:
- 山前 <[email protected]>
description: |
* 標準吳語
* 縮短拼式
* [ptkgcsz]h+i+[aeou] -> y
* [ptkgcsz]h+u+[aeo] -> w
* ng -> q
* tzi+aeou -> xi, tsi+aeou -> xy
speller:
algebra:
- erase/^xx$/
- erase/^0$/
- "xform/'//"
- xlit|123|rxq|
# c 系後 i 簡寫
- derive/^(c|ch|j|sh|zh)i([aeou])/$1$2/
# in心 星ing 弗分
- derive/ing([rxq])$/in$1/
- derive/in([rxq])$/ing$1/
- derive/ik$/ih/
- derive/ih$/ik/
- derive/eng/en/
# ih立 ieh列 弗分
- derive/ieh$/ih/
# ie淹 iae煙 弗分
- derive/([iy])ae([rxq])$/$1e$2/
- derive/([iy])e([rxq])$/$1ae$2/
# ok樂 uk六 弗分
- derive/ok$/uk/
- derive/uk$/ok/
# ngi-ni 弗分
- derive/^ngi/ni/
# dz-z j-zh 弗分
- derive/^dz/z/
- derive/^j/zh/
# ci-cy 弗分
- derive/^(c|ch|j|sh|zh)i([rxq])$/$1y$2/
- derive/^(c|ch|j|sh|zh)y([rxq])$/$1i$2/
# l m n 清音簡化
- xform/^([lmn])h/$1/
# 弗打聲調
- xform/([rxq])$//
# 四拼
- xform/ng/q/
- xform/tzi([aeou])/xi$1/
- xform/tsi([aeou])/xy$1/
- xform/([ptkgcsz])hi([aeou])/$1y$2/
- xform/([ptkgcsz])hu([aeo])/$1w$2/
translator:
prism: nguphing-phiq
preedit_format:
- xform/q/ng/
- xform/xi/tzi/
- xform/xy/tsi/
- xform/([ptkgcsz])y([aeou])/$1hi$2/
- xform/([ptkgcsz])w([aeo])/$1hu$2/
- "xform/[;']/-/"