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

打印 上一主题 下一主题

主题 885|帖子 885|积分 2655

  1. 1 config_version: '1.4.1'
  2. 2
  3. 3 punctuator:
  4. 4   full_shape:
  5. 5     " " : { commit: " " }
  6. 6     "," : { commit: , }
  7. 7     "." : { commit: 。 }
  8. 8     "<" : [ 《, 〈, «, ‹ ]
  9. 9     ">" : [ 》, 〉, », › ]
  10. 10     "/" : [ 、, /, "/", ÷ ]
  11. 11     "?" : { commit: ? }
  12. 12     ";" : { commit: ; }
  13. 13     ":" : :
  14. 14     "'" : { pair: [ "‘", "’" ] }
  15. 15     """ : { pair: [ "“", "”" ] }
  16. 16     "\" : [ 、, \, "\" ]
  17. 17     "|" : [ ・, |, "|", "§", "¦" ]
  18. 18     "`" : [ `, "`" ]
  19. 19     "~" : [ 〜, "~", ~, 〰 ]
  20. 20     "!" : { commit: ! }
  21. 21     "@" : [ @, "@", ☯ ]
  22. 22     "#" : [ #, "#", ⌘ ]
  23. 23     "%" : [ %, "%", "°", "℃" ]
  24. 24     "$" : [ ¥, "$", "€", "£", "¥", "¢", "¤" ]
  25. 25     "^" : { commit: …… }
  26. 26     "&" : [ &, "&" ]
  27. 27     "*" : [ *, "*", ・, ×, ※, ❂, · ]
  28. 28     "(" : (
  29. 29     ")" : )
  30. 30     "-" : [ -, "-" ]
  31. 31     "_" : ——
  32. 32     "+" : [ +, "+" ]
  33. 33     "=" : [ =, "=" ]
  34. 34     "[" : [ 「, 【, 〔, [ ]
  35. 35     "]" : [ 」, 】, 〕, ] ]
  36. 36     "{" : [ 『, 〖, { ]
  37. 37     "}" : [ 』, 〗, } ]
  38. 38   half_shape:
  39. 39     "," : { commit: , }
  40. 40     "." : { commit: 。 }
  41. 41     "<" : "《"
  42. 42     ">" : "》"
  43. 43     "/" : "/"
  44. 44     "?" : { commit: ? }
  45. 45     ";" : { commit: ; }
  46. 46     ":" : { commit: : }
  47. 47     "'" : { pair: [ "‘", "’" ] }
  48. 48     """ : { pair: [ "“", "”" ] }
  49. 49     "\" : "、"
  50. 50     "|" : "|"
  51. 51     "`" : { commit: "`" }
  52. 52     "~" : ~
  53. 53     "!" : { commit: ! }
  54. 54     "@" : "@"
  55. 55     "#" : "#"
  56. 56     "%" : %
  57. 57     "$" : [ ¥, "$", "€", "£", "¥", "¢", "¤" ]
  58. 58     "^" : { commit: …… }
  59. 59     "&" : "&"
  60. 60     "*" : "*"
  61. 61     "(" : { pair: [ (, ) ] }
  62. 62     ")" : )
  63. 63     "-" : -
  64. 64     "_" : ——
  65. 65     "+" : "+"
  66. 66     "=" : "="
  67. 67     "[" : { pair: [ 【, 】 ] }
  68. 68     "]" : 】
  69. 69     "{" : "{"
  70. 70     "}" : "}"
  71. 71
  72. 72 key_binder:
  73. 73   bindings:
  74. 74     # commonly used paging keys
  75. 75     - { when: composing, accept: ISO_Left_Tab, send: Page_Up }
  76. 76     - { when: composing, accept: Shift+Tab, send: Page_Up }
  77. 77     - { when: composing, accept: Tab, send: Page_Down }
  78. 78     - { when: has_menu, accept: minus, send: Page_Up }
  79. 79     - { when: has_menu, accept: equal, send: Page_Down }
  80. 80     - { when: paging, accept: comma, send: Page_Up }
  81. 81     - { when: has_menu, accept: period, send: Page_Down }
  82. 82     - { when: paging, accept: bracketleft, send: Page_Up }
  83. 83     - { when: has_menu, accept: bracketright, send: Page_Down }
复制代码
 
保存为 mypunctuator.yaml , 存放在  ~/Library/Rime/下
在该目录再见一个 文件: luna_pinyin_simp.custom.yaml
写入:
  1. patch:
  2.   punctuator/import_preset: mypunctuator
  3.   key_binder/import_preset: mypunctuator
  4.   recognizer/patterns/punct: '^/([0-9]0?|[A-Za-z]+)$'
复制代码
 
重新部署输入法;
测试ok!从此输入顿号以及书名号等中文表单符号直接上屏,再也不用啰哩啰嗦再去选择了,23333

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

莱莱

金牌会员
这个人很懒什么都没写!
快速回复 返回顶部 返回列表