-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmy_Tai_Gi_BoPoMo.schema.yaml
153 lines (141 loc) · 5.03 KB
/
my_Tai_Gi_BoPoMo.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
# vim: set sw=2 sts=2 et:
# encoding: utf-8
# 台語ㄅㄆㄇ: https://www.youtube.com/watch?v=EEndKSmeG5I&list=PL3-KKGFJdGz0lOJXfmMOZOUpYSC94TJxX&index=1
schema:
schema_id: my_Tai_Gi_BoPoMo
name: 台語ㄅㄆㄇ
version: "v0.1.0.0"
author:
- 居正中 AlanJui <[email protected]>
description: 基於萌典 API 的 RIME 臺語注音輸入法。
【輸入類型】:注音輸入法
【拼音系統】:注音符號改良式
【字典編碼】:台羅音標
【注音輸入】:注音符號(ㄒㄧㄚˉ)
【侯選清單】:〔siaⁿ⁵〕【ㄙㄧㄚˉ】
【聲調標示】:
(1) 台羅八聲調;
(2) 使用數值標示聲調,以利閱讀。
switches:
- name: ascii_mode
reset: 0
states: [漢文, ABC]
- name: full_shape
reset: 0
states: [半形, 全形]
engine:
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- fluency_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- echo_translator
- punct_translator
- table_translator@custom_phrase
- script_translator
filters:
- uniquifier
speller:
alphabet: '1q!a2wsxyhnbYHNBedEgcuj8ik,9lUJ*I<(L-M0;Oomp/. 43657'
initials: '1q!a2wsxyhnbYHNBedEgcuj8ik,9lUJ*I<(L-M0;Oomp/.'
finals: ' 43657'
delimiter: "'"
use_space: true
algebra:
__patch:
- my_bopomofo_libs:/zu_im_hu_ho_pinn_be
translator:
dictionary: tl_ji_khoo_peh_ue
prism: my_Tai_Gi_BoPoMo
spelling_hints: 20
always_show_comments: true
initial_quality: 0.75
preedit_format:
#--------------------------------------------------------------------------
# 定義【鍵盤輸入列】
#--------------------------------------------------------------------------
__patch:
- my_bopomofo_libs:/jih_kian_tng_uann
comment_format:
#--------------------------------------------------------------------------
# 定義【候選字清單】
#--------------------------------------------------------------------------
__patch:
# 【候選字單】主體架構
- my_bopomofo_libs:/hau_suan_tuann/ke_coo
# 右半邊:台語音標-注音
- my_bopomofo_libs:/my_Tai_Gi_BoPoMo/siann_bu_tng_uann
- my_bopomofo_libs:/hau_suan_tuann/ziann_ping/un_bu
- my_bopomofo_libs:/my_Tai_Gi_BoPoMo/un_bu_tng_uann
- my_bopomofo_libs:/my_Tai_Gi_BoPoMo/siann_tiau
# 左半邊:台語音標-拼音
- my_bopomofo_libs:/hau_suan_tuann/to_ping
custom_phrase:
dictionary: ""
user_dict: custom_phrase
db_class: stabledb
enable_completion: false
enable_sentence: false
initial_quality: 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: "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 }
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: [ ①, ②, ③, ④, ⑤ ] # 修改候選標籤
alternative_select_keys: 12345 #如編碼字符佔用數字鍵則須另設選字鍵
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:).*$
punct: '`[^\s]$'
punctuator:
import_preset: keymap_piau_tian