Author Topic: Cjk Input In Qt-based Programs - Added Uim 1.0.1  (Read 12002 times)

2or0

  • Full Member
  • ***
  • Posts: 217
    • View Profile
    • http://
Cjk Input In Qt-based Programs - Added Uim 1.0.1
« 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
« Last Edit: January 19, 2006, 12:19:15 am by 2or0 »
Zaurus SL-C3200 with Debian armel of kernel 2.6.24-yonggun
Ambicom WL1100C WLAN
1 GB Sandisk SD / 1 GB Lexar SD / 256 MB Dane-Elec CF
-----
Blog http://yonggun.tistory.com (English/Korean)

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Cjk Input In Qt-based Programs - Added Uim 1.0.1
« Reply #1 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.  

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

2or0

  • Full Member
  • ***
  • Posts: 217
    • View Profile
    • http://
Cjk Input In Qt-based Programs - Added Uim 1.0.1
« Reply #2 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.
Zaurus SL-C3200 with Debian armel of kernel 2.6.24-yonggun
Ambicom WL1100C WLAN
1 GB Sandisk SD / 1 GB Lexar SD / 256 MB Dane-Elec CF
-----
Blog http://yonggun.tistory.com (English/Korean)

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Cjk Input In Qt-based Programs - Added Uim 1.0.1
« Reply #3 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?  
« Last Edit: January 18, 2006, 04:24:11 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Cjk Input In Qt-based Programs - Added Uim 1.0.1
« Reply #4 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:

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Cjk Input In Qt-based Programs - Added Uim 1.0.1
« Reply #5 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
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

2or0

  • Full Member
  • ***
  • Posts: 217
    • View Profile
    • http://
Cjk Input In Qt-based Programs - Added Uim 1.0.1
« Reply #6 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.

After that, you can see Chinese input method when you press sw button on the tray.

Or, by press fn-clik the text box, you can check whether uim works properly.

Unfortunately, I don't know how to tpye Chinese. Here is an example of Korean input.
 [ Invalid Attachment ]

---
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!
« Last Edit: January 18, 2006, 07:51:31 am by 2or0 »
Zaurus SL-C3200 with Debian armel of kernel 2.6.24-yonggun
Ambicom WL1100C WLAN
1 GB Sandisk SD / 1 GB Lexar SD / 256 MB Dane-Elec CF
-----
Blog http://yonggun.tistory.com (English/Korean)

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Cjk Input In Qt-based Programs - Added Uim 1.0.1
« Reply #7 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:
« Last Edit: January 18, 2006, 08:13:55 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

2or0

  • Full Member
  • ***
  • Posts: 217
    • View Profile
    • http://
Cjk Input In Qt-based Programs - Added Uim 1.0.1
« Reply #8 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?
Zaurus SL-C3200 with Debian armel of kernel 2.6.24-yonggun
Ambicom WL1100C WLAN
1 GB Sandisk SD / 1 GB Lexar SD / 256 MB Dane-Elec CF
-----
Blog http://yonggun.tistory.com (English/Korean)

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Cjk Input In Qt-based Programs - Added Uim 1.0.1
« Reply #9 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...

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Cjk Input In Qt-based Programs - Added Uim 1.0.1
« Reply #10 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?  
« Last Edit: January 18, 2006, 08:55:07 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

2or0

  • Full Member
  • ***
  • Posts: 217
    • View Profile
    • http://
Cjk Input In Qt-based Programs - Added Uim 1.0.1
« Reply #11 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!
Zaurus SL-C3200 with Debian armel of kernel 2.6.24-yonggun
Ambicom WL1100C WLAN
1 GB Sandisk SD / 1 GB Lexar SD / 256 MB Dane-Elec CF
-----
Blog http://yonggun.tistory.com (English/Korean)

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Cjk Input In Qt-based Programs - Added Uim 1.0.1
« Reply #12 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!
« Last Edit: January 18, 2006, 09:18:55 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Cjk Input In Qt-based Programs - Added Uim 1.0.1
« Reply #13 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  (starting from page 4)

uim 1.0.1 source: http://uim.freedesktop.org/releases/uim-1.0.1.tar.gz
« Last Edit: January 18, 2006, 09:52:46 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Cjk Input In Qt-based Programs - Added Uim 1.0.1
« Reply #14 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
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM