Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Absolute Beginner Talk
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Absolute Beginner Talk
The perfect starting place to find out more about computers, Linux and Ubuntu.

 
Thread Tools Display Modes
Old December 4th, 2006   #1
k0rv3n
5 Cups of Ubuntu
 
Join Date: Sep 2006
Location: Sweden
Beans: 31
Edubuntu 7.10 Gutsy Gibbon
HowTo: Japanese Input with UIM

Hi.

I noticed a lot of pepole, including myself just a while ago, have trouble getting Japaneses input to work on ubuntu so I thought I would setup this howto on how I got mine to work.

I have Ubuntu 6.10 (Edgy) and I used this howto as guideline https://help.ubuntu.com/community/JapaneseInput

First we need to install some packages:

Code:
sudo apt-get install uim-applet-gnome uim-xim uim-anthy uim-gtk2.0 im-switch
You need to have the UniversePackages repository configured.

Now the other howto tells you to do the following command, which only gives an error:
Code:
im-switch -s uim_anthy
Like everyone else I got this error:
Code:
Error: no configuration file "uim_anthy" exists.
Error: No action taken.
Instead type:
Code:
uim-pref-gtk
This will bring up the graphical interface for uim.
Here I did the following changes:

1) In the global section I changed the "Input meta toggle key" to "<Shift>space", this I my liking and to follow the other guide

2) Change "Alternative input method" to Anthy.

3) Now in the Anthy section I changed "Default input mode" to Hiragana.

Now you should be able to change between writing with you standard letters and to typing hiragna! やった! 

To get a useful toolbar type:
Code:
uim-toolbar-gtk
or, if you want it in the systray:
Code:
uim-toolbar-gtk-systray
The latter one I got at startup cause it changes as I change to typing style.

Hope this helps. Cheers!
k0rv3n is offline   Reply With Quote
Old December 21st, 2006   #2
Stambo00
A Carafe of Ubuntu
 
Stambo00's Avatar
 
Join Date: Jul 2005
Location: Australia
Beans: 121
Ubuntu 6.06
Re: HowTo: Japanese Input with UIM

Thank you, this worked great!
Stambo00 is offline   Reply With Quote
Old December 21st, 2006   #3
zetsumei
Way Too Much Ubuntu
 
Join Date: Dec 2006
Beans: 229
Ubuntu 7.04 Feisty Fawn
Send a message via AIM to zetsumei Send a message via MSN to zetsumei
Re: HowTo: Japanese Input with UIM

thank you, it worked i love typing in japanese...
zetsumei is offline   Reply With Quote
Old January 7th, 2007   #4
Wnutt
5 Cups of Ubuntu
 
Wnutt's Avatar
 
Join Date: Nov 2006
Location: Switzerland
Beans: 17
Ubuntu 9.04 Jaunty Jackalope
Re: HowTo: Japanese Input with UIM

ありがとございましと!
That was perfect. Thanks a lot. It will help a lot for my japanese courses.
Wnutt is offline   Reply With Quote
Old January 8th, 2007   #5
k0rv3n
5 Cups of Ubuntu
 
Join Date: Sep 2006
Location: Sweden
Beans: 31
Edubuntu 7.10 Gutsy Gibbon
Re: HowTo: Japanese Input with UIM

Glad to hear its working for you guys!!!
k0rv3n is offline   Reply With Quote
Old January 9th, 2007   #6
lanig
First Cup of Ubuntu
 
Join Date: Dec 2006
Beans: 4
Re: HowTo: Japanese Input with UIM

It didn't work for me and for good reason I think :
There is a bug (missing file) in the uim_anthy package.

This file has the following content
Code:
XIM=uim
XIM_PROGRAM=/usr/bin/uim-xim
XIM_ARGS=
GTK_IM_MODULE=uim
ENGINE=anthy

if [ -r "$HOME/.uim" ]; then
  TMPFILE=$(mktemp) || exit 1
  if [ "$(grep "; IM-SWITCH VALUE" $HOME/.uim)" ]; then
    sed "s/(define default-im-name '[^)]*) ; IM-SWITCH VALUE/(define default-im-name '$ENGI
NE) ; IM-SWITCH VALUE/" < $HOME/.uim > $TMPFILE
  else
    cat $HOME/.uim > $TMPFILE
    if [ "$(grep -E "^\(define[[:space:]]+default-im-name[[:space:]]" $HOME/.uim)" ]; then
      echo "; (define default-im-name '$ENGINE) ; IM-SWITCH VALUE" >> $TMPFILE
    else
      echo "(define default-im-name '$ENGINE) ; IM-SWITCH VALUE" >> $TMPFILE
    fi
  fi
  mv $TMPFILE $HOME/.uim
else
  echo "(define default-im-name '$ENGINE) ; IM-SWITCH VALUE" > $HOME/.uim
fi
Create the file /etc/X11/xinit/xinput.d/uim_anthy, put the above content inside, set the perms to world readable, and it is OK.
Alternatively, I tried also this tip and it worked mostly well but I had minor annoyances with french only special characters in QT based apps.

Last edited by lanig; January 9th, 2007 at 03:57 AM..
lanig is offline   Reply With Quote
Old April 17th, 2007   #7
seetho
Gee! These Aren't Roasted!
 
seetho's Avatar
 
Join Date: Feb 2007
Location: Earth
Beans: 178
Ubuntu 9.04 Jaunty Jackalope
Re: HowTo: Japanese Input with UIM

I finally got japanese input working by following the solutions in this thread - thank you all. ありがと。

However it was not all that easy. Following kOrv3n's step above allowed me to input japanese on the command line terminal but not anywhere else. So I decided to try lanig's steps in adding in the missing file. This worked out well and I got input for ooffice and gedit but not terminal, thunderbird or firefox. After a restart everything works!

I still have an irritating problem of having to type "+<space> to get the double quote character and '+<space> to get the quote. Still looking for a solution for this. Otherwise everything works fine.



Last edited by seetho; April 17th, 2007 at 07:53 AM..
seetho is offline   Reply With Quote
Old April 23rd, 2007   #8
OsakaWilson
A Carafe of Ubuntu
 
Join Date: May 2006
Location: Osaka, Japan
Beans: 134
Ubuntu 9.04 Jaunty Jackalope
Send a message via Skype™ to OsakaWilson
Re: HowTo: Japanese Input with UIM

Quote:
Originally Posted by lanig View Post

Create the file /etc/X11/xinit/xinput.d/uim_anthy, put the above content inside, set the perms to world readable, and it is OK.
Alternatively, I tried also this tip and it worked mostly well but I had minor annoyances with french only special characters in QT based apps.
Forgive my ignorance, but how do you "create a file"? Also, what are "perms" and how do I set them to "world readable".
OsakaWilson is offline   Reply With Quote
Old April 23rd, 2007   #9
OsakaWilson
A Carafe of Ubuntu
 
Join Date: May 2006
Location: Osaka, Japan
Beans: 134
Ubuntu 9.04 Jaunty Jackalope
Send a message via Skype™ to OsakaWilson
Re: HowTo: Japanese Input with UIM

I tried putting it into a text file and saving it under the name and pathway listed, but it told me that I don't have permission to save there.
OsakaWilson is offline   Reply With Quote
Old April 23rd, 2007   #10
k0rv3n
5 Cups of Ubuntu
 
Join Date: Sep 2006
Location: Sweden
Beans: 31
Edubuntu 7.10 Gutsy Gibbon
Re: HowTo: Japanese Input with UIM

Quote:
Originally Posted by OsakaWilson View Post
I tried putting it into a text file and saving it under the name and pathway listed, but it told me that I don't have permission to save there.
I'm not sure what that file does since it work for without it but I guess you need to use "sudo" to be able to write the file.
k0rv3n is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:50 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry