ConnochaetOS

ConnochaetOS Forum

ConnochaetOS » DeLi Linux 中文论坛 » Internationalization with scim

Internationalization with scim

Moderators: littlebat.

Page: 1

Author Post
Member
Registered: Mar 2009
Posts: 1
Hi, I've read that the 0.8.x series aims for internationalization. As an important part of this is input of non-western characters I'd like to suggest that DeLi provides packages like scim and related modules, e.g. anthy for Japanese.
Administrator
Registered: Oct 2007
Posts: 790
I cannot test it, so somebody else has to check this out;
therefore I moved this thread here.
Moderator
Registered: Nov 2007
Posts: 129
I have tried to build scim, scim-pinyin(for chinese), scim-tables(for multiple languages, include CJK, etc..) by "makepkg" command with PKGBUILD files borrowed from archlinux. Building and installation is ok, but I can't switch IM from english to other languages. I guess scim can't recognize the "locale" of DeLi Linux, there is a reference page: System configuration http://www.scim-im.org/wiki/documentation/installation_and_configuration/all/system_configuration

I Failed at building anthy with same way above, anthy is required by scim-anthy module.

Below is my PKGBUILD files:
1, PKGBUILD for scim:
Quote
# $Id$
# Maintainer: damir <damir@archlinux.org>
# Contributor: Gan Lu <rhythm.gan@gmail.com>

pkgname=scim
pkgver=1.4.8
pkgrel=4
pkgdesc="A Input Method development platform"
#arch=("i686" "x86_64")
arch=("i386")
url="http://www.scim-im.org/projects/scim"
license=('GPL')
#depends=('gtk2' 'gcc-libs')
depends=('gtk2')
makedepends=('intltool')
backup=('etc/scim/config' 'etc/scim/global')
options=('!libtool')
install=scim.install
source=(http://downloads.sourceforge.net/sourceforge/scim/$pkgname-$pkgver.tar.gz)
md5sums=('c52da019d48df4ba44cbd01558203cc7')

build() {
cd $srcdir/$pkgname-$pkgver
./configure --prefix=/usr --sysconfdir=/etc \
--with-gnu-ld --with-x --disable-static || return 1
make || return 1
make DESTDIR=$startdir/pkg install || return 1
}


scim.install
Quote
post_install() {
echo -n "updating gtk.immodules... "
/usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
echo "done."
}

post_upgrade() {
post_install
}

post_remove() {
post_install
}


2, PKGBUILD for scim-tables

Quote
# $Id$
# Maintainer: damir <damir@archlinux.org>
# Contributor: Gan Lu <rhythm.gan@gmail.com>

pkgname=scim-tables
pkgver=0.5.9
pkgrel=1
pkgdesc="SCIM multi language input method engine (including CJK)"
arch=('i386')
url="http://www.scim-im.org/"
license=('GPL')
depends=('scim>=1.4.8')
options=('!libtool')
source=(http://downloads.sourceforge.net/sourceforge/scim/$pkgname-$pkgver.tar.gz)
md5sums=('ef7d54966d0b07b1db49358213558065')

build() {
cd $srcdir/$pkgname-$pkgver
# sed -i "s#<string>#<cstring>#" src/scim_generic_table.h || return 1
./configure --prefix=/usr --disable-static || return 1
make || return 1
make DESTDIR=$pkgdir install || return 1
}

After I installed scim with command "pacman -U scim-1.4.8-4.pkg.tar.gz", I found it didn't modify file "/etc/gtk-2.0/gtk.immodules", so I appended two lines in this file:
Quote
"/usr/lib/gtk-2.0/immodules/im-scim.so"
"scim" "SCIM Input Method" "scim" "/usr/share/locale" "ja:ko:zh"


And, inserted some lines into file ~/.xinitrc like below:
Quote
# start some nice programs
#exec icewm-session

export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE=scim
export QT_IM_MODULE=scim
scim -d
_______________
Welcome to my personal blog about Linux and Open Source in China: Learning Diary(english).
« Last edit by littlebat on Sat Mar 21, 2009 11:02 am. »

Page: 1

ConnochaetOS » DeLi Linux 中文论坛 » Internationalization with scim

ConnochaetOS is powered by UseBB 1 Forum Software