2010-06-16

Slitaz -- gcin / help

gcin 使用手冊 (README.html)

root@slitaz:~# ls -l /usr/share/doc/gcin-1.4.9
-rw-r--r-- 1 root root 79789 Jun 17 00:58 Changelog.html
-rw-r--r-- 1 root root 56213 Jun 17 00:58 README.html
root@slitaz:~# cat /usr/share/gcin/script/html-browser
#!/bin/bash

#for i in firefox mozilla-firefox mozilla konqueror
for i in firefox mozilla-firefox mozilla konqueror midori opera
do
which $i >& /dev/null
if [ $? = 0 ]; then
UTF8ED=$i
break
fi
done

export LC_CTYPE=zh_TW.UTF-8
export LC_ALL=zh_TW.UTF-8

$UTF8ED $1
root@slitaz:~# cat /usr/share/gcin/script/utf8-edit
#!/bin/bash

PATH=$PATH:/opt/gnome/bin:/usr/local/bin

for i in madedit gedit leafpad kedit kate gvim
do
which $i >& /dev/null
if [ $? = 0 ]; then
UTF8ED=$i
break
fi
done

export LC_CTYPE=zh_TW.UTF-8
export LC_ALL=zh_TW.UTF-8

if [ $UTF8ED = 'gvim' ]; then
UTF8ED='gvim -f'
fi

$UTF8ED $1
root@slitaz:~#
.