Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 02 Sep 2014, 05:42
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
Trouble installing SCIM m17n in Puppy 3.01
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 41 [610 Posts]   Goto page: 1, 2, 3, ..., 39, 40, 41 Next
Author Message
RR Koothady

Joined: 22 Jul 2006
Posts: 247
Location: Coimbatore, India

PostPosted: Tue 08 Apr 2008, 14:59    Post subject:  Trouble installing SCIM m17n in Puppy 3.01
Subject description: For multi-language support
 

I am trying to install SCIM input method in Puppy 3.01, for Tamil Language (Locale: ta_IN). I have succeeded till the LAST BUT ONE STEP.

The final step eludes me.

Incidentally, the Dotpets I have made, are capable of lending support to 40 MORE Languages. [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)]

The steps I had taken are as follows:

Preparation:


1. chooselocale : ta_IN (alternatively your desired locale)
2. Compiled DotPets of “m17nlib, m17ndb,SCIM, m17n-SCIM, SCIM tables” from the Source tar balls.
(http://www.m17n.org/m17n-lib-en/index.html , http://www.scim-im.org/downloads/scim_download )

Installation:

3. Installation of “m17nlib” gave the errors: certain dependencies missing: “libotf.so.0″ and “libXaw95.so.7″ in “/usr/local/lib” and “usr/local/bin” folders.
4. Found “libXaw95.so.7″ at “/usr/X11R7/lib” folder and linked it to “/usr/local/bin” folder.
5. Downloaded “libotf.0.9.4.orig.tar.gz” from ” http://packages.ubuntu.com/feisty/libotf0 ” - installed.

6. Installed the other dotpets one by one without any problem.
7. Installation of SCIM DotPet misses a shared object file named “table-imengine-setup.so”. This file has to be installed at /usr/local/lib/scim-1.0/1.4.0
/SetupUI. Grabbed the file from “BOSS Linux” - a derivative of Ubuntu and placed it in the above folder. (Download this from the link given at the end)

Adding scripts in /.xinitrc:


8. Added the following scripts (based on the Debian Installation Instruction for SCIM - See Below for Downloading this Help Document):

LANG=ta_IN
export LANG
XMODIFIERS=”@im=SCIM”
export XMODIFIERS
GTK_IM_MODULE=”scim”
export GTK_IM_MODULE
scim -d

9. Added the following script (according to the above Debian Ref) in /.scim/global :

/SupportedUnicodeLocales = ta_IN

10. Reboot

11. The SCIM keyboard appears in the X Tray. Right click. Exit.

12. Open Terminal: Type: scim -d

13. It shows the following message:

# scim -d
Smart Common Input Method 1.4.7

Launching a SCIM daemon with Socket FrontEnd…
Loading simple Config module …
Creating backend …
Loading socket FrontEnd module …
Starting SCIM as daemon …
Launching a SCIM process with x11…
Loading socket Config module …
Creating backend …
Loading x11 FrontEnd module …
GTK Panel of SCIM 1.4.7

Starting SCIM as daemon …
SCIM has been successfully launched.
#

14. Right Click SCIM Keyboard icon at XTray: SCIM Setup: Go to Generic Table: Table Management: Install required Tables (from /usr/local/share/scim/tables)

15. Click “Apply”, “OK”.

16. Open “Geany” or “Abiword”.

17. Press “Ctrl + Space”.

18. SCIM tray should appear at the bottom right end of the application, from which the desired table may be chosen. And Typing in the Local language can begin.

19. I have succeeded till the 16 th step. But alas! When I press “Ctrl+Space” SCIM fails to trigger.

20. I am unable to understand where I had gone wrong. Any Ideas?

21. Solving this, will bring 41 languages into Puppy with the the following DotPets I have compiled. But the final step is eluding me. Can anyone help?

RRK

Download the DotPets:

http://rapidshare.com/files/105920191/m17n-lib-1.5.1-i486.pet.html
http://rapidshare.com/files/105920192/m17n-db-1.5.1-i486.pet.html
http://rapidshare.com/files/105920194/scim-1.4.7-i486.pet.html
http://rapidshare.com/files/105920195/scim-m17n-0.2.2-i486.pet.html
http://rapidshare.com/files/105920196/scim-tables-0.5.8-i486.pet.html
http://rapidshare.com/files/105920197/rxvt-unicode-9.02-i486.pet.html
http://rapidshare.com/files/105920198/table-imengine-setup.so.html

Installation Help (an excellent guide written for Debian and useful for Puppy too)

http://rapidshare.com/files/105903827/SCIM_Debian.txt.html
Back to top
View user's profile Send private message 
Irihapeti
Guest


PostPosted: Tue 08 Apr 2008, 18:26    Post subject:  

This may not be completely relevant to your question, and if it's a distraction, I apologise in advance. But it may throw some light onto your problem.

I've also been playing around with scim. I installed it in Ubuntu, and to get it to work, I also needed to install scim-bridge, which allows scim to work without needing to set the locale to another language. (I just want my visitors to be able to send email in Chinese or other languages.)

The final step was this:

Code:
gedit /etc/X11/xinit/xinput.d/scim

then find and change

GTK_IM_MODULE=xim

into

GTK_IM_MODULE="scim-bridge"

then restart the system


This works nicely in Ubuntu, and now I'm trying to get the same thing to work in Puppy. I've made a pet out of scim-bridge, and also scim. The problem is the configuration file. Puppy doesn't seem to have a file in the location given above. I tried creating one there and it did nothing.

Can someone with a better knowledge of the Puppy filesystem layout tell me where to make this change, so we can get this working?
Back to top
RR Koothady

Joined: 22 Jul 2006
Posts: 247
Location: Coimbatore, India

PostPosted: Wed 09 Apr 2008, 06:44    Post subject: How to implement Gentoo Linux Solution in Puppy?  

Dear All:

Gentoo Linux has reported the same issue. It was also solved this February. Here are the links:

http://forums.gentoo.org/viewtopic-t-652490-postdays-0-postorder-asc-start-25.html?sid=89672886e726c3eaeda813e271eedb72

http://gentoo-wiki.com/HOWTO_Enable_Hindi_using_SCIM

The reason for SCIM not getting triggered on pressing "Ctrl+Space" and the Solution offered:

"When your computer boots up, goes past the kernel, initializes all the services and then finally arrives at the shell prompt, the X server has to be started up.

That is what the command startx does.
A fair explanation is here
You may not notice startx because if you have a login manager installed like kdm or gdm, it takes care of executing it for you.


Now you faced the problem of an unresponsive SCIM taskbar icon, because the SCIM variables in ~/.xinitrc were not exported before all the X programs of your Window manager (Gnome, right?) started launching.
That problem in fact affects both Gnome and KDE since they don't call ~/.xinitrc but use their own session managers as the startx link above explains.

...Sooooo... instead of ~/.xinitrc, put the environment variables in /etc/profiles.d/scim.sh
That way the variables are set globally, as soon as you login, and before X is launched."


I have tried to follow this suggestion in Puppy. I created a "scim.sh" file in Geany, typed the environmental variables:
export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE=scim
export QT_IM_MODULE=scim

and saved the file in /etc/profiles.d/.

Rebooted.

Earlier, when the above environmental variable was placed in /.xinitrc (just below the line . /etc/rc.d/PUPSTATE) the SCIM Keyboard icon got displayed in the X Tray whenever X restarted. However now ( that is: after creating the abovesaid "scim.sh" file in the /etc/profiles.d/ folder) it does not get launched on its own. It has to be invoked manually using the "scim -d" command in the terminal. After this, scim gets launched successfully, but even after this pressing "ctrl+space" buttons do not invoke scim.

So, I think I have gone wrong somewhere.

Will some one tell me what should I do in Puppy in order to "export the SCIM environmental variables before all the X programmes of the Window Manager get launched?"

RRK
Back to top
View user's profile Send private message 
RR Koothady

Joined: 22 Jul 2006
Posts: 247
Location: Coimbatore, India

PostPosted: Wed 09 Apr 2008, 22:04    Post subject: SCIM BRIDGE PET  

Dear Irihapeti

I have problem in compiling scim-bridge.

Can you please share with me the scim-bridge dotpet you have created? Instead of the m17n route, I would like to try the scim-bridge route.

my email: cypherandone at gmail.com

Thank You in advance

Ramesh
Back to top
View user's profile Send private message 
Irihapeti
Guest


PostPosted: Thu 10 Apr 2008, 00:30    Post subject:  

RR Koothady:

I'm a bit reluctant to email the dotpet because I've tried to do some stuff with a postinstall script in it and I'm not too comfortable with the idea of maybe trashing someone else's system in the process. Embarassed Also, I'm running 2.17 and your system is 3.01.

However, I can tell you how I got it to compile. I needed to recompile scim, configuring like this:

Code:
 ./configure --prefix=/usr


and then, to configure scim-bridge:

Code:
./configure --prefix=/usr --disable-qt3-immodule --disable-qt4immodule


I've also solved my earlier problem. I added two lines to
/etc/gtk-2.0/gtk.immodules

Code:

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


and I added the following to ~/.xinitrc, near the beginning, just after the "pupstate" statement.

Code:

GTK_IM_MODULE=scim-bridge
export GTK_IM_MODULE


Now it works!

I hope that helps.
Back to top
RR Koothady

Joined: 22 Jul 2006
Posts: 247
Location: Coimbatore, India

PostPosted: Thu 10 Apr 2008, 00:48    Post subject:  

Dear Irihapeti

Thank You very much; and Congratulations for solving the problem.

Ramesh
Back to top
View user's profile Send private message 
Juveno41

Joined: 09 Apr 2008
Posts: 25

PostPosted: Thu 10 Apr 2008, 01:57    Post subject:  

I'm a beginner, but I'm having the same problem with SCIM, so I'd like to post something :

searching the forum for SCIM input, I found a Chinese version of SCIM for puppy:

http://www.murga-linux.com/puppy/viewtopic.php?search_id=1358581464&t=21706

on the above page, you will see the link ftp://puppy:linux@ftp.servage.net/Chinese_puppy/
-> chinese_input-0.01.pet

I installed this pet package on my Puppy and Ctrl+SPACE seems to work flawlessly.

I humbly hope you will be able to solve this problem analyzing the contents of this package.
Back to top
View user's profile Send private message 
Irihapeti
Guest


PostPosted: Thu 10 Apr 2008, 02:59    Post subject:  

RR Koothady wrote:

Thank You very much; and Congratulations for solving the problem.

Ramesh


I take it that it worked, then. Very Happy
Back to top
RR Koothady

Joined: 22 Jul 2006
Posts: 247
Location: Coimbatore, India

PostPosted: Thu 10 Apr 2008, 07:05    Post subject: SCIM Issue SOLVED in Puppy  

Dear All!

Irihapeti's solution for the SCIM installation Problem works works well in Puppy.

The route I had taken was installing "m17nlib, m17ndb, scim and scim-m17n". (in Puppy 3.01 -TMXINE Pup)

On the other hand, Irihapeti had taken the other (perhaps the better) route of installing "scim and the scim-bridge". (in Puppy 2.17)

But the solution he had found has made both the routes work for Puppy in Versions 2 and 3.

Thanks once again Irihapeti and Juveno41.

Puppy can now handle all the 41 languages offered by SCIM.

Ramesh
scim in puppy.jpg
 Description   SCIM in Puppy displaying the possibility of in-putting 41 languages. The image shows typing in "Tamil" language in GIMP in TMXINE Puppy.
 Filesize   66.42 KB
 Viewed   8259 Time(s)

scim in puppy.jpg

Back to top
View user's profile Send private message 
Juveno41

Joined: 09 Apr 2008
Posts: 25

PostPosted: Thu 10 Apr 2008, 09:34    Post subject:  

Congratulations for solving this issue once and for all...
41 languages will sure be useful to many people.
Back to top
View user's profile Send private message 
Irihapeti
Guest


PostPosted: Thu 10 Apr 2008, 16:39    Post subject:  

RR Koothady:

Great to see the final result!

Now I have another question.

I need to be able to type in Maori, which uses macrons. It can be done using the raw code option, but that is horribly inconvenient.

I notice that you have various European languages, such as French, Spanish etc listed. Where do you get the libraries needed to be able to input in these? I've downloaded and compiled scim-tables, but it doesn't cover those languages.

(And, just for the record, I'm female - the mother of 2 adult sons. I'm trying to interest one of them in Linux, and as he's a post-grad language student, this stuff is very likely to be of interest to him.)
Back to top
RR Koothady

Joined: 22 Jul 2006
Posts: 247
Location: Coimbatore, India

PostPosted: Fri 11 Apr 2008, 07:45    Post subject:  

Dear Irihapeti:

I am not a programmer but a physician working in a small village. The reason why I want a Tamil Puppy urgently is - to write one "one page" story a day in Tamil for my 4 year old daughter and her friends from April 14 - the Tamil NewYear Day.

If you would like to check the languages you have mentioned why not try the following dot pets in a 3.01 system?

http://rapidshare.com/files/105920191/m17n-lib-1.5.1-i486.pet.html
http://rapidshare.com/files/105920192/m17n-db-1.5.1-i486.pet.html
http://rapidshare.com/files/105920194/scim-1.4.7-i486.pet.html
http://rapidshare.com/files/105920195/scim-m17n-0.2.2-i486.pet.html
http://rapidshare.com/files/105920196/scim-tables-0.5.8-i486.pet.html
http://rapidshare.com/files/105920198/table-imengine-setup.so.html

Please follow the instruction I had given in the first post to install them. To make the installation work, of course use the final solution you had offered.

Or else, I can send the specific language table alone through a "rapidshare" upload.

Ramesh
Back to top
View user's profile Send private message 
Juveno41

Joined: 09 Apr 2008
Posts: 25

PostPosted: Fri 11 Apr 2008, 13:45    Post subject:  

This must be something very basic for more experienced people, but I'm stuck while compiling SCIM. I did as follows in the uncompressed directory:

1) ./configure --prefix=/usr
2) make

and got an error message after quite a while:

grep: /usr/X11R7/lib/libxcb-xlib.la: No such file or directory
/bin/sed: can't read /usr/X11R7/lib/libxcb-xlib.la: No such file or directory
libtool: link: `/usr/X11R7/lib/libxcb-xlib.la' is not a valid libtool archive
make[2]: *** [libscim-x11utils-1.0.la] Error 1
make[2]: Leaving directory `/mnt/hdc5/Puppy/scim-1.4.7/utils'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/hdc5/Puppy/scim-1.4.7'
make: *** [all] Error 2


I found that the missing file is located in my '/usr/lib'.
I tried the parameter '-I /usr/lib' for make, but got the same error.
I think there must be a solution beside copying the missing file to '/usr/X11R7/lib'.

Could you give me any suggestions on this, Irihapeti, and RR Koothady? Thanks.
Back to top
View user's profile Send private message 
RR Koothady

Joined: 22 Jul 2006
Posts: 247
Location: Coimbatore, India

PostPosted: Fri 11 Apr 2008, 14:10    Post subject:  

Dear Juveno41

I had faced the same problem while compiling scim. Some lib files required in /usr/X11R7/lib/ are (for some reason, I do not know) located at /usr/lib and also at /usr/X11R6/lib and vice-versa.

Copying from one folder to another solved the problem, but the in the console you get a regular message that these files have been moved... however, this message had not impeded the compiling process per se.

May be, when we remaster our own Puppy - we have to put these files in the 'other' folders?

RRK
Back to top
View user's profile Send private message 
Juveno41

Joined: 09 Apr 2008
Posts: 25

PostPosted: Fri 11 Apr 2008, 15:34    Post subject:  

So that was the right solution...
Since I'm a beginner, I was reluctant to copy them to somewhere else and mess up with the directory structure, as it didn't seem normal.
But copying them will hopefully solve the problem.
Then I'll go try this, Thanks!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 41 [610 Posts]   Goto page: 1, 2, 3, ..., 39, 40, 41 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
Jump to:  

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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1049s ][ Queries: 13 (0.0107s) ][ GZIP on ]