-
-
Save yxjxx/6230675 to your computer and use it in GitHub Desktop.
Rime中文输入状态下也使用英文标点
This file contains 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
###中文输入法下也使用英文标点2013/8/14 yxj | |
###有些用戶習慣在中文裏使用ASCII標點,那麼與其一個一個覆寫,不如 整套都換掉 。 | |
###取得這份設定檔—— Rime 別樣設定,使用西文標點(一个gist:https://gist.github.com/lotem/2334409) 在用戶資料夾保存爲 alternative.yaml ; | |
###再將輸入方案中的「導入 default 設定」通過打 patch 替換爲「導入 alternative 設定」 | |
###刚刚遇到一个问题,因为教程里面说需要这前两行,所以就直接粘贴了,但是发现模糊音失效了,找到原因是[只能有一个patch:,因为上面已经有了,所以就下面就不要了,注意缩进,两个英文空格] | |
###又加入了一行代码['key_binder/import_preset': alternative]作用是让[ ]可以翻页,如果一开始就用 [ 上翻页的会连高亮的字加[都一起上屏「比如你好[ 」就会这样了,哈哈 | |
###patch: | |
##'punctuator/import_preset': alternative | |
##'key_binder/import_preset': alternative | |
###### | |
###佛振在贴吧的解答: | |
###三步设定新标点: | |
###一、取得此设定档 alternative.yaml,保存到Rime用户目录 | |
###https://gist.github.com/2334409 | |
###二、在用户目录新建一个 X.custom.yaml 文件,X替换为常用的输入方案标识,如 luna_pinyin; | |
###写入文件内容 patch: 'punctuator/import_preset': alternative | |
###三、重新部署生效。 | |
###如此设定后,按F4从【方案选单】裏选择「半角→全角」切换两种标点 | |
# 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 } |
ctrl+grave,然后2,然后5,就是那个,。→,.
就是这个功能
感谢呀, 为了英文标点的问题, 折腾了一天,, 终于在这边找到了组织.
我现在有个新问题, 我在default.yaml把 左Shift改成不使用. 它会自动恢复, 是什么原因?
#Shift_L: inline_ascii
Shift_L: noop
如何实现, 输入,./之类符号时, 直接编码上屏, 而不是汉字上屏?
比如: 我输入 rang/ (再输入/号) 我希望的目的是 英文 "rang/" 但它打出来的是 "拒/"
我们可以默认 通过reset: 0/1
在中文状态下使用 半角和英文标点 根据 rime/home#417 (comment). 并通过 switcher/save_options
来保存更改 https://github.com/wongdean/rime-settings/blob/master/default.custom.yaml
这是来自QQ邮箱的自动回复邮件。您好,您的来信已收到,感谢。
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
试了好久,我的可以了
我下载的是这个地址文件Rime 別樣設定,使用西文標點、[ ] 鍵換頁
https://gist.github.com/lotem/2334409
把这个文件放到自己的配置文件里,就是有default.custom.yaml这个文件的目录里
然后在你自己选择的输入法配置文件
比如我是五笔wubi_pinyin.schema.yaml
这个文件里面替换default为alternative就可以了
punctuator:
import_preset: default
key_binder:
import_preset: default
为
punctuator:
import_preset: alternative
key_binder:
import_preset: alternative
最后,最重要一点就是,程序安装目录里找到 小狼毫輸入法,点击【小狼毫】重新部署 这个命令
才能生效,看到效果