Menu

#11 About locale and Japanese input method

open
nobody
None
5
2001-11-18
2001-11-18
Anonymous
No

Dear Sir:

Allow me to introduce myself first. I'm a Software RD
Engineer at FIC, Taiwan. I'm trying to build our
English embeded Linux system with Japanese
input method. I have made this implementation work
under the midori like environment, Redhat 6.2 linux
with kernel 2.4.6. Yet, it, somehow, doesn't
work, while I tried to add those packages to and
rebuilt Midori. Therefore, I really appreciate that
you can spend some time to help me figure out some
difficult part. First, let me tell you what I have
done in Linux.

I download three rpm packages from "ftp.kddlabs.co,jp"
as follow:
1. Canna-3.5b2-24JRPM60.i386.rpm
2. kinput2-canna-v3-3JRPM60.i386.rpm
3. locale-ja-9-1.noarch.rpm

# install all of them
rpm -i [three attached rpm packages]

# change some environment variables
export LANG=ja_JP.ujis
export LC_ALL=ja_JP.ujis
export XMODIFIERS=@im=kinput2

# start server
cannaserver

# connect client to server
kinput2 -canna &

# call application which can work with the kinput2
mozilla &
(or "netscape &")

After doing the previous steps, the kinput2 does work
well with the browser in lunix. (shift-space >> to
see and use Romazi input method) Then, I tried to
find all files those packages modified and loaded and
create another new *.mlz as follow.

# to see where does the package really modify
rpm -qpl [three attached rpm packages]

# to find what addtional libs need to be added
ldd [command]

# rebuild all paths under one working directory
# and tar all files recursively
tar zvxf jp_input.mlz ./

Finally, I extracted the compressed file to midori
working directory and then rebuild Midori. The
situation becomes different. Actually, the
"cannaserver" does work fine in midori, and it can
check the client situation with "cannastat" command.
And, the kinput2 client seems to be ok,
because I can enter "cannasta" to see the connection!
As I though, the problem should be the XMODIFIERS
parts, because there is no way that mozilla
will use "kinput2 protocol" if XMODIFIERS doesn't play
its role here. Since it does informer role to tell
all application use "kinput2" as an input
method under linux, the variable seems not work under
midori. Therefore, I would really appreciate if you
can help me to make "mozilla or netscape use
kinput2 protocol". Frankly, I'm not sure that what
real role "locale" and "XMODIFIERS" is in linux, not
to mention their relationship. So, any possible
information about them in Midori will be really
helpful. Or ... does Midori allow "setlocale"?

sincerely,

Ethan Chung

Discussion


Log in to post a comment.