-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhangeul2set.schema.yaml
161 lines (151 loc) · 5.95 KB
/
hangeul2set.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
154
155
156
157
158
159
160
161
# Rime schema settings
# encoding: utf-8
# 《韓語標準鍵位(2-set)設定頁》
schema:
schema_id: hangeul2set # 注意此ID與文件名裏 .schema.yaml 之前的部分相同
name: ❃韓語2set❃
version: "201903"
author:
- 『洋蔥』
description: |
韓文
switches:
- name: ascii_mode
reset: 0
states: [ "韓文", "英文" ]
- name: full_shape
states: [ "半形", "全形" ]
engine:
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
# - fluency_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- script_translator
- punct_translator
- table_translator@hangeul_phrase
menu:
alternative_select_keys: "0123456789"
page_size: 10
speller:
alphabet: "abcdefghijklmnopqrstuvwxyz;QWERTOP"
delimiter: " "
algebra:
- xform/mqo/QO/
- xform/mqp/QP/
- xform/mwo/WO/
- xform/mwp/WP/
- xform/meo/EO/
- xform/mep/EP/
- xform/mro/RO/
- xform/mrp/RP/
- xform/mto/TO/
- xform/mtp/TP/
- xform/qq/Q/
- xform/ww/W/
- xform/ee/E/
- xform/rr/R/
- xform/tt/T/
- xform/oo/O/
- xform/pp/P/
- derive/^Q/qq/
- derive/^W/ww/
- derive/^E/ee/
- derive/^R/rr/
- derive/^T/tt/
translator:
dictionary: hangeul2set
prism: hangeul2set
enable_user_dict: true
enable_sentence: false
enable_completion: false
preedit_format:
# - "xlit|abcdefghijklmnopqrstuvwxyz|ABCDEFGHIJKLMNOPQRSTUVWXYZ|"
- "xlit|abcdefghijklmnopqrstuvwxyzQWERTOP |ㅁㅠㅊㅇㄷㄹㅎㅗㅑㅓㅏㅣㅡㅜㅐㅔㅂㄱㄴㅅㅕㅍㅈㅌㅛㅋㅃㅉㄸㄲㅆㅒㅖ·|"
comment_format:
# - "xlit|abcdefghijklmnopqrstuvwxyz|ABCDEFGHIJKLMNOPQRSTUVWXYZ|"
- "xlit|abcdefghijklmnopqrstuvwxyzQWERTOP |ㅁㅠㅊㅇㄷㄹㅎㅗㅑㅓㅏㅣㅡㅜㅐㅔㅂㄱㄴㅅㅕㅍㅈㅌㅛㅋㅃㅉㄸㄲㅆㅒㅖ·|"
hangeul_phrase:
dictionary: ""
user_dict: hangeul2set_phrase
db_class: tabledb #stabledb
enable_completion: false
enable_sentence: false
initial_quality: "1"
punctuator:
half_shape:
"`" : { commit: "₩" }
"|" : { commit: " " } ##會空一格並上屏,原「|」鍵會失效變「空格」。可結合key_binder空白鍵,使空白鍵能空一格上屏。
"$" : [ "$", "₩", "$", "¥", "¥", "€", "£", "£", "₤", "¢", "¢", "₵", "₡", "¤", "৳", "฿", "₠", "₢", "₣", "₥", "₦", "₧", "₪", "₫", "₭", "₮", "₯", "₰", "₱", "₲", "₳", "₴", "₶", "₷", "₸", "₹", "₺", "₨", "﷼" ]
"%" : [ "%", "%", "‰", "‱", "°", "℃", "℉", "Å", "㏃", "㏆", "㎈", "㏄", "㏅", "㎝", "㎠", "㎤", "㏈", "㎗", "㎙", "㎓", "㎬", "㏉", "㏊", "㏋", "㎐", "㏌", "㎄", "㎅", "㎉", "㎏", "㎑", "㏍", "㎘", "㎞", "㏎", "㎢", "㎦", "㎪", "㏏", "㎸", "㎾", "㏀", "㏐", "㏓", "㎧", "㎨", "㎡", "㎥", "㎃", "㏔", "㎆", "㎎", "㎒", "㏕", "㎖", "㎜", "㎟", "㎣", "㏖", "㎫", "㎳", "㎷", "㎹", "㎽", "㎿", "㏁", "㎁", "㎋", "㎚", "㎱", "㎵", "㎻", "㏘", "㎩", "㎀", "㎊", "㏗", "㏙", "㏚", "㎰", "㎴", "㎺", "㎭", "㎮", "㎯", "㏛", "㏜", "㎔", "㏝", "㎂", "㎌", "㎍", "㎕", "㎛", "㎲", "㎶", "㎼" ]
"&" : [ "&", "&", "#", "@", ⅟, ½, ↉, ⅓, ⅔, ¼, ⅕, ⅖, ⅗, ⅘, ⅙, ⅚, ⅐, ⅛, ⅜, ⅝, ⅞, ⅑, ⅒ ]
"*" : [ "*", *, "﹡", ※, ❂, ★, ☆, ✡, ❋, ❊, ❉, ❈, ❇, ❆, ❅, ❄, ❃, ❁, ❀, ✿, ✾, ✽, ✼, ✻, ✺, ✹, ✸, ✷, ✶, ✵, ✴, ✳, ✲, ✱, ✰, ✯, ✮, ✭, ✬, ✫, ✪, ✩, ✧, ✦, ✥, ✤, ✣, ✢, ⛤, ⛥, ⛦, ⛧ ]
"^" : [ "^", "+", "-", "×", "÷", "±", "=", "≠", "=", "+", "-", "<", ">", "∈", "∏", "∑", "≮", "≯", "∕", "√", "∝", "∞", ∟, ∠, ∥, ∧, ∨, ∩, ∪, ∫, ∮, ∴, ∵, ∷, ∽, ≈, ≌, ≒, ≡, ≤, ≥, ≦, ≧, ⊕, ⊙, ⊥, ⊿, ㏑, ㏒ ]
"=" : { commit: "=" }
"-" : { commit: "-" }
"," : { commit: "," }
"." : { commit: "." }
";" : [ ";", "…", "·", "`", "'", "\"" ]
"'" : { pair: [ "‘", "’" ] }
"\"" : { pair: [ "“", "”" ] }
#############################
"A" : { commit: "ㅁ" }
"B" : { commit: "ㅠ" }
"C" : { commit: "ㅊ" }
"D" : { commit: "ㅇ" }
# "E" : { commit: "ㄸ" }
"F" : { commit: "ㄹ" }
"G" : { commit: "ㅎ" }
"H" : { commit: "ㅗ" }
"I" : { commit: "ㅑ" }
"J" : { commit: "ㅓ" }
"K" : { commit: "ㅏ" }
"L" : { commit: "ㅣ" }
"M" : { commit: "ㅡ" }
"N" : { commit: "ㅜ" }
# "O" : { commit: "ㅒ" }
# "P" : { commit: "ㅖ" }
# "Q" : { commit: "ㅃ" }
# "R" : { commit: "ㄲ" }
"S" : { commit: "ㄴ" }
# "T" : { commit: "ㅆ" }
"U" : { commit: "ㅕ" }
"V" : { commit: "ㅍ" }
# "W" : { commit: "ㅉ" }
"X" : { commit: "ㅌ" }
"Y" : { commit: "ㅛ" }
"Z" : { commit: "ㅋ" }
#############################
key_binder:
import_preset: default
bindings:
- {accept: comma, send: comma, when: has_menu}
- {accept: period, send: period, when: has_menu}
- {accept: minus, send: minus, when: has_menu}
- {accept: equal, send: equal, when: has_menu}
- {accept: Left, send: Page_Up, when: paging}
- {accept: Right, send: Page_Down, when: paging}
- {accept: Tab, send: Shift+Right, when: composing}
- {accept: Shift+space, send: Down, when: has_menu} #選字可用「 Shift 」+空白鍵
- {accept: Return, send: space, when: has_menu} #return,enter直出
- {accept: space, send: bar, when: has_menu} #按空白鍵後會空一格並上屏,原「|」鍵會失效變「空格」。
- {accept: space, send: space, when: paging} #選單有多字並選擇時,不會跳成單字加上空格。
editor:
bindings:
Shift+Return: commit_raw_input
recognizer:
patterns:
email: "^[A-Za-z][-_.0-9A-Za-z]*@.*$"
url: "^(www[.]|https?:|ftp[.:]|mailto:|file:).*$|^[a-z]+[.].+$"