feat: Add rime-all package for all rime plugins
This commit is contained in:
parent
7be2edee33
commit
fe6e4f4c0b
8 changed files with 31 additions and 18 deletions
80
pkgs/rime-all/default.custom.yaml
Normal file
80
pkgs/rime-all/default.custom.yaml
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
patch:
|
||||
"__include": rime_ice_suggestion:/
|
||||
"schema_list":
|
||||
- schema: double_pinyin_flypy
|
||||
- schema: yustar_sc
|
||||
"menu/page_size": 7
|
||||
"switcher/caption": 「方案选单」
|
||||
"switcher/hotkeys":
|
||||
- F4
|
||||
"switcher/save_options":
|
||||
- ascii_punct
|
||||
- traditionalization
|
||||
- emoji
|
||||
- full_shape
|
||||
- search_single_char
|
||||
"switcher/fold_options": true
|
||||
"ascii_composer/good_old_caps_lock": true
|
||||
"ascii_composer/switch_key/Caps_Lock": clear
|
||||
"ascii_composer/switch_key/Shift_L": noop
|
||||
"ascii_composer/switch_key/Shift_R": noop
|
||||
"ascii_composer/switch_key/Control_L": noop
|
||||
"ascii_composer/switch_key/Control_R": noop
|
||||
"key_binder/bindings":
|
||||
# 翻页 , .
|
||||
- { when: paging, accept: comma, send: Page_Up }
|
||||
- { when: has_menu, accept: period, send: Page_Down }
|
||||
|
||||
# 翻页 - =
|
||||
- { when: has_menu, accept: minus, send: Page_Up }
|
||||
- { when: has_menu, accept: equal, send: Page_Down }
|
||||
|
||||
- {
|
||||
when: always,
|
||||
toggle: ascii_punct,
|
||||
accept: Control+Shift+3,
|
||||
} # 切换中英标点
|
||||
- {
|
||||
when: always,
|
||||
toggle: ascii_punct,
|
||||
accept: Control+Shift+numbersign,
|
||||
} # 切换中英标点
|
||||
- {
|
||||
when: always,
|
||||
toggle: traditionalization,
|
||||
accept: Control+Shift+4,
|
||||
} # 切换简繁
|
||||
- {
|
||||
when: always,
|
||||
toggle: traditionalization,
|
||||
accept: Control+Shift+dollar,
|
||||
} # 切换简繁
|
||||
- {
|
||||
when: always,
|
||||
toggle: full_shape,
|
||||
accept: Control+Shift+5,
|
||||
} # 切换全半角
|
||||
- {
|
||||
when: always,
|
||||
toggle: full_shape,
|
||||
accept: Control+Shift+percent,
|
||||
} # 切换全半角
|
||||
|
||||
# 将小键盘 0~9 . 映射到主键盘,数字金额大写的 Lua 如 R1234.5678 可使用小键盘输入
|
||||
- { accept: KP_0, send: 0, when: composing }
|
||||
- { accept: KP_1, send: 1, when: composing }
|
||||
- { accept: KP_2, send: 2, when: composing }
|
||||
- { accept: KP_3, send: 3, when: composing }
|
||||
- { accept: KP_4, send: 4, when: composing }
|
||||
- { accept: KP_5, send: 5, when: composing }
|
||||
- { accept: KP_6, send: 6, when: composing }
|
||||
- { accept: KP_7, send: 7, when: composing }
|
||||
- { accept: KP_8, send: 8, when: composing }
|
||||
- { accept: KP_9, send: 9, when: composing }
|
||||
- { accept: KP_Decimal, send: period, when: composing }
|
||||
|
||||
# 将小键盘 + - * / 映射到主键盘,使计算器 如 1+2-3*4 可使用小键盘输入
|
||||
- { accept: KP_Multiply, send: asterisk, when: composing }
|
||||
- { accept: KP_Add, send: plus, when: composing }
|
||||
- { accept: KP_Subtract, send: minus, when: composing }
|
||||
- { accept: KP_Divide, send: slash, when: composing }
|
||||
4
pkgs/rime-all/double_pinyin_flypy.custom.yaml
Normal file
4
pkgs/rime-all/double_pinyin_flypy.custom.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
patch:
|
||||
"translator/packs/+":
|
||||
- zhwiki
|
||||
- moegirl
|
||||
21
pkgs/rime-all/package.nix
Normal file
21
pkgs/rime-all/package.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
rime-ice,
|
||||
rime-yuhaostar,
|
||||
rime-moegirl,
|
||||
rime-zhwiki,
|
||||
buildEnv,
|
||||
}:
|
||||
buildEnv {
|
||||
name = "rime-all";
|
||||
paths = [
|
||||
rime-ice
|
||||
rime-yuhaostar
|
||||
rime-zhwiki
|
||||
rime-moegirl
|
||||
];
|
||||
postBuild = ''
|
||||
ln -s ${./yustar_sc.custom.yaml} $out/share/rime-data/yustar_sc.custom.yaml
|
||||
ln -s ${./double_pinyin_flypy.custom.yaml} $out/share/rime-data/double_pinyin_flypy.custom.yaml
|
||||
ln -s ${./default.custom.yaml} $out/share/rime-data/default.custom.yaml
|
||||
'';
|
||||
}
|
||||
2
pkgs/rime-all/yustar_sc.custom.yaml
Normal file
2
pkgs/rime-all/yustar_sc.custom.yaml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
patch:
|
||||
"style/horizontal": false
|
||||
Loading…
Add table
Add a link
Reference in a new issue