Difference between revisions of "Localization/Japanese"

From ArchWiki
Jump to navigation Jump to search
(Input method frameworks: rm wrong note, SCIM isn't dead, it's last stable release was 2017)
(Input method frameworks: replace intro with input method reference, rm framework list implied through table, decrease level of subsections)
Line 35: Line 35:
 
You should have {{ic|ja_JP.UTF-8}} enabled in {{ic|/etc/locale.gen}}.
 
You should have {{ic|ja_JP.UTF-8}} enabled in {{ic|/etc/locale.gen}}.
  
== Input method frameworks ==
+
== Input method engines ==
  
Input method (IM) frameworks act as frontends to various input methods and libraries, allowing the user to switch between different languages with ease.
+
The following [[input method]] (IM) engines are available for Japanese:
  
You can use the following frameworks:
 
* [[Fcitx]]
 
* [[IBus]]
 
* [[SCIM]]
 
* [[Input Japanese using uim|uim]]
 
* [[Nimf]]
 
 
See the articles for details.
 
 
=== Input method engines ===
 
 
{| class="wikitable"
 
{| class="wikitable"
! Back-end !! [[Fcitx]] !! [[IBus]] !! [[SCIM]] !! [[uim]] !! [[gcin]] !! {{AUR|hime-git}}
+
! Engine !! [[Fcitx]] !! [[IBus]] !! [[SCIM]] !! [[uim]] !! [[gcin]] !! {{AUR|hime-git}}
 
|-
 
|-
 
| {{Pkg|anthy}} || {{Pkg|fcitx-anthy}} || {{Pkg|ibus-anthy}} || {{Pkg|scim-anthy}} || optdepends || optdepends || optdepends
 
| {{Pkg|anthy}} || {{Pkg|fcitx-anthy}} || {{Pkg|ibus-anthy}} || {{Pkg|scim-anthy}} || optdepends || optdepends || optdepends
Line 61: Line 51:
 
|}
 
|}
  
====Mozc====
+
=== Mozc ===
  
 
''Available IM Frameworks: Fcitx, IBus, uim''
 
''Available IM Frameworks: Fcitx, IBus, uim''
Line 71: Line 61:
 
Custom package {{AUR|mozc-ut2}} comes with [http://www.geocities.jp/ep3797/mozc_01.html Mozc UT dictionary]. The dictionary adds over 350,000 words into original.
 
Custom package {{AUR|mozc-ut2}} comes with [http://www.geocities.jp/ep3797/mozc_01.html Mozc UT dictionary]. The dictionary adds over 350,000 words into original.
  
====libkkc====
+
=== libkkc ===
  
 
''Available IM Frameworks: Fcitx, IBus''
 
''Available IM Frameworks: Fcitx, IBus''
Line 79: Line 69:
 
Install {{Pkg|fcitx-kkc}} (for Fcitx) or {{Pkg|ibus-kkc}} (for IBus).
 
Install {{Pkg|fcitx-kkc}} (for Fcitx) or {{Pkg|ibus-kkc}} (for IBus).
  
====SKK====
+
=== SKK ===
  
 
''Available IM Frameworks: Fcitx, IBus, uim''
 
''Available IM Frameworks: Fcitx, IBus, uim''
Line 87: Line 77:
 
Install {{Pkg|skk-jisyo}} and {{Pkg|fcitx-skk}} (for Fcitx) or {{Pkg|ibus-skk}} (for IBus). uim supports SKK itself.
 
Install {{Pkg|skk-jisyo}} and {{Pkg|fcitx-skk}} (for Fcitx) or {{Pkg|ibus-skk}} (for IBus). uim supports SKK itself.
  
==== Google CGI API for Japanese input ====
+
=== Google CGI API for Japanese input ===
  
 
''Available IM Framewworks: uim''
 
''Available IM Framewworks: uim''
Line 97: Line 87:
 
You can use it via uim. Choose "Google-CGIAPI-Jp" on uim-im-switcher-gtk/gtk3/qt4 or uim-pref-gtk/gtk3/qt4.
 
You can use it via uim. Choose "Google-CGIAPI-Jp" on uim-im-switcher-gtk/gtk3/qt4 or uim-pref-gtk/gtk3/qt4.
  
====Anthy====
+
=== Anthy ===
  
 
Anthy is a factually dead project.
 
Anthy is a factually dead project.

Revision as of 04:47, 9 June 2018

This article describes how to set up a Japanese language environment. It does not cover setting up Japanese input on the console.

Fonts

See also Fonts and Font configuration for configuration or more detail.

To use any Japanese input method, you need to have Japanese fonts installed.

Recommended Japanese fonts are as follows.

Sans-serif

Open-source OTF fonts developed by Adobe.

Serif (and Sans-serif)

An open source OTF font set including sans-serif (Gothic) and serif (Mincho) glyphs provided by Information-technology Promotion Agency, Japan (IPA).

If you want to show 2channel Shift JIS art properly, use one of the following fonts:

Locale

See locale for details.

You should have ja_JP.UTF-8 enabled in /etc/locale.gen.

Input method engines

The following input method (IM) engines are available for Japanese:

Engine Fcitx IBus SCIM uim gcin hime-gitAUR
anthy fcitx-anthy ibus-anthy scim-anthy optdepends optdepends optdepends
libkkc fcitx-kkc ibus-kkc - - - -
Mozc fcitx-mozc ibus-mozcAUR - uim-mozcAUR - -
skk-jisyo fcitx-skk ibus-skk - built-in - -

Mozc

Available IM Frameworks: Fcitx, IBus, uim

See Mozc

Mozc is a Japanese Input Method Editor (IME) designed for multi-platform such as Chromium OS, Windows, Mac and Linux which originates from Google Japanese Input.

Custom package mozc-ut2AUR comes with Mozc UT dictionary. The dictionary adds over 350,000 words into original.

libkkc

Available IM Frameworks: Fcitx, IBus

libkkc provides a converter from Japanese Kana-string to Kana-Kanji-mixed-string. It was named after kkc.el in GNU Emacs, a simple Kana Kanji converter, while libkkc tries to convert sentences in a bit more complex way using N-gram language models. It is developed by a Red Hat engineer.

Install fcitx-kkc (for Fcitx) or ibus-kkc (for IBus).

SKK

Available IM Frameworks: Fcitx, IBus, uim

SKK (Simple Kana to Kanji conversion program) is a Japanese input method on Emacs. It was designed by Dr. Masahiko Sato (Professor Emeritus, Kyoto University) (old link) and created in 1987. A unique feature of SKK is that it converts words one by one (single-word conversion), without analyzing syntax or grammar.

Install skk-jisyo and fcitx-skk (for Fcitx) or ibus-skk (for IBus). uim supports SKK itself.

Google CGI API for Japanese input

Available IM Framewworks: uim

Google CGI API for Japanese Input (Google-CGIAPI-Jp) is CGI service to provide Japanese conversion on the Internet by Google. It can be used on web browser. Its conversion engine seems to be equivalent to Google Japanese Input, so conversion quality is probably better than Mozc.

Note: This service sends/receives preedits and candidates as plain text (as of 2012-09).

You can use it via uim. Choose "Google-CGIAPI-Jp" on uim-im-switcher-gtk/gtk3/qt4 or uim-pref-gtk/gtk3/qt4.

Anthy

Anthy is a factually dead project.

See also