修改快捷键,过滤方案,以及简体提示
[RimeFiles.git] / luna_pinyin_simp.custom.yaml
blobea8db2af3cb9df4ccc915fc709e9a651471314fa
1 patch:
2   switches:
3     - name: ascii_mode
4       reset: 1                                        # 默认英文
5       states: ["中", "英"]
6     - name: full_shape
7       reset: 0                                        # 默认半角
8       states: ["半", "全"]
9     - name: zh_simp
10       reset: 1                                        # 预设简体
11       states: ["繁", "简"]
12     - name: ascii_punct
13       states: ["。,", ".,"]
14     - options: [utf8, gbk]                            # 字符集
15       reset: 1                                        # 默认 GBK
16       states: ["UTF8", "GBK"]
18   engine/filters/@next: charset_filter@gbk            # 默认 GBK
19   engine/translators/@next: reverse_lookup_translator
21   translator/dictionary: luna_pinyin.extended
23   "speller/algebra/@before 0": xform/^([b-df-hj-np-tv-z])$/$1_/
25   punctuator:                                         # 符号快速输入和部分符号的快速上屏
26     import_preset: symbols
27     full_shape:
28       "\\": "、"
29     half_shape:
30       "#": "#"
31       "`": "`"
32       "~": "~"
33       "@": "@"
34       "=": "="
35       "/": ["/", "÷"]
36       '\': "、"
37       "'": {pair: ["「", "」"]}
38       "[": ["【", "["]
39       "]": ["】", "]"]
40       "$": ["¥", "$", "€", "£", "¢", "¤"]
41       "<": ["《", "〈", "«", "<"]
42       ">": ["》", "〉", "»", ">"]
44   recognizer:
45     patterns:
46       email: "^[A-Za-z][-_.0-9A-Za-z]*@.*$"
47       uppercase: "[A-Z][-_+.'0-9A-Za-z]*$"
48       url: "^(www[.]|https?:|ftp[.:]|mailto:|file:).*$|^[a-z]+[.].+$"
49       punct: "^/([a-z]+|[0-9]0?)$"
50       reverse_lookup: "`[a-z]*'?$"