分页: 1 / 1

iBus颜文字输入法,增加了安装脚本,请改进

发表于 : 2010-03-02 14:03
oppih
这个其实是 @shellex 君在Google Code上的项目:

http://code.google.com/p/ibus-table-emoji/

其说明日志在:

http://shellex.info/ibus-emoji-im/

前阵子自己重新安装了Ubuntu,这回要把emoji再装回去,还是要重复一些步骤……

本着Python写脚本代替手工重复操作的原则,我就写了这个东西,大家看看给点改进意见哈~ m( =∩王∩= )m

附件是从网上下载的压缩包,挺小的。里面增加了我的 emoji-installer.py

代码: 全选

#! /usr/bin/env python
# filename:emoji-installer.py

import os

def install():
    '''You can use this script to install ibus-table-emoji'''
    os.system("sudo cp emoji-table.db /usr/share/ibus-table/tables")
    os.system("sudo cp ibus-emoji.svg /usr/share/ibus-table/icons/")
    print "*" * 60
    print "emoji has been installed successfully\nand You need to restart iBus to take it work,\nenjoy~  (^_^)"
    print "*" * 60
    #FIXME How to restart iBus after I made these steps?

if __name__ == "__main__":
    install()
有一个最好能改进的地方是,安装完emoji后需要restart iBus输入法,这个我还不会在Python里实现,请大家添加。

Re: iBus颜文字输入法,增加了安装脚本,请改进

发表于 : 2010-10-23 20:04
fanzeyi
ibus-pinyin 已经支持lua扩展
去找Google颜文字扩展吧 ╮(╯▽╰)╭