Created
April 8, 2012 03:44
-
-
Save lotem/2334409 to your computer and use it in GitHub Desktop.
Rime 別樣設定,使用西文標點、[ ] 鍵換頁
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Rime alternative settings | |
# encoding: utf-8 | |
# | |
# difference from default settings: | |
# 1. ascii-style punctuation in half-shape mode | |
# 2. [ ] as paging keys | |
# | |
# save this file as: | |
# (Linux) ~/.config/ibus/rime/alternative.yaml | |
# (Mac OS) ~/Library/Rime/alternative.yaml | |
# (Windows) "%APPDATA%\Rime\alternative.yaml" | |
# | |
# edit <SCHEMA_ID>.custom.yaml: | |
# >> patch: | |
# >> 'punctuator/import_preset': alternative | |
# >> 'key_binder/import_preset': alternative | |
# | |
# for detailed explanation, refer to: | |
# http://code.google.com/p/rimeime/wiki/CustomizationGuide#%E4%BD%BF%E7%94%A8%E5%85%A8%E5%A5%97%E8%A5%BF%E6%96%87%E6%A8%99%E9%BB%9E | |
config_version: "0.3" | |
punctuator: | |
full_shape: | |
" " : { commit: " " } | |
"," : { commit: , } | |
"." : { commit: 。 } | |
"<" : [ 《, 〈, «, ‹ ] | |
">" : [ 》, 〉, », › ] | |
"/" : [ 、, /, "/", ÷ ] | |
"?" : { commit: ? } | |
";" : { commit: ; } | |
":" : : | |
"'" : { pair: [ "‘", "’" ] } | |
"\"" : { pair: [ "“", "”" ] } | |
"\\" : [ 、, \, "\\" ] | |
"|" : [ ・, |, "|", "§", "¦" ] | |
"`" : [ `, "`" ] | |
"~" : [ 〜, "~", ~, 〰 ] | |
"!" : { commit: ! } | |
"@" : [ @, "@", ☯ ] | |
"#" : [ #, "#", ⌘ ] | |
"%" : [ %, "%", "°", "℃" ] | |
"$" : [ ¥, "$", "€", "£", "¥", "¢", "¤" ] | |
"^" : { commit: …… } | |
"&" : [ &, "&" ] | |
"*" : [ *, "*", ・, ×, ※, ❂, · ] | |
"(" : ( | |
")" : ) | |
"-" : [ -, "-" ] | |
"_" : —— | |
"+" : [ +, "+" ] | |
"=" : [ =, "=" ] | |
"[" : [ 「, 【, 〔, [ ] | |
"]" : [ 」, 】, 〕, ] ] | |
"{" : [ 『, 〖, { ] | |
"}" : [ 』, 〗, } ] | |
half_shape: | |
"," : { commit: "," } | |
"." : { commit: "." } | |
"<" : "<" | |
">" : ">" | |
"/" : "/" | |
"?" : { commit: "?" } | |
";" : { commit: ";" } | |
":" : { commit: ":" } | |
"'" : "'" | |
"\"" : "\"" | |
"\\" : "\\" | |
"|" : "|" | |
"`" : "`" | |
"~" : "~" | |
"!" : { commit: "!" } | |
"@" : "@" | |
"#" : "#" | |
"%" : "%" | |
"$" : "$" | |
"^" : "^" | |
"&" : "&" | |
"*" : "*" | |
"(" : "(" | |
")" : ")" | |
"-" : "-" | |
"_" : "_" | |
"+" : "+" | |
"=" : "=" | |
"[" : "[" | |
"]" : "]" | |
"{" : "{" | |
"}" : "}" | |
key_binder: | |
bindings: | |
# commonly used paging keys | |
- { when: composing, accept: ISO_Left_Tab, send: Page_Up } | |
- { when: composing, accept: Shift+Tab, send: Page_Up } | |
- { when: composing, accept: Tab, send: Page_Down } | |
- { when: has_menu, accept: minus, send: Page_Up } | |
- { when: has_menu, accept: equal, send: Page_Down } | |
- { when: paging, accept: comma, send: Page_Up } | |
- { when: has_menu, accept: period, send: Page_Down } | |
- { when: paging, accept: bracketleft, send: Page_Up } | |
- { when: has_menu, accept: bracketright, send: Page_Down } |
这个配置都是8年以前的配置了,确定不要更新一下吗
这个配置都是8年以前的配置了,确定不要更新一下吗
看來沒什麼問題啊。
改了版本号好像还是不行啊。。。 还是中文符号
今天是2020年。Rime可以通过方案选单切换中西文标点符号。这份配置已经不需要用了。[ ] 鍵換頁的配置可供参考。
使用这份配置没效果,我在luna_pinyin.custom.yaml的switches - name: ascii_punct - reset: 1 states: [ 。,, ., ],这样的标点是。,而不是我想要的., 请问该怎么设置呢
ctrl + ` 只能临时使用, 不能长久生效的;
patch:
punctuator:
import_preset: alternative
key_binder:
import_preset: alternative
我这样是可以的.
更新
現在看懂了,設置如下, 環境macOS 15.2
@MacBook Rime % tree
.
├── alternative.yaml
├── build
│ ├── luna_pinyin.prism.bin
│ ├── luna_pinyin.schema.yaml
│ ├── luna_pinyin_fluency.schema.yaml
│ ├── luna_pinyin_simp.prism.bin
│ ├── luna_pinyin_simp.schema.yaml
│ ├── luna_quanpin.prism.bin
│ ├── luna_quanpin.schema.yaml
│ └── squirrel.yaml
├── installation.yaml
├── luna_pinyin.custom.yaml
├── luna_pinyin.userdb
│ ├── 000005.ldb
│ ├── 000008.ldb
│ ├── 000011.ldb
│ ├── 000012.log
│ ├── CURRENT
│ ├── LOCK
│ ├── LOG
│ ├── LOG.old
│ └── MANIFEST-000010
└── user.yaml
#luna_pinyin.custom.yaml
patch:
punctuator:
import_preset: alternative
key_binder:
import_preset: alternative
這樣子,最後按 ^⌥` 去Deploy
不是 squirrel.custom.yaml
看頂樓的代碼註釋!
編輯 <SCHEMA_ID>.custom.yaml
用哪個方案, 就給哪個方案打補丁.
這段代碼裏的定製方法是在很早的版本上用的. 現在不需要了!
新版本的輸入方案可以直接進入方案選單選擇標點樣式.
https://github.com/rime/home/wiki/UserGuide#%E4%BD%BF%E7%94%A8%E6%96%B9%E6%A1%88%E9%81%B8%E5%96%AE
這段代碼裏的定製方法是在很早的版本上用的. 現在不需要了!
新版本的輸入方案可以直接進入方案選單選擇標點樣式. https://github.com/rime/home/wiki/UserGuide#%E4%BD%BF%E7%94%A8%E6%96%B9%E6%A1%88%E9%81%B8%E5%96%AE
感謝
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我希望达到的效果是: 1. 默认情况下, 中文输入法用的是英文标点. 2. 可以用某个快捷键随时在英文标点和中文标点之间切换, 以满足不时之需.
第 1 个问题已经解决了, 第 2 个怎么解决呢? 求解