Mozc: Difference between revisions

Klinger (talk | contribs)
m removed software category
Tag: Manual revert
34j (talk | contribs)
Expanded a lot, updated obsolete IBus configuration, add notes about Mozc UT
Line 1: Line 1:
{{Expansion}}
Mozc is a Japanese input method editor (IME) originated from Google Japanese Input.


This will enable the `Japanese (Mozc)` entry in Gnome settings.
Currently nixpkgs contains 2 variants:
* <strong>Mozc</strong> which is vanilla ({{nixos:package|fcitx5-mozc}} and {{nixos:package|ibus-engines.mozc}})
* <strong>Mozc UT</strong> which has enhanced dictionaries ({{nixos:package|fcitx5-mozc-ut}} and {{nixos:package|ibus-engines.mozc-ut}})


== Installation ==
=== Fcitx5 ===
See [[Fcitx5]] for further information.
<syntaxhighlight lang="nix">
i18n.inputMethod = {
  enable = true;
  type = "fcitx5";
  fcitx5.addons = with pkgs; [
    # fcitx5-mozc
    fcitx5-mozc-ut
    fcitx5-gtk
  ];
};
</syntaxhighlight>
=== IBus ===
See [[IBus]] for further information.


<syntaxHighlight lang=nix>
<syntaxHighlight lang=nix>
{
i18n.inputMethod = {
  i18n = {
  enable = true;
    inputMethod = {
  type = "ibus";
      enabled = "ibus";
  ibus.engines = with pkgs.ibus-engines; [  
      ibus.engines = with pkgs.ibus-engines; [ mozc ];
    # mozc
    };
    mozc-ut
  };
  ];
}
};
</syntaxHighlight>
</syntaxHighlight>
{{Note|Currently all dictionaries with {{nixos:package|mozcdic-ut-}} prefix are automatically installed if {{nixos:package|mozc-ut}} is installed. End users usually do not need to think about these packages (unless they would like to exclude some of them).}}