You can install mozc (vanilla) using unofficial user repository or build yourself from AUR.

+

{{Note|Mozc works with {{Pkg|ibus}}. Please see also [[IBus]] for installation and configuration.}}

{{Note|Mozc works with {{Pkg|ibus}}. Please see also [[IBus]] for installation and configuration.}}

Mozc is available on [https://aur.archlinux.org/packages.php?K=mozc&SeB=x AUR]. This package consists as follows:

Mozc is available on [https://aur.archlinux.org/packages.php?K=mozc&SeB=x AUR]. This package consists as follows:

Line 19:

Line 21:

| emacs-mozc || Mozc for Emacs (optional)

| emacs-mozc || Mozc for Emacs (optional)

|}

|}

+

+

{{Tip|[[#Mozc variants on AUR|Unofficial plugins for the other IM frameworks are available]]}}

=== Using Unofficial user repository ===

=== Using Unofficial user repository ===

−

There is an unofficial user repository of Mozc. Add the following into your /etc/pacman.conf.

+

There is an unofficial user repository of Mozc. Add the following into your /etc/pacman.conf:

[pnsft-pur]

[pnsft-pur]

+

SigLevel = Optional TrustAll

Server = http://downloads.sourceforge.net/project/pnsft-aur/pur/$arch

Server = http://downloads.sourceforge.net/project/pnsft-aur/pur/$arch

{{Note|This repo provides x86_64 packages only now.}}

{{Note|This repo provides x86_64 packages only now.}}

+

And refresh package database:

+

# pacman -Syy

You can choose install packages specifying group name as follows:

You can choose install packages specifying group name as follows:

# pacman -S mozc-im

# pacman -S mozc-im

Line 31:

Line 38:

=== Compiling Mozc using PKGBUILD ===

=== Compiling Mozc using PKGBUILD ===

−

==== Prepare building Mozc ====

+

You can install from AUR as follows.

−

Mozc requires the following packages to be built in addition to its depending packages:

+

−

*{{Pkg|pkg-config}}

+

−

*{{Pkg|python2}}

+

−

*{{AUR|zinnia}} ''(AUR)''

+

−

Install {{AUR|zinnia}} from [[AUR]] before building Mozc.

+

−

==== Edit PKGBUILD ====

+

First, get {{AUR|mozc}} tarball from AUR and edit the PKGBUILD if necessary.

−

First, you get {{AUR|mozc}} tarball from AUR and edit the PKGBUILD if necessary.

+

$ wget https://aur.archlinux.org/packages/mo/mozc/mozc.tar.gz

$ wget https://aur.archlinux.org/packages/mo/mozc/mozc.tar.gz

$ tar xvf mozc.tar.gz

$ tar xvf mozc.tar.gz

$ cd mozc

$ cd mozc

+

==== Edit PKGBUILD ====

If you will be using mozc.el on Emacs, uncomment {{Ic|_emacs_mozc}} line.

If you will be using mozc.el on Emacs, uncomment {{Ic|_emacs_mozc}} line.

## If you will be using mozc.el on Emacs, uncomment below.

## If you will be using mozc.el on Emacs, uncomment below.

Line 51:

Line 53:

Then, build and install:

Then, build and install:

$ makepkg -s -i

$ makepkg -s -i

+

{{Note|Some of AUR helper does not support split package so it may fail installing mozc. Even in the case, package files ({{Ic|*.pkg.tar.xz}}) should be generated unless makepkg is failed. You can install manually from AUR helper's working directory or $PKGDEST using {{Ic|pacman -U}}.}}

=== Make available Mozc ===

=== Make available Mozc ===

Line 68:

Line 71:

(require 'mozc) ; or (load-file "/path/to/mozc.el")

(require 'mozc) ; or (load-file "/path/to/mozc.el")

(setq default-input-method "japanese-mozc")

(setq default-input-method "japanese-mozc")

−

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 overlay mode, add the following:

+

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)

(setq mozc-candidate-style 'overlay)

−

{{Ic|C-\}} (`toggle-input-method') enable/disable use of mozc-mode.

+

{{Ic|C-\}} (`toggle-input-method') enables/disables use of mozc-mode.

==== Disabling XIM on Emacs ====

==== Disabling XIM on Emacs ====

Line 79:

Line 82:

== Tips ==

== Tips ==

=== Confirming Mozc version which you are using now ===

=== Confirming Mozc version which you are using now ===

−

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

+

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

=== New version of Mozc does not appear though I upgraded Mozc and restarted X or IBus (not rebooted) ===

=== New version of Mozc does not appear though I upgraded Mozc and restarted X or IBus (not rebooted) ===

Line 123:

Line 126:

== Mozc variants on AUR ==

== Mozc variants on AUR ==

−

Though {{AUR|Mozc}} adapts to only ibus input method framework, [http://code.google.com/p/macuim/ macuim] provides uim-mozc plugin which can use with {{AUR|mozc-svn}} or {{AUR|mozc-ut}}, and [[Fcitx]] also provides fcitx-mozc plugin which can use with {{AUR|mozc-fcitx}} or mozc-svn.

+

===uim-mozc===

+

Though {{AUR|Mozc}} adapts to only ibus input method framework, [http://code.google.com/p/macuim/ macuim] provides uim-mozc plugin. {{AUR|uim-mozc}}''(AUR)'' is for Mozc (vanilla) and {{AUR|mozc-ut}}, {{AUR|mozc-svn}} can build uim-mozc itself (see [[Input Japanese using uim]]). You can install uim-mozc from [[#Using Unofficial user repository|Unofficial User Repository as well as Mozc (vanilla)]].

+

+

===mozc-ut===

+

{{AUR|mozc-ut}} comes with [http://www.geocities.jp/ep3797/mozc_01.html Mozc UT dictionary] and can build uim-mozc. The dictionary adds over 350,000 words into original.

+

{{Note|Building mozc-ut requires long time to generate dictionary seed.}}

+

{{Note|mozc-ut can work with ibus-mozc, emacs-mozc and uim-mozc of Mozc (vanilla). That is, you don't have to build such as modules of mozc-ut [[#Using Unofficial user repository|by the use of Unofficial User Repository]].}}

+

+

===mozc-svn===

+

{{AUR|mozc-svn}} builds using the published svn repository instead of source tarball and can build uim-mozc and fcitx-mozc plugin. You should use mozc (vanilla) or mozc-ut unless you have any reason. This is exactly similar to mozc (published svn repository is not actually trunk) and run-time of makepkg of mozc-svn will be longer than mozc.

−

;mozc-svn

+

===mozc-fcitx===

−

:{{AUR|mozc-svn}} builds with the published svn repository instead of source tarball and can build uim-mozc and fcitx-mozc plugin. {{Note|If you do not use uim (use ibus), you should not use mozc-svn. It is exactly similar to mozc (published svn repository is not actually trunk) and run-time of makepkg of mozc-svn will be longer than mozc.}}

+

{{AUR|mozc-fcitx}} is all in one Mozc package dedicated to [[Fcitx]].

−

;mozc-ut

+

−

:{{AUR|mozc-ut}} comes with [http://www.geocities.jp/ep3797/mozc_01.html Mozc UT dictionary] and can build uim-mozc/fcitx-mozc. The dictionary adds over 350,000 words into original.{{Note|Building mozc-ut requires further long time to generate dictionary seed.}}

Revision as of 16:29, 28 May 2013

Mozc is a Japanese Input Method Editor (IME) designed for multi-platform such as Chromium OS, Windows, Mac and Linux. This open-source project originates from Google Japanese Input. Detailed differences between Mozc and Google Japanese Input are described in About Mozc (In short, Mozc does not have equivalent conversion quality to Google Japanese Input).

Compiling Mozc using PKGBUILD

Edit PKGBUILD

If you will be using mozc.el on Emacs, uncomment _emacs_mozc line.

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

Build and install

Then, build and install:

$ makepkg -s -i

Note: Some of AUR helper does not support split package so it may fail installing mozc. Even in the case, package files (*.pkg.tar.xz) should be generated unless makepkg is failed. You can install manually from AUR helper's working directory or $PKGDEST using pacman -U.

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/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:

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 Template:Keypress (without any modifier keys) and the Caps_Lock to Template:Keypress, like OADG keyboard layout.

mozc-svn

mozc-svnAUR builds using the published svn repository instead of source tarball and can build uim-mozc and fcitx-mozc plugin. You should use mozc (vanilla) or mozc-ut unless you have any reason. This is exactly similar to mozc (published svn repository is not actually trunk) and run-time of makepkg of mozc-svn will be longer than mozc.