其他分享
首页 > 其他分享> > Rime输入法中文标点符号配置

Rime输入法中文标点符号配置

作者:互联网

 1 config_version: '1.4.1'
 2 
 3 punctuator:
 4   full_shape:
 5     " " : { commit: " " }
 6     "," : { commit: , }
 7     "." : { commit: 。 }
 8     "<" : [ 《, 〈, «, ‹ ]
 9     ">" : [ 》, 〉, », › ]
10     "/" : [ 、, /, "/", ÷ ]
11     "?" : { commit: ? }
12     ";" : { commit: ; }
13     ":" : :
14     "'" : { pair: [ "‘", "’" ] }
15     "\"" : { pair: [ "“", "”" ] }
16     "\\" : [ 、, \, "\\" ]
17     "|" : [ ・, |, "|", "§", "¦" ]
18     "`" : [ `, "`" ]
19     "~" : [ 〜, "~", ~, 〰 ]
20     "!" : { commit: ! }
21     "@" : [ @, "@", ☯ ]
22     "#" : [ #, "#", ⌘ ]
23     "%" : [ %, "%", "°", "℃" ]
24     "$" : [ ¥, "$", "€", "£", "¥", "¢", "¤" ]
25     "^" : { commit: …… }
26     "&" : [ &, "&" ]
27     "*" : [ *, "*", ・, ×, ※, ❂, · ]
28     "(" : (
29     ")" : )
30     "-" : [ -, "-" ]
31     "_" : ——
32     "+" : [ +, "+" ]
33     "=" : [ =, "=" ]
34     "[" : [ 「, 【, 〔, [ ]
35     "]" : [ 」, 】, 〕, ] ]
36     "{" : [ 『, 〖, { ]
37     "}" : [ 』, 〗, } ]
38   half_shape:
39     "," : { commit: , }
40     "." : { commit: 。 }
41     "<" : "《"
42     ">" : "》"
43     "/" : "/"
44     "?" : { commit: ? }
45     ";" : { commit: ; }
46     ":" : { commit: : }
47     "'" : { pair: [ "‘", "’" ] }
48     "\"" : { pair: [ "“", "”" ] }
49     "\\" : "、"
50     "|" : "|"
51     "`" : { commit: "`" }
52     "~" : ~
53     "!" : { commit: ! }
54     "@" : "@"
55     "#" : "#"
56     "%" : %
57     "$" : [ ¥, "$", "€", "£", "¥", "¢", "¤" ]
58     "^" : { commit: …… }
59     "&" : "&"
60     "*" : "*"
61     "(" : { pair: [ (, ) ] }
62     ")" : )
63     "-" : -
64     "_" : ——
65     "+" : "+"
66     "=" : "="
67     "[" : { pair: [ 【, 】 ] }
68     "]" : 】
69     "{" : "{"
70     "}" : "}"
71 
72 key_binder:
73   bindings:
74     # commonly used paging keys
75     - { when: composing, accept: ISO_Left_Tab, send: Page_Up }
76     - { when: composing, accept: Shift+Tab, send: Page_Up }
77     - { when: composing, accept: Tab, send: Page_Down }
78     - { when: has_menu, accept: minus, send: Page_Up }
79     - { when: has_menu, accept: equal, send: Page_Down }
80     - { when: paging, accept: comma, send: Page_Up }
81     - { when: has_menu, accept: period, send: Page_Down }
82     - { when: paging, accept: bracketleft, send: Page_Up }
83     - { when: has_menu, accept: bracketright, send: Page_Down }

 

保存为 mypunctuator.yaml , 存放在  ~/Library/Rime/下

在该目录再见一个 文件: luna_pinyin_simp.custom.yaml

写入:

patch:
  punctuator/import_preset: mypunctuator
  key_binder/import_preset: mypunctuator
  recognizer/patterns/punct: '^/([0-9]0?|[A-Za-z]+)$'

 

重新部署输入法;

测试ok!从此输入顿号以及书名号等中文表单符号直接上屏,再也不用啰哩啰嗦再去选择了,23333

标签:输入法,send,when,accept,Rime,标点符号,pair,commit,Page
来源: https://www.cnblogs.com/Joynic/p/16409799.html