-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgryihleng.schema.yaml
More file actions
126 lines (116 loc) · 2.83 KB
/
gryihleng.schema.yaml
File metadata and controls
126 lines (116 loc) · 2.83 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# Rime schema
# encoding: utf-8
schema:
schema_id: gryihleng
name: "諧聲全拼"
version: "2024.11.17"
author:
- 亓 <ziqiphyzhou@gmail.com>
dependencies:
- luna_pinyin # 或者任何其它字典,請修改reverse_lookup
# updates replace the header until here
switches:
- name: ascii_mode
reset: 0
states: ["中文", "西文"]
- name: full_shape
reset: 0
states: ["半角", "全角"]
- name: simplification
reset: 0
states: ["漢字", "汉字"]
engine:
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- echo_translator
- punct_translator
- script_translator
- reverse_lookup_translator
filters:
- simplifier
- uniquifier
speller:
delimiter: " '"
alphabet: "abcdefghijklmnopqrstuvwxyz"
algebra: # do not change the processing order
- xform/ng/v/ # for convenience
- xform/(?<!\w)h/x/ # for convenience
- derive/(dl|ml)/l/ # 省碼l
# 合口色彩的來源模糊韻
- derive/([pb]h?[AB124])uv/$1ym/
- derive/([pb]h?[AB124])uv/$1um/
- derive/([skgxqv]h?)([AB124])u([itn])/$1w$2y$3/
- derive/([skgxqv]h?)([AB124])o([itn])/$1w$2a$3/
- derive/([skgxqv]h?)([AB124])([uo])([itn])/$1w$2$3$4/
- derive/g(w[12][ya][itn])/$1/
# 介音
- xform/[A14]//
- xform/[B2]/r/
# 省碼
- derive/h// # 可省
- derive/q(?!r)// # q省
- abbrev/^([a-z]).+$/$1/ # 簡拼(首字母)
- abbrev/^([pmkvltnc]h).+$/$1/ # 簡拼(首二字母)
- abbrev/^([kgxdm]h?l).+$/$1/ # 簡拼(首二字母)
- abbrev/^([xkgqv]h?w).+$/$1/ # 簡拼(首二字母)
- abbrev/^(s[wlt]).+$/$1/ # 簡拼(首二字母)
- abbrev/^([^aeiouy]+r).+$/$1/ # 簡拼(首二字母)
- xform/x/h/
- derive/v/ng/ # ng省碼v
- derive/ra/x/ # q省
- derive/re/f/ # q省
- derive/ry/j/ # q省
translator:
dictionary: gryihleng
preedit_format:
- xform/y/ə/
- xform/ng|v/ŋ/
- xform/x/ra/
- xform/f/re/
- xform/j/ry/
menu:
page_size: 10
reverse_lookup:
dictionary: luna_pinyin
comment_format:
- xform/ng/ŋ/
- xform/q/ʔ/
- xform/dl/ɦl/
- xform/(kh?|g|h)l/$1ˡ/
- xform/([pmkŋwlrtnc])h/$1ʰ/
- xform/([kghʰʔŋ])w/$1ʷ/
- xform/A//
- xform/B/ʳ/
- xform/[14]/ˁ/
- xform/2/ʳˁ/
- xlit/y/ə/
preedit_format:
- "xform/([nl])v/$1ü/"
- "xform/([nl])ue/$1üe/"
- "xform/([jqxy])v/$1u/"
prefix: "`"
suffix: "'"
prism: luna_pinyin
tips: "〔拼音〕"
punctuator:
import_preset: default
key_binder:
import_preset: default
recognizer:
import_preset: default
patterns:
reverse_lookup: "`[a-z]*'?$"