Jump to content

Mozc: Difference between revisions

From NixOS Wiki
tag with {{Expansion}} (currently just a chunk of code with a GNOME-specific explanation for that code)
34j (talk | contribs)
mNo edit summary
 
(3 intermediate revisions by 3 users not shown)
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. (See [https://github.com/NixOS/nixpkgs/blob/nixos-25.05/pkgs/by-name/mo/mozc-ut/package.nix pkgs/by-name/mo/mozc-ut/package.nix].) End users usually do not need to think about these packages (unless they would like to exclude some of them).}}

Latest revision as of 02:53, 10 June 2025

Mozc is a Japanese input method editor (IME) originated from Google Japanese Input.

Currently nixpkgs contains 2 variants:

Installation

Fcitx5

See Fcitx5 for further information.

i18n.inputMethod = {
  enable = true;
  type = "fcitx5";
  fcitx5.addons = with pkgs; [ 
    # fcitx5-mozc
    fcitx5-mozc-ut
    fcitx5-gtk 
  ];
};

IBus

See IBus for further information.

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