Japanese Input (More Specific)

TAOKA Fumiyoshi fmysh at iijmio-mail.jp
Sun May 9 00:40:24 PDT 2004

Hi Akbar
This is a example of setting up Japanese environment with:
  Kanji terminal emulator: kterm
  Kana-Kanji conversion server: Canna
  Japanese input server: kinput2
  Vi-like editor: vim

As I'm using Wnn7 conversion server, which is a commercial
product, it might be different in some detail.

1. Install the softwares from ports

  $ su

  # cd /usr/ports/japanese/kterm
  # make install clean

  # cd /usr/ports/japanese/Canna
  # make install clean
  # echo 'enable_canna="YES"' >> /etc/rc.conf

  # /usr/ports/japanese/kinput2-canna
  # make install clean

  # cd /usr/ports/editors/vim
  # make install clean

2. Start the servers 

  # /usr/local/etc/rc.d/canna.sh start

  $ kinput2 -canna &

3. Set environments 

  If you use sh, bash, zsh, etc.
  $ export XMODIFIERS='@im=kinput2'
  $ export LANG='ja_JP.eucJP'

  If you use csh or tcsh, etc.
  % setenv XMODIFIERS '@im=kinput2'
  % setenv LANG 'ja_JP.eucJP'

4. Use Vim on a Kanji terminal window

  $ kterm -xim -km euc
  $ vim
  SHIFT-SPACE key will switch Japanese input mode.

TAOKA Fumiyoshi

More information about the freebsd-questions mailing list