Wiki source for CompilingScimPackages
[[HomePage]] >[[ComponentHowTo Components and HowTos]] > [[NativeLanguageSupport Language Support]]
======{{color text="Compiling Scim-bridge and Related Packages from Source" c="green"}}======
**Note:** At this stage, these instructions are for GTK2 only. Fortunately, that covers a large number of programs available in Puppy. QT support will be added later, as will instructions for compiling in other Puppy versions.
Source files are available from:
http://sourceforge.net/projects/scim/files/
http://sourceforge.jp/projects/anthy/
http://www.m17n.org/m17n-lib-en/
http://en.sourceforge.jp/projects/canna/releases/
http://mammouth.tuxfamily.org/slackware/ //precompiled canna server//
http://kldp.net/projects/hangul/
It is assumed here that you know how to compile packages from source. If you don't, instructions are available elsewhere.
If no special instructions are given, configure the package with the command:
%%./configure%%
It is recommended to make these packages into .pet packages, for ease of removal.
{{color text="These compilation instructions apply to Puppy 2.17. They need changes in order to work in other versions of Puppy." c="#009900"}}
**Scim**
Download and unarchive scim-1.4.7.tar.gz
Configure:
%%./configure --prefix=/usr%%
This installs scim to /usr rather than /usr/local, which then makes it easier to compile scim-bridge.
**Scim-bridge**
Download and unarchive scim-bridge-0.4.15.tar.gz
Configure:
%%./configure --prefix=/usr --disable-qt3-immodule --disable-qt4immodule%%
To activate scim-bridge as an input method, add to the file /etc/gtk-2.0/gtk.immodules these two lines:
%%"/usr/lib/gtk-2.0/immodules/im-scim-bridge.so"
"scim-bridge" "SCIM Bridge Input Method"%%
Add these two lines to .xinitrc in your home directory. You'll need to be able to see invisible files to do this. (Click on the eye icon at the top of the window.)
%%export GTK_IM_MODULE="scim-bridge"
export QT_IM_MODULE="scim-bridge"%%
These lines go near the top, just after the line that ends with PUPSTATE.
Because the QT immodules haven't been enabled, the second line will do absolutely nothing. However, it's already set up in case you should wish to add the QT immodules later on.
All you need to do now is restart the xserver, and scim should be ready to go. Open AbiWord, [[GeanyIDE Geany]], or OpenOffice and the tray icon should appear.
At this point, all you have available is the standard English keyboard, or raw code for inputting unicode 4-character codes. To get more options, you need to add some keyboard tables.
**Scim-tables**
Download and unarchive scim-tables-0.5.8.tar.gz
This needs no special configure option. The plain
%%./configure%%
command is all that's needed.
**Scim-m17n**
This option has three components: m17n-db, m17n-lib, and scim-m17n itself.
Download m17n-db-1.5.1.tar.gz, m17n-lib-1.5.1.tar.gz, scim-m17n-0.2.2.tar.gz
//Compile m17n-db://
%%./configure --prefix=/usr --with-charmaps=/location/of/charmaps%%
*If you already have charmaps, perhaps in another distro on your system, you can copy the charmaps folder or symlink it to a suitable location. If you don't have them, a script will offer to download glibc (which contains the charmaps) for you, but be aware that it's a 17Mb download.
//Compile m17n-lib://
%%./configure --prefix=/usr%%
//Compile scim-m17n://
%%./configure --prefix=/usr%%
**Scim-anthy**
This has two components.
Download anthy-9100e.tar.gz and scim-anthy-1.2.6.tar.gz
//Compile anthy libraries://
%%./configure --prefix=/usr%%
//Compile scim-anthy://
no special options
__Note__: scim-anthy needs gconv4dingo.pet if you are using Puppy 4, or the conversion to kanji doesn't work.
**Scim-pinyin**
%%./configure --prefix=/usr%%
**Other Language Files**
E.g. scim-canna, scim-hangul
These follow similar instructions to the ones given above. Scim-canna needs gconv4dingo.pet if you are running Puppy 4.
**Install scripts for scim-bridge .pet**
If you are making Scim-bridge into a .pet package, you can create the two following scripts.
1. pinstall.sh //remember to make it executable//
#!/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\
\
export GTK_IM_MODULE="scim-bridge"\
export QT_IM_MODULE="scim-bridge"/' ~/.xinitrc%%
2. puninstall.sh //(likewise, it needs to be executable)//
#!/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%%
This automates adding and removing the lines to/from the configuration files.
See also: MultiLingualPuppy
----
==Categories==
CategorySoftware
CategoryMultilingual
======{{color text="Compiling Scim-bridge and Related Packages from Source" c="green"}}======
**Note:** At this stage, these instructions are for GTK2 only. Fortunately, that covers a large number of programs available in Puppy. QT support will be added later, as will instructions for compiling in other Puppy versions.
Source files are available from:
http://sourceforge.net/projects/scim/files/
http://sourceforge.jp/projects/anthy/
http://www.m17n.org/m17n-lib-en/
http://en.sourceforge.jp/projects/canna/releases/
http://mammouth.tuxfamily.org/slackware/ //precompiled canna server//
http://kldp.net/projects/hangul/
It is assumed here that you know how to compile packages from source. If you don't, instructions are available elsewhere.
If no special instructions are given, configure the package with the command:
%%./configure%%
It is recommended to make these packages into .pet packages, for ease of removal.
{{color text="These compilation instructions apply to Puppy 2.17. They need changes in order to work in other versions of Puppy." c="#009900"}}
**Scim**
Download and unarchive scim-1.4.7.tar.gz
Configure:
%%./configure --prefix=/usr%%
This installs scim to /usr rather than /usr/local, which then makes it easier to compile scim-bridge.
**Scim-bridge**
Download and unarchive scim-bridge-0.4.15.tar.gz
Configure:
%%./configure --prefix=/usr --disable-qt3-immodule --disable-qt4immodule%%
To activate scim-bridge as an input method, add to the file /etc/gtk-2.0/gtk.immodules these two lines:
%%"/usr/lib/gtk-2.0/immodules/im-scim-bridge.so"
"scim-bridge" "SCIM Bridge Input Method"%%
Add these two lines to .xinitrc in your home directory. You'll need to be able to see invisible files to do this. (Click on the eye icon at the top of the window.)
%%export GTK_IM_MODULE="scim-bridge"
export QT_IM_MODULE="scim-bridge"%%
These lines go near the top, just after the line that ends with PUPSTATE.
Because the QT immodules haven't been enabled, the second line will do absolutely nothing. However, it's already set up in case you should wish to add the QT immodules later on.
All you need to do now is restart the xserver, and scim should be ready to go. Open AbiWord, [[GeanyIDE Geany]], or OpenOffice and the tray icon should appear.
At this point, all you have available is the standard English keyboard, or raw code for inputting unicode 4-character codes. To get more options, you need to add some keyboard tables.
**Scim-tables**
Download and unarchive scim-tables-0.5.8.tar.gz
This needs no special configure option. The plain
%%./configure%%
command is all that's needed.
**Scim-m17n**
This option has three components: m17n-db, m17n-lib, and scim-m17n itself.
Download m17n-db-1.5.1.tar.gz, m17n-lib-1.5.1.tar.gz, scim-m17n-0.2.2.tar.gz
//Compile m17n-db://
%%./configure --prefix=/usr --with-charmaps=/location/of/charmaps%%
*If you already have charmaps, perhaps in another distro on your system, you can copy the charmaps folder or symlink it to a suitable location. If you don't have them, a script will offer to download glibc (which contains the charmaps) for you, but be aware that it's a 17Mb download.
//Compile m17n-lib://
%%./configure --prefix=/usr%%
//Compile scim-m17n://
%%./configure --prefix=/usr%%
**Scim-anthy**
This has two components.
Download anthy-9100e.tar.gz and scim-anthy-1.2.6.tar.gz
//Compile anthy libraries://
%%./configure --prefix=/usr%%
//Compile scim-anthy://
no special options
__Note__: scim-anthy needs gconv4dingo.pet if you are using Puppy 4, or the conversion to kanji doesn't work.
**Scim-pinyin**
%%./configure --prefix=/usr%%
**Other Language Files**
E.g. scim-canna, scim-hangul
These follow similar instructions to the ones given above. Scim-canna needs gconv4dingo.pet if you are running Puppy 4.
**Install scripts for scim-bridge .pet**
If you are making Scim-bridge into a .pet package, you can create the two following scripts.
1. pinstall.sh //remember to make it executable//
#!/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\
\
export GTK_IM_MODULE="scim-bridge"\
export QT_IM_MODULE="scim-bridge"/' ~/.xinitrc%%
2. puninstall.sh //(likewise, it needs to be executable)//
#!/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%%
This automates adding and removing the lines to/from the configuration files.
See also: MultiLingualPuppy
----
==Categories==
CategorySoftware
CategoryMultilingual