bug_x

导航

 

繁体字转换:
http://xh.5156edu.com/jtof.php

转换的有问题
http://tool.lu/zhconvert/


git网址:
https://github.com/BYVoid/OpenCC
//正常安装
doxygen --version
1.8.14
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

yum install gcc-c++ centos 7 gcc 4.8 centos6.5 gcc 4.4 //gcc4.4编译opecc出问题
yum install cmake
yum install make

git clone https://github.com/doxygen/doxygen.git
yum install python //部分机器可能需要安装


yum install curl-devel libnet-devel -y ## flex
yum -y install pcre-devel bison flex
//php suport

yum install php-devel //php5.3没有phpize ,这样可以安装phpize
git clone git@github.com:NauxLiu/opencc4php.git

//或者支持php

git clone https://github.com/NauxLiu/opencc4php.git

ln -s /usr/lib/libopencc.so.2 /usr/lib64/libopencc.so.2 //软连接过去

测试
echo "伦" | opencc -c s2tw
echo "伦" | opencc -c s2hk
echo "伦" | opencc -c s2t

echo "伦" | opencc -c s2twp

echo "倫" | opencc -c s2twp

echo "倫" | opencc -c s2tw
echo "倫" | opencc -c s2hk
echo "倫" | opencc -c s2t

echo "倫" | opencc -c s2twp

php -r " $od = opencc_open('s2t.json');echo opencc_convert("我的鼠标哪儿去了?", $od);"

 

posted on 2017-11-17 16:19  bug_x  阅读(2197)  评论(0编辑  收藏  举报