ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

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

2022-06-24 18:02:55  阅读:218  来源: 互联网

标签:输入法 send when accept Rime 标点符号 pair commit Page


 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

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有