-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathmoran_fixed.schema.yaml
143 lines (129 loc) · 3.19 KB
/
moran_fixed.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
schema:
schema_id: moran_fixed
name: 魔然·字詞
version: "20231111"
author:
- 自然碼發明人:周志農
- 方案製作:ksqsf
description: |
四碼唯一自動上屏、五碼頂屏的碼表式輸入方式。
switches:
- name: ascii_mode
reset: 0
states: [ 中文, 西文 ]
- name: full_shape
states: [ 半角, 全角 ]
- name: simplification
states: [ 漢字, 汉字 ]
- name: ascii_punct
states: [ 。,, ., ]
- name: emoji
reset: 0
states: [ 🈚, 🈶 ]
- name: unicode_comment
reset: 0
states: [ U開, U關 ]
engine:
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- affix_segmentor@zkci
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- reverse_lookup_translator
- table_translator@custom_phrase # 自定義短語
- table_translator
- table_translator@fixed
- table_translator@zkci
filters:
- simplifier
- simplifier@emoji
- uniquifier
speller:
alphabet: "abcdefghijklmnopqrstuvwxyz'"
delimiter: "'"
max_code_length: 4
auto_select: true
auto_clear: max_length # manual | auto | max_length
ascii_composer:
switch_key:
Shift_L: commit_code
translator:
dictionary: moran_fixed
db_class: tabledb
enable_charset_filter: false
enable_sentence: false
enable_completion: false
enable_user_dict: false
initial_quality: 100000
fixed:
dictionary: moran_fixed
db_class: tabledb
enable_charset_filter: false
enable_sentence: false
enable_completion: false
enable_user_dict: true
enable_encoder: true
encode_commit_history: false
initial_quality: 1000
custom_phrase: # 自定義短語
dictionary: ""
user_dict: moran_custom_phrases
db_class: stabledb
enable_completion: false
enable_sentence: false
initial_quality: 500000
zkci: # 造詞
tag: zkci
db_class: tabledb
dictionary: moran_fixed
enable_user_dict: false
enable_charset_filter: false
enable_completion: false
enable_sentence: true
enable_encoder: false
max_phrase_length: 4
prefix: "'"
tips: 〔造詞〕
initial_quality: 10
emoji:
opencc_config: emoji.json
option_name: emoji
tips: all
reverse_lookup:
dictionary: moran.chars
enable_user_dict: false
tips: 〔通配〕
recognizer:
import_preset: default
patterns:
reverse_lookup: "(^(`[a-z`]+))|(^([a-z]{2}(`[a-z`]?|[a-z`]`)))"
zkci: "^[a-z]*'[a-z']*$"
punct: '^/([0-9]0?|[A-Za-z]+)$'
punctuator:
import_preset: symbols
key_binder:
import_preset: default
bindings:
- {when: composing, accept: "Control+s", toggle: simplification}
- {when: composing, accept: "Control+u", toggle: unicode_comment}
- {when: has_menu, accept: "Control+b", toggle: emoji} # b 表示 表情, 让出 Ctrl+e
- {when: has_menu, accept: period, send: period}
- {when: has_menu, accept: semicolon, send: "2"}
- {when: has_menu, accept: apostrophe, send: "3"}
__patch:
- moran_fixed.defaults.yaml:/patch?
- moran_patches.yaml:/fix_opencc_t2s?
- moran_fixed.custom.yaml:/patch?