-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkb_hong_im.schema.yaml
160 lines (147 loc) · 4.6 KB
/
kb_hong_im.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
# Rime schema
# version: "v0.1.0.0"
# encoding: utf-8
schema:
schema_id: kb_hong_im
name: 按鍵練習【方音符號】
version: "0.1"
author:
- Alan Jui <[email protected]>
description: |
用「羅馬拼音字母」輸入「方音符號」
方音符號:
ㄅ ㄆ ㄇ ㆠ
ㄉ ㄊ ㄋ ㄌ
ㄍ ㄎ ㄏ ㄫ ㆣ
ㄗ ㄘ ㄙ ㆡ
ㄐ ㄑ ㄒ ㆢ
ㄧ ㄨ ㆪ ㆫ
ㄚ ㆦ ㄜ ㆤ ㆧ ㆩ ㆥ
ㄞ ㄠ ㆮ ㆯ
ㆰ ㆱ ㆬ
ㄢ ㄣ ㄤ ㆲ ㄥ ㆭ
鍵盤對應:
ㄅ ㄉ 3 2 7 5 . ㄚ ㄞ ㄢ n
ㄆ ㄊ ㄍ ㄐ ㆣ ㄗ ㄧ ㆦ ㆤ ㄣ
ㄇ ㄋ ㄎ ㄑ ㄫ ㄘ ㄨ ㄜ ㄠ ㄤ
ㆠ ㄌ ㄏ ㄒ J ㄙ ㆬ ㆰ ㆲ ㆭ
switches:
- name: ascii_mode
reset: 0
states: [漢文, ABC]
- name: full_shape
reset: 0
states: [半形, 全形]
engine:
processors:
- punctuator
- selector
- express_editor
segmentors:
- punct_segmentor
translators:
- punct_translator
# punctuator:
# import_preset: tlpa_keymap_hong_im
punctuator:
half_shape: &symtable
"1": { commit: "ㄅ" }
"!": { commit: "ㆠ" }
"q": { commit: "ㄆ" }
"a": { commit: "ㄇ" }
"2": { commit: "ㄉ" }
"w": { commit: "ㄊ" }
"s": { commit: "ㄋ" }
"x": { commit: "ㄌ" }
"e": { commit: "ㄍ" }
"E": { commit: "ㆣ" }
"d": { commit: "ㄎ" }
"y": { commit: "ㄗ" }
"h": { commit: "ㄘ" }
"n": { commit: "ㄙ" }
"b": { commit: "ㆡ" }
"Y": { commit: "ㄐ" }
"H": { commit: "ㄑ" }
"N": { commit: "ㄒ" }
"r": { commit: "ㄐ" }
"f": { commit: "ㄑ" }
"v": { commit: "ㄒ" }
"B": { commit: "ㆢ" }
"c": { commit: "ㄏ" }
"7": { commit: "˙" }
"u": { commit: "ㄧ" }
"U": { commit: "ㆪ" }
"j": { commit: "ㄨ" }
"J": { commit: "ㆫ" }
"8": { commit: "ㄚ" }
"*": { commit: "ㆩ" }
"i": { commit: "ㆦ" }
"I": { commit: "ㆧ" }
"k": { commit: "ㄜ" }
",": { commit: "ㆤ" }
"<": { commit: "ㆥ" }
"-": { commit: "ㆨ" }
"m": { commit: "ㆬ" }
"p": { commit: "ㄣ" }
"/": [ "ㆭ", "ㄥ" ]
"?": { commit: "ㄫ" }
"9": { commit: "ㄞ" }
"(": { commit: "ㆮ" }
"l": { commit: "ㄠ" }
"L": { commit: "ㆯ" }
"0": { commit: "ㄢ" }
";": { commit: "ㄤ" }
":": { commit: "ㆲ" }
"O": { commit: "ㆱ" }
"A": { commit: "ㆰ" }
"[": { commit: "〔" }
"]": { commit: "〕" }
"{": { commit: "【" }
"}": { commit: "】" }
"=": [ "〔〕", "【】" ]
"_" : { commit: " " }
" ": [ "ˉ", "1", "¹" ]
"4": [ "ˋ", "2", "²" ]
"3": [ "˪", "3", "³" ]
"6": [ "ˊ", "5", "⁵" ]
"5": [ "˫", "7", "⁷" ]
"7": [ "˙", "4", "8", "0", "⁴", "⁸", "⁰" ]
"Z": [ "¹", "²", "³", "⁴", "⁵", "⁷", "⁸", "⁰" ]
"z": [ "ㆴ", "ㆵ", "ㆻ", "ㆷ" ]
"." : ["", "ⁿ", "ㄬ", "ㄯ"]
"r" : { commit: "ㆴ" }
"f" : { commit: "ㆵ" }
"v" : { commit: "ㆻ" }
"C" : { commit: "ㆷ" }
full_shape:
".": 。
key_binder:
bindings:
#---------------------------------------------------
# 使用【_】鍵,輸入【調號】:3 (低音調)
- { when: composing, accept: underscore, send: underscore }
- { when: has_menu, accept: underscore, send: underscore }
#---------------------------------------------------
# 使用【-】鍵,輸入【調號】:7 (中音調)
- { when: composing, accept: minus, send: minus }
- { when: has_menu, accept: minus, send: minus }
#---------------------------------------------------
# 使用 【.】鍵,輸入【調號】:0(輕聲及入聲調)
- { when: composing, accept: period, send: period }
- { when: has_menu, accept: period, send: period }
#---------------------------------------------------
# 翻頁
#---------------------------------------------------
- { accept: "Control+p", send: Page_Up, when: composing }
- { accept: "Control+n", send: Page_Down, when: composing }
#---------------------------------------------------
# Vim Mode
#---------------------------------------------------
- { when: has_menu, accept: "Control+h", send: Page_Up }
- { when: has_menu, accept: "Control+l", send: Page_Down }
- { when: has_menu, accept: "Control+k", send: Up }
- { when: has_menu, accept: "Control+j", send: Down }
menu:
alternative_select_labels: [ ①, ②, ③, ④, ⑤ ] # 修改候選標籤
alternative_select_keys: 12345 #如編碼字符佔用數字鍵則須另設選字鍵
page_size: 5 #選單每䈎顯示個數