{{Warning|You '''must''' run the following command whenever you upgrade or (re-)install '''uim'''.<br/>

{{Warning|You '''must''' run the following command whenever you upgrade or (re-)install '''uim'''.<br/>

# uim-module-manager --register mozc}}

# uim-module-manager --register mozc}}

+

+

=== Fcitx ===

+

''See also [[Fcitx]] for Fcitx configuration.''

+

+

Open the configuration dialog of Fcitx by running:

+

$ fcitx-configtool

+

In the ''Input Method'' tab, click on the plus sign and choose Mozc from the list in the dialog. Depending on your configuration, you might need to disable the ''Only Show Current Language'' option for Mozc to be available. After confirming the dialog, you can activate Mozc as input method using the usual keyboard shortcuts.

=== Mozc for Emacs ===

=== Mozc for Emacs ===

Revision as of 04:38, 25 April 2017

Mozc is a Japanese Input Method Editor (IME) designed for multi-platform such as Android OS, Apple OS X, Chromium OS, GNU/Linux and Microsoft Windows. This OpenSource project originates from Google Japanese Input. […] Detailed differences between Google Japanese Input and Mozc are described in About Branding.

(In short, Mozc does not have equivalent conversion quality to Google Japanese Input).

Installation

Depending on your target setup, there are several available Mozc packages to choose from. Firstly, you will likely need to install both the Mozc core package and an integration for the Input Method Framework of your choice (such as Fcitx, IBus, or uim), though some Fcitx packages come bundled with the core. Secondly, there exist some unofficial dictionaries: The UT (discontinued) and UT2 dictionaries, which are combined from several sources with hit numbers coming from Google/Yahoo and Wikipedia, respectively, and the NEologd UT dictionary based on the mecab-ipadic-NEologd Neologism dictionary.

The following table shows the packages corresponding to certain combinations of the components and dictionaries; merged cells with multiple package names indicate split packages. Some of the packages are also available from the pnsft-pur repository.

Some of the above packages also contain definitions at the top of their respective PKGBUILDs that can be altered to (de)activate certain features. Most notably, to build the emacs packages you need to uncomment the _emacs_mozc line:

## If you will be using mozc.el on Emacs, uncomment below.
_emacs_mozc="yes"

Likewise, you must also enable uim-mozc-ut2 manually to build it.

Once Mozc is installed, you might need to restart X or the Input Method Framework before you can use it.

Fcitx

In the Input Method tab, click on the plus sign and choose Mozc from the list in the dialog. Depending on your configuration, you might need to disable the Only Show Current Language option for Mozc to be available. After confirming the dialog, you can activate Mozc as input method using the usual keyboard shortcuts.

Mozc for Emacs

You can use mozc.el (mozc-mode) to input Japanese via LEIM (Library of Emacs Input Method). To use mozc-mode, write the following into your .emacs.d/init.el or some other file for Emacs customizing:

mozc.el provides "overlay" mode in the styles of showing candidates (from mozc r77) which shows a candidate window in box style close to the point. If you want to use it by default, add the following:

(setq mozc-candidate-style 'overlay)

C-\ (toggle-input-method) enables and disables use of mozc-mode.

Disabling XIM on Emacs

When you are using input method on your desktop and assigning activation/deactivation of input method to C-SPC, you will be not able to use C-SPC/C-@ as set-mark-command on Emacs. To avoid this problem, add the following into your ~/.Xresources or ~/.Xdefaults. xim will be disabled on Emacs.

Emacs*UseXIM: false

Tips

Confirming Mozc version which you are using now

Type "ばーじょん" ("version") and convert it while activating Mozc. The version number of Mozc will be shown in the candidate list like follows:

Use CapsLock as Eisu_toggle key on ASCII layout keyboard

All of the preset keymap styles of Mozc, command ToggleAlphanumericMode on Composition mode is assigned to Eisu (Eisu_toggle), Hiragana/Katakana or Muhenkan key, but the ASCII keyboard has none of them.

One of the solution for it is to use CapsLock key as Eisu_toggle (Mozc does not recognize CapsLock key as of r124). The following is way to assign the Eisu_toggle to CapsLock (without any modifier keys) and the Caps_Lock to Shift+CapsLock, like OADG keyboard layout.