OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: 2or0 on January 17, 2006, 06:11:56 pm

Title: Cjk Input In Qt-based Programs - Added Uim 1.0.1
Post by: 2or0 on January 17, 2006, 06:11:56 pm
Here is the way to type cjk characters in the qt-based programs.

---- modified ----
1. Install the attatched files, "qt-mt_3.4.4_armv5tel.ipk" and "uim_1.0.1_arm5tel.ipk".

2. Add "/usr/local/qt" to QTDIR, PATH and LD_LIBRARY_PATH in /etc/profile.
Code: [Select]
export QTDIR=/usr/local/qt
export PATH=$PATH:$QTDIR/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$QTDIR/lib

3. Add the followings to .xinitrc file.
Code: [Select]
export GTK_IM_MODULE=uim
export QT_IM_MODULE=uim
export XMODIFIERS=@xim=uim

exec uim-xim &
exec uim-toolbar-gtk-systray &

4. To change the input method, press Shift-Space or click the icon on the tray.

Enjoy!

--------- added --------

See this post: https://www.oesf.org/forums/index.php?showt...ndpost&p=111523 (https://www.oesf.org/forums/index.php?showtopic=17206&view=findpost&p=111523)
Title: Cjk Input In Qt-based Programs - Added Uim 1.0.1
Post by: ZDevil on January 17, 2006, 06:30:13 pm
Hey, that's wonderful news!  Thanks!
But I just wonder if there is any other way than using pgas' new qt package.  It's just too big for practical use.  And as pgas' noted, that qt version is mainly for development purposes.  
Title: Cjk Input In Qt-based Programs - Added Uim 1.0.1
Post by: 2or0 on January 17, 2006, 11:44:50 pm
I made new qt package using pgas' qt and added it in first post. Also I replaced quiminput with newer ipk file. Enjoy it.
Title: Cjk Input In Qt-based Programs - Added Uim 1.0.1
Post by: ZDevil on January 18, 2006, 04:22:08 am
Thanks.  I tried but qt-uim fails to start.  Having done all the steps described here, plus setting "Over the spot" in Qtconfig, I can only see a question mark in the matchbox panel.  Press Shift-Space in qt apps but nothing happens. And there are only tables for various japanese and korean inputmethods in /usr/local/share/uim/tables/, but none for chinese and others.  Any idea?  
Title: Cjk Input In Qt-based Programs - Added Uim 1.0.1
Post by: ZDevil on January 18, 2006, 04:35:37 am
And here is a screenshot of qt-im-switcher.  It's blank and I can't do anything there:
Title: Cjk Input In Qt-based Programs - Added Uim 1.0.1
Post by: desertrat on January 18, 2006, 05:09:00 am
Will this conflict with scim in any way? Ie can both be used at the same time? Sorry if this is a stupid question but I'm not very familiar with these input methods

-- cheers
Title: Cjk Input In Qt-based Programs - Added Uim 1.0.1
Post by: 2or0 on January 18, 2006, 07:50:07 am
In my case, it is still "On the spot" in qtconfig. To use uim, first you shoud run the program. If you run the qt program, for example kapi, on the terminal, you can see some informations on the terminal.
 [ You are not allowed to view attachments ]
After that, you can see Chinese input method when you press sw button on the tray.
 [ You are not allowed to view attachments ]
Or, by press fn-clik the text box, you can check whether uim works properly.
 [ You are not allowed to view attachments ]
Unfortunately, I don't know how to tpye Chinese. Here is an example of Korean input.
 [ You are not allowed to view attachments ]

---
I don't know uim conflicts with scim, but you don't need both of them because you can write cjk character in qt and gtk2 using uim.

Enjoy!
Title: Cjk Input In Qt-based Programs - Added Uim 1.0.1
Post by: ZDevil on January 18, 2006, 08:04:06 am
From your screen I see both a "o" and a "sw" keys in the tray, but mine still got a "?".  I've repeated the steps but still cannot get there.    Any suggestion?  And how about other users?  Thanks!

Edited:
I tested uim with tuxcards 1.2 and portabase, Fn-tap does show a menu with inputmethods choices, but when I choose xim I see this in the terminal:
Title: Cjk Input In Qt-based Programs - Added Uim 1.0.1
Post by: 2or0 on January 18, 2006, 08:35:05 am
Did you install quiminput? I guess you did old one. Download new one and install. Finally check /usr/local/qt/plugins/inputmethods/libquiminputcontextplugin.so. Do you have this?
Title: Cjk Input In Qt-based Programs - Added Uim 1.0.1
Post by: ZDevil on January 18, 2006, 08:49:01 am
No, I uninstall and reinstall your quiminput package in the first post and only got these:

libqimsw-multi.so
libqimsw-none.so
libqsimple.so
linqxim.so

And uim is actually working in GTK apps, but not my QT apps yet...
Title: Cjk Input In Qt-based Programs - Added Uim 1.0.1
Post by: ZDevil on January 18, 2006, 08:52:11 am
Ok, I found libquiminputcontextplugin.so not in  /usr/local/qt/plugins/inputmethods/, but in /local/qt/plugins/inputmethods/ , which doesn't seem to be the correct path?  
Title: Cjk Input In Qt-based Programs - Added Uim 1.0.1
Post by: 2or0 on January 18, 2006, 09:03:50 am
Ooooops!! How stupid I am. Sorry that I uploaded old file and now modified it. The file, libquiminputcontextplugin.so, should be in /usr/local/qt/plugins/inputmethods/.

Enjoy!
Title: Cjk Input In Qt-based Programs - Added Uim 1.0.1
Post by: ZDevil on January 18, 2006, 09:18:07 am
Update:

Uim is working now after moving libquiminputcontextplugin.so to /usr/local/qt/plugins/inputmethods.  (Before doing this uim only works in GTK apps)  I can type chinese in portabase, vym and tuxcards now.  

Yet the current 0.4.5 version of uim is not as good as scim and gcin with respect to the choices of inputmethods for Chinese (only pinyin is available).  And the present scim package needs recompiled as it doesn't have qt support.

Anyway, thank you so much, 2or0, for making this happen!
Title: Cjk Input In Qt-based Programs - Added Uim 1.0.1
Post by: ZDevil on January 18, 2006, 09:51:06 am
Alright, so is there any expert still willing to take the challenge to compile the latest uim 1.0.1?  Previously we tried but no luck: https://www.oesf.org/forums/index.php?showtopic=16577 (https://www.oesf.org/forums/index.php?showtopic=16577)  (starting from page 4)

uim 1.0.1 source: http://uim.freedesktop.org/releases/uim-1.0.1.tar.gz (http://uim.freedesktop.org/releases/uim-1.0.1.tar.gz)
Title: Cjk Input In Qt-based Programs - Added Uim 1.0.1
Post by: desertrat on January 18, 2006, 10:45:56 am
Quote
I made new qt package using pgas' qt and added it in first post. Also I replaced quiminput with newer ipk file. Enjoy it.
Does your repackaged qt_mt do exactly the same job as pgas' tarball? ie so I can remove pgas' (13MB tarball) and just use yours (3MB ipk)?

-- cheers
Title: Cjk Input In Qt-based Programs - Added Uim 1.0.1
Post by: 2or0 on January 18, 2006, 02:54:13 pm
Yes, you don't need pga' tarball. Just install qt_mt.

Enjoy!
Title: Cjk Input In Qt-based Programs - Added Uim 1.0.1
Post by: 2or0 on January 19, 2006, 12:14:15 am
I compiled uim-1.0.1 and attatched it.

If you installed uim 0.4.5 and quiminput, remove them and install an attatched uim 1.0.1.

To set up uim, run 'uim-pref-gtk'.

In Global settings, check 'Specify default IM' and select 'Default input method'.

Enjoy!
Title: Cjk Input In Qt-based Programs - Added Uim 1.0.1
Post by: ZDevil on January 19, 2006, 03:04:36 am
Wow wow wow.  It WORKS!!    
Perhaps that's the coolest stuff for the CJK users!    
Thank you.  Keep up your great work, 2or0!
Title: Cjk Input In Qt-based Programs - Added Uim 1.0.1
Post by: reni on January 19, 2006, 06:19:49 pm
thanks for compiling the latest uim!  i couldn't cross compile it myself and almost began to forget it  

just for (perhaps only my) interest, did you build it with cross sdk? if so, i believe you encountered rpl-realloc error, just as i did (see my post in this forum,) and i'd appreciate it very much if you kindly tell me how you fixed it.

reni
vist my website (in japanese)
http://park15.wakwak.com/~eire/cgi-bin/wiki.cgi (http://park15.wakwak.com/~eire/cgi-bin/wiki.cgi)
Title: Cjk Input In Qt-based Programs - Added Uim 1.0.1
Post by: ShiroiKuma on January 20, 2006, 10:20:43 am
2ro0, thank you so much for your efforts in compiling this.

I've tried so hard to do this to enable CJK input in Qt apps too, but failed so many times.

Your qt-mt and uim is superb, superb. It works, it's incredible. Finally I can use Prime for input in all apps.

My only problem now is that xfce4-panel segfaults. Is anyone using this qt-mt with XFCE4? If so, is this behavior common, or should I make a clean XFCE4 install? Without the panel XFCE4 is really crippled...
Title: Cjk Input In Qt-based Programs - Added Uim 1.0.1
Post by: badog on January 20, 2006, 11:35:24 am
there are not good tables in uim for chinese.
how to change table to UIM?
Title: Cjk Input In Qt-based Programs - Added Uim 1.0.1
Post by: ZDevil on January 20, 2006, 01:10:36 pm
The most direct way to change the content of the input code tables is to edit the .scm files manually.
Title: Cjk Input In Qt-based Programs - Added Uim 1.0.1
Post by: 2or0 on January 20, 2006, 06:40:17 pm
Quote
thanks for compiling the latest uim!  i couldn't cross compile it myself and almost began to forget it  

just for (perhaps only my) interest, did you build it with cross sdk? if so, i believe you encountered rpl-realloc error, just as i did (see my post in this forum,) and i'd appreciate it very much if you kindly tell me how you fixed it.

reni
vist my website (in japanese)
http://park15.wakwak.com/~eire/cgi-bin/wiki.cgi (http://park15.wakwak.com/~eire/cgi-bin/wiki.cgi)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=111607\"][{POST_SNAPBACK}][/a][/div]

I just deleted the following line in "configure" file.
Code: [Select]
#define realloc rpl_realloc
Enjoy!
Title: Cjk Input In Qt-based Programs - Added Uim 1.0.1
Post by: reni on January 21, 2006, 04:43:29 am
thanks again for your info!  this will definitely help.  and now maybe i would be able to comile other softwares with similar problems.  i'll give them a try!

reni
vist my website (in japanese)
http://park15.wakwak.com/~eire/cgi-bin/wiki.cgi (http://park15.wakwak.com/~eire/cgi-bin/wiki.cgi)