change the plover dictionary used
This commit is contained in:
parent
0646947df7
commit
9de230ec3b
2 changed files with 43 additions and 25 deletions
|
@ -2,36 +2,53 @@
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
system,
|
system,
|
||||||
|
nix-packages,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (pkgs) plover plover-plugins-manager regenpfeifer plover-regenpfeifer plover-emoji plover-tapey-tape plover-yaml-dictionary;
|
inherit (pkgs) plover plover-plugins-manager regenpfeifer plover-regenpfeifer plover-emoji plover-tapey-tape plover-yaml-dictionary;
|
||||||
plover-env = plover.pythonModule.withPackages (_: [plover plover-plugins-manager plover-emoji plover-tapey-tape plover-yaml-dictionary]);
|
plover-env = plover.pythonModule.withPackages (_: [plover plover-plugins-manager plover-emoji plover-tapey-tape plover-yaml-dictionary]);
|
||||||
plover-src = plover.src;
|
plover-src = plover.src;
|
||||||
plover-dictionaries-english = [
|
plover-dictionaries-english =
|
||||||
{
|
[
|
||||||
enabled = true;
|
{
|
||||||
path = pkgs.writeText "user.json" (builtins.toJSON {
|
enabled = true;
|
||||||
"SER/TKPWAL" = "Sergal";
|
path = pkgs.writeText "user.json" (builtins.toJSON {
|
||||||
"SERLG" = "Sergal";
|
"SER/TKPWAL" = "Sergal";
|
||||||
"SER/SRAL" = "serval";
|
"SERLG" = "Sergal";
|
||||||
"SOL/TKER" = "solder";
|
"SER/SRAL" = "serval";
|
||||||
"KWREUF" = "yiff";
|
"SOL/TKER" = "solder";
|
||||||
"KWR*EUF" = "I didn't have";
|
"KWREUF" = "yiff";
|
||||||
"PWA/TPHA/TPHAS" = "bananas";
|
"KWR*EUF" = "I didn't have";
|
||||||
"PWA/TPHA/TPHAZ" = "bananas";
|
"PWA/TPHA/TPHAS" = "bananas";
|
||||||
"HROT/TE" = "Lotte";
|
"PWA/TPHA/TPHAZ" = "bananas";
|
||||||
"TPUR/SO/TPHA" = "fursona";
|
"HROT/TE" = "Lotte";
|
||||||
});
|
"TPUR/SO/TPHA" = "fursona";
|
||||||
}
|
});
|
||||||
{
|
}
|
||||||
enabled = true;
|
]
|
||||||
path = "${plover-src}/plover/assets/commands.json";
|
++ (map (module: {
|
||||||
}
|
enabled = true;
|
||||||
{
|
path = nix-packages.packages.${system}."plover-dict-${module}";
|
||||||
enabled = true;
|
}) [
|
||||||
path = "${plover-src}/plover/assets/main.json";
|
"abbreviations"
|
||||||
}
|
"briefs"
|
||||||
];
|
"currency"
|
||||||
|
"dict"
|
||||||
|
"nouns"
|
||||||
|
"numbers"
|
||||||
|
"numbers-powerups"
|
||||||
|
"proper-nouns"
|
||||||
|
"punctuation-powerups"
|
||||||
|
"punctuation-unspaced"
|
||||||
|
"symbols"
|
||||||
|
"symbols-briefs"
|
||||||
|
"symbols-currency"
|
||||||
|
"top-10000-project-gutenberg-words"
|
||||||
|
"top-level-domains"
|
||||||
|
# Put these last
|
||||||
|
"condensed-strokes"
|
||||||
|
"condensed-strokes-fingerspelled"
|
||||||
|
]);
|
||||||
plover-cfg = pkgs.writeText "plover.cfg" (lib.generators.toINI {} {
|
plover-cfg = pkgs.writeText "plover.cfg" (lib.generators.toINI {} {
|
||||||
"Machine Configuration".machine_type = "Keyboard";
|
"Machine Configuration".machine_type = "Keyboard";
|
||||||
"System: English Stenotype" = {
|
"System: English Stenotype" = {
|
||||||
|
|
|
@ -88,6 +88,7 @@ rec {
|
||||||
nur.overlay
|
nur.overlay
|
||||||
polymc.overlay
|
polymc.overlay
|
||||||
];
|
];
|
||||||
|
home-manager.extraSpecialArgs = args // {inherit system;};
|
||||||
})
|
})
|
||||||
(import utils/link-input.nix args)
|
(import utils/link-input.nix args)
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue