Getting Tomoe to recognize Japanese characters in English on Fedora 10

I recently set up Fedora 10 on a ThinkPad X60 laptop, which has worked very well. I’ll write about that a bit later I think. There are still some issues with the wireless connecting to a WPA2 network, and the Intel 945GM video drivers are apparently pretty crappy right now due to changes in the underlying architecture, but things are working really well on this small laptop.

One of the things I am interested in using this laptop for is as a Japanese-English dictionary. To that end I installed GWaEi, a Japanese-English dictionary using the Edict files. I had been using GJiten for a long time, but that project hasn’t been updated in a while, so I thought I would try something new. (Warning: I had to compile from source, and make a minor change in main.c to have it default to called “/usr/local/bin/gwaei” when re-setting the language variables. A simple change, shouldn’t be tough to figure out but feel free to drop a comment if you want more info.)

GWaEi seems to work well.

The other thing I like to do is use Tomoe, a linux-based handwriting recognition engine for Japanese and Chinese characters. It is conveniently available for install via yum. The problem is that after installation, no matter how many strokes I entered no candidates would show up. That is odd. I vaguely remembered that when I installed Tomoe on Ubuntu recently that I had to copy some file.

So, for those facing a similar problem at home: if you want Tomoe to make suggestions when you are running in an English environment, you will have to do something like this:

$ sudo cp /usr/share/tomoe/recognizer/handwriting-ja.xml /usr/share/tomoe/recognizer/handwriting-en.xml

That took care of the problem for me. Yay! Now I can fingerpaint my way to successful Japanese reading.

My next project: see if I can upgrade to the newest version of Ubuntu on the OLPC that I have, and get Tomoe working on that. It is a bit smaller than the X60 and might make a good machine to take to coffee shops. (That isn’t really true though: the keyboard on the X60 is vastly superior to the one on the OLPC, but the OLPC has a much better screen for doing lots of ebook reading.)

Anyway, hope that helps someone out there. Jeez, it seems like my entire vacation has been spent on sundry computer things at home.


Posted

in

,

by

Tags:

Comments

2 responses to “Getting Tomoe to recognize Japanese characters in English on Fedora 10”

  1. Dmishin Avatar
    Dmishin

    It would be better to create hardlink instead of copying file:
    $ sudo ln /usr/share/tomoe/recognizer/handwriting-ja.xml /usr/share/tomoe/recognizer/handwriting-en.xml

  2. Fugu Avatar

    Dmishin, thanks you are probably right about that. That would pick up changes if the file is updated. Thanks for the comment!

Leave a Reply

Your email address will not be published. Required fields are marked *