PDA

View Full Version : uim/Anthy Japanese Input



kroenecker
1st May 2007, 03:16
I'm using Ubuntu linux on my home system and am trying to create a simple Japanese dictionary application. Unfortunately when I try to type Japanese in a QTextBox in my application, I can't. I'm not sure what I'm doing wrong. Any suggestions?

high_flyer
1st May 2007, 03:30
I think this is not so much Qt issue as a locale and language/font settings of your system.
Quick search on google sugestes I might be right:
http://mail-index.netbsd.org/regional-jp/2005/03/02/0000.html

kroenecker
1st May 2007, 17:01
High_flyer,

Thanks for the reply. It may well be that I don't have my system properly configured for japanese input in terms of Qt, but, I can already use Japanese input in Firefox, gtk applications, and kde applications. For instance kiten, the kde Japanese dictionary, accepts the default <shift> + space bar and successfully switches to Japanese input.

If anyone has experience with setting up their system so that a pure Qt application will recognize Japanese input, I'd be grateful if you could describe how to do this.

Anyway, I'll try working with the uim files if I can figure it out, but it is a bit curious that my other applications do work while Qt doesn't :{

kroenecker
3rd May 2007, 05:23
Well after going to the uim website, I think I've got it:

GTK_IM_MODULE=uim
export GTK_IM_MODULE
QT_IM_MODULE=uim
export QT_IM_MODULE
uim-xim &
XMODIFIERS=@im=uim
export XMODIFIERS

I put this into xsession and all seems well now