forked from tumuyan/rime-melt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpinyin_simp.custom.yaml
110 lines (105 loc) · 3.37 KB
/
pinyin_simp.custom.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
# Rime
# encoding: utf-8
#
# 袖珍简化字拼音自定义配置
#
# Neko7ina <[email protected]>
# tumuyan,in 2020.08.20
#
# 部署位置:
# ~/.config/ibus/rime (Linux)
# ~/Library/Rime (Mac OS)
# %APPDATA%\Rime (Windows)
#
# 编辑完后重新部署才会生效
patch:
# 導入英文輸入方案easy_en
# 如果直接改寫方案,在文件頂端寫__patch:easy_en:/patch?
# __include: easy_en:/patch?
# 引入方案把笔画替换为英语
"schema/dependencies/@0": melt_eng
"engine/translators/@before 0": table_translator@melt_eng
melt_eng:
dictionary: melt_eng
spelling_hints: 9
enable_completion: true
enable_sentence: false
initial_quality: -1
# 關閉外語自造詞,節約候選詞列表
easy_en/enable_sentence: false
# 令输入方案对大写字母、部分符号生效
"speller/alphabet": zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA-_=
"speller/initials": zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
# 处理混拼词条
"speller/algebra/@next0": derive/(.+)/\L$1/
"speller/algebra/@next1": abbrev/_([a-zA-Z])(.*)/$1/
"speller/algebra/@next2": abbrev/_([a-zA-Z])(.*)/$\L1/
"speller/algebra/@next3": abbrev/_(.+)/$1/
"speller/algebra/@next4": abbrev/_(.+)/\L$1/
recognizer/patterns/uppercase: ''
"key_binder/bindings":
- {accept: minus, send: '-', when: has_menu}
- {accept: equal, send: "=", when: has_menu}
- {accept: "Control+Shift+space", toggle: show_s2t, when: always}
- {accept: "Control+Shift+P", toggle: show_pinyin, when: composing}
# 顯示9個候選詞
"menu/page_size": 9
"schema/name": 融合拼音
# 语言模型数据包
# __include: grammar:/hans
# 设置主词典
"translator/dictionary": pinyin_simp.main
# 候选去重
engine/filters:
- simplifier@s2t_conversion
- simplifier@show_pinyin
- lua_filter@autocap_filter
- lua_filter@long_word_filter
- lua_filter@oo_filter
- uniquifier
# 默认输入状态为中文
"switches/@0/reset": 0
# 开启拼音纠错
translator/enable_correction: false
# 自定义标点
# 固定候选单字,在用户目录下创建 pinyin_simp_pin.txt 文件并编辑
"engine/translators/@next1": table_translator@pinyin_simp_pin
"engine/translators/@next2": lua_translator@get_date
"engine/processors/@before 0": lua_processor@oo_processor
pinyin_simp_pin:
dictionary: ""
user_dict: pinyin_simp_pin
db_class: stabledb
enable_completion: false
enable_sentence: false
initial_quality: 1
# 释放「`」键(同时关闭反查)
# "recognizer/patterns/reverse_lookup": {}
# "reverse_lookup/prefix": "`V"
# "punctuator/full_shape/=" : '='
# "punctuator/half_shape" : ''
# punctuator/half_shape/= : =
"reverse_lookup/dictionary": liangfen
"reverse_lookup/tips": 〔两分〕
"reverse_lookup/preedit_format": "xlit|v|ü"
"switches/@1":
name: show_s2t
reset: 0
states: [ 简体, 繁體 ]
"switches/@next1":
name: show_pinyin
reset: 0
states: [滤镜,拼音]
s2t_conversion:
opencc_config: s2t.json
option_name: show_s2t
show_pinyin:
opencc_config: pinyin.json
option_name: show_pinyin
show_in_comment: true
comment_format:
- "xform/ / /"
# - "xform/<br>/\r\n/"
# - "xform/<br>/\r/"
# - "xform/<br>/\r/" #编码滤镜内容换行。注意: 如果用于小狼毫,请将\n改为\r,否则无效
tips: all