forked from Mintimate/oh-my-rime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwubi98_mint.schema.yaml
executable file
·153 lines (139 loc) · 4.51 KB
/
wubi98_mint.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 settings
# encoding: utf-8
schema:
schema_id: wubi98_mint
name: "五笔九八-薄荷定制"
version: "6.0"
author:
- 發明人 王永民
- 修改者 Mintimate
description: |
基于五笔98版进行简化
碼表源自 yanhuacuo
敲 upy 进入拼音反查
dependencies:
- melt_eng # 英文方案
switches:
- name: ascii_mode
reset: 0
states: [ 中文, 英文 ]
- name: emoji_suggestion
reset: 1
states: [ "😣️","😁️"]
- name: full_shape
states: [ 半角, 全角 ]
- name: transcription
reset: 0
states: [ 简体 , 繁体 ]
- name: ascii_punct
states: [ 。,, ., ]
engine:
filters:
- simplifier
- simplifier@emoji_suggestion
- lua_filter@*autocap_filter # 英文自动大写
- simplifier@transcription_cc
- lua_filter@*reduce_english_filter # 降低部分英语单词在候选项的位置
- uniquifier
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- affix_segmentor@rime_mint # 拼音
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator # ※ 轉換標點符號
- script_translator
- lua_translator@*date_translator # 日期Lua
- lua_translator@*time_translator # 时间Lua
- lua_translator@*week_translator # 星期Lua
- lua_translator@*number_translator # 金额大小写
- table_translator@melt_eng # 英文输入(作为子翻译器,优先级需要比原生的低)
# - echo_translator # ※ 没有候选词,返回字符
- reverse_lookup_translator@wubi86_jidian
- reverse_lookup_translator@chaizi
- reverse_lookup_translator@stroke
# - reverse_lookup_translator # 反查模块,多标签情况下去除
speller:
auto_select: true
auto_clear: max_length
delimiter: "`"
max_code_length: 10 # 最大输入字符(为了兼容英文输入)
# 简繁切换
transcription_cc:
option_name: transcription
opencc_config: s2t.json # s2t.json | s2hk.json | s2tw.json | s2twp.json
tips: none # 转换提示: all 都显示 | char 仅单字显示 | none 不显示。
excluded_types: [ reverse_lookup ] # 不转换反查(两分拼字)的内容
translator:
dictionary: wubi98_mint
db_class: tabledb
initial_quality: 100000
enable_charset_filter: false
enable_sentence: false
enable_encoder: false
encode_commit_history: false
max_phrase_length: 4
enable_completion: false
enable_user_dict: false
disable_user_dict_for_patterns:
- "^z.*$"
melt_eng:
dictionary: melt_eng # 英文词典
enable_sentence: false # 关闭自动造句
enable_completion: false # 关闭自动提示
initial_quality: 0.8
recognizer:
import_preset: default
patterns:
url: "^[a-z]+[.].+$"
email: "^[A-Za-z][-_.0-9A-Za-z]*@.*$"
punct: "^/([0-9]0?|[A-Za-z]+)$"
uppercase: "[A-Z][-_+.'0-9A-Za-z]*$"
url: "^(www[.]|https?:|ftp[.:]|mailto:|file:).*$|^[a-z]+[.].+$"
history:
input: z
size: 1
initial_quality: 1
key_binder:
import_preset: default
bindings:
- {accept: "Control+Shift+E", toggle: emoji_suggestion, when: always}
- {accept: "Control+Shift+1", toggle: transcription, when: has_menu}
- {accept: "Control+Shift+exclam", toggle: transcription, when: has_menu}
- {accept: bracketleft, send: Page_Up, when: paging} # 使用`[`进行向上翻页(第一页时候无效)
- {accept: bracketright, send: Page_Down, when: has_menu} # 使用`]`进行向下翻页
- {accept: minus, send: Page_Up, when: paging} # 使用`-`进行向上翻页(第一页时候无效)
- {accept: equal, send: Page_Down, when: has_menu} # 使用`=`进行向下翻页
punctuator:
import_preset: symbols
# 定义部分半角字符
half_shape:
"#": "#"
"*": "*"
'.' : { commit: 。 }
"`": "`"
"~": "~"
"@": "@"
"=": "="
"/": ["/", "÷",]
'\': "、"
"_" : "──"
"'": {pair: ["「", "」"]}
"[": ["【", "["]
"]": ["】", "]"]
"$": ["¥", "$", "€", "£", "¢", "¤"]
"<": ["《", "〈", "«", "<"]
">": ["》", "〉", "»", ">"]
menu:
page_size: 9