wok-current rev 7761
Add:fcitx-zm,ZhengMa--Chinese Input Method Table for FCITX
author | fireflyoo <lufeng369@gmail.com> |
---|---|
date | Thu Dec 23 00:50:14 2010 +0800 (2010-12-23) |
parents | 0150a5321156 |
children | 5fda4e3d1630 |
files | fcitx-zm/receipt fcitx-zm/stuff/zm.conf |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/fcitx-zm/receipt Thu Dec 23 00:50:14 2010 +0800 1.3 @@ -0,0 +1,35 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="fcitx-zm" 1.7 +VERSION="4.0" 1.8 +CATEGORY="x-window" 1.9 +SHORT_DESC="Zhengma Table for FCITX-4.0" 1.10 +MAINTAINER="lufeng369" 1.11 +DEPENDS="fcitx" 1.12 +BUILD_DEPENDS="fcitx" 1.13 +FILE="zm.mb" 1.14 +URL="http://fcitx.googlecode.com/files/$FILE" 1.15 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.16 +compile_rules() 1.17 +{ 1.18 + cd $WOK/$PACKAGE 1.19 + echo "Downloading Archive" 1.20 + wget -O $SOURCES_REPOSITORY/$FILE $URL 1.21 + # re-generate 1.22 + echo -n "Remove All Words,Remained Hanzi only" 1.23 +# mkdir stuff 1.24 + mb2txt $SOURCES_REPOSITORY/zm.mb | awk 'NR<=10{print} NR>10{if(length($2)==3)print}' > stuff/zm.txt 1.25 + cd stuff && txt2mb zm.txt zm.mb 1.26 + cd .. 1.27 + status 1.28 + 1.29 +} 1.30 +genpkg_rules() 1.31 +{ 1.32 + EXTDIR="$fs/usr/share/fcitx/data/table" 1.33 + mkdir -p $EXTDIR 1.34 + cp stuff/zm.mb $EXTDIR 1.35 + cp stuff/zm.conf $EXTDIR 1.36 + 1.37 +} 1.38 +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/fcitx-zm/stuff/zm.conf Thu Dec 23 00:50:14 2010 +0800 2.3 @@ -0,0 +1,15 @@ 2.4 +[CodeTable] 2.5 +Name=郑码 2.6 +IconName=zm 2.7 +File=zm.mb 2.8 +Priority=3 2.9 +AdjustOrder=AdjustNo 2.10 +UsePY=True 2.11 +PYKey=[ 2.12 +AutoSend=-1 2.13 +NoneMatchAutoSend=0 2.14 +UseMatchingKey=True 2.15 +MatchingKey=? 2.16 +AutoPhrase=False 2.17 +ExactMatch=False 2.18 +PromptTableCode=False