-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhuan_ciat_kong_un.schema.yaml
182 lines (171 loc) · 5.95 KB
/
huan_ciat_kong_un.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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
# Rime schema
# vim: set sw=2 sts=2 et:
# encoding: utf-8
---
schema:
schema_id: huan_ciat_kong_un
name: 反切輸入法【廣韻】
version: "v0.1.0.0"
author: 居正中
description:
【輸入類型】:十五音輸入法
【拼音系統】:十八音反切(雅俗通十五音改良)
【字典編碼】:台羅音標(取自《廣韻》)
【注音輸入】:羅馬拼音字母(siaⁿ1:siann;)
【侯選清單】:〔siaⁿ¹〕 【時驚一】
【聲調標示】:
(1) 台羅八聲調;
(2) 使用數值標示聲調,以利閱讀。
switches:
- name: ascii_mode
reset: 0
states: [中文, 西文]
- name: full_shape
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
- r10n_translator
- reverse_lookup_translator
filters:
- simplifier
- uniquifier
speller:
#------------------------------------------------------
# 定義使用者按下鍵盤時,輸入法能接受的按鍵
#------------------------------------------------------
# 舒聲 [12357]
# 1: ;
# 2: \
# 3: _ (劃底線符號)
# 5: /
# 6: [N/A]
# 7: -
# 4: [
# 8: ]
# 輕聲及入聲 [48] = 0
# 0: .
#------------------------------------------------------
alphabet: abcdefghijklmnopqrstuvwxyzN;\_/-.[]
initials: abcdefghijklmnopqrstuvwxyz
finals: ;\_/-.[]
delimiter: "'"
use_space: true
algebra:
__patch:
# 定義【注音符號】之【注音編碼】
- lib_phing_im:/phing_im_tng_ji_be
# 定義輸入時之【縮寫原則】
- lib_phing_im:/abbreviation
# 定義【注音編碼】與【鍵盤按鍵】對映關聯
- lib_phing_im:/ji_be_tng_jih_kian
translator:
dictionary: tl_ji_khoo_kong_un
prism: huan_ciat_kong_un
spelling_hints: 20
always_show_comments: true
initial_quality: 0.75
spelling_hints: 5
preedit_format:
#------------------------------------------------------
# 定義【鍵盤輸入列】
#------------------------------------------------------
__patch:
# 定義鍵盤輸入【按鍵】,與【拼音字母】顯示對映關聯
- lib_phing_im:/jih_kian_tng_uann
comment_format:
#--------------------------------------------------------------------------
# 定義【候選字清單】
#--------------------------------------------------------------------------
__patch:
# 【候選字單】主體架構
- lib_hau_suan_ji_tuann:/hau_suan_tuann
#-----------------------------------------
# 右半邊:方音符號
# 【声母】
- lib_hau_suan_ji_tuann:/ziann_ping_siann_bu
# 【韻母】
- lib_hau_suan_ji_tuann:/ziann_ping_un_bu
# 【声調】
- lib_hau_suan_ji_tuann:/ziann_ping_siann_tiau
#-----------------------------------------
# 左半邊:【十五音】
- lib_hau_suan_ji_tuann:/Sip_Ngoo_Im
- lib_hau_suan_ji_tuann:/Sip_Ngoo_Im_Siann_Tiau
reverse_lookup:
dictionary: luna_pinyin
prefix: "`"
tips: 〔拼音〕
preedit_format:
- xform/([nljqxy])v/$1ü/
key_binder:
import_preset: default
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: comma, send: Page_Up, when: has_menu } # 選下一個字
# - { accept: period, send: Page_Down, when: has_menu } # 選上一個字
- { 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 }
#---------------------------------------------------
- {accept: "Control+1", select: .next, when: always}
- {accept: "Control+2", toggle: full_shape, when: always}
- {accept: "Control+3", toggle: simplification, when: always}
- {accept: "Control+4", toggle: extended_charset, when: always}
editor:
bindings:
space: commit # 選擇「備選漢字」
Return: commit_composition # 上屏原始的輸入:lau5
Control+Return: commit_script_text # 上屏顯示的輸入:lau⁵ / lâu
Shift+Return: commit_comment # 上屏候選項備注:ㄉㄚ˪〖柳交五〗
Control+Shift+Return: commit_raw_input # 將 Control+Return 綁定到 Lua 函數
menu:
alternative_select_labels: [ ①, ②, ③, ④, ⑤ ] # 修改候選標籤
page_size: 5 #選單每䈎顯示個數
style:
horizontal: false
font_face: "霞鶩文楷 TC, 新細明體"
recognizer:
import_preset: default
patterns:
email: ^[a-z][-_.0-9a-z]*@.*$
uppercase: ^[A-Z][-_+.'0-9A-Za-z]*$
url: ^(www[.]|https?:|ftp:|mailto:).*$
reverse_lookup: "`[a-z]*$"
punctuator:
import_preset: keymap_piau_tian