-
Notifications
You must be signed in to change notification settings - Fork 33
/
easy_en.schema.yaml
executable file
·76 lines (69 loc) · 1.38 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
# Rime schema
# vim: set sw=2 sts=2 et:
# encoding: utf-8
schema:
schema_id: easy_en
name: Easy English
version: "0.9.1"
author:
- Patrick <[email protected]>
- BlindingDark <[email protected]>
description:
Easy English
switches:
- name: ascii_mode
reset: 0
states: [ ASCII-OFF, ASCII-ON ]
engine:
processors:
- 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
filters:
- uniquifier
speller:
alphabet: zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
delimiter: " '"
algebra:
# 只打前后2个字母 例如beul -> beautiful
- derive/^(\w)(\w).+(\w)(\w)$/$1$2$3$4/
- 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
spelling_hints: 9
comment_format:
- xform/^.+$//
key_binder:
import_preset: default
recognizer:
import_preset: default
patterns:
uppercase: ''