-
Notifications
You must be signed in to change notification settings - Fork 1
/
teochew_puj.schema.yaml
90 lines (81 loc) · 1.85 KB
/
teochew_puj.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
# teochew.schema.yaml
# vim: set sw=2 sts=2 et:
# encoding: utf-8
schema:
schema_id: teochew_puj
name: Teochew PUJ
version: "2024.10.07"
author:
- Hokkien-writing
- Lim <[email protected]>
description: |
潮州白話字輸入方案
詳細內容見:https://github.com/hokkien-writing/rime-teochew
engine:
processors:
# - ascii_composer
- key_binder
- speller
# - punctuator
- selector
- navigator
- express_editor
segmentors:
# - ascii_segmentor
- matcher
- abc_segmentor
# - punct_segmentor
- fallback_segmentor
translators:
# - punct_translator
- script_translator
# - table_translator
filters:
- uniquifier
# - lua_filter@puj_spacer
speller:
alphabet: "pbmtnlkghzcsjPBMTNLKGHZCSJaoeiurAOEIUR-"
initials: "pbmtnlkghzcsjPBMTNLKGHZCSJaoeiurAOEIU"
delimiter: " "
use_space: false
auto_select: false
algebra:
- "xform/[1-8]//"
- "derive/^ch(i|e)/ts$1/"
- "derive/^chh(i|e)/tsh$1/"
- "derive/^j(i|e)/z$1/"
- "derive/au/ao"
- "derive/ua/oa"
- "derive/ue/oe"
- "derive/iam$/iem"
- "derive/iap$/iep"
- "derive/iau$/iou"
- "derive/ua(n|t)$/ue$1"
- "derive/ie(nn|h)$/io$1"
- "derive/ie(n|t)$/ia$1"
- "derive/ie$/io"
- "derive/oi(nn)$/ai$1"
translator:
dictionary: teochew_puj
enable_sentence: false
enable_completion: true
enable_user_dict: true
disable_user_dict_for_patterns:
- "^[^-]+$" # 對於單字毋開啓用戶字典
menu:
page_size: 8
alternative_select_keys: "12345678"
style:
horizontal: true
#punctuator:
# import_preset: symbols
#
key_binder:
# import_preset: default
bindings:
- when: paging # 僅當已發生向後換頁時,
accept: bracketleft
send: Page_Up
- when: has_menu # 只要有候選字即滿足條件
accept: bracketright
send: Page_Down