Author Topic: Utf8 Support In Gtk2  (Read 5378 times)

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Utf8 Support In Gtk2
« on: December 06, 2006, 08:24:56 pm »
Previously on beta1, I had scim installed and configured and was able to enter Japanese in Abiword. Now with beta3, scim still works because I can enter Japanese in mrxvt, but I am unable to enter Japanese in Abiword and I also leafpad which is another GTK2 application. So it seems the GTK2 libraries in beta3 don't support UTF8?
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Utf8 Support In Gtk2
« Reply #1 on: December 07, 2006, 12:56:32 am »
It works for me entering Chinese, using the Abiword that you built.
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Utf8 Support In Gtk2
« Reply #2 on: December 07, 2006, 01:16:00 am »
Quote
It works for me entering Chinese, using the Abiword that you built.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=148330\"][{POST_SNAPBACK}][/a][/div]

thanks for letting me know. now back to the witch hunt to track down why abiword and leafpad aren't behaving with scim...

PS: can you show me what you have added in your .profile .xinitrc in terms of IM support such as XMODIFIERS=im@SCIM?
« Last Edit: December 07, 2006, 01:19:10 am by Meanie »
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Utf8 Support In Gtk2
« Reply #3 on: December 07, 2006, 02:37:30 am »
Strange! I just discovered that my C1000@beta3 has the same problem. Not just leafpad or abiword, but the gtk-panel simply stops showing up at all in any gtk app.
But scim did work before.

I saw an error message and here is the screenshot:
 [ Invalid Attachment ]
It seems there was no such error when scim was running. Any idea?

Meanie:
What I did to .xinitrc is:

export XMODIFIERS=@scim
export GTK_IM_MODULE=scim
export scim &

And

gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules


after installing scim.

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://
Utf8 Support In Gtk2
« Reply #4 on: December 07, 2006, 06:06:18 am »
Well, now i find it even stranger that the gdk locale warning show up in other GTK app launched from the terminal.

I am no expert at all but I wonder if this issue is somehow related to another problem of using jpilot under Beta3 (everything works under Beta1):
https://www.oesf.org/forums/index.php?showtopic=21999

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://
Utf8 Support In Gtk2
« Reply #5 on: December 07, 2006, 04:16:12 pm »
Quote
PS: can you show me what you have added in your .profile .xinitrc in terms of IM support such as XMODIFIERS=im@SCIM?
Just this in .xinitrc
Code: [Select]
export XMODIFIERS="@im=SCIM"
And I ran
Code: [Select]
gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Utf8 Support In Gtk2
« Reply #6 on: December 07, 2006, 09:00:59 pm »
Quote
Quote
PS: can you show me what you have added in your .profile .xinitrc in terms of IM support such as XMODIFIERS=im@SCIM?
Just this in .xinitrc
Code: [Select]
export XMODIFIERS="@im=SCIM"
And I ran
Code: [Select]
gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules[div align=\"right\"][a href=\"index.php?act=findpost&pid=148436\"][{POST_SNAPBACK}][/a][/div]

strange, I have the same and it does work under dillo, but not in abiword which is the only app that I care about

can you send me your global and config from /home/root/.scim ?

this is driving me nuts
« Last Edit: December 07, 2006, 09:02:23 pm by Meanie »
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Utf8 Support In Gtk2
« Reply #7 on: December 08, 2006, 01:21:25 am »
Quote
can you send me your global and config from /home/root/.scim ?
Here you are.
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

bron84

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • http://chillopium.s300.xrea.com/gentoo/
Utf8 Support In Gtk2
« Reply #8 on: December 08, 2006, 10:28:02 am »
Quote
Previously on beta1, I had scim installed and configured and was able to enter Japanese in Abiword. Now with beta3, scim still works because I can enter Japanese in mrxvt, but I am unable to enter Japanese in Abiword and I also leafpad which is another GTK2 application. So it seems the GTK2 libraries in beta3 don't support UTF8?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=148308\"][{POST_SNAPBACK}][/a][/div]
I was suffering from the same problems ,
so I removed Meanie's GTK2 IPK Pacakge
and re-installed one from beta3 feed .
then I made X restarted and was able to enter Japanese in Abiword,Gtkterm2,etc...  
it seemed work fine,however,I had pdaXrom rebooted 5 minitutes ago,
I was unable to enter agein ...  
I wonder this is something wrong in gtk+2 libraries...
Gentoo - Zaurus C3200, Debian/armel on SD - C860

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Utf8 Support In Gtk2
« Reply #9 on: December 08, 2006, 12:21:09 pm »
.... hmm I remember I realize this also with Meanie's modified gtk2 lib installed. Let me go back to the one in the feed and see how it goes.

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]

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Utf8 Support In Gtk2
« Reply #10 on: December 08, 2006, 10:21:08 pm »
Quote
.... hmm I remember I realize this also with Meanie's modified gtk2 lib installed. Let me go back to the one in the feed and see how it goes.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=148534\"][{POST_SNAPBACK}][/a][/div]

good point, i will see if it works with the original beta3 gtk2 libraries, then recompile them if that's the cause of the problems..
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Utf8 Support In Gtk2
« Reply #11 on: December 09, 2006, 02:21:20 am »
Quote
good point, i will see if it works with the original beta3 gtk2 libraries, then recompile them if that's the cause of the problems..
FWIW I'm using the original beta3 gtk2 libs.
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

2or0

  • Full Member
  • ***
  • Posts: 217
    • View Profile
    • http://
Utf8 Support In Gtk2
« Reply #12 on: December 10, 2006, 02:47:10 am »
In my case, I appended the following lines in /eyc/sysconfig/locale instead of .xinitrc file. Everything works well even in qt applications.

export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE=xim
export QT_IM_MODULE=xim
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)

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Utf8 Support In Gtk2
« Reply #13 on: December 10, 2006, 06:33:12 am »
yep, the beta3 gtk2 lib work. once i reinstalled them, scim works in gtk2 now. now all i need to do is recompile gtk2 again with beta3 gcc image and add my hacks back in
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

bron84

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • http://chillopium.s300.xrea.com/gentoo/
Utf8 Support In Gtk2
« Reply #14 on: December 10, 2006, 07:29:26 am »
Quote
yep, the beta3 gtk2 lib work. once i reinstalled them, scim works in gtk2 now. now all i need to do is recompile gtk2 again with beta3 gcc image and add my hacks back in
[div align=\"right\"][a href=\"index.php?act=findpost&pid=148697\"][{POST_SNAPBACK}][/a][/div]
Also I can do  by using uim and anthy  
Gentoo - Zaurus C3200, Debian/armel on SD - C860