This repository has been archived by the owner on May 1, 2023. It is now read-only.
forked from functoreality/rime-flypy-zrmfast
-
Notifications
You must be signed in to change notification settings - Fork 1
/
luna_pinyin.custom.yaml
116 lines (110 loc) · 4.39 KB
/
luna_pinyin.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
111
112
113
114
115
# Rime schema
# encoding: utf-8
## 取消注释(删除行开头的单个 # 符号)或添加注释(行开头加 #)即可启用该设置项。
## 注意不要删除前面的空格,YAML 文件的缩进比较严格,缩进不对容易报错。
patch:
'punctuator/half_shape/"' : { pair: [ '‘', '’' ] } ## 添加注释后:恢复默认引号
"punctuator/half_shape/'" : { pair: [ '“', '”' ] } ## 添加注释后:恢复默认引号
"punctuator/half_shape/>": [》, 〉, '> ', », › ]
#menu/page_size: 4 ## 自定义候选项个数
key_binder/bindings/+:
- { when: composing, accept: Control+m, send: Return }
- { when: composing, accept: Control+w, send: Control+BackSpace }
- { when: has_menu, accept: semicolon, send: 2 } ## 分号;用于第2候选
#- { when: has_menu, accept: slash, send: 3 } ## 斜线/用于第3候选
#- { when: has_menu, accept: apostrophe, send: 3 } ## 单引号'用于第3候选
#- { when: composing, accept: Tab, send: '[' } ## 开启辅助码后,允许tab引导
## 启用辅助码;相关设置见 pinyin_switch.yaml,例如改用小鹤形码等
## 注意,设置后用户词频会独立记录,与原生朙月拼音的记录不互通
#__include: pinyin_switch:/flypy2quanpin
## ib前缀改用部件组字输入;默认为五笔画
## 另外需同时在 chaizi.custom.yaml 里设置“部件组字使用全拼”
#reverse_lookup/dictionary: chaizi_flypy
#reverse_lookup/prism: chaizi_fp2qp
#reverse_lookup/tips: 〔部件组字〕
#reverse_lookup/preedit_format:
## flypy_zrmfast.custom.yaml 所提到的“临时全拼模式下使用扩展词典”的步骤 3
## (注意,设置该项时不要同时在上面启用辅助码):
translator/dictionary: rime_ice
## 用户词典记录为文本格式(默认为二进制)。如果发现重启/部署/同步之后经常
## 忘掉之前输入的词(例如 Linux ibus-rime.appimage 的用户),可以尝试开启。
#translator/db_class: tabledb
punctuator/half_shape/+:
'/er': [ 二, 貳, ₂, ², Ⅱ, ⅱ, ②, ➁, ❷, ➋, ⓶, ⑵, ⒉, 2, ㊁, ㈡, 弍, 弐, 貮, 㒃, 㒳, 兩, 倆, ㆓]
'/san': [ 三, 叄, ₃, ³, Ⅲ, ⅲ, ③, ➂, ❸, ➌, ⓷, ⑶, ⒊, 3, ㊂, ㈢, 參, 参, 叁, 弎, 仨, ㆔]
'/si': [ 四, 肆, ₄, ⁴, Ⅳ, ⅳ, ④, ➃, ❹, ➍, ⓸, ⑷, ⒋, 4, ㊃, ㈣, 亖]
'/zb': [┌, └, ┐, ┘, ─, │, ├, ┤, ┬, ┴, ┼, ┏, ┗, ┓, ┛, ━, ┃, ┣, ┫, ┳, ┻, ╋] ## 制表符
engine/translators:
- punct_translator
- reverse_lookup_translator
- script_translator
- table_translator@custom_phrase
- table_translator@emojis
- table_translator@soft_capslock
- table_translator@easy_en_simp
- lua_translator@tex_translator
# - lua_translator@func_translator
engine/segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- punct_segmentor
- affix_segmentor@emojis
- affix_segmentor@verbatim
- affix_segmentor@soft_capslock
- affix_segmentor@easy_en_simp
- affix_segmentor@tex_translator
- fallback_segmentor
recognizer:
patterns:
uppercase: "^[A-Z].*$"
punct: '^/[015-9A-Za-z]+$' ## use "/er" instead of "/2"
## associate schemes:
reverse_lookup: "^ib[a-z]*'?$" # "[[]b[a-z]*'?$"
emojis: "^ie[a-z]*'?$" # "^ae.*$"
verbatim: "^is.*$"
soft_capslock: "^iu.*$"
easy_en_simp: "^iw[a-z]*"
tex_translator: "^il(.*)$"
func_translator: "^if(.*)$"
"reverse_lookup/prefix": "ib"
# "schema/dependencies/@next": emoji
custom_phrase:
dictionary: ""
user_dict: custom_phrase_lunapy
db_class: stabledb
enable_completion: false
enable_sentence: false
initial_quality: 1
emojis:
tag: emojis
dictionary: emoji
enable_completion: true
prefix: "ie"
suffix: "'"
tips: " Emoji"
verbatim:
tag: verbatim ## english; ascii
prefix: "is"
tips: " ASCII"
soft_capslock:
dictionary: ""
user_dict: uppercase
tag: soft_capslock
prefix: "iu"
tips: "临时大写"
db_class: stabledb
enable_completion: false
enable_sentence: true
initial_quality: 1
easy_en_simp:
tag: easy_en_simp
dictionary: melt_eng
enable_completion: true
enable_sentence: false
prefix: "iw"
# suffix: "'"
tips: "英文单词(可去元音)"
spelling_hints: 9
comment_format:
- xform/^.+$//