diff options
author | luoyi <luoyi.ly@gmail.com> | 2010-05-12 23:31:36 +0200 |
---|---|---|
committer | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-12 23:31:36 +0200 |
commit | d583ee905fabee047b33c2fed3b74c9492cf78c7 (patch) | |
tree | f665f85efdc2107ff7bc8feddf3a2f27d27cc3c1 /misc/fcitx | |
parent | cf54f1f1ec8697c9dcfb097c556d053efc9efcdf (diff) |
misc/fcitx: Added to 12.2 repository
Diffstat (limited to 'misc/fcitx')
-rw-r--r-- | misc/fcitx/README | 6 | ||||
-rw-r--r-- | misc/fcitx/fcitx.SlackBuild | 79 | ||||
-rw-r--r-- | misc/fcitx/fcitx.config | 103 | ||||
-rw-r--r-- | misc/fcitx/fcitx.info | 8 | ||||
-rw-r--r-- | misc/fcitx/fcitx.sh | 6 | ||||
-rw-r--r-- | misc/fcitx/slack-desc | 19 |
6 files changed, 221 insertions, 0 deletions
diff --git a/misc/fcitx/README b/misc/fcitx/README new file mode 100644 index 0000000000000..272f23eefc5ce --- /dev/null +++ b/misc/fcitx/README @@ -0,0 +1,6 @@ +fcitx: A very popular Simp Chinese Input Method + +fcitx is a very popular Simp Chinese input method +developped by some chinese hack guys. + +fcitx is much simpler than scim diff --git a/misc/fcitx/fcitx.SlackBuild b/misc/fcitx/fcitx.SlackBuild new file mode 100644 index 0000000000000..3fd3565d69679 --- /dev/null +++ b/misc/fcitx/fcitx.SlackBuild @@ -0,0 +1,79 @@ +#!/bin/sh + +# Slackware build script for fcitx +# Written by luoyi (luoyi.ly@gmail.com) + +# Modified by the slackbuilds.org project. --michiel +PRGNAM=fcitx +VERSION=${VERSION:-3.6.0rc} +SRCVER=${PKGVER:-3.6.0-rc} +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$SRCVER.tar.bz2 +cd $PRGNAM-$SRCVER +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +./autogen.sh +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null +) + +mkdir -p $PKG/etc/profile.d +cat $CWD/fcitx.sh > $PKG/etc/profile.d/fcitx.sh +chmod 755 $PKG/etc/profile.d/fcitx.sh + +sed -i -e 's/^/#/' $PKG/usr/share/fcitx/data/tables.conf +cat $CWD/fcitx.config > $PKG/usr/share/fcitx/data/config +chmod 644 $PKG/usr/share/fcitx/data/config + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING ChangeLog INSTALL README THANKS TODO \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/misc/fcitx/fcitx.config b/misc/fcitx/fcitx.config new file mode 100644 index 0000000000000..9348861d2ae2a --- /dev/null +++ b/misc/fcitx/fcitx.config @@ -0,0 +1,103 @@ +[程序] +显示字体(中)=* +显示字体(英)=Courier New +显示字体大小=12 +主窗口字体大小=12 +字体区域=zh_CN.GBK +使用AA字体=1 +使用粗体=1 + +[输出] +数字后跟半角符号=1 +Enter键行为=2 +分号键行为=2 +大写字母输入英文=1 +转换英文中的标点=1 +联想方式禁止翻页=1 + +[界面] +候选词个数=10 +主窗口使用3D界面=0 +输入条使用3D界面=0 +主窗口隐藏模式=0 +显示虚拟键盘=0 +输入条居中=1 +首次显示输入条=1 +#输入条固定宽度(仅适用于码表输入法),0表示不固定宽度 +输入条固定宽度=0 +输入条偏移量X=0 +输入条偏移量Y=16 +序号后加点=1 +显示打字速度=1 +显示版本=1 +光标色=102 159 66 +主窗口背景色=255 255 255 +主窗口线条色=203 202 186 +主窗口输入法名称色=153 153 153 102 159 66 56 134 230 +输入窗背景色=255 255 255 +输入窗提示色=2 89 196 +输入窗用户输入色=255 0 132 +输入窗序号色=0 66 200 +输入窗第一个候选字色=0 99 200 +#该颜色值只用于拼音中的用户自造词 +输入窗用户词组色=0 99 200 +输入窗提示编码色=255 0 132 +#五笔、拼音的单字/系统词组均使用该颜色 +输入窗其它文本色=56 134 230 +输入窗线条色=203 202 186 +输入窗箭头色=193 227 151 +虚拟键盘窗背景色=220 220 220 +虚拟键盘窗字母色=80 0 0 +虚拟键盘窗符号色=0 0 0 + +#除了“中英文快速切换键”外,其它的热键均可设置为两个,中间用空格分隔 +[热键] +打开/关闭输入法=CTRL_SPACE +#中英文快速切换键 可以设置为L_CTRL R_CTRL L_SHIFT R_SHIFT +中英文快速切换键=L_CTRL +双击中英文切换=0 +击键时间间隔=250 +光标跟随=CTRL_K +GBK支持=CTRL_M +GBK繁体切换键=CTRL_ALT_F +联想支持=CTRL_L +反查拼音=CTRL_ALT_E +全半角=SHIFT_SPACE +中文标点=ALT_SPACE +上一页=PGUP +下一页=PGDN +第二三候选词选择键=SHIFT + +[输入法] +使用拼音=1 +使用双拼=1 +默认双拼方案=自然码 +使用区位=1 +使用码表=1 +提示词库中的词组=1 +其他输入法= + +[拼音] +使用全拼=0 +拼音自动组词=1 +保存自动组词=0 +增加拼音常用字=CTRL_8 +删除拼音常用字=CTRL_7 +删除拼音用户词组=CTRL_DELETE +#拼音以词定字键,等号后面紧接键,不要有空格 +拼音以词定字键=[] +#重码调整方式说明:0-->不调整 1-->快速调整 2-->按频率调整 +拼音单字重码调整方式=2 +拼音词组重码调整方式=1 +拼音常用词重码调整方式=0 +模糊an和ang=0 +模糊en和eng=0 +模糊ian和iang=0 +模糊in和ing=0 +模糊ou和u=0 +模糊uan和uang=0 +模糊c和ch=0 +模糊f和h=0 +模糊l和n=0 +模糊s和sh=0 +模糊z和zh=0 diff --git a/misc/fcitx/fcitx.info b/misc/fcitx/fcitx.info new file mode 100644 index 0000000000000..60c80b3f48a8b --- /dev/null +++ b/misc/fcitx/fcitx.info @@ -0,0 +1,8 @@ +PRGNAM="fcitx" +VERSION="3.6.0rc" +HOMEPAGE="http://www.fcitx.org/" +DOWNLOAD="http://fcitx.googlecode.com/files/fcitx-3.6.0-rc.tar.bz2" +MD5SUM="18dc6b3af176b4b3f5e857e2429695e3" +MAINTAINER="luoyi" +EMAIL="luoyi.ly@gmail.com" +APPROVED="michiel" diff --git a/misc/fcitx/fcitx.sh b/misc/fcitx/fcitx.sh new file mode 100644 index 0000000000000..2845a17b074ce --- /dev/null +++ b/misc/fcitx/fcitx.sh @@ -0,0 +1,6 @@ +#!/bin/sh +export GTK_IM_MODULE=xim +export XMODIFIERS="@im=fcitx" +export XIM=fcitx +export XIM_PROGRAM=fcitx + diff --git a/misc/fcitx/slack-desc b/misc/fcitx/slack-desc new file mode 100644 index 0000000000000..dfec06f0b8d7e --- /dev/null +++ b/misc/fcitx/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' on +# the right side marks the last column you can put a character in. You must make +# exactly 11 lines for the formatting to be correct. It's also customary to +# leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +fcitx: fcitx (Free Chinese Input Toy for X) +fcitx: +fcitx: fcitx is a simple and lightweight chinese input method +fcitx: for the X Windows System. +fcitx: +fcitx: It can only work under en_US.utf8 or zh_CN.GBK +fcitx: +fcitx: +fcitx: +fcitx: See: http://www.fcitx.org +fcitx: |