diff --git a/README.md b/README.md index 1ff0603..7412997 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,8 @@ rime配置教程: - Squirrel: `~/Library/Rime` - Linux - iBus:` ~/.config/ibus/rime` + - Fcitx5: `~/.local/share/fcitx5/rime` +- Fctix5 Android(小企鹅入法): `/storage/emulated/0/Android/data/org.fcitx.fcitx5.android/files/data/rime/` 本地rime日志文件默认地址如下: @@ -61,6 +63,8 @@ rime配置教程: - Squirrel: `$TMPDIR` - Linux - iBus:` /tmp` + +如果你需要在同文输入法内使用,需要一个键盘模板和皮肤,可以使用: [薄荷输入法的”蓝水鸭“和”黑水鸭“皮肤布局](https://www.mintimate.cc/zh/demo/diffAppearance.html#android%E5%A4%96%E8%A7%82) ## 配置文件说明 diff --git a/README_en.md b/README_en.md index 15dfd2b..cfc5609 100644 --- a/README_en.md +++ b/README_en.md @@ -50,6 +50,8 @@ The default address of the local rime configuration file is as follows - Squirrel: `~/Library/Rime` - Linux - iBus: `~/.config/ibus/rime` + - Fcitx5: `~/.local/share/fcitx5/rime` +- Fctix5 Android: `/storage/emulated/0/Android/data/org.fcitx.fcitx5.android/files/data/rime/` The default address of the local rime log file is as follows: -Windows @@ -59,6 +61,7 @@ The default address of the local rime log file is as follows: - Linux -iBus:`/tmp` + If you need to use rime in trime with android, you can use oh-my-rime's theme by: [Mint_light_blue and Mint_dark_blue](https://www.mintimate.cc/zh/demo/diffAppearance.html#android%E5%A4%96%E8%A7%82) ## Configuration file description diff --git a/README_zh-CHT.md b/README_zh-CHT.md index 2a43747..ee99392 100644 --- a/README_zh-CHT.md +++ b/README_zh-CHT.md @@ -51,6 +51,8 @@ rime配置教程: - Squirrel: `~/Library/Rime` - Linux - iBus:` ~/.config/ibus/rime` + - Fcitx5: `~/.local/share/fcitx5/rime` +- Fctix5 Android(小企鵝輸入法): `/storage/emulated/0/Android/data/org.fcitx.fcitx5.android/files/data/rime/` 本地rime日誌文件默認地址如下: - Windows @@ -59,7 +61,8 @@ rime配置教程: - Squirrel: `$TMPDIR` - Linux - iBus:` /tmp` - + + 如果妳需要在同文輸入法內使用,需要一個鍵盤模闆和皮膚,可以使用: [薄荷輸入法的”藍水鴨“和”黑水鴨“皮膚佈局](https://www.mintimate.cc/zh/demo/diffAppearance.html#android%E5%A4%96%E8%A7%82) ## 配置文件說明 diff --git a/default.custom.yaml b/default.custom.yaml deleted file mode 100755 index 78e087e..0000000 --- a/default.custom.yaml +++ /dev/null @@ -1,21 +0,0 @@ -patch: - "ascii_composer/good_old_caps_lock": true - "ascii_composer/switch_key": - Caps_Lock: commit_code - Control_L: noop # 不做任何操作 - Control_R: noop # 不做任何操作 - Shift_L: commit_code - Shift_R: inline_ascii - "menu/page_size": 6 - schema_list: - - {schema: rime_mint} # 薄荷拼音 - - {schema: double_pinyin_flypy} # 小鹤双拼 - - {schema: rime_mint_flypy} # 薄荷拼音-小鹤混输方案 - - {schema: terra_pinyin} # 地球拼音-薄荷定制 - - {schema: wubi98_mint} # 五笔98-薄荷简版 - "switcher/hotkeys": - - "Control+grave" - "translator/enable_encoder": true - "translator/enable_sentence": true - "translator/enable_user_dict": true - "translator/encode_commit_history": true diff --git a/default.yaml b/default.yaml new file mode 100755 index 0000000..4a3e6ca --- /dev/null +++ b/default.yaml @@ -0,0 +1,170 @@ +# Rime default settings +# encoding: utf-8 + +# Fork From: https://github.com/rime/librime/blob/3bc65c990546aa2062ecd1eb593d54d2949644cd/data/minimal/default.yaml +config_version: "24.03.24" + +# 以下内容,实际会由default.custom.yaml和方案配置所覆写 + +schema_list: + - {schema: rime_mint} # 薄荷拼音 + - {schema: double_pinyin_flypy} # 小鹤双拼 + - {schema: rime_mint_flypy} # 薄荷拼音-小鹤混输方案 + - {schema: terra_pinyin} # 地球拼音-薄荷定制 + - {schema: wubi98_mint} # 五笔98-薄荷简版 + +switcher: + # 切换方案时显示的标题 + caption: 〔方案切换〕 + # 切换方案的快捷键 + hotkeys: + - Control+grave + - Control+Shift+grave + # F4 和 JetBrains 的快捷键冲突 + # - F4 + # 在切换方案时保留的选项 + save_options: + - full_shape # 保留全角模式 + - ascii_punct # 保留西文模式 + - transcription # 保留汉字简繁体选项 + - emoji_suggestion # Emoji + # 折叠选项以节省空间 + fold_options: true + # 对选项进行缩写 + abbreviate_options: true + # 选项之间的分隔符 + option_list_separator: '/' + +menu: + # 候选词个数 + page_size: 6 + +translator: + # 启用自动造词 + enable_encoder: true + # 启用自动句子输入 + enable_sentence: true + # 启用用户词典 + enable_user_dict: true + # 对已上屏的词语进行自动编码以提高下次输入的命中率 + encode_commit_history: true + +punctuator: + full_shape: + ' ' : { commit: ' ' } + ',' : { commit: , } + '.' : { commit: 。 } + '<' : [ 《, 〈, «, ‹ ] + '>' : [ 》, 〉, », › ] + '/' : [ /, ÷ ] + '?' : { commit: ? } + ';' : { commit: ; } + ':' : { commit: : } + '''' : { pair: [ '‘', '’' ] } + '"' : { pair: [ '“', '”' ] } + '\' : [ 、, \ ] + '|' : [ ・, |, '§', '¦' ] + '`' : ` + '~' : [ 〜, ~, 〰 ] + '!' : { commit: ! } + '@' : [ @, ☯ ] + '#' : [ #, ⌘ ] + '%' : [ %, '°', '℃' ] + '$' : [ ¥, '$', '€', '£', '¥', '¢', '¤' ] + '^' : { commit: …… } + '&' : & + '*' : [ *, ・, ·, ×, ※, ❂ ] + '(' : ( + ')' : ) + '-' : - + '_' : —— + '+' : + + '=' : = + '[' : [ 「, 【, 〔, [ ] + ']' : [ 」, 】, 〕, ] ] + '{' : [ 『, 〖, { ] + '}' : [ 』, 〗, } ] + half_shape: + ',' : { commit: , } + '.' : { commit: 。 } + '<' : [ 《, 〈, «, ‹ ] + '>' : [ 》, 〉, », › ] + '/' : [ 、, '/', /, ÷ ] + '?' : { commit: ? } + ';' : { commit: ; } + ':' : { commit: : } + '''' : { pair: [ '‘', '’' ] } + '"' : { pair: [ '“', '”' ] } + '\' : [ 、, '\', \ ] + '|' : [ ・, '|', |, '§', '¦' ] + '`' : '`' + '~' : [ '~', 〜, ~, 〰 ] + '!' : { commit: ! } + '@' : '@' + '#' : '#' + '%' : [ '%', %, '°', '℃' ] + '$' : [ ¥, '$', '€', '£', '¥', '¢', '¤' ] + '^' : { commit: …… } + '&' : '&' + '*' : [ '*', *, ・, ·, ×, ※, ❂ ] + '(' : ( + ')' : ) + '-' : '-' + '_' : —— + '+' : '+' + '=' : '=' + '[' : [ 「, 【, 〔, [ ] + ']' : [ 」, 】, 〕, ] ] + '{' : [ 『, 〖, { ] + '}' : [ 』, 〗, } ] + +key_binder: + bindings: + # Emacs 风格的快捷键 + - { when: composing, accept: Control+p, send: Up } # composing 时,Control+p 等同于 Up 键 + - { when: composing, accept: Control+n, send: Down } + - { when: composing, accept: Control+b, send: Left } + - { when: composing, accept: Control+f, send: Right } + - { when: composing, accept: Control+a, send: Home } + - { when: composing, accept: Control+e, send: End } + - { when: composing, accept: Control+d, send: Delete } + - { when: composing, accept: Control+k, send: Shift+Delete } # 删除到行尾 + - { when: composing, accept: Control+g, send: Escape } # 退出编码 + - { when: composing, accept: Alt+v, send: Page_Up } # 翻页 + - { when: composing, accept: Control+v, send: Page_Down } + # 按词移动光标 + - { when: composing, accept: ISO_Left_Tab, send: Shift+Left } # ISO_Left_Tab 是 Shift+Tab + - { when: composing, accept: Shift+Tab, send: Shift+Left } + - { when: composing, accept: Tab, send: Shift+Right } + # 翻页 + - { when: paging, 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: predicting, accept: comma, send: comma } # 在预编码模式下,不当作快捷键 + - { when: predicting, accept: period, send: period } + # 切换状态 + - { when: always, accept: Control+Shift+1, select: .next } # 切换输入方案 + - { when: always, accept: Control+Shift+2, toggle: ascii_mode } # 切换中/西文模式 + - { when: always, accept: Control+Shift+3, toggle: full_shape } # 切换全角/半角 + - { when: always, accept: Control+Shift+4, toggle: simplification } # 切换简体/繁体 + - { when: always, accept: Control+Shift+5, toggle: extended_charset } # 切换扩展字符 + - { when: always, accept: Shift+space, toggle: full_shape } # 另一种切换全角/半角的方式 + - { when: always, accept: Control+period, toggle: ascii_punct } # 切换中/西文标点 + +recognizer: + # 定义识别码的正则表达式规则 + patterns: + email: "^[a-z][-_.0-9a-z]*@.*$" # 匹配电子邮件地址 + uppercase: "[A-Z][-_+.'0-9A-Za-z]*$" # 匹配大写字母开头的字符串 + url: "^(www[.]|https?:|ftp:|mailto:).*$|^[a-z]+[.].+$" # 匹配 URL 或域名 + +ascii_composer: + # 定义切换到西文模式的快捷键 + switch_key: + Caps_Lock: commit_code # 按下 Caps Lock 会直接上屏 + Control_L: noop # 按下左 Control 键不做任何操作 + Control_R: noop # 按下右 Control 键不做任何操作 + Shift_L: commit_code # 按下左 Shift 键会直接上屏 + Shift_R: inline_ascii # 按下右 Shift 键会临时切换到西文模式 + good_old_caps_lock: true # 启用经典的 Caps Lock 开启西文模式的方式