forked from DreamAfar/Rime-IME-for-iOS-iRime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clover.custom.yaml
82 lines (68 loc) · 3.38 KB
/
clover.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
# Rime schema
# encoding: utf-8
#这是输入方案修改定制文件
patch:
schema/dependencies/@next: #依赖文件
core #添加core.schema.yaml, 调用lua精准过滤生僻字
switches/@next1:
name: extended_char # lua精准过滤生僻字,控制开关
reset: 1 #默认1,常用
states: ["超集", "常用"]
#3 lua精准过滤,必须放到engine/filters:滤镜第一行,这里用"@before 0"在列表第一个元素之前插入新的设置值
engine/filters/@before 0: "lua_filter@core"
# processors
# 添加 以词定句
engine/processors/@next: "lua_processor@select_character_processor"
# translators
# 添加 调用custom_phrase自定义短语
engine/translators/@next: "table_translator@custom_phrase"
# 添加 调用Rime-lua插件,自定义系统变量输出日期、星期、时间类型输出
engine/translators/@next1: "lua_translator@date_translator"
# 添加 简易计算器lua,按符号"="激活计算器
engine/translators/@next2: "lua_translator@calculator_translator"
recognizer/patterns/expression: "^=.*$"
# # #載入擴充詞庫
# 'translator/dictionary': Qiao.extended
# 自定义短语 Custom_phrase.txt # Tab 不能用空格代替
custom_phrase:
dictionary: ""
user_dict: custom_phrase #设定用户词典名
db_class: stabledb #设定用户词典类型,可设 tabledb〔文本〕或 userdb〔二进制〕
enable_completion: false #提前显示尚未输入完整码的字〔true 或 false〕
enable_sentence: false #是否开启自动造句〔true 或 false〕
initial_quality: 1 #设定此翻译器结果优先级,如果想要自定义的词排在前面,这个值尽量设大一点
# 符号快速输入和部分符号的快速上屏
punctuator:
import_preset: symbols
symbols:
"/fs": [½, ‰, ¼, ⅓, ⅔, ¾, ⅒ ]
"/bq": [😂️, 😅️, ☺️, 😱️, 😭️, 😇️, 🙃️, 🤔️, 💊️, 💯️, 👍️, 🙈️, 💩️, 😈️ ]
"/dn": [⌘, ⌥, ⇧, ⌃, ⎋, ⇪, , ⌫, ⌦, ↩︎, ⏎, ↑, ↓, ←, →, ↖, ↘, ⇟, ⇞]
"/fh": [ ©, ®, ℗, ⓘ, ℠, ™, ℡, ␡, ♂, ♀, ☉, ☊, ☋, ☌, ☍, ☐, ☑︎, ☒, ☜, ☝, ☞, ☟, ✎, ✄, ♻, ⚐, ⚑, ⚠]
"/xh": [ *, ×, ✱, ★, ☆, ✩, ✧, ❋, ❊, ❉, ❈, ❅, ✿, ✲]
full_shape:
'/' : [ /, ÷ ]
half_shape:
"#": "#"
"*": "*"
"`": "`"
"~": "~"
"@": "@"
"=": "="
"/": ["/", "÷",]
'\': "、"
"_" : "──"
"'": {pair: ["「", "」"]}
"[": ["【", "["]
"]": ["】", "]"]
"$": ["¥", "$", "€", "£", "¢", "¤"]
"<": ["《", "〈", "«", "<"]
">": ["》", "〉", "»", ">"]
recognizer/patterns/punct: "^/([0-9]0?|[A-Za-z]+)$"
# easy_en英文输入
# __include: easy_en:/patch
# easy_en/enable_sentence: false
# "key_binder/bindings": # 设置哪些键可以翻页,需要哪个取消注释即可
# - { when: always, accept: Control+Shift+2, toggle: simplification }
# - { when: always, accept: Control+Shift+at, toggle: simplification }
# - { when: has_menu, accept: "#", toggle: emoji_suggestion } # 在输入过程中,切换Emoji开关的快捷键,这里用#号切换