forked from Mintimate/oh-my-rime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
luna_pinyin_simp.custom.yaml
executable file
·98 lines (97 loc) · 2.8 KB
/
luna_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
# encoding: utf-8
patch:
# 引入EasyEn
__include: easy_en:/patch
# 关闭EasyEN造句功能
'easy_en/enable_sentence': false
schema:
name: 明月拼音-简化字
'translator/dictionary': custom_dict.all
'speller/algebra':
- erase/^xx$/
#- derive/^([zcs])h/$1/ # zh, ch, sh => z, c, s
#- derive/^([zcs])([^h])/$1h$2/ # z, c, s => zh, ch, sh
#- derive/([aei])n$/$1ng/ # en => eng, in => ing
#- derive/([aei])ng$/$1n/ # eng => en, ing => in
#- derive/([iu])an$/$lang/ # ian => iang, uan => uang
#- derive/([iu])ang$/$lan/ # iang => ian, uang => uan
#- derive/([aeiou])ng$/$1gn/ # dagn => dang
#- derive/([dtngkhrzcs])o(u|ng)$/$1o/ # zho => zhong|zhou
#- derive/ong$/on/ # zhonguo => zhong guo
#- derive/ao$/oa/ # hoa => hao
#- derive/([iu])a(o|ng?)$/a$1$2/ # tain => tian
- abbrev/^([a-z]).+$/$1/ #简拼(首字母)
- abbrev/^([zcs]h).+$/$1/ #简拼(zh, ch, sh)
switches:
- name: ascii_mode
reset: 0
states: [中文, 英文]
- name: emoji_suggestion
reset: 0
states: ['😣️', '😁️']
- name: full_shape
states: [半角, 全角]
- name: simplification
reset: 1
states: [繁体, 简体]
- name: ascii_punct
states: [。,, .,]
engine/translators:
- lua_translator@date_translator
- lua_translator@time_translator
- lua_translator@week_translator
- lua_translator@easy_en_translator
- punct_translator
- script_translator
- table_translator@custom_phrase
engine/filters:
- simplifier@emoji_suggestion
- simplifier@zh_simp # 简体
- simplifier
- uniquifier
#- charset_filter@gbk
#- single_char_filter
engine/processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
# engine/segmentors:
# - ascii_segmentor
# - matcher
# - abc_segmentor
# - punct_segmentor
# - fallback_segmentor
emoji_suggestion:
opencc_config: emoji.json
option_name: emoji_suggestion
# tips: all
reverse_lookup: {}
punctuator:
import_preset: symbols
recognizer/patterns/punct: '^/([0-9]0?|[A-Za-z]+)$'
# 自定义快捷符号输入
symbols:
'/fs': [½, ‰, ¼, ⅓, ⅔, ¾, ⅒]
half_shape:
'#': '#'
'*': '*'
'.': '。'
'`': '`'
'~': '~'
'@': '@'
'=': '='
'/': ['/', '÷']
'\': '、'
'-': '-'
'_': '──'
"'": { pair: ['「', '」'] }
'[': ['【', '[']
']': ['】', ']']
'$': ['¥', '$', '€', '£', '¢', '¤']
'<': ['《', '〈', '«', '<']
'>': ['》', '〉', '»', '>']