-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhangugeo_fast.schema.yaml
153 lines (142 loc) · 3.5 KB
/
hangugeo_fast.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
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# Rime schema
# encoding: utf-8
schema:
schema_id: hangugeo_fast
name: 韓國語-羅馬字快速
version: "2020.06.23"
author:
- Li GhauNgyan
description: |
鍵盤排列
Qㅑ /Wㅕ /Eㅔㅖ/Rㄹ /Tㅌ /Yㅠ /Uㅜ /Iㅣ /Oㅗ /Pㅍ
Aㅏ /Sㅅㅆ/Dㄷㄸ/Fㅇ /Gㄱㄲ/Hㅎ /Jㅡ /Kㅋ /Lㅛ
Zㅈㅉ/Xㅐㅒ/Cㅊ /Vㅓ /Bㅂㅃ/Nㄴ /Mㅁ
主要根據羅馬音排列, 空餘的鍵位就近安排常用雙元音
dependencies:
- luna_pinyin
switches:
- name: ascii_mode
reset: 0
states: [ 韓文, 西文 ]
- name: half_shape
states: [ 全角, 半角 ]
- name: simplification
states: [ 漢字, 汉字 ]
- name: ascii_punct
reset: 1
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:
- punct_translator
- script_translator
- reverse_lookup_translator
filters:
- simplifier
- uniquifier
speller:
alphabet: 'zyxwvutsrqponmlkjihgfedcbaZXVUSOGEDBA'
delimiter: "'"
algebra:
- xform/wo/weo/
- xform/ae/x/
- xform/eu/j/
- xform/eo/v/
- xform/ng/f/
- xform/w([ax])/o$1/
- xform/w([ve])/u$1/
- xform/oe/oi/
- xform/ui/ji/
- xform/wi/ui/
- xform/(^[aeouxvijqwy])/f$1/
- xform/y([aeouxv])/\U$1/
- xform/ss/S/
- xform/zz/Z/
- xform/bb/B/
- xform/dd/D/
- xform/gg/G/
- xform/l/r/
- xlit|zxvutsponmrkjihgfedcbaZXVUSOGEDBA|zxvutsponmrkjihgfedcbaZXwySlGEDBq|
- abbrev/^([a-zA-Z]).+$/$1/
translator:
dictionary: hangugeo
prism: hangugeo_fast
spelling_hints: 8
comment_format:
- xform/wo/weo/
- xform/ae/x/
- xform/eu/j/
- xform/eo/v/
- xform/ng/f/
- xform/w([ax])/o$1/
- xform/w([ve])/u$1/
- xform/oe/oi/
- xform/ui/ji/
- xform/wi/ui/
- xform/(^[aeouxvijqwy])/f$1/
- xform/y([aeouxv])/\U$1/
- xform/ss/S/
- xform/zz/Z/
- xform/bb/B/
- xform/dd/D/
- xform/gg/G/
- xform/l/r/
- xform/(^[aeouxvijAEOUXV])/f$1/
- xform/'([aeouxvijAEOUXV])/'f$1/
- "xlit|zxvutsponmrkjihgfedcbaZXVUSOGEDBA|ㅈㅐㅓㅜㅌㅅㅍㅗㄴㅁㄹㅋㅡㅣㅎㄱㅇㅔㄷㅊㅂㅏㅉㅒㅕㅠㅆㅛㄲㅖㄸㅃㅑ|"
preedit_format:
- "xlit|zxvutsponmrkjihgfedcbaZXwySlGEDBq|ㅈㅐㅓㅜㅌㅅㅍㅗㄴㅁㄹㅋㅡㅣㅎㄱㅇㅔㄷㅊㅂㅏㅉㅒㅕㅠㅆㅛㄲㅖㄸㅃㅑ|"
reverse_lookup:
dictionary: luna_pinyin
prefix: "`"
suffix: "'"
tips: 〔拼音〕
preedit_format:
- xform/([nl])v/$1ü/
- xform/([nl])ue/$1üe/
- xform/([jqxy])v/$1u/
comment_format:
- xform/wo/weo/
- xform/ae/x/
- xform/eu/j/
- xform/eo/v/
- xform/ng/f/
- xform/w([ax])/o$1/
- xform/w([ve])/u$1/
- xform/oe/oi/
- xform/ui/ji/
- xform/wi/ui/
- xform/(^[aeouxvijqwy])/f$1/
- xform/y([aeouxv])/\U$1/
- xform/ss/S/
- xform/zz/Z/
- xform/bb/B/
- xform/dd/D/
- xform/gg/G/
- xform/l/r/
- xform/(^[aeouxvijAEOUXV])/f$1/
- xform/ ([aeouxvijAEOUXV])/ f$1/
- "xlit|zxvutsponmrkjihgfedcbaZXVUSOGEDBA|ㅈㅐㅓㅜㅌㅅㅍㅗㄴㅁㄹㅋㅡㅣㅎㄱㅇㅔㄷㅊㅂㅏㅉㅒㅕㅠㅆㅛㄲㅖㄸㅃㅑ|"
punctuator:
import_preset: symbols
key_binder:
import_preset: default
recognizer:
#import_preset: default
patterns:
punct: '^/([0-9]0?|[A-Za-z]+)$'
reverse_lookup: "`[a-z]*'?$"