-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy patheasy_en.schema.yaml
132 lines (123 loc) · 2.55 KB
/
easy_en.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
# Rime schema
# vim: set sw=2 sts=2 et:
# encoding: utf-8
---
schema:
schema_id: easy_en
name: Easy English
version: 2025.01.11
author:
- Patrick <[email protected]>
- BlindingDark <[email protected]>
description: Easy English
dependencies:
- ecdict
engine:
processors:
# - lua_processor@*en-word_append_space
- lua_processor@*flypy_switcher*processor
- ascii_composer
- key_binder
- speller
- recognizer
- punctuator
- selector
- navigator
- express_editor
segmentors:
- matcher
- ascii_segmentor
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- table_translator
- punct_translator
- lua_translator@*easy_en*translator
- lua_translator@*word_autocaps*translator
- lua_translator@*flypy_switcher*translator # /so 触发进入选项切换菜单
filters:
- reverse_lookup_filter@ecdict_reverse_lookup # 反查英文单词/词组的中文释义
- lua_filter@*easy_en*filter
- lua_filter@*word_autocaps*filter
- uniquifier
speller:
alphabet: zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA/*_'
initials: zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA/
delimiter: " "
algebra:
- xform/^a/!/
- xform/^e/@/
- xform/^i/,/
- xform/^o/:/
- xform/^u/;/
- derive/[aeiou]//
- xlit/!@,:;/aeiou/
# 全小写
- derive/^.+$/\L$0/
# 全大写
- derive/^.+$/\U$0/
# 首字母大写
- derive/^./\U$0/
- derive/^([a-z]{2})/\U$1/
- erase/^.$/
translator:
dictionary: easy_en
enable_encoder: false
enable_sentence: false
comment_format:
- erase/^.$/
# 英文反查释意
ecdict_reverse_lookup:
overwrite_comment: true # 是否开启中文释意注解
dictionary: ecdict
comment_format:
- xform|\\r\\n| ; |
- xform|\\n| ; |
- erase|^.$|
key_binder:
import_preset: default
punctuator:
# import_preset: default
half_shape:
',': ','
'.': '.'
"<": "<"
">": ">"
"/": "/"
"?": "?"
";": ";"
":": ":"
"'": "'"
'"': '"'
'\': "\\"
"|": "|"
"`": "`"
"~": "~"
"!": "!"
"@": "@"
"#": "#"
"%": "%"
"$": "$"
"^": "^"
"&": "&"
"*": "*"
"(": "("
")": ")"
"-": "-"
"_": "_"
"+": "+"
"=": "="
"[": "["
"]": "]"
"{": "{"
"}": "}"
recognizer:
import_preset: default
patterns:
uppercase: ""
easy_en: # 英文输入方案
prefix: "/oe"
tips: "英文输入"
wildcard: '*'
expan_word_count: 666