Author Topic: (Solved) Re: how to make scim as default input method including OpenOffice  (Read 3891 times)

Offline ravi_npatty

  • Full Member
  • ***
  • Posts: 101
Dear All,

  I need scim for typing in my local language. I am able to to in some applications which offer context menu (right click) option to chose input method. In most of the applications which do not give context menu option to chose IM, I am unable to use my local language. Right now I am using mousepad (text editor) to type in my language and copy paste into word processors. I am looking for a solution to make scim as default input method in all applications.
Thanks in advance for helping me.
« Last Edit: July 07, 2010, 07:07:31 AM by ravi_npatty »

Offline ravi_npatty

  • Full Member
  • ***
  • Posts: 101
I googled to solve this and found the following helps in making scim as default IM.

Add the following lines in '/etc/sysconfig/i18n'
GTK_IM_MODULE=scim
QT_IM_MODULE=scim
XIM_PROGRAM="scim -d"
XMODIFIERS=@im=SCIM
(I think restart required for effecting this change)
(I got the trick from
http://www.scim-im.org/wiki/documentation/installation_and_configuration/mandriva_linux_formerly_mandrakelinux/system_configuration )

This helps in making scim as default IM in all applications. But it does not work in OpenOffice. I tried to capture the outputs generated by starting openoffice from console. I am posting the output here.

(soffice:11650): Gtk-WARNING **: /opt/openoffice.org3/program/../basis-link/ure-link/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/libscim-1.0.so.8)

(soffice:11650): Gtk-WARNING **: Loading IM context type 'scim' failed

Can someone help me in getting scim work with openoffice.

Thanks

Offline cwchia

  • Jr. Member
  • **
  • Posts: 41
Re: how to make scim as default input method
« Reply #2 on: July 06, 2010, 11:28:40 PM »
I am also facing this problem for SCIM/IBus with OOo. No matter what I try, SCIM and IBus are not co-operating with OOo (both the PCLinuxOS /G-OOo via Get OpenOffice.org script as well as the vanilla OOo from OO.o) :'( :'( :'(

NerdTests.com says I'm a High Nerd.  Click here to take the Nerd Test, get geeky images and jokes, and write on the nerd forum!

Offline cwchia

  • Jr. Member
  • **
  • Posts: 41
Re: how to make scim as default input method
« Reply #3 on: July 07, 2010, 12:35:17 AM »
It's working for me now!!! ;D ;D ;D

I found this: http://math.suda.edu.cn/fliu/showarticle.php?a=1011

Loosely translated:

Code: [Select]
Gentoo system,openoffice 3.2.0,unable to use scim. Terminal shows the following output:

(soffice:4103): Gtk-WARNING **: /usr/lib64/openoffice/program/../basis-link/ure-link/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/libscim-1.0.so.8)
(soffice:4103): Gtk-WARNING **: Loading IM context type 'scim' failed

solution: locate the /lib directory in the openoffice installation path, then

cd /usr/lib64/openoffice/ure/lib
mv libstdc++.so.6 libstdc++.so.6.orig
mv libgcc_s.so.1 libgcc_s.so.1.orig

I found that the vanilla OOo is installed in /opt and the  /lib directory is located at

/opt/openoffice.org3/basis-link/ure-link/lib/

so in konsole I type

su [enter root password]
cd /opt/openoffice.org3/basis-link/ure-link/lib/
mv libstdc++.so.6 libstdc++.so.6.orig
mv libgcc_s.so.1 libgcc_s.so.1.orig

and BINGO!!!!!

Now I will try the Go-oo build to see if it work or not. I am facing some nuisance with the Go-oo build, where can I file a bug?

NerdTests.com says I'm a High Nerd.  Click here to take the Nerd Test, get geeky images and jokes, and write on the nerd forum!

Offline ravi_npatty

  • Full Member
  • ***
  • Posts: 101
Thanks a lot Cwchia,

This works fine in openoffice installed thru getopenoffice also.
Once again thanks.

Offline cwchia

  • Jr. Member
  • **
  • Posts: 41
Ravi, you are most welcome. :D

NerdTests.com says I'm a High Nerd.  Click here to take the Nerd Test, get geeky images and jokes, and write on the nerd forum!

Offline cwchia

  • Jr. Member
  • **
  • Posts: 41
Just to keep it updated with LibreOffice.

The same applies to LibreOffice, just change the reference of
Code: [Select]
openoffice.org3 to
Code: [Select]
libreoffice

NerdTests.com says I'm a High Nerd.  Click here to take the Nerd Test, get geeky images and jokes, and write on the nerd forum!

Offline cwchia

  • Jr. Member
  • **
  • Posts: 41
this is a bit irritating as every time I upgraded LO, I have to repeat this steps. Wonder if this is a problem with LO itself? should I file a bug?

Or can some kind soul write a script that I can run it on the machines that I have to maintain? Thanks!

NerdTests.com says I'm a High Nerd.  Click here to take the Nerd Test, get geeky images and jokes, and write on the nerd forum!

Offline ravi_npatty

  • Full Member
  • ***
  • Posts: 101
Or can some kind soul write a script that I can run it on the machines that I have to maintain? Thanks!

I think you have everything you need for writing script you are requesting.

You can save those commands in a script file and run it.
Something lke this.
scim_correction.sh
Code: [Select]
su
cd /opt/libreoffice/basis-link/ure-link/lib/
mv libstdc++.so.6 libstdc++.so.6.orig
mv libgcc_s.so.1 libgcc_s.so.1.orig
if you do not want to type root password, you may use sudo accordingly.

Edit:
 You can add your script to startup as I see no harm in that. But for doing that you should use sudo to do away with password typing.
« Last Edit: June 12, 2011, 12:14:04 PM by ravi_npatty »

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6224
  • I don't do Windows
Or can some kind soul write a script that I can run it on the machines that I have to maintain? Thanks!

I think you have everything you need for writing script you are requesting.

You can save those commands in a script file and run it.
Something lke this.
scim_correction.sh
Code: [Select]
su
cd /opt/libreoffice/basis-link/ure-link/lib/
mv libstdc++.so.6 libstdc++.so.6.orig
mv libgcc_s.so.1 libgcc_s.so.1.orig
if you do not want to type root password, you may use sudo accordingly.

Edit:
 You can add your script to startup as I see no harm in that. But for doing that you should use sudo to do away with password typing.

That's the right idea, but won't work as shown. You need to create the shell script like this:

#!/bin/sh
cd /opt/libreoffice/basis-link/ure-link/lib/
mv libstdc++.so.6 libstdc++.so.6.orig
mv libgcc_s.so.1 libgcc_s.so.1.orig


Make the file executable:

chmod +x scim_correction.sh

Run the file as user root.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline ravi_npatty

  • Full Member
  • ***
  • Posts: 101
That's the right idea, but won't work as shown. You need to create the shell script like this:

Thanks for your correction.

Offline cwchia

  • Jr. Member
  • **
  • Posts: 41
Just found out that the latest LO 3.4 place the file under
Code: [Select]
/opt/libreoffice3.4/basis-link/ure-link/lib
« Last Edit: August 01, 2011, 09:27:51 PM by cwchia »

NerdTests.com says I'm a High Nerd.  Click here to take the Nerd Test, get geeky images and jokes, and write on the nerd forum!

Offline cwchia

  • Jr. Member
  • **
  • Posts: 41
Re: (Solved) Re: how to make scim as default input method including OpenOffice
« Reply #12 on: September 08, 2011, 02:16:50 AM »
There is an great article about SCIM in the September 2011 PCLinuxOS Magazine:

http://www.pclosmag.com/html/Issues/201109/page16.html

NerdTests.com says I'm a High Nerd.  Click here to take the Nerd Test, get geeky images and jokes, and write on the nerd forum!

Offline mechatotoro

  • Jr. Member
  • **
  • Posts: 18
Re: (Solved) Re: how to make scim as default input method including OpenOffice
« Reply #13 on: November 19, 2011, 09:05:44 PM »
There is an great article about SCIM in the September 2011 PCLinuxOS Magazine:

http://www.pclosmag.com/html/Issues/201109/page16.html


Thanks, I feel honored.  However, after a new install, LibreOffice started behaving differently and would not respond to the process I described in the article. To make SCIM work again, you also have to open Konsole and, as root, type

cd /usr/share/X11/xdm

then type kwrite to fire up the editing program and open a file called Xsession, to which you will append the following lines before the line that starts with exec

export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE=scim-bridge
export QT_IM_MODULE=xim
export XIM_PROGRAM="scim -d"

and, after a log out/in, that does the trick.

I hope that helps!

For OpenOffice, what does the trick for me is to remove the package openoffice.org-kde4. 
« Last Edit: November 19, 2011, 09:09:36 PM by mechatotoro »

Offline cwchia

  • Jr. Member
  • **
  • Posts: 41
Just a small update as LO changed the path to the files:-

su
cd /opt/libreoffice3.5/ure-link/lib/
mv libstdc++.so.6 libstdc++.so.6.orig
mv libgcc_s.so.1 libgcc_s.so.1.orig

Unless LO changes the path again, just need to change the path 3.x to match the installed version.

NerdTests.com says I'm a High Nerd.  Click here to take the Nerd Test, get geeky images and jokes, and write on the nerd forum!