-
Notifications
You must be signed in to change notification settings - Fork 0
/
mishi_wubi_trad.schema.yaml
101 lines (91 loc) · 2.99 KB
/
mishi_wubi_trad.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
# Rime schema settings
# encoding: utf-8
schema:
schema_id: mishi_wubi_trad
name: "简入繁出"
version: "1.0"
author:
- 创始人 李明先生
description:
米十五笔,方案由 Skating 修改 - 2023年02月25日
dependencies:
- pinyin_simp
switches:
# - name: ascii_mode
# reset: 0
# states: [ 中文, 英文 ]
- name: zh_trad
reset: 1 # 初始状态为 0: 简 -> 简 1: 简 -> 繁
states: [ 简体, 繁体 ]
- name: full_shape
states: [ 半角, 全角 ]
- name: extended_charset
states: [ 常用, 扩展 ]
reset: 1
- name: ascii_punct
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:
- punct_translator
- reverse_lookup_translator
- table_translator
- lua_translator@date_translator # 自定义系统变量输出
- lua_translator@week_translator
filters:
- simplifier@tradition
# - lua_filter@single_char_first_filter # 单字优先方法
- uniquifier
speller:
max_code_length: 4 # 四码上屏
auto_select: true # 四码唯一时,自动上屏
auto_clear: max_length # 空码时自动清空
translator:
dictionary: mishi_wubi # 翻译器将调取此字典文件
enable_charset_filter: true # 开启字符集过滤
enable_completion: true # 是否显示编码未输入完整的词条
enable_sentence: false # 句子输入模式
enable_user_dict: false # 是否开启用户词典(用户词典记录动态字词频,用户词)
enable_encoder: false
encode_commit_history: false # 是否对已上屏词自动成词(仅 table_translator 有效)
preedit_format: # 上屏码自定义
# - xform/.+//
comment_format: # 提示码自定义
- xform/.+// # 当前默认不提示编码,消除所有候选词后的提示码
tradition:
# opencc_config: s2t.json # 简体 -> 繁体
opencc_config: s2hk.json # 简体 -> 香港繁体
# opencc_config: s2tw.json # 简体 -> 台湾正体
# opencc_config: s2twp.json # 简体 -> 繁体(台湾正体标准)并转换为台湾常用词汇
option_name: zh_trad
reverse_lookup:
dictionary: pinyin_simp # 反查使用的拼音词库
prefix: "/" # 反查前缀,以它为起点
suffix: "'" # 反查后缀,以它为结点
tips: [拼音] # 反查时的提示信息
preedit_format:
- xform/([nl])v/$1ü/
- xform/([nl])ue/$1üe/
- xform/([jqxy])v/$1u/
punctuator:
import_preset: default
key_binder:
import_preset: default
recognizer:
import_preset: default
patterns:
reverse_lookup: "^/[a-z]*'?$" # 反查词条的正则