Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:hujq
scim-python
README.pinyin
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File README.pinyin of Package scim-python
scim-python pinyin use a dictionary from Sougou LAB, see license at http://www.sogou.com/labs/dl/license.html I'm not sure if we can package it into rpm. But it seems legal for personal use. You may use this script to download the dictionary from internet and install it. You can find the script in the same directory with this document. visit http://code.google.com/p/scim-python/ to make sure the DBVER number, e.g pinyin-database-0.1.10.5.tar.bz2 means DBVER=0.1.10.5 run $ sh /usr/share/doc/packages/scim-python/install_pinyin_database.sh Or you can download pinyin-database-$DBVER.tar.bz2 tar jxvf pinyin-database-$DBVER.tar.bz2 You will get a file named py.db Put py.db to your home directory then the script will skip download process to setup your pinyin-database scim-python 的拼音输入法使用搜狗公司公開的語料庫裡的詞語和詞頻信息, 请参阅授权声明 http://www.sogou.com/labs/dl/license.html 我不确定是否适合包在 rpm 中, 但看起来个人用户使用应该没问题。 您可以使用下面的脚本来取得与安装此词库。 您也可以在此文件的同一个目录中找到这个脚本。 请先造访 http://code.google.com/p/scim-python/ 确定 DBVER 版本号, 例如 pinyin-database-0.1.10.5.tar.bz2 则 DBVER=0.1.10.5 运行 $ sh /usr/share/doc/packages/scim-python/install_pinyin_database.sh 或您可以先下载 pinyin-database-$DBVER.tar.bz2 tar jxvf pinyin-database-$DBVER.tar.bz2 您将得到名为 py.db 的档案 将他放在您的家目录中 这个脚本将跳过下载的程序为您设定拼音的资料库 install_pinyin_database.sh #!/bin/bash DBVER=0.1.10.5 cd $HOME if [ ! -e py.db ]; then wget http://scim-python.googlecode.com/files/pinyin-database-$DBVER.tar.bz2 tar jxvf pinyin-database-$DBVER.tar.bz2 fi echo "Need root privilege to install py.db, Enter root password" sudo cp py.db /usr/share/scim-python/engine/PinYin/ cd /usr/share/scim-python/engine/PinYin echo "May take minutes, Please wait..." echo "Creating INDEX..." sudo python -c "import PYSQLiteDB; db = PYSQLiteDB.PYSQLiteDB (filename='py.db'); db.create_indexes ();" echo "Done."
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor