`
totoxian
  • 浏览: 1074732 次
  • 性别: Icon_minigender_2
  • 来自: 西安
文章分类
社区版块
存档分类
最新评论

ubuntu 试用ibus云拼音

阅读更多

周海汉 /文 2010.7.15

ibus云拼音为 Linux / ibus 设计的一个支持在线云拼音服务的拼音输入法。下载地址:http://code.google.com/p/ibus-cloud-pinyin/,目前 还在开发中。
它采用了sogou和QQ的云拼音服务。同时支持离线输入。介绍见:http://code.google.com/p/ibus- cloud-pinyin/wiki/Intro

ubuntu下目前没有二进制版本,所以直接下载源码。另外不支持图形配置界面,而是 lua脚本语言配置,可能会妨碍一部分人使用。

编译


安 装相关开发库:
sudo apt-get install liblua5.1-0-dev liblua5.1-socket2 libsqlite3-dev libibus-dev libnotify-dev lua5.1 libgee-dev valac sqlite3
下 载源码:
svn checkout http://ibus-cloud-pinyin.googlecode.com/svn/trunk/ ibus-cloud-pinyin

zhouhh@zhh64:~$ cd ibus-cloud-pinyin/
编译:
zhouhh@zhh64:~/ibus-cloud-pinyin$ make
编译过程中看到有下载一个大离线词库:
:: Creating ibus compoment xml file ...
:: Downloading open-phrase database ...
--2010-07-15 11:08:50-- http://ibus-cloud-pinyin.googlecode.com/files/pinyin-database-1.2.99.tar.xz
正 在解析主机 ibus-cloud-pinyin.googlecode.com... 64.233.183.82
正在连接 ibus-cloud-pinyin.googlecode.com|64.233.183.82|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度: 7444704 (7.1M) [application/octet-stream]
正 在保存至: “pinyin-database-1.2.99.tar.xz”

安装
zhouhh@zhh64:~/ibus-cloud-pinyin$ sudo make install

此时重启,ibus就会有云拼音的选项可以添加了。

配 置双拼
我用的是自然码双拼,但缺省不支持双拼,必须进入配置文件进行配置:
配置可以参考:
http://code.google.com/p/ibus-cloud-pinyin/wiki/Configuration

zhouhh@zhh64:~$ sudo vi /usr/share/ibus-cloud-pinyin/lua/config.lua

缺省双拼方案是微软拼音, 通过:
http://code.google.com/p/ibus-cloud-pinyin/wiki/DoublePinyinScheme
找 到自然码的,替换config.lua相应内容:
set_double_pinyin{
['ca'] = 'ca', ['cb'] = 'cou', ['ce'] = 'ce', ['cg'] = 'ceng', ['cf'] = 'cen', ['ci'] = 'ci', ['ch'] = 'cang', ['ck'] = 'cao', ['cj'] = 'can', ['cl'] = 'cai', ['co'] = 'cuo', ['cp'] = 'cun', ['cs'] = 'cong', ['cr'] = 'cuan', ['cu'] = 'cu', ['cv'] = 'cui',
['ba'] = 'ba', ['bc'] = 'biao', ['bg'] = 'beng', ['bf'] = 'ben', ['bi'] = 'bi', ['bh'] = 'bang', ['bk'] = 'bao', ['bj'] = 'ban', ['bm'] = 'bian', ['bl'] = 'bai', ['bo'] = 'bo', ['bn'] = 'bin', ['bu'] = 'bu', ['by'] = 'bing', ['bx'] = 'bie', ['bz'] = 'bei',
['da'] = 'da', ['dc'] = 'diao', ['db'] = 'dou', ['de'] = 'de', ['dg'] = 'deng', ['di'] = 'di', ['dh'] = 'dang', ['dk'] = 'dao', ['dj'] = 'dan', ['dm'] = 'dian', ['dl'] = 'dai', ['do'] = 'duo', ['dq'] = 'diu', ['dp'] = 'dun', ['ds'] = 'dong', ['dr'] = 'duan', ['du'] = 'du', ['dv'] = 'dui', ['dy'] = 'ding', ['dx'] = 'die', ['dz'] = 'dei',
['ga'] = 'ga', ['gb'] = 'gou', ['ge'] = 'ge', ['gd'] = 'guang', ['gg'] = 'geng', ['gf'] = 'gen', ['gh'] = 'gang', ['gk'] = 'gao', ['gj'] = 'gan', ['gl'] = 'gai', ['go'] = 'guo', ['gp'] = 'gun', ['gs'] = 'gong', ['gr'] = 'guan', ['gu'] = 'gu', ['gw'] = 'gua', ['gv'] = 'gui', ['gy'] = 'guai', ['gz'] = 'gei',
['fa'] = 'fa', ['fb'] = 'fou', ['fg'] = 'feng', ['ff'] = 'fen', ['fh'] = 'fang', ['fj'] = 'fan', ['fo'] = 'fo', ['fu'] = 'fu', ['fz'] = 'fei',
['ia'] = 'cha', ['ib'] = 'chou', ['ie'] = 'che', ['id'] = 'chuang', ['ig'] = 'cheng', ['if'] = 'chen', ['ii'] = 'chi', ['ih'] = 'chang', ['ik'] = 'chao', ['ij'] = 'chan', ['il'] = 'chai', ['io'] = 'chuo', ['ip'] = 'chun', ['is'] = 'chong', ['ir'] = 'chuan', ['iu'] = 'chu', ['iv'] = 'chui', ['iy'] = 'chuai',
['ha'] = 'ha', ['hb'] = 'hou', ['he'] = 'he', ['hd'] = 'huang', ['hg'] = 'heng', ['hf'] = 'hen', ['hh'] = 'hang', ['hk'] = 'hao', ['hj'] = 'han', ['hl'] = 'hai', ['ho'] = 'huo', ['hp'] = 'hun', ['hs'] = 'hong', ['hr'] = 'huan', ['hu'] = 'hu', ['hw'] = 'hua', ['hv'] = 'hui', ['hy'] = 'huai', ['hz'] = 'hei',
['ka'] = 'ka', ['kb'] = 'kou', ['ke'] = 'ke', ['kd'] = 'kuang', ['kg'] = 'keng', ['kf'] = 'ken', ['kh'] = 'kang', ['kk'] = 'kao', ['kj'] = 'kan', ['kl'] = 'kai', ['ko'] = 'kuo', ['kp'] = 'kun', ['ks'] = 'kong', ['kr'] = 'kuan', ['ku'] = 'ku', ['kw'] = 'kua', ['kv'] = 'kui', ['ky'] = 'kuai',
['jc'] = 'jiao', ['jd'] = 'jiang', ['ji'] = 'ji', ['jm'] = 'jian', ['jn'] = 'jin', ['jq'] = 'jiu', ['jp'] = 'jun', ['js'] = 'jiong', ['jr'] = 'juan', ['ju'] = 'ju', ['jt'] = 'jue', ['jw'] = 'jia', ['jy'] = 'jing', ['jx'] = 'jie',
['ma'] = 'ma', ['mc'] = 'miao', ['mb'] = 'mou', ['me'] = 'me', ['mg'] = 'meng', ['mf'] = 'men', ['mi'] = 'mi', ['mh'] = 'mang', ['mk'] = 'mao', ['mj'] = 'man', ['mm'] = 'mian', ['ml'] = 'mai', ['mo'] = 'mo', ['mn'] = 'min', ['mq'] = 'miu', ['mu'] = 'mu', ['my'] = 'ming', ['mx'] = 'mie', ['mz'] = 'mei',
['la'] = 'la', ['lc'] = 'liao', ['lb'] = 'lou', ['le'] = 'le', ['ld'] = 'liang', ['lg'] = 'leng', ['li'] = 'li', ['lh'] = 'lang', ['lk'] = 'lao', ['lj'] = 'lan', ['lm'] = 'lian', ['ll'] = 'lai', ['lo'] = 'luo', ['ln'] = 'lin', ['lq'] = 'liu', ['lp'] = 'lun', ['ls'] = 'long', ['lr'] = 'luan', ['lu'] = 'lu', ['lt'] = 'lve', ['lv'] = 'lv', ['ly'] = 'ling', ['lx'] = 'lie', ['lz'] = 'lei',
['na'] = 'na', ['nc'] = 'niao', ['nb'] = 'nou', ['ne'] = 'ne', ['nd'] = 'niang', ['ng'] = 'neng', ['nf'] = 'nen', ['ni'] = 'ni', ['nh'] = 'nang', ['nk'] = 'nao', ['nj'] = 'nan', ['nm'] = 'nian', ['nl'] = 'nai', ['no'] = 'nuo', ['nn'] = 'nin', ['nq'] = 'niu', ['ns'] = 'nong', ['nr'] = 'nuan', ['nu'] = 'nu', ['nt'] = 'nve', ['nv'] = 'nv', ['ny'] = 'ning', ['nx'] = 'nie', ['nz'] = 'nei',
['qc'] = 'qiao', ['qd'] = 'qiang', ['qi'] = 'qi', ['qm'] = 'qian', ['qn'] = 'qin', ['qq'] = 'qiu', ['qp'] = 'qun', ['qs'] = 'qiong', ['qr'] = 'quan', ['qu'] = 'qu', ['qt'] = 'que', ['qw'] = 'qia', ['qy'] = 'qing', ['qx'] = 'qie',
['pa'] = 'pa', ['pc'] = 'piao', ['pb'] = 'pou', ['pg'] = 'peng', ['pf'] = 'pen', ['pi'] = 'pi', ['ph'] = 'pang', ['pk'] = 'pao', ['pj'] = 'pan', ['pm'] = 'pian', ['pl'] = 'pai', ['po'] = 'po', ['pn'] = 'pin', ['pu'] = 'pu', ['py'] = 'ping', ['px'] = 'pie', ['pz'] = 'pei',
['sa'] = 'sa', ['sb'] = 'sou', ['se'] = 'se', ['sg'] = 'seng', ['sf'] = 'sen', ['si'] = 'si', ['sh'] = 'sang', ['sk'] = 'sao', ['sj'] = 'san', ['sl'] = 'sai', ['so'] = 'suo', ['sp'] = 'sun', ['ss'] = 'song', ['sr'] = 'suan', ['su'] = 'su', ['sv'] = 'sui',
['rb'] = 'rou', ['re'] = 're', ['rg'] = 'reng', ['rf'] = 'ren', ['ri'] = 'ri', ['rh'] = 'rang', ['rk'] = 'rao', ['rj'] = 'ran', ['ro'] = 'ruo', ['rp'] = 'run', ['rs'] = 'rong', ['rr'] = 'ruan', ['ru'] = 'ru', ['rv'] = 'rui',
['ua'] = 'sha', ['ub'] = 'shou', ['ue'] = 'she', ['ud'] = 'shuang', ['ug'] = 'sheng', ['uf'] = 'shen', ['ui'] = 'shi', ['uh'] = 'shang', ['uk'] = 'shao', ['uj'] = 'shan', ['ul'] = 'shai', ['uo'] = 'shuo', ['up'] = 'shun', ['ur'] = 'shuan', ['uu'] = 'shu', ['uw'] = 'shua', ['uv'] = 'shui', ['uy'] = 'shuai', ['uz'] = 'shei',
['ta'] = 'ta', ['tc'] = 'tiao', ['tb'] = 'tou', ['te'] = 'te', ['tg'] = 'teng', ['ti'] = 'ti', ['th'] = 'tang', ['tk'] = 'tao', ['tj'] = 'tan', ['tm'] = 'tian', ['tl'] = 'tai', ['to'] = 'tuo', ['tp'] = 'tun', ['ts'] = 'tong', ['tr'] = 'tuan', ['tu'] = 'tu', ['tv'] = 'tui', ['ty'] = 'ting', ['tx'] = 'tie',
['wa'] = 'wa', ['wg'] = 'weng', ['wf'] = 'wen', ['wh'] = 'wang', ['wj'] = 'wan', ['wl'] = 'wai', ['wo'] = 'wo', ['wu'] = 'wu', ['wz'] = 'wei',
['va'] = 'zha', ['vb'] = 'zhou', ['ve'] = 'zhe', ['vd'] = 'zhuang', ['vg'] = 'zheng', ['vf'] = 'zhen', ['vi'] = 'zhi', ['vh'] = 'zhang', ['vk'] = 'zhao', ['vj'] = 'zhan', ['vl'] = 'zhai', ['vo'] = 'zhuo', ['vp'] = 'zhun', ['vs'] = 'zhong', ['vr'] = 'zhuan', ['vu'] = 'zhu', ['vw'] = 'zhua', ['vv'] = 'zhui', ['vy'] = 'zhuai',
['ya'] = 'ya', ['yb'] = 'you', ['ye'] = 'ye', ['yi'] = 'yi', ['yh'] = 'yang', ['yk'] = 'yao', ['yj'] = 'yan', ['yl'] = 'yai', ['yo'] = 'yo', ['yn'] = 'yin', ['yp'] = 'yun', ['ys'] = 'yong', ['yr'] = 'yuan', ['yu'] = 'yu', ['yt'] = 'yue', ['yy'] = 'ying',
['xc'] = 'xiao', ['xd'] = 'xiang', ['xi'] = 'xi', ['xm'] = 'xian', ['xn'] = 'xin', ['xq'] = 'xiu', ['xp'] = 'xun', ['xs'] = 'xiong', ['xr'] = 'xuan', ['xu'] = 'xu', ['xt'] = 'xue', ['xw'] = 'xia', ['xy'] = 'xing', ['xx'] = 'xie',
['za'] = 'za', ['zb'] = 'zou', ['ze'] = 'ze', ['zg'] = 'zeng', ['zf'] = 'zen', ['zi'] = 'zi', ['zh'] = 'zang', ['zk'] = 'zao', ['zj'] = 'zan', ['zl'] = 'zai', ['zo'] = 'zuo', ['zp'] = 'zun', ['zs'] = 'zong', ['zr'] = 'zuan', ['zu'] = 'zu', ['zv'] = 'zui', ['zz'] = 'zei',
['aa'] = 'a', ['ai'] = 'ai', ['an'] = 'an', ['ah'] = 'ang', ['ao'] = 'ao', ['ee'] = 'e', ['ei'] = 'ei', ['en'] = 'en', ['er'] = 'er', ['oo'] = 'o', ['ou'] = 'ou',
['v'] = 'zh', ['i'] = 'ch', ['u'] = 'sh',
}

找到 set_switch,去掉前面的--[[ 和后面的 --]]
将double_pinyin = 改为true,保存
set_switch{
default_chinese_mode = true,
default_offline_mode = false,
default_traditional_mode = false,
double_pinyin = true,
background_request = true,
show_raw_in_auxiliary = true,
always_show_candidates = true,
show_pinyin_auxiliary = true,
}

使 用
重启
在ibus的配置中将云输入加入候选拼音输入法,即可使用。
但感觉输入法智 能还不太高,经常将次常用的候选词放在前面。
Technorati 标签: 云拼音 ibus ubuntu

分享到:
评论

相关推荐

    UBUNTU云拼音输入法

    **Ubuntu云拼音输入法** Ubuntu云拼音输入法是一款专为Ubuntu操作系统设计的高效、智能的中文输入工具。在Ubuntu这样的Linux环境下,对于习惯使用拼音输入法的用户来说,找到一个性能稳定、功能丰富的输入法软件至...

    ibus- 拼音安装包

    "ibus-拼音安装包" 提供的是 ibus 输入法框架下的拼音输入法组件,主要用于支持中文输入。在本文中,我们将详细探讨 ibus 的功能、拼音输入法的原理以及如何在 Linux 系统中安装和使用 ibus-pinyin。 首先,让我们...

    ubuntu ibus 极点五笔

    这里我们将重点讨论如何在Ubuntu中安装和使用IBus极点五笔输入法。 首先,让我们了解什么是IBus。IBus是Linux下的一个输入法框架,它为用户提供了一个统一的接口来切换不同的输入法,包括拼音、五笔、仓颉等。在...

    Ubuntu下ibus的设置参考.pdf

    Ubuntu 下 ibus 的设置参考 Ubuntu 下的 ibus 设置是 Linux 用户经常遇到的问题之一。ibus 是一个开源的输入法框架,提供了多种输入法的支持。然而,在 Ubuntu 中,ibus 的默认设置仅支持输入单个汉字,因此需要...

    Ubuntu下ibus的设置[参照].pdf

    Ubuntu 下 iBus 设置详解 iBus 是一个开源的输入法平台,提供了多种语言的输入法支持。Ubuntu 系统中默认安装的 iBus 输入法只能输入单个汉字,因此需要进行修改以支持更多的输入方式。 iBus 设置 在 Ubuntu 系统...

    ibus拼音输入法

    IBus是由Ubuntu团队开发的,它是一个跨桌面环境的输入法框架,旨在统一和简化不同输入法的管理和使用。通过IBus,用户可以在各种桌面环境中轻松切换不同的输入法,包括但不限于Gnome、KDE、XFCE等。其设计目标是高效...

    ubuntu-ibus-搜狗词库-非常全面-sougou-phrases-full.7z

    用于ubuntu等Linux, ibus框架的搜狗词库-非常全面 原始文件名:sougou-phrases-full.7z 运行以下命令: sudo add-apt-repository ppa:shawn-p-huang/ppa sudo apt-get update sudo apt-get dist-upgrade 下载词库 ...

    ibus拼音输入法RPM包

    标题中的“ibus拼音输入法RPM包”指的是Linux操作系统下的一个中文输入法系统,Ibus-Pinyin。Ibus是Input Bus的缩写,它是一个开源的输入法框架,旨在为Linux提供一个统一的输入法平台。RPM(Red Hat Package ...

    How to set ibus on Ubuntu 12.10

    通过上述步骤,你已经成功地在Ubuntu 12.10上设置了ibus,并且配置了拼音输入法。ibus的强大功能和灵活性使其成为多语言输入的理想选择。无论是对于学习新语言的学生、需要在工作中处理多语言文档的专业人士,还是...

    ibus-pinyin

    4. 配置编译环境,可能需要先安装依赖库,如`sudo apt-get install ibus-devel`(对于Debian/Ubuntu系统)。 5. 执行配置脚本,如`./configure`。 6. 编译源代码,运行`make`。 7. 安装编译好的软件到系统路径,用`...

    Ubuntu系统安装搜狗拼音输入法教程.docx

    在 Ubuntu 系统中,默认的输入法是 ibus 输入法,虽然 ibus 输入法也可以满足基本的输入需求,但是它在某些情况下确实不太智能。因此,许多用户更喜欢使用搜狗拼音输入法,因为它提供了更加智能和人性化的输入体验。...

    ubuntu 10.04 LTS IBUS五笔输入法

    安装重启后需在菜单"系统/首选项/IBus首选项/输入法"中添加此输入法

    ubuntu安装配置搜狗拼音输入法

    通常情况下,Ubuntu默认使用iBus作为输入法框架,现在需要将其切换为fcitx框架: ``` im-config ``` 在弹出的界面中选择fcitx作为默认输入法框架。 4. 重启电脑后,fcitx框架会自动启动。在系统的输入法设置中...

    linux系统Ubuntu中双击图标重启ibus键盘

    在Linux Ubuntu系统中,ibus(Input Bus)是一个强大的输入法框架,它支持多种语言和输入方式,包括中文、日文等。当你遇到键盘突然无法正常使用,可能是由于ibus服务出现了问题,这时可以通过双击图标或者使用...

    ibus 输入法

    在Linux环境中,IBus支持多种输入法引擎,例如谷歌拼音、SCIM、Fcitx等,用户可以根据自己的需求选择合适的输入法。安装IBus后,用户通常需要通过系统设置来配置输入法引擎,并添加需要的语言。此外,IBus还提供了...

    ubuntu下五笔输入法新选择五笔加加 for ibus

    用不习惯ibus-table下的五笔,fcitx下的五笔相对好用一些,但是ubuntu又把输入法框架换回ibus了,要么不再折腾,要么就往大了整,自己改一个输入法用. https://github.com/yanzilisan183/ibus-wbjj/tree/master/deb

    ibus-1.3.9 for linux

    在Ubuntu这样的Linux发行版中,IBus 是默认的输入法系统,提供了一个统一的接口来管理各种输入法引擎。 描述中提到的“ubuntu下ibus无法使用中文”是一个常见的问题,可能由于系统更新、软件冲突或者ibus配置问题...

    ibus-table-wubi_1.3.4-1_all for ubuntu 12.04

    ibus-table-wubi_1.3.4-1_all for ubuntu 12.04

    linux下安装输入法 ibus

    这篇博客文章将详细介绍如何在Linux环境下安装和配置`ibus`输入法,尤其是针对拼音输入的`ibus-pinyin`。 首先,我们来理解一下`ibus`的核心概念。`ibus`是一个基于事件驱动的输入法系统,它通过提供一个统一的接口...

    搜狗拼音(ubuntu)

    在Ubuntu下的搜狗拼音, 1,添加fcitx的键盘输入法系统,因为sogou是基于fcitx的,而系统默认的是iBus; 2,安装sogou输入法; 3,设置系统参数及一些注意点。

Global site tag (gtag.js) - Google Analytics