| View previous topic :: View next topic |
| Author |
Message |
boblu n00b

Joined: 12 Oct 2006 Posts: 40
|
Posted: Sat Apr 05, 2008 12:19 am Post subject: [solved]Scim problem in KDE environment |
|
|
Basically, I have two questions to ask.
After install KDE3.5, I installed scim input method like this
| Code: | | emerge scim skim scim-anthy scim-pinyin scim-qtimm scim tables scim-tomoe skim-scim-anthy |
After installation, as most instructions said, I put the following into file ~/.xinitrc
| Code: | LANG='en_US.UTF-8' scim -d
export XMODIFIERS=@im=SCIM
export XMODIFIER=@im=SCIM
export GTK_IM_MODULE=scim
export QT_IM_MODULE=scim |
But, after reboot, I had no input method appears despite how many times I press ctrl+space
However, if I put the same lines into file ~/.xprofile, I get the input method working correctly with KDE applications.
So, my first question is why I can not call the input method when I put those code in ~/.xinitrc instead of ~/.xprofile
And my second question is
though everything is ok when using scim(skim) on KDE applications, however, I cannot use the input method in my firefox browser. Why?
I am using the firefox-bin package, and I cannot call out the input method in firefox by pressing ctrl+space _________________ I like my G!
Last edited by boblu on Tue Apr 08, 2008 12:06 am; edited 3 times in total |
|
| Back to top |
|
 |
OmSai Guru


Joined: 29 Sep 2007 Posts: 565 Location: Manchester, CT, USA
|
Posted: Sat Apr 05, 2008 9:21 am Post subject: Re: [Help]Scim problem in KDE environment |
|
|
| boblu wrote: | But, after reboot, I had no input method appears despite how many times I press ctrl+space
However, if I put the same lines into file ~/.xprofile, I get the input method working correctly with KDE applications.
So, my first question is why I can not call the input method when I put those code in ~/.xinitrc instead of ~/.xprofile |
The environment variables for SCIM need to load before starting your Xsession.
It's an undocumented specularity of SCIM.
That's why ~/.xinitrc is not the right place to put them.
I actually put mine in /etc/profile.d/scim.sh [link]
| boblu wrote: | And my second question is
though everything is ok when using scim(skim) on KDE applications, however, I cannot use the input method in my firefox browser. Why?
I am using the firefox-bin package, and I cannot call out the input method in firefox by pressing ctrl+space |
Because it's firefox-bin
It will work in firefox. _________________ Gentoo is the stick-shift of Linux.
You work it manually, it has somewhat better performance, but it's really for the fun of it. |
|
| Back to top |
|
 |
boblu n00b

Joined: 12 Oct 2006 Posts: 40
|
Posted: Sat Apr 05, 2008 12:01 pm Post subject: |
|
|
Thank you very much for you answer.
I will post my result here when I get back to that computer. _________________ I like my G!
Last edited by boblu on Mon Apr 07, 2008 8:33 pm; edited 1 time in total |
|
| Back to top |
|
 |
newtonian Guru


Joined: 19 Jan 2005 Posts: 371 Location: Hokkaido Japan
|
Posted: Sat Apr 05, 2008 12:56 pm Post subject: If your issue is solved, please put [solved] in the title. |
|
|
If your issue is solved, please put [solved] in the title.
This will help others with the similar issues find answers quicker.
Cheers, |
|
| Back to top |
|
 |
boblu n00b

Joined: 12 Oct 2006 Posts: 40
|
Posted: Mon Apr 07, 2008 8:38 pm Post subject: Re: [Help]Scim problem in KDE environment |
|
|
| OmSai wrote: |
The environment variables for SCIM need to load before starting your Xsession.
It's an undocumented specularity of SCIM.
That's why ~/.xinitrc is not the right place to put them.
I actually put mine in /etc/profile.d/scim.sh [link] |
This problem has been solved by using your method. Thank you again.
But the following problem remains the same.
| OmSai wrote: |
Because it's firefox-bin
It will work in firefox. |
I removed mozilla-firefox-bin and compiled mozilla-firefox in my kde environment.
But I still cannot get SCIM working in it.
Any suggestions? _________________ I like my G! |
|
| Back to top |
|
 |
OmSai Guru


Joined: 29 Sep 2007 Posts: 565 Location: Manchester, CT, USA
|
Posted: Mon Apr 07, 2008 9:03 pm Post subject: |
|
|
Hmm... I thought that the source compiled Firefox would not have the C++ ABI transition problem of the -bin.
Just to be absolutely sure that it is not the ABI, can you please use SCIM bridge and see if it works with Firefox?
Make sure you have the USE flags as follows -
| emerge -pv app-i18n/scim app-i18n/scim-bridge app-i18n/scim-qtimm app-i18n/scim-tables x11-libs/qt: | [ebuild R ] x11-libs/qt-3.3.8-r4 USE="cups gif immqt-bc ipv6 opengl postgres -debug -doc -examples (-firebird) -immqt -mysql -nas -nis -odbc -sqlite -xinerama" 0 kB
[ebuild R ] x11-libs/qt-4.3.2-r1 USE="cups dbus gif jpeg opengl png postgres qt3support sqlite3 ssl tiff zlib -accessibility -debug -doc -examples (-firebird) -glib -mng -mysql -nas -nis -odbc -pch -sqlite -xinerama" INPUT_DEVICES="-wacom" 0 kB
[ebuild R ] app-i18n/scim-1.4.7 USE="gtk qt3 -doc -kde" 0 kB
[ebuild R ] app-i18n/scim-qtimm-0.9.4 USE="-debug" 0 kB
[ebuild R ] app-i18n/scim-bridge-0.4.15 USE="gtk qt3 qt4 -doc" 0 kB
[ebuild R ] app-i18n/scim-tables-0.5.7 USE="nls -kde" LINGUAS="hi -am -ar -bn -gu -ja -kn -ko -ml -ne -pa -ru -ta -te -th -vi -zh" 0 kB |
Of course, the LINGUAS is whatever you want it to be
(and I'm not using KDE...)
Then use my SCIM variables.
scim -d is not necessary, as I mentioned in the wiki
| /etc/profile.d/scim.sh: | export XMODIFIERS=@im=SCIM #case matters for this variable!
export GTK_IM_MODULE=scim-bridge
export QT_IM_MODULE=scim |
_________________ Gentoo is the stick-shift of Linux.
You work it manually, it has somewhat better performance, but it's really for the fun of it. |
|
| Back to top |
|
 |
boblu n00b

Joined: 12 Oct 2006 Posts: 40
|
Posted: Tue Apr 08, 2008 12:06 am Post subject: |
|
|
Thank you for your prompt suggestion.
I fixed this problem by recompile the scim package with the gtk USE flag under KDE environment.
And created the scim.sh file in /etc/scim.sh based on what you said.
Now I can use scim in firefox under KDE.
Cheers! _________________ I like my G! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|