sábado, 16 de abril de 2011

Testing Japanese IME in Mageia 1 Beta1 (with Libre Office!)

UPDATE:
After filing a bug report, the Mageia team fixed the problem in Mageia 1 Beta 2 Cauldron. Now Anthy works perfectly fine with SCIM. You also get the option of using iBus for Japanese IME, which is a lot simpler. Read about it here.

So, here I am, typing this entry from Mageia 1 Beta1.
Since I haven't encountered any problems so far, I decided to live dangerously and pushed my luck: how about testing the Japanese IME with SCIM? That works flawlessly in Mandriva with Open Office, but I haven't managed to make it work in Libre Office in this OS.

Given the fact that Mageia ships with Libre Office, I thought it would be a nice experiment to see if I can follow in Mageia the same process to activate Japanese input in Mandriva and type both in kana and kanji.

For those of you who might be interested, I described the procedure to follow in Mandriva 2010 here. However, Mandriva 2010.1 created some problems (that I could circumvent and described here).

So, I downloaded all the packages that are available in the Mageia repositories (I noticed that there was no SCIM-ANTHY, so I predicted problems).

Then, after using the SU command and inputting my password, I tried to add the required lines in the i18n file by using gedit, but the program wouldn't run:

[root@localhost sysconfig]# gedit
**
GLib-GIO:ERROR:gdbusconnection.c:2279:initable_init: assertion failed: (connection->initialization_error == NULL)
Abortado
[root@localhost sysconfig]#

Thus, I tried Kwrite, which has never worked for me in Mandriva for this particular purpose and I got another bash problem:

[root@localhost sysconfig]# kwrite
kwrite(4738): Session bus not found
To circumvent this problem try the following command (with Linux and bash)
export $(dbus-launch)

KCrash: Application 'kwrite' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/root/.kde4/socket-localhost/kdeinit4__0
Warning: connect() failed: : No existe el fichero o el directorio
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi directly
drkonqi(4739): Session bus not found
To circumvent this problem try the following command (with Linux and bash)
export $(dbus-launch)

[root@localhost sysconfig]#

Discouraged, I was about to give up, but decided to read the information that the terminal was giving me... and I saw that it was giving me the solution!

To circumvent this problem try the following command (with Linux and bash)
export $(dbus-launch)

So I typed
export $(dbus-launch) kwrite

and this was what I got:

[root@localhost sysconfig]#

I typed krwite and this is what happened:

Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kbuildsycoca4 running...
kbuildsycoca4(4901)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/kde4/trash.desktop" has Type= "Link" instead of "Application" or "Service"

kbuildsycoca4(4901) KBuildServiceFactory::createEntry: Invalid Service : "/usr/share/applications/kde4/trash.desktop"

After which, kwrite launched and I could append the lines to the i18n file.

Then I proceeded and removed the Libre Office kde integration package and, after restarting the session...

やった!マジェイアは にほんごをかくことができますよ!


The problem:

Anthy is not working, so I'm using Canna...which is fine, but I cannot get Canna to change kana into kanji (this feature works in Mandriva/Open Office).

Oh, well, but I achieved something, didn't I?

3 comentarios:

  1. Congratulations! It seems you are doing something more productive than what I'm at. You'll see it soon! :P

    ResponderEliminar
  2. I forgot to ask you...what about UIM? My MEPIS 11 RC2 uses it as its basis for Input Method Editors. Of course, I don't know the status of that package in RPM.

    ResponderEliminar
  3. Well, I always install UIM along with SCIM, Canna, and Anthy.

    ResponderEliminar

14 Years?! Happy anniversary, Mandriva Chronicles!

 Yes, today is the 14th anniversary of this humble blog, which I created to register my experiences as a Linux user. What has changed since ...