OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: Meanie on December 06, 2006, 08:24:56 pm

Title: Utf8 Support In Gtk2
Post by: Meanie 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?
Title: Utf8 Support In Gtk2
Post by: desertrat on December 07, 2006, 12:56:32 am
It works for me entering Chinese, using the Abiword that you built.
Title: Utf8 Support In Gtk2
Post by: Meanie 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?
Title: Utf8 Support In Gtk2
Post by: ZDevil 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:
 [ You are not allowed to view attachments ]
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.
Title: Utf8 Support In Gtk2
Post by: ZDevil 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 (https://www.oesf.org/forums/index.php?showtopic=21999)
Title: Utf8 Support In Gtk2
Post by: desertrat 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
Title: Utf8 Support In Gtk2
Post by: Meanie 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
Title: Utf8 Support In Gtk2
Post by: desertrat on December 08, 2006, 01:21:25 am
Quote
can you send me your global and config from /home/root/.scim ?
Here you are.
Title: Utf8 Support In Gtk2
Post by: bron84 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...
Title: Utf8 Support In Gtk2
Post by: ZDevil 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.
Title: Utf8 Support In Gtk2
Post by: Meanie 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..
Title: Utf8 Support In Gtk2
Post by: desertrat 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.
Title: Utf8 Support In Gtk2
Post by: 2or0 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
Title: Utf8 Support In Gtk2
Post by: Meanie 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
Title: Utf8 Support In Gtk2
Post by: bron84 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  
Title: Utf8 Support In Gtk2
Post by: desertrat on December 10, 2006, 11:53:05 am
Quote
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
I tried the above and it doesn't work. Is there anything else I need to do or require?

If I set
export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE="xim"

or
export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE="xim"
export QT_IM_MODULE="xim"
then SCIM doesn't appear in either gtk or qt apps  (normally when I start a gtk app scim autoloads).

If I set
export XMODIFIERS="@im=SCIM"
export QT_IM_MODULE="xim"

then the result is same as just having
export XMODIFIERS="@im=SCIM"
ie it works for gtk apps and not for qt apps.

My understanding from previous posts is that for qt apps one needs the qt-uim package - but I'm not keen to use that as it has a limited selection of input methods. Am I missing something?
Title: Utf8 Support In Gtk2
Post by: Meanie on December 10, 2006, 04:02:30 pm
Quote
Quote
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
I tried the above and it doesn't work. Is there anything else I need to do or require?

If I set
export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE="xim"

or
export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE="xim"
export QT_IM_MODULE="xim"
then SCIM doesn't appear in either gtk or qt apps  (normally when I start a gtk app scim autoloads).

If I set
export XMODIFIERS="@im=SCIM"
export QT_IM_MODULE="xim"

then the result is same as just having
export XMODIFIERS="@im=SCIM"
ie it works for gtk apps and not for qt apps.

My understanding from previous posts is that for qt apps one needs the qt-uim package - but I'm not keen to use that as it has a limited selection of input methods. Am I missing something?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=148718\"][{POST_SNAPBACK}][/a][/div]

i use the following:

XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE=scim
export QT_IM_MODULE=scim

and it works in both gtk and qt apps
Title: Utf8 Support In Gtk2
Post by: desertrat on December 11, 2006, 01:06:54 am
Quote
i use the following:

XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE=scim
export QT_IM_MODULE=scim

and it works in both gtk and qt apps
Still doesn't work for me   (gtk apps work but not qt)

From reading these threads, my understanding is that the bog standard scim does not work with qt apps - I'm using the scim stuff from the official feeds, so can I expect the above to work?

https://www.oesf.org/forums/index.php?showtopic=17206 (https://www.oesf.org/forums/index.php?showtopic=17206)
https://www.oesf.org/forums/index.php?showtopic=16577 (https://www.oesf.org/forums/index.php?showtopic=16577)
Title: Utf8 Support In Gtk2
Post by: Meanie on December 11, 2006, 01:09:35 am
Quote
Quote
i use the following:

XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE=scim
export QT_IM_MODULE=scim

and it works in both gtk and qt apps
Still doesn't work for me   (gtk apps work but not qt)

From reading these threads, my understanding is that the bog standard scim does not work with qt apps - I'm using the scim stuff from the official feeds, so can I expect the above to work?

https://www.oesf.org/forums/index.php?showtopic=17206 (https://www.oesf.org/forums/index.php?showtopic=17206)
https://www.oesf.org/forums/index.php?showtopic=16577 (https://www.oesf.org/forums/index.php?showtopic=16577)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=148786\"][{POST_SNAPBACK}][/a][/div]

it should work. which app are you trying it on? make sure you got the scim packages and gtk2 from the beta3 feed and all should work.
Title: Utf8 Support In Gtk2
Post by: desertrat on December 11, 2006, 01:55:27 am
Quote
it should work. which app are you trying it on?
Tuxcards and the kdepim stuff. With tuxcards I can right-click in input area and select SCIM, but no scim appears (scim is already loaded because I started abiword), I tried ctrl-space to make it appear but nothing happens. With ka/pi, ko/pi and pwmanager, right-click input area doesn't give an input method selection, and ctrl-space does nothing.

Quote
make sure you got the scim packages and gtk2 from the beta3 feed and all should work.
gtk2
scim
scim-pinyin
scim-tables

are all from the official feed.
Title: Utf8 Support In Gtk2
Post by: 2or0 on December 11, 2006, 06:36:10 am
Quote
Quote
i use the following:

XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE=scim
export QT_IM_MODULE=scim

and it works in both gtk and qt apps
Still doesn't work for me   (gtk apps work but not qt)

From reading these threads, my understanding is that the bog standard scim does not work with qt apps - I'm using the scim stuff from the official feeds, so can I expect the above to work?

https://www.oesf.org/forums/index.php?showtopic=17206 (https://www.oesf.org/forums/index.php?showtopic=17206)
https://www.oesf.org/forums/index.php?showtopic=16577 (https://www.oesf.org/forums/index.php?showtopic=16577)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=148786\"][{POST_SNAPBACK}][/a][/div]

The post I wrote is out of date. From beta3 you don't need patched qt because xwindow supports xim. Now I am using uim and everything works fine. Also I tried it with scim. It works well too. Here is what I did.

As a Korean, I installed scim and scim-hangul, and just added the following in /etc/sysconfig/locale

export LANG=ko_KR.UTF-8
export LC_ALL=ko_KR.UTF-8
export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE=xim
export QT_IM_MODULE=xim

I loaded scim by adding one line "scim -d" in .xinitrc file. Then it works well.

- yonggun
Title: Utf8 Support In Gtk2
Post by: desertrat on December 11, 2006, 10:05:47 am
Quote
From beta3 you don't need patched qt because xwindow supports xim.
Ah, good, glad that's cleared up.

Quote
I loaded scim by adding one line "scim -d" in .xinitrc file. Then it works well.
That's the trick, by "preloading" scim it now works