Trouble installing SCIM m17n in Puppy 3.01

A home for all kinds of Puppy related projects
Message
Author
RR Koothady
Posts: 249
Joined: Sat 22 Jul 2006, 20:19
Location: Coimbatore, India

#21 Post by RR Koothady »

Dear Juveno 41:

1. a) My experience (I mean past few days) with SCIM installation tells me setting the 'locale' to fr_FR or ta_IN (in my case) is not necessary in the first place.
b) Setting the 'locale' becomes mandatory if you wish to 'display' the User Interface in your own language - that is after you translate ~/.jwmrc and ~/Choices/ROX-Filer/PuppyPin and ?may be other files(I am just exploring this at present...)

2. a) Hence, for the present, the objective is to make a successful 'local language input' using SCIM and not translating the UI.
b) The first precondition for a successful input is to install a unicode font of your language in your system. This is installed at /usr/X11R6/lib/X11/fonts/ttf folder. This action makes the font available universally for all the applications.

3. I have tested SCIM successfully with many puplet versions of 3.01 now (Timxxine, Pupee, Standard 3.01). The steps are fairly clear:

i) Install m17n-lib dot pet first.
ii) m17n-db dot pet goes next.
iii) SCIM dot pet installation follows this.
iv) SCIM-m17n dot pet (this is nothing but a bridge) is installed after this.
v) SCIM Tables dot pet comes finally.
vi) Place the table-imengine-setup.so file at /usr/local/lib/scim-1.0/1.4.0/SetupUI.
vii) Place the script
"/usr/lib/gtk-2.0/immodules/im-scim.so"
"scim" "SCIM Input Method" "" "" ""
at /etc/gtk-2/immodules
viii) Finally:
Just place the following script at ~/.xinitrc - after the PUPSTATE line:
GTK_IM_MODULE=scim
export GTK_IM_MODULE
ix) reboot.
x) No need for pressing "ctrl + space" to invoke SCIM; because with the above scripts in place, SCIM gets invoked whenever a GTK application starts.
xi) When a GTK application starts - SCIM is invoked. or else you can invoke it by typing scim -d in the terminal. It gets launched successfully.
xi) Now install the language tables in the SCIM panel found in the X Tray. To do this: Right click scim keyboard icon found in the tray - SCIM Setup - IM Engine - Generic Table - Table Management - Install ... Install the tables from /usr/local/share/scim/tables/
x) Close. Open the GTK application. SCIM Keyboard popsup a tray from where you can choose the language and table of your choice.
xi) After this - just type in your language.

................................

Now coming down to your installation:

1) There are 2 routes.
a) SCIM ,SCIM-Bridge & SCIM Tables Route (Irihapeti way),
b) m17n-lib, m17n-db, SCIM, SCIM-m17n, SCIM Tables Route (the path I had followed)

2) Either you stick to a, or b. Never mix both. You have mixed both.

...............................

The Problems with my way:
- I have read in Debian Forums (?Min Hua) that SCIM-Bridge way is more versatile of the two. It is said that SCIM-Bridge is written in C and hence it is capable of handling more apps. For example, my installation is fine with Abiword, Geany, Leafpad, GIMP, Inkscape - BUT not in Open Office. I am not able to use SCIM with Oo.
- However, I have seen in "BOSS Linux" (an Indian Debian Derivative) SCIM compiled with just SCIM-Brige and the Tables, inputting in Oo very well. SCIM-m17n is said to be written in C++ and it is claimed to be the reason for such a constraint.

------------------

So, please follow my way first step by step. Boost your confidence first by practically inputting French or any of your desired language.

Then take Irihapeti's path. Make Oo succumb to Puppy.

Then share with me the SCIM-Bridge Dot Pet you have compiled (as I have failed in this) with me and tell me how I should proceed to tackle Oo.

--------------------

Then, let's rejoice!!

Love
Ramesh

RR Koothady
Posts: 249
Joined: Sat 22 Jul 2006, 20:19
Location: Coimbatore, India

Hello Juveno in French

#22 Post by RR Koothady »

Hello Juveno!
Attachments
hello juveno.png
(92.62 KiB) Downloaded 2226 times

Irihapeti

#23 Post by Irihapeti »

The whole idea of using scim-bridge is so that you don't have to be tied to a particular localisation to use its language. That's the problem with the chinese-input pet. I've found that changing locale to something non-English changes the default fonts used for things such as the code boxes on this forum, and the result is sometimes almost unreadable.

I've attached a version of the scim-bridge dotpet file, from which I have removed the scripts (don't know why I didn't think of this before :oops: )
The purpose of the scripts is to make the necessary alterations to .xinitrc and gtk.immodules. I'm new to this sort of thing and still unsure if I really know what I'm doing. :?

As for my other question about using macrons for M

RR Koothady
Posts: 249
Joined: Sat 22 Jul 2006, 20:19
Location: Coimbatore, India

Testing SCIM BRIDGE Input

#24 Post by RR Koothady »

Irihapeti:

Thanks very much for sharing scim-bridge dot pet.

Here are my results:

1. Installed SCIM dot pet.

2. Installed SCIM-Bridge dot pet.

- This showed the following message: "/usr/bin/scim-bridge has these missing lib files: libscim-1.0.so.8"
- However, I could find that file residing in: /usr/local/lib
- Hence I thought, they should be linked: I did the following in the terminal: ln /usr/bin/scim-bridge /usr/local/lib/libscim-1.0.so.8 [I do not know how to symlink and was anxious to rush forward for the time being and hence without reading tried this... is it ok? Do you symlink this way between 2 files?]

3. i) Checked whether table-imengine-setup.so is present at /usr/local/lib/scim-1.0/1.4.0/SetupUI - Answer: NO.
ii) Hence placed that file in that folder.

4) Installed SCIM Tables dot pet.

5) Place the script
"/usr/lib/gtk-2.0/immodules/im-scim-bridge.so"
"scim-bridge" "SCIM-Bridge Input Method" "" "" ""
at /etc/gtk-2/immodules

6) Finally:
Just place the following script at ~/.xinitrc - after the PUPSTATE line:
GTK_IM_MODULE=scim-bridge
export GTK_IM_MODULE
7) Reboot

8) a) SCIM "DOES NOT" get invoked when a GTK app is started as it happens in the m17n install method.
b) However, it can be launched from the Terminal by scim -d
c) This is of no use because even after launching, you can not invoke it "within the" applications.

9) Went back to : /etc/gtk-2/immodules - changed the script:
"/usr/lib/gtk-2.0/immodules/im-scim.so"
"scim" "SCIM Input Method" "" "" ""
Save.Exit.

10) Back to /.xinitrc. Change script:
GTK_IM_MODULE=scim
export GTK_IM_MODULE
Save. Exit.

11) Reboot.

12) Open Geany. Now SCIM gets invoked automatically. Type (after the llanguage fonts are installed at /usr/X11R6/lib/X11/fonts/TTF - of course). It works!

13) The surprise: Instead of 41 languages in the m17n way - This supports 19 languages. And to my delight, Tamil is one among them. The languages listed are:
Amharic, Arabic, Bengali, Gujarathi, Hindi, Japanese, Kannada, Korean, Malayalam, Nepali, Punjabi, Russian, Tamil, Telugu, Thai, Ukranian, Vietnamese, Chinese(simplified), Chinese(Traditional) and of course the Other and the English Key Board.
Compare this with the languages m17n offers:
Amharic, Arabic(Egypt),Assamese, Bengali,Tibetian,Danish,Divehi,Greek,English(American),Persian,French,Gujarathi, Hebrew,Hindi, Croatian,Armenian,Japanes,Georgian,Kazak, Cambodian,Kannada, Korean, Loathian, Malayalam,Burmese, Nepali,Oriya, Punjabi,Russian,Sinhala,Slovak,Serbian,Swedish,Telugu,Thai,Uighur,Ukranian,Vietnamese,Chinese(simplified), Chinese(traditional)
14) Hence, the folks requiring languages other than what SCIM-Bridge offers, may be advised to go 'm17n' way. Others can use the lighter and the easier "SCIM-Bridge" route.

15) I am in Lobster's Timxxine Puppy (3.01). It has Oo pre installed. However, I am not able to input using this method (scim-bridge) also.

16) So, what is the way?


Ramesh
Last edited by RR Koothady on Mon 14 Apr 2008, 03:33, edited 1 time in total.

RR Koothady
Posts: 249
Joined: Sat 22 Jul 2006, 20:19
Location: Coimbatore, India

SCIM Bridge in Tmxxine Puppy

#25 Post by RR Koothady »

SCIM Bridge Installed in Tmxxine Puppy (based on Puppy 3.01)
Attachments
scim bridge snapshot.png
(173.5 KiB) Downloaded 2243 times

Irihapeti

#26 Post by Irihapeti »

RRK:
I run Puppy 2.17, as I think I've mentioned, and the file system layout may well be different from 3.01. It might be possible to rearrange the files inside the .pet package, or to add a symlink, by following instructions here:
http://www.puppylinux.com/development/createpet.htm
and then repackage the .pet. As I don't have a copy of 3.01, I can't test/do it myself.

As for symlinking. I just tend to use the GUI option: right click on file->link->absolute link. I guess I'm a bit lazy. :)

Scim-bridge definitely works with OpenOffice in Ubuntu. I don't have OO for Puppy yet, but I hope to get it shortly when my son downloads it over a much faster connection than I have. Then I can do some more testing.

At least, we have different ways of getting to the end result, which gives users options to try.

Juveno41
Posts: 25
Joined: Wed 09 Apr 2008, 12:35

#27 Post by Juveno41 »

Okay I finally found the right thing to do to make scim-bridge work.:

First, install the SCIM package compiled with './configure' and not './configure --prefix=/usr'
(you already know that you have to link some files in '/usr/X11R7' and '/usr/lib' to do this.)

Then, to comiple scim-bridge, run a rxvt window, and execute the following lines when you are in its folder :
1) # export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
2) # export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH (not sure if this is needed)
3) # ./configure --disable-qt3-immodule --disable-qt4immodule (don't add --prefix=/usr.)

This build of scim-bridge doesn't give any dependency errors when I install it.

And you install scim-tables finally.

I don't have Open Office, so can't check it for now. assuming that my pet files are built correctly, they could work with Puppy 3.01... or not.

scim-bridge-0.4.15-i486.pet :
http://rapidshare.com/files/107365042/s ... 6.pet.html

I uploaded my scim and scim-tables pets too : with these builds, you don't need to install 'table-imengine-setup.so' seperately and the tables are added to SCIM by default, so it saves time.

scim-1.4.7-i486.pet : http://rapidshare.com/files/107350244/s ... 6.pet.html

scim-tables-0.5.8-i486.pet:
http://rapidshare.com/files/107350717/s ... 6.pet.html

Ramesh and Irihapeti, thanks again for all your help.

Irihapeti

#28 Post by Irihapeti »

This is what I think is happening: Juveno41 and RR Koothady are running 3.01 and I'm running 2.17, and the configurations that work for 2.17 on my machine aren't suitable for 3.01.

So if anyone else wants to use these instructions and is perhaps feeling a bit confused, they can keep this in mind. (Unless someone else comes along and can show that I'm wrong. :) )

amitagroyee
Posts: 10
Joined: Tue 13 Nov 2007, 11:34

#29 Post by amitagroyee »

Will u plz keep a single zip file of all the needed files. It is irritating to wait for download each file

I want to type in Hindi using the above mentioned method as it is the only reason why I still have to keep winxp in my computer

Amit

Irihapeti

#30 Post by Irihapeti »

amitagroyee:

If you would let us know what version of Puppy you are running, I can then tell you if the files I have would be useful to you. It appears that what works on Puppy 3.01 won't work on Puppy 2.17 and vice versa.

amitagroyee
Posts: 10
Joined: Tue 13 Nov 2007, 11:34

#31 Post by amitagroyee »

I am using 2.17 in my home pc and 3.01 in my office pc.
On which version it will be more easy?

Irihapeti

#32 Post by Irihapeti »

amitagroyee:

I don't know which version will be easier. RR Koothady and Juveno41 were working with 3.01. The files that I have were compiled for a standard install of Puppy 2.17. I can upload them here, but there are 12MB of them and I'm on a dialup. That's why I wanted to know first if they'd be useful to you :) Give me a few hours (I have other tasks needing attention in the meantime) and I can post them here.

RR Koothady
Posts: 249
Joined: Sat 22 Jul 2006, 20:19
Location: Coimbatore, India

Uploading is the Issue Amit

#33 Post by RR Koothady »

Dear Amit:

नमसते !

Uploading was the issue behind loading separate files. Please bear with me.

However, for ease - please use ROUTE ONE of Irihapeti.
This supports Hindi.
I mean - Please Install :
1)SCIM, 2) SCIM-BRIDGE, 3) SCIM TABLES and please follow other particulars already mentioned in this thread.

The Second Route using additional m17n files is not necessary for Hindi.

I know very little Hindi. Think I have typed "Namasthe" correctly using SCIM - Hindi Phonetic Keyboard - in Puppy 3.01.

I am in 3.01, and have not tested this in pre 3 Puppies. 3.01 accepts SCIM comfortably.

Enjoy!!

Ramesh

BTW: I thought you may be interested in the following related post too:

http://www.murga-linux.com/puppy/viewtopic.php?t=27400

ipd98
Posts: 4
Joined: Tue 22 Apr 2008, 16:32

SCIM for Puppy 3.01

#34 Post by ipd98 »

The download links provided by Juveno41 are not working anymore. Could anybody help to upload the files for downloading. So happy find a scim solution, but ......

RR Koothady
Posts: 249
Joined: Sat 22 Jul 2006, 20:19
Location: Coimbatore, India

#35 Post by RR Koothady »

Dear ipd98:
The following links are still active. So why worry? This is Route 2 - the m17n Route- a little cumbersome of the 2 scim paths available.

http://rapidshare.com/files/105920191/m ... 6.pet.html
http://rapidshare.com/files/105920192/m ... 6.pet.html
http://rapidshare.com/files/105920194/s ... 6.pet.html
http://rapidshare.com/files/105920195/s ... 6.pet.html
http://rapidshare.com/files/105920196/s ... 6.pet.html
http://rapidshare.com/files/105920198/t ... up.so.html

The first route is to install scim-bridge, scim and scim-tables alone - No m17n. However, please check in this thread whether the language of your need is available in this route. Please note that m17n gives us 41 and the scim-bridge route gives us 19 languages. So, choose accordingly.

I found some installation problems with juveno's pets. However Irihapeti's scim-bridge pet works fine. Pleas check this thread again as she has uploaded this pet here itself for us to use.

Enjoy!

Ramesh

ipd98
Posts: 4
Joined: Tue 22 Apr 2008, 16:32

SCIM for Puppy 3.01

#36 Post by ipd98 »

Dear Koothady,

Thanks for your prompt reply and the links! The 19 languages are sufficient to me and I also want scim be more versatile. I am still downloading the files and will response if I success.

Thanks again :D

Irihapeti

#37 Post by Irihapeti »

I tried uploading the files last night (local time) and didn't succeed. If anyone specifically needs the files I've compiled on Puppy 2.17, I can find another way to upload them. However, given the time it would take me, I'd prefer to wait until I know there's a definite need.

ipd98
Posts: 4
Joined: Tue 22 Apr 2008, 16:32

SCIM for Pupeee

#38 Post by ipd98 »

Dear RRK,

Thank for your help! SCIM is working perfectly in my eeepc. I have a full functioning puppy for my daily work now! :D

Your instruction is very clear except one part; it may mislead a newbie to linux. Hope that you don't mind. Thanks a gain.

vii) Add following 2 lines just after the path statement of /etc/gtk-2.0/gtk.immodules.

"/usr/lib/gtk-2.0/immodules/im-scim.so"
"scim" "SCIM Input Method" "" "" ""

RR Koothady
Posts: 249
Joined: Sat 22 Jul 2006, 20:19
Location: Coimbatore, India

#39 Post by RR Koothady »

Dear ipd98

Let's thank Irihapeti and Juveno for passionately involving themselves to solve the SCIM issue once and all for Puppy.

It's heartening that SCIM is working well in your eee pc. And, why should I mind for telling me that my instruction is not clear in a place or two? After all, are we not the ones who are going to write a crystal clear instruction in Puppy wiiki on SCIM soon? That is - after we test and get used to scim in Puppy for may be a month or two?

I am just curious to know your language. I am also curious to know about Amit inputting Hindi in his Puppy. Hope he has also succeeded like you.

Three Cheers to all Puppy Scim-ers!

Ramesh

Irihapeti

Install and uninstall scripts for scim-bridge

#40 Post by Irihapeti »

Well, if this is possibly going to end up in the Puppy wiki, it would be a good idea if someone vetted the install and uninstall scripts that I wrote for my own version of scim-bridge.

Then they could be included in a dotpet file for those who don't wish to hand-edit their configuration files.

Since they are fairly short, I've just added them as code blocks to the message.


The install script:

Code: Select all

#!/bin/sh
cp /etc/gtk-2.0/gtk.immodules /etc/gtk-2.0/gtk.immodules.bak

#add entry to gtk.immodules
echo '"/usr/lib/gtk-2.0/immodules/im-scim-bridge.so"' >> /etc/gtk-2.0/gtk.immodules
echo '"scim-bridge" "SCIM Bridge Input Method" "" "" ""' >> /etc/gtk-2.0/gtk.immodules

#add entry to .xinitrc, near beginning
sed -i -e 's/PUPSTATE/PUPSTATE\
\
GTK_IM_MODULE="scim-bridge"\
export GTK_IM_MODULE/' ~/.xinitrc
The uninstall script:

Code: Select all

#!/bin/sh

#remove entry from gtk.immodules
sed -i /scim-bridge/d /etc/gtk-2.0/gtk.immodules

#remove entry from .xinitrc
sed -i '
/.*scim-bridge./ {
	N
	N
	d
	}
' ~/.xinitrc	
Any comments?

Post Reply