How to set a Japanese input on Gentoo

Required packages

  • app-i18n/anthy
  • app-i18n/prime
  • app-i18n/scim
  • app-i18n/uim
  • app-i18n/scim-uim
  • app-i18n/scim-m17n
  • app-i18n/skim (if running KDE)
  • app-i18n/scim-qtimm (if running KDE)
  • app-i18n/uim-qt (if running KDE)
  • app-i18n/jfbterm (if you want to input japanese in a console)
  • app-i18n/uim-fep (if you want to input japanese in a console)

GTK/Gnome settings

Put this in your ~/.i18n file:

GTK_IM_MODULE=scim
XIM_PROGRAM="scim -d"
XMODIFIERS=@im=SCIM

Qt/KDE

Put this in your ~/.xprofile file:

export LANG=ja_JP.eucJP
export XMODIFIERS=@im=scim
export QT_IM_MODULE=scim

Console (framebuffer only)

Call this in your session initialisation script:

jfbterm -c other,UTF-8,iconv,EUC-JP
uim-fep -u anthy
# Press Ctrl+j to type Japanese
Powered by Blogger.