├── .gitignore ├── README.md ├── default.custom.yaml ├── ibus_rime.custom.yaml ├── luna_pinyin.extended.dict.yaml ├── luna_pinyin.sogou.dict.yaml ├── luna_pinyin.sogoupop.dict.yaml ├── luna_pinyin_simp.custom.yaml └── squirrel.custom.yaml /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .Spotlight-v100 3 | installation.yaml 4 | luna_pinyin.userdb 5 | user.yaml 6 | build/* 7 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Rime 配置 2 | 3 | 各平台配置文件路径 4 | 5 | * Windows 6 | * Weasel: %APPDATA%\Rime 7 | * Mac OS X 8 | * Squirrel: ~/Library/Rime 9 | * Linux 10 | * iBus: ~/.config/ibus/rime 11 | * Fcitx: ~/.config/fcitx/rime 12 | 13 | 配置扩展词库需要文件 14 | 15 | 1. 快捷键、候选栏、输入方案选单等等定义 16 | * default.custom.yaml 17 | 2. 朙月拼音·简化字 自定义 18 | * luna_pinyin.simp.custom.yaml 19 | 3. 扩充词库定义 20 | * luna_pinyin.extended.dict.yaml 21 | 4. 外观样式定义 22 | * weasel.custom.yaml (Windows) 23 | * squirrel.custom.yaml (Mac OS X) 24 | -------------------------------------------------------------------------------- /default.custom.yaml: -------------------------------------------------------------------------------- 1 | patch: 2 | switcher: 3 | abbreviate_options: true 4 | caption: 〔切换〕 5 | fold_options: true 6 | hotkeys: 7 | - "Control+grave" # control + ` 8 | save_options: 9 | - full_shape 10 | - ascii_punct 11 | - simplification 12 | - extended_charset 13 | menu: 14 | page_size: 7 # 候选词数量 15 | #style/horizontal: true # 候选窗水平显示 16 | 17 | schema_list: 18 | - schema: luna_pinyin_simp 19 | 20 | ascii_composer/switch_key/Shift_L: commit_code 21 | ascii_composer/switch_key/Shift_R: clear 22 | 23 | # key_binder/bindings: 24 | # - {accept: "minus", send: Page_Up, when: has_menu} 25 | # - {accept: "equal", send: Page_Down, when: has_menu} 26 | -------------------------------------------------------------------------------- /ibus_rime.custom.yaml: -------------------------------------------------------------------------------- 1 | patch: 2 | style/horizontal: true 3 | -------------------------------------------------------------------------------- /luna_pinyin.extended.dict.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: luna_pinyin.extended 3 | version: "2015.12.02" 4 | sort: by_weight 5 | use_preset_vocabulary: true 6 | import_tables: 7 | - luna_pinyin 8 | - luna_pinyin.sogou 9 | - luna_pinyin.sogoupop 10 | ... 11 | -------------------------------------------------------------------------------- /luna_pinyin_simp.custom.yaml: -------------------------------------------------------------------------------- 1 | patch: 2 | switches: 3 | - name: ascii_mode 4 | reset: 1 # 默认英文 5 | states: ["中", "英"] 6 | - name: full_shape 7 | reset: 0 # 默认半角 8 | states: ["半", "全"] 9 | - name: zh_simp 10 | reset: 1 # 预设简体 11 | states: ["繁", "简"] 12 | - name: ascii_punct 13 | states: ["。,", ".,"] 14 | - options: [utf8, gbk] # 字符集 15 | reset: 1 # 默认 GBK 16 | states: ["UTF8", "GBK"] 17 | 18 | engine/filters/@next: charset_filter@gbk # 默认 GBK 19 | engine/translators/@next: reverse_lookup_translator 20 | 21 | translator/dictionary: luna_pinyin.extended 22 | 23 | "speller/algebra/@before 0": xform/^([b-df-hj-np-tv-z])$/$1_/ 24 | 25 | punctuator: # 符号快速输入和部分符号的快速上屏 26 | import_preset: symbols 27 | full_shape: 28 | "\\": "、" 29 | half_shape: 30 | "#": "#" 31 | "`": "`" 32 | "~": "~" 33 | "@": "@" 34 | "=": "=" 35 | "/": ["/", "÷"] 36 | '\': "、" 37 | "'": {pair: ["「", "」"]} 38 | "[": ["【", "["] 39 | "]": ["】", "]"] 40 | "$": ["¥", "$", "€", "£", "¢", "¤"] 41 | "<": ["《", "〈", "«", "<"] 42 | ">": ["》", "〉", "»", ">"] 43 | 44 | recognizer: 45 | patterns: 46 | email: "^[A-Za-z][-_.0-9A-Za-z]*@.*$" 47 | uppercase: "[A-Z][-_+.'0-9A-Za-z]*$" 48 | url: "^(www[.]|https?:|ftp[.:]|mailto:|file:).*$|^[a-z]+[.].+$" 49 | punct: "^/([a-z]+|[0-9]0?)$" 50 | reverse_lookup: "`[a-z]*'?$" 51 | -------------------------------------------------------------------------------- /squirrel.custom.yaml: -------------------------------------------------------------------------------- 1 | patch: 2 | show_notifications_via_notification_center: true 3 | us_keyboard_layout: true # 美式键盘布局 4 | show_notifications_when: appropriate # 状态通知,适当,也可设为全开(always)全关(never) 5 | 6 | style: 7 | color_scheme: light # 配色方案名称 8 | 9 | preset_color_schemes: 10 | light: 11 | name: Author # 作者名 12 | author: "Author " # 作者 13 | 14 | horizontal: true # 候选条横向显示 15 | inline_preedit: true # 启用内嵌编码模式,候选条首行不显示拼音 16 | candidate_format: "%c\u2005%@\u2005" # 用 1/6 em 空格 U+2005 来控制编号 %c 和候选词 %@ 前后的空间。 17 | 18 | corner_radius: 5 # 候选条圆角半径 19 | border_height: 7 # 窗口边界高度,大于圆角半径才生效 20 | border_width: 7 # 窗口边界宽度,大于圆角半径才生效 21 | back_color: 0xFFFFFF # 候选条背景色 22 | border_color: 0xE0B693 # 边框色 23 | font_face: "PingFangSC-Regular" # 候选词字体 24 | font_point: 18 # 预选栏文字字号 25 | label_font_face: "PingFangSC-Light" # 候选词编号字体 26 | label_font_point: 14 # 预选栏编号字号 27 | label_color: 0x999999 # 预选栏编号颜色 28 | candidate_text_color: 0x000000 # 预选项文字颜色 29 | text_color: 0x000000 # 拼音行文字颜色,24位色值,16进制,BGR顺序 30 | comment_text_color: 0x999999 # 拼音等提示文字颜色 31 | hilited_text_color: 0xFF6941 # 高亮拼音 (需要开启内嵌编码) 32 | hilited_candidate_text_color: 0xFF6941 # 第一候选项文字颜色 33 | hilited_candidate_back_color: 0xFFFFFF # 第一候选项背景背景色 34 | hilited_candidate_label_color: 0xFF6941 # 第一候选项编号颜色 35 | hilited_comment_text_color: 0xFF6941 # 注解文字高亮 36 | 37 | app_options: 38 | com.blacktree.Quicksilver: &a 39 | ascii_mode: false 40 | com.googlecode.iterm2: *a 41 | com.alfredapp.Alfred: *a 42 | com.runningwithcrayons.Alfred-2: *a 43 | org.vim.MacVim: *a 44 | com.apple.Terminal: *a 45 | --------------------------------------------------------------------------------