Ubuntu Trial ibus Cloud Pinyin

Source: Internet
Author: User
Tags lua svn

Zhou Haihan/Wen 2010.7.15

IBUs Cloud Pinyin for the linux/ibus design of a support online cloud pinyin service Pinyin input method. Download Address: http://code.google.com/p/ibus-cloud-pinyin/, is still in development.
It uses the Sogou and QQ of the cloud Pinyin service. Offline input is also supported. Introduction See: Http://code.google.com/p/ibus-cloud-pinyin/wiki/Intro

There is no binary version of Ubuntu, so download the source directly. The graphical configuration interface is not supported, but rather the LUA scripting language configuration, which may hinder the use of a subset of people.

Compiling


To install the related development library:
sudo apt-get install Liblua5.1-0-dev liblua5.1-socket2 libsqlite3-dev libibus-dev libnotify-dev lua5.1 Libgee-dev Valac s Qlite3
Download Source:
SVN checkout Http://ibus-cloud-pinyin.googlecode.com/svn/trunk/ibus-cloud-pinyin

zhouhh@zhh64:~$ CD ibus-cloud-pinyin/
Compile:
zhouhh@zhh64:~/ibus-cloud-pinyin$ make
A large offline thesaurus is seen during the compilation process:
:: 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
Resolving host ibus-cloud-pinyin.googlecode.com ... 64.233.183.82
Connecting ibus-cloud-pinyin.googlecode.com|64.233.183.82|:80 ... is connected.
HTTP request issued, waiting for response ... OK
Length: 7444704 (7.1M) [Application/octet-stream]
Saving to: "Pinyin-database-1.2.99.tar.xz"

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

At this point, the IBUs will have the option to add the cloud Pinyin.

Configure double spell
I use a natural code double spell, but the default does not support double spell, you must enter the configuration file to configure:
Configuration can refer to:
Http://code.google.com/p/ibus-cloud-pinyin/wiki/Configuration

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

The default dual spelling scheme is Microsoft Pinyin, through:
Http://code.google.com/p/ibus-cloud-pinyin/wiki/DoublePinyinScheme
Find the natural code, replace Config.lua the corresponding content:
set_double_pinyin{
[' CA '] = ' CA ', [' cb '] = ' cou ', [' ce '] = ' ce ', [' cg '] = ' ceng ', [' cf '] = ' cen ', [' ci '] = ' ci ', [' ch '] = ' Cang ', [' ck '] = ' C Ao ', [' 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 ', [' B Z '] = ' 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 ', [' the ' of the '] ' = ' 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 ', [' I H '] = ' 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 '] = ' $ ', [' 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 '] = ' June ', [' 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 '] = ' m Ang ', [' 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 ', [' P X '] = ' pie ', [' pz '] = ' pei ',
[' sa '] = ' sa ', [' sb '] = ' sou ', [' se '] = ' se ', [' sg '] = ' seng ', [' sf '] = ' sen ', [' si '] = ' si ', [' sh '] = ' sang ', [' sk '] = ' s Ao ', [' 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 ', [' u H '] = ' 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 ', [' V H '] = ' 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 '] = ' ya I ', [' 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 '] = ' Z Ao ', [' zj '] = ' Zan ', [' ZL '] = ' zai ', [' zo '] = ' Zuo ', [' ZP '] = ' Zun ', [' zs '] = ' zong ', [' zr '] = ' Zuan ', [' zu '] = ' zu ', [' Zv '] = ' Zui ', [' zz '] = ' zei ',
[' AA '] = ' a ', [' ai '] = ' ai ', [' a '] = ' an ', [' ah '] = ' ang ', [' ao '] = ' ao ', [' ee '] = ' e ', [' ei '] = ' ei ', [' en '] = ' en ', [' E R ' = ' er ', [' oo '] = ' o ', [' ou '] = ' ou ',
[' V '] = ' en ', [' i '] = ' ch ', [' u '] = ' sh ',
}

Find the Set_switch, remove the front--[[and the back--]
Change Double_pinyin = to True to save
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,
}

Use
Reboot
In the IBUs configuration, the cloud input is added to the candidate Pinyin input method and can be used.
But feel the input method intelligence is not too high, often the secondary commonly used candidate words in front.
Technorati Tags: cloud pinyin ibus Ubuntu

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.