module(i18n): Config yuhao_star ime to work with rime-ice ime
This commit is contained in:
parent
20f1284263
commit
fc757e6613
8 changed files with 164 additions and 7 deletions
|
|
@ -2,6 +2,7 @@ patch:
|
|||
"__include": rime_ice_suggestion:/
|
||||
"schema_list":
|
||||
- schema: double_pinyin_flypy
|
||||
- schema: yustar_sc
|
||||
"menu/page_size": 7
|
||||
"switcher/caption": 「方案选单」
|
||||
"switcher/hotkeys":
|
||||
|
|
@ -12,7 +13,7 @@ patch:
|
|||
- emoji
|
||||
- full_shape
|
||||
- search_single_char
|
||||
"switcher/fold_options": false
|
||||
"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
|
||||
|
|
@ -85,3 +86,5 @@ patch:
|
|||
- { accept: KP_Add, send: plus, when: composing }
|
||||
- { accept: KP_Subtract, send: minus, when: composing }
|
||||
- { accept: KP_Divide, send: slash, when: composing }
|
||||
|
||||
- { accept: Control+space, toggle: ascii_mode, when: always }
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
xdg.dataFile = {
|
||||
"fcitx5/rime/default.custom.yaml".source = ./default.custom.yaml;
|
||||
"fcitx5/rime/double_pinyin_flypy.custom.yaml".source = ./double_pinyin_flypy.custom.yaml;
|
||||
"fcitx5/rime/yustar_sc.custom.yaml".source = ./yustar_sc.custom.yaml;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
2
home/modules/i18n/yustar_sc.custom.yaml
Normal file
2
home/modules/i18n/yustar_sc.custom.yaml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
patch:
|
||||
"style/horizontal": false
|
||||
|
|
@ -38,6 +38,7 @@ in {
|
|||
rime-ice
|
||||
rime-zhwiki
|
||||
rime-moegirl
|
||||
rime-yuhaostar
|
||||
];
|
||||
})
|
||||
];
|
||||
|
|
@ -46,7 +47,56 @@ in {
|
|||
# ignoreUserConfig = false;
|
||||
settings = {
|
||||
addons = {
|
||||
classicui.globalSection.Theme = "FluentDark-solid";
|
||||
classicui.globalSection = {
|
||||
Theme = "FluentDark-solid";
|
||||
"Vertical Candidate List" = true;
|
||||
};
|
||||
notifications.globalSection = {
|
||||
HiddenNotifications = "";
|
||||
};
|
||||
clipboard.globalSection = {
|
||||
TriggerKey = "";
|
||||
PastePrimaryKey = "";
|
||||
};
|
||||
};
|
||||
globalOptions = {
|
||||
HotKey = {
|
||||
ActivateKeys = "";
|
||||
AltTriggerKeys = "";
|
||||
DeactivateKeys = "";
|
||||
EnumerateBackwardKeys = "";
|
||||
EnumerateForwardKeys = "";
|
||||
EnumerateGroupBackwardKeys = "";
|
||||
EnumerateGroupForwardKeys = "";
|
||||
EnumerateSkipFirst = false;
|
||||
EnumerateWithTriggerKeys = true;
|
||||
ModifierOnlyKeyTimeout = "250";
|
||||
NextCandidate = "";
|
||||
NextPage = "";
|
||||
PrevCandidate = "";
|
||||
PrevPage = "";
|
||||
TogglePreedit = "";
|
||||
TriggerKeys = "";
|
||||
};
|
||||
Behavior = {
|
||||
ActiveByDefault = false;
|
||||
AllowInputMethodForPassword = false;
|
||||
AutoSavePeriod = 30;
|
||||
CompactInputMethodInformation = true;
|
||||
CustomXkbOption = "";
|
||||
DefaultPageSize = 7;
|
||||
DisabledAddons = "";
|
||||
EnabledAddons = "";
|
||||
OverrideXkbOption = false;
|
||||
PreeditEnabledByDefault = true;
|
||||
PreloadInputMethod = true;
|
||||
ShareInputState = "No";
|
||||
ShowFirstInputMethodInformation = true;
|
||||
ShowInputMethodInformation = true;
|
||||
ShowPreeditForPassword = false;
|
||||
resetStateWhenFocusIn = "No";
|
||||
showInputMethodInformationWhenFocusIn = false;
|
||||
};
|
||||
};
|
||||
inputMethod = {
|
||||
"Groups/0" = {
|
||||
|
|
@ -55,13 +105,12 @@ in {
|
|||
DefaultIM = "keyboard-us";
|
||||
};
|
||||
"Groups/0/Items/0" = {
|
||||
Name = "keyboard-us";
|
||||
Layout = "";
|
||||
};
|
||||
"Groups/0/Items/1" = {
|
||||
Name = "rime";
|
||||
Layout = "";
|
||||
};
|
||||
"GroupOrder" = {
|
||||
"0" = "Default";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ in {
|
|||
editor-runtime = callPackage ./editor-runtime.nix {};
|
||||
cliphist = callPackage ./cliphist.nix {};
|
||||
radicle-ci-broker = callPackage ./radicle-ci-broker.nix {};
|
||||
rime-yuhaostar = callPackage ./rime-yuhaostar.nix {};
|
||||
rime-yuhaostar = callPackage ./rime-yuhaostar {};
|
||||
|
||||
noto-serif-cjk = callPackage ./noto-serif-cjk.nix {};
|
||||
noto-sans-cjk = callPackage ./noto-sans-cjk.nix {};
|
||||
|
|
|
|||
|
|
@ -13,6 +13,8 @@ in
|
|||
|
||||
sourceRoot = "schema";
|
||||
|
||||
patches = [./punctuator.patch ./key_binder.patch];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
48
pkgs/rime-yuhaostar/key_binder.patch
Normal file
48
pkgs/rime-yuhaostar/key_binder.patch
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
diff --git a/yuhao_pinyin.schema.yaml b/yuhao_pinyin.schema.yaml
|
||||
index 7b5f1cb..d82945d 100644
|
||||
--- a/yuhao_pinyin.schema.yaml
|
||||
+++ b/yuhao_pinyin.schema.yaml
|
||||
@@ -75,6 +75,7 @@ punctuator:
|
||||
"|": "|"
|
||||
|
||||
key_binder:
|
||||
+ import_preset: default
|
||||
bindings:
|
||||
- { when: always, accept: "Control+period", toggle: ascii_punct }
|
||||
- { when: always, accept: "Control+Shift+period", toggle: ascii_punct }
|
||||
diff --git a/yustar.schema.yaml b/yustar.schema.yaml
|
||||
index 96aaded..5f1adaf 100644
|
||||
--- a/yustar.schema.yaml
|
||||
+++ b/yustar.schema.yaml
|
||||
@@ -307,6 +307,7 @@ punctuator:
|
||||
"|": "|"
|
||||
|
||||
key_binder:
|
||||
+ import_preset: default
|
||||
bindings:
|
||||
- { when: always, accept: "Control+period", toggle: ascii_punct }
|
||||
- { when: always, accept: "Control+Shift+period", toggle: ascii_punct }
|
||||
diff --git a/yustar_sc.schema.yaml b/yustar_sc.schema.yaml
|
||||
index c2019b6..5a255ea 100644
|
||||
--- a/yustar_sc.schema.yaml
|
||||
+++ b/yustar_sc.schema.yaml
|
||||
@@ -301,6 +301,7 @@ punctuator:
|
||||
"|": "|"
|
||||
|
||||
key_binder:
|
||||
+ import_preset: default
|
||||
bindings:
|
||||
- { when: always, accept: "Control+period", toggle: ascii_punct }
|
||||
- { when: always, accept: "Control+Shift+period", toggle: ascii_punct }
|
||||
diff --git a/yustar_tw.schema.yaml b/yustar_tw.schema.yaml
|
||||
index aa9bfdd..e08e66e 100644
|
||||
--- a/yustar_tw.schema.yaml
|
||||
+++ b/yustar_tw.schema.yaml
|
||||
@@ -298,6 +298,7 @@ punctuator:
|
||||
"|": "|"
|
||||
|
||||
key_binder:
|
||||
+ import_preset: default
|
||||
bindings:
|
||||
- { when: always, accept: "Control+period", toggle: ascii_punct }
|
||||
- { when: always, accept: "Control+Shift+period", toggle: ascii_punct }
|
||||
52
pkgs/rime-yuhaostar/punctuator.patch
Normal file
52
pkgs/rime-yuhaostar/punctuator.patch
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
diff --git a/yuhao_pinyin.schema.yaml b/yuhao_pinyin.schema.yaml
|
||||
index 7b5f1cb..f036a64 100644
|
||||
--- a/yuhao_pinyin.schema.yaml
|
||||
+++ b/yuhao_pinyin.schema.yaml
|
||||
@@ -60,7 +60,7 @@ translator:
|
||||
- xform/([jqxy])v/$1u/
|
||||
|
||||
punctuator:
|
||||
- import_preset: symbols
|
||||
+ import_preset: default
|
||||
half_shape:
|
||||
"`": "`"
|
||||
"#": "#"
|
||||
diff --git a/yustar.schema.yaml b/yustar.schema.yaml
|
||||
index 96aaded..2805afc 100644
|
||||
--- a/yustar.schema.yaml
|
||||
+++ b/yustar.schema.yaml
|
||||
@@ -292,7 +292,7 @@ yuhao_macro:
|
||||
expr: return require("yuhao.yuhao_core").unicode()
|
||||
|
||||
punctuator:
|
||||
- import_preset: symbols
|
||||
+ import_preset: default
|
||||
half_shape:
|
||||
"`": "`"
|
||||
"#": "#"
|
||||
diff --git a/yustar_sc.schema.yaml b/yustar_sc.schema.yaml
|
||||
index c2019b6..3a5a434 100644
|
||||
--- a/yustar_sc.schema.yaml
|
||||
+++ b/yustar_sc.schema.yaml
|
||||
@@ -286,7 +286,7 @@ yuhao_macro:
|
||||
expr: return require("yuhao.yuhao_core").unicode()
|
||||
|
||||
punctuator:
|
||||
- import_preset: symbols
|
||||
+ import_preset: default
|
||||
half_shape:
|
||||
"`": "`"
|
||||
"#": "#"
|
||||
diff --git a/yustar_tw.schema.yaml b/yustar_tw.schema.yaml
|
||||
index aa9bfdd..1530250 100644
|
||||
--- a/yustar_tw.schema.yaml
|
||||
+++ b/yustar_tw.schema.yaml
|
||||
@@ -283,7 +283,7 @@ yuhao_macro:
|
||||
expr: return require("yuhao.yuhao_core").unicode()
|
||||
|
||||
punctuator:
|
||||
- import_preset: symbols
|
||||
+ import_preset: default
|
||||
half_shape:
|
||||
"`": "`"
|
||||
"#": "#"
|
||||
Loading…
Add table
Add a link
Reference in a new issue