[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Japanese input in an English environment



On Tue, Aug 20, 2002 at 07:23:46AM +0100, Joss Winn wrote:
> I'd like to be able to read and write Japanese in an English
> environment.  I have been doing so with SuSE for a couple of years
> and have kinput2 and canna and Japanese fonts installed on my Debian
> 3.0 system.  Are there any documents which describe how to set this
> up?  I have tried using my config files from SuSE but they do not
> work.

Just thought I'd throw in my slightly different way of solving this
problem:

Firstly, caveat:
I'm only using this with Japanese.

.xesssion:
export XMODIFIERS="@im=kinput2"
kinput &
bbkeys -w -t &
exec blackbox

This is subobtimal to the SuSE solution, where I can start
a program like bbkeys or kinput2 without needing to hardcode
my window manager. But that's a different issue.

.Xresources (This is the clever bit)
*IMProtocol.locales: en_AU,ja_JP
!*international: True
*.inputMethod: kinput2
*.preeditType: OverTheSpot
!*conversionStartKeys: <Key>Print
!Vim*preeditType: OnTheSpot
!UXterm*VT100*font: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-120-75-75-c-60-iso10646-1
!*VT100*font: -misc-fixed-medium-r-normal-ja-13-120-75-75-c-120-75-75-c-120-iso10646-1
!UXterm*VT100*boldfont: -misc-fixed-bold-r-semicondensed--13-120-75-75-c-120-75-75-c-60-iso10646-1

The *IMProtocol.locales: line means that if the locale (LC_CTYPE) is
en_AU or ja_JP, it will activate the XIM. I know it works with kinput2,
but I dunno about the other XIM servers.

The only reason I have ja_JP there is that gjiten overrides your locale
settings to ja_JP

/etc/environment
LANGUAGE=en_AU
LANG=en_AU.UTF-8

If I wanted to do Chinese input (for example) I'd hook up
cserver to a different key-combo, I guess.

-- 
-----------------------------------------------------------
Paul "TBBle" Hampson, MCSE
5th year CompSci/Asian Studies student, ANU
The Boss, Bubblesworth Pty Ltd (ABN: 51 095 284 361)
Paul.Hampson@Anu.edu.au

Of course Pacman didn't influence us as kids. If it did,
we'd be running around in darkened rooms, popping pills and
listening to repetitive music.

This email is licensed to the recipient for non-commercial
use, duplication and distribution.
-----------------------------------------------------------

Attachment: pgpgQl4sQGo9i.pgp
Description: PGP signature


Reply to: