domingo, 7 de agosto de 2011

Japanese in PCLinuxOS? Of course!

After having installed PCLinuxOS 2011.6, I must say that I am very pleased with it. Differently from Mandriva 2010.2, I can see videos and listen to MP3 files out of the box and I don't need to fiddle with the system to mount the partitions where my other Linux distributions are. It seems that everything works as expected. Great!

But I still had one concern. Although I'm not a power user, for my work, I require a feature that is not very common: a Japanese input method editor. That's one major area (of the many) where Windows 7 fails miserably; you are expected to pay more to obtain a Japanese-capable system, which is a rip off because regular XP did include a Japanese IME. Oh, well, we are familiar with the "Less-is-more" philosophy underlying Windows...Too bad it doesn't apply to your pocket ;-)

On the other hand, many Linux distros can handle Japanese typing, either via SCIM or iBus, working with either OpenOffice or LibreOffice. For example, while Mandriva 2010.2 can accept Japanese IME (SCIM + Open Office), the newly born Mageia 1 handles Japanese typing via both iBus and SCIM with LibreOffice. I know that Mepis 2011, Fusion 14 and Zenwalk 7 also let you type in Japanese.

The question was, could I activate either iBus or SCIM in PCLinuxOS 2011.6? I mean, I've only been using PCLOS for less than a week. Besides, this distro works with LibreOffice and, because of my repeated failure making this suite and IMEs work in Mandriva, I was not very confident.

Anyway, I first tried with iBus. After downloading all the packages and their dependencies, differently from what happens in Mandriva 2010.2, iBus started. The problem was that, despite I downloaded Anthy, iBus did not detect any typing method. I checked the dependencies and the reason was simple: the iBus-Anthy wrapper is missing in the repositories.

I tried SCIM then. I followed the same steps to activate SCIM in Mandriva and failed again. I then undid my changes and went to the Forums for help. I read an explanation here. Thus, I realized that I was missing some dependencies, so I downloaded those and, after following the relevant indications (because the thread is for a situation other than mine), absolutely nothing happened.

I was back to square 1, but not discouraged. With all the dependencies already installed, I decided to follow the process to activate SCIM+Open Office in Mandriva:
  1. First, I looked for i18n in /etc/sysconfig.
  2. After seeing that the structure is the same, I fired up Konsole. I typed su then my password.
  3. Once as root, I typed CD.. to get to / and then CD /etc/sysconfig
  4. I typed Kwrite, opened i18n with that application and appended the following lines to the end:
XIM_PROGRAM=”scim -d”

After saving, I logged out and then back in. Nothing happened, apparently. But you must remember that different systems work differently, so I pressed CTRL+Space and voilà, er, できた!PCLOSで、私はだいたい日本語を書くことができるよ。方法もあまり難しくない、すばらしい!日本語、PCLOSで?もちろん!

So, that's the way I found to type Japanese in PCLinuxOS with SCIM and LibreOffice. I couldn't be any happier with this system now :-)

After a new install, LibreOffice started behaving differently and would not respond to the above process. To make SCIM work with it, you also have to open Konsole and, as root, type


then type kwrite to fire up the editing program and open a file called
Xsession, to which you will append the following lines before the line that starts with exec

export GTK_IM_MODULE=scim-bridge
export QT_IM_MODULE=xim
export XIM_PROGRAM="scim -d"

and, after a log out/in, that does the trick.

2 comentarios:

  1. よくできました!


  2. guida preziosissima. ありがとう!