Ubuntu trial ibus cloud pinyin

Source: Internet
Author: User

Zhou haihan/Wen 2010.7.15

Ibus cloud Pinyin is Linux/ibus
A Pinyin input method that supports the online cloud pinyin service is designed. : Http://code.google.com/p/ibus-cloud-pinyin/, currently
Still under development.
It uses the cloud pinyin service of sogou and QQ. Offline input is also supported. Introduction see: http://code.google.com/p/ibus-
Cloud-pinyin/wiki/intro

Ubuntu does not currently have a binary version, so you can download the source code directly. In addition, the graphic configuration interface is not supported,
Lua script language configuration may prevent some users from using it.

Compile


Security
Install related development libraries:
Sudo apt-Get install liblua5.1-0-dev liblua5.1-socket2
Libsqlite3-dev libibus-dev libnotify-dev lua5.1 libgee-dev valac sqlite3
Lower
Download source code:
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 dictionary is downloaded during compilation:
: Creating ibus compoment XML file...
::
Downloading open-phrase database...
-- 11:08:50 --

Http://ibus-cloud-pinyin.googlecode.com/files/pinyin-database-1.2.99.tar.xz

Zheng
In parsing host ibus-cloud-pinyin.googlecode.com... 64.233.183.82
Connecting
Ibus-cloud-pinyin.googlecode.com | 64.233.183.82 |: 80... connected.
HTTP issued
Request, waiting for response... 200 OK
Length: 7444704 (7.1 m) [application/octet-stream]
Zheng
Save to: “pinyin-database-1.2.99.tar. xz"

Install



:
Zhouhh @ zhh64 :~ /Ibus-cloud-pinyin $
Sudo make install

Then restart ibus and you will be able to add the cloud pinyin option.

Configuration
Double fight





I use natural code dual-spelling, but double spelling is not supported by default. You must enter the configuration file for Configuration:
For configuration, see:

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-join solution is Microsoft pinyin,
Pass:

Http://code.google.com/p/ibus-cloud-pinyin/wiki/DoublePinyinScheme

Find
To the natural code, replace config. Lua with the following content:
Set_double_pinyin {
['CA'] = 'CA', ['cb '] =
'Cou', ['ce '] = 'ce', ['cg '] = 'ceng', ['cf'] = 'cen ', ['cies'] = 'cies ',
['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'] = 'ba', ['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 '] = 'duany', ['du'] = 'du ', ['dv'] = 'dui ',
['Dy '] = 'ding', ['dx'] = 'die', ['dz'] = 'dei ',
['Ga '] = 'ga ',
['G'] = 'gou', ['ge '] = 'ge', ['gd'] = 'guang ', ['gg'] = 'geng ', ['gf ']
= 'Gen', ['gh'] = 'giang ', ['gk'] = 'gao', ['gj'] = 'gan ', ['Gl '] =
'Gai', ['Go'] = 'guo', ['gp '] = 'gun', ['gs'] = 'gong ', ['gr '] = 'guany ',
['GU'] = 'GU', ['gw '] = 'gua', ['gv'] = 'GU', ['gy'] = 'guai ', ['gz '] =
'Gei ',
['Fa '] = 'fa', ['fb '] = 'fou', ['fg'] = 'feng', ['ff'] =
'Fen', ['ff'] = 'fang ', ['fj'] = 'fan ', ['fo'] = 'fo ', ['fu'] = 'fu ',
['Fz'] = 'fei ',
['A'] = 'cha ', ['ib'] = 'chou', ['ie'] = 'ch ',
['Id'] = 'shanghai', ['ig '] = 'hangzhou', ['if'] = 'chen', ['II'] = 'chi ',
['Ih '] = 'Chang', ['ik'] = 'chunao', ['ij '] = 'chan', ['il'] = 'chai ',
['Io'] = 'chuo', ['IP'] = 'chun', ['IS'] = 'chong ', ['ir'] = 'chun ',
['Iu '] = 'chu', ['iv'] = 'chui ', ['iy'] = 'chuai ',
['Ha '] = 'Ha ',
['Hb '] = 'hou', ['hes'] = 'hes', ['hd'] = 'huang', ['Hg '] = 'heng ', ['hf ']
= 'Hangzhou', ['hh'] = 'hangang ', ['hk'] = 'hao', ['Hj '] = 'han ', ['hl '] =
'Hai ', ['ho'] = 'huo', ['hp'] = 'hun', ['hs '] = 'Hong ', ['hr'] = 'huany ',
['Hu'] = 'hu', ['hw '] = 'hu', ['hv'] = 'hui', ['hy '] = 'huai ', ['hz '] =
'Hei ',
['Ka '] = 'ka', ['kb'] = 'kou', ['ke'] = 'ke', ['kd '] =
'Kuang ', ['kg'] = 'keng', ['kf '] = 'ken', ['kh'] = 'Kang', ['kk '] =
'Kakao', ['kj '] = 'kan', ['kl '] = 'Kai', ['ko'] = 'kuo ', ['kp '] = 'kun ',
['K'] = 'kong', ['kr '] = 'kuance', ['ku'] = 'ku ', ['kw'] = 'kua ', ['kv'] =
'Kuai', ['ky '] = 'kuai ',
['Jc'] = 'jiao', ['jd '] = 'jiang', ['ji '] =
'Ji ', ['jm'] = 'jian ', ['jn'] = 'jin', ['jq'] = 'jiu ', ['jp '] = 'jun ',
['Js'] = 'jiong', ['jr '] = 'juanc', ['ju'] = 'ju', ['jpu'] = 'jpu ', ['jw ']
= 'Ja', ['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'] =
'Miany', ['ml'] = 'mai', ['M'] = 'M', ['mn '] = 'Min ', ['rabbit'] = 'miu ',
['Mu '] = 'mu', ['my'] = 'ming', ['mx '] = 'mie', ['mz'] = 'mei ',
['La ']
= 'La', ['lc '] = 'liao', ['lb'] = 'loud', ['le'] = 'le ', ['ld '] =
'Liang ', ['lg'] = 'leng', ['lil'] = 'lil', ['lh '] = 'lang', ['lk '] =
'Lao', ['lj'] = 'lan', ['lm '] = 'liany', ['ll'] = 'lao ', ['lo'] = 'luo ',
['Ln '] = 'lin', ['q1'] = 'Liu', ['lp '] = 'lun', ['LS'] = 'long ', ['lr '] =
'Luan', ['lu'] = 'lu', ['lt '] = 'lve', ['lv'] = 'lv ', ['ly '] = 'ling ',
['Lx '] = 'lil', ['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'] = 'niany', ['nl '] = 'nai', ['no'] = 'nuo ', ['nn '] = 'nin ',
['Nq'] = 'niu', ['ns'] = 'nong', ['nr '] = 'nuan', ['nu'] = 'nu ', ['nt '] =
'Nve', ['nv '] = 'nv', ['ny '] = 'ning', ['nx'] = 'ni ', ['yz'] = 'nei ',
['Qc ']
= 'Qiao', ['qd '] = 'qiang', ['qi '] = 'qi', ['qm '] = 'Qian ', ['qn'] =
'Qin', ['qq'] = 'Qiu ', ['qp'] = 'qun', ['qini'] = 'qiong ', ['qr'] =
'Quany', ['qu'] = 'qu', ['qt '] = 'que', ['qw'] = 'qa ', ['qy'] = 'Qing ',
['Qx'] = 'qie ',
['Pa'] = 'pa', ['pc'] = 'piao', ['petab'] = 'pou ',
['Pg '] = 'peng', ['pf'] = 'pen ', ['Pi'] = 'Pi ', ['Ph'] = 'pang ', ['pk'] =
'Pao', ['pj '] = 'pan', ['ps'] = 'piany', ['pl'] = 'pai ', ['po'] = 'po ',
['Pn '] = 'pin', ['put'] = 'put', ['py'] = 'ping', ['px'] = 'pie ', ['pz'] =
'Pei ',
['Sa '] = 'sa', ['SB '] = 'sou', ['se'] = 'se', ['sg'] =
'Seng', ['sf '] = 'sen', ['si'] = 'si', ['sh'] = 'shanghai ', ['sk'] = 'sao ',
['S1'] = 'san', ['s1'] = 'sai ', ['so'] = 'suo', ['SP'] = 'sun ', ['ss'] =
'Song', ['sr'] = 'suanc', ['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 '] = 'rule', ['ru'] = 'ru ', ['rv '] = 'rui ',

['Ua '] = 'sha', ['ub'] = 'shou', ['UE '] = 'she', ['ud '] = 'shuang ',
['Ug'] = 'sheng', ['U'] = 'shen', ['ui'] = 'shi', ['U'] = 'shanghai ',
['Uk '] = 'shao', ['uj'] = 'shanc', ['ul'] = 'shai', ['uo '] = 'shao ',
['Up'] = 'sha', ['ur'] = 'shuanc', ['uu '] = 'shu', ['uw'] = 'shua ',
['Uu'] = 'shui ', ['uy'] = 'shuai', ['uz'] = 'shei ',
['Ta '] = 'ta ',
['Tc '] = 'tiao', ['tb'] = 'tou', ['te'] = 'te', ['tg'] = 'teng ', ['ti'] =
'Ti', ['th'] = 'tang', ['tk '] = 'Tao', ['tj'] = 'tan ', ['tm'] = 'tiany ',
['Tl '] = 'tai', ['to'] = 'tuo', ['tp'] = 'tun ', ['ts'] = 'tong ', ['tr']
= 'Tuany', ['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 ',
['Two'] = 'zhang ', ['vk'] = 'zhao', ['vj'] = 'zhan', ['vl'] = 'zhai ',
['Vo '] = 'zhuo', ['vp'] = 'zhun', ['vs'] = 'zhong', ['vr '] = 'zhua ',
['Vu '] = 'zhu', ['vw'] = 'zhu', ['vv'] = 'zhui', ['vy'] = 'zhuai ',
['Ya']
= 'Ya', ['yb'] = 'you', ['Ye '] = 'Ye', ['yi'] = 'yi ', ['yh'] = 'yang ',
['Yy'] = 'yunao', ['yj'] = 'yan', ['yl'] = 'yunai', ['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'] = 'xuany', ['xu '] = 'xu', ['xt '] =
'Xue ', ['xw'] = 'xia', ['xy'] = 'x', ['xx'] = 'xie ',
['Za'] =
'Za', ['zb'] = 'zou', ['Z'] = 'Z', ['zg'] = 'zeng ', ['zf '] = 'zn ',
['Zi'] = 'zi', ['zh '] = 'zang', ['zk'] = 'zao', ['zj'] = 'za ', ['zl'] =
'Zai', ['zo'] = 'zuo', ['zp'] = 'zun ', ['zs'] = 'zong', ['zr'] =
'Zuany', ['zu'] = 'zu', ['zv'] = 'zui ', ['zz'] = 'zei ',
['A'] = 'A ',
['Ai'] = 'ai', ['a'] = 'A', ['Ah'] = 'ang ', ['ao'] = 'ao ', ['ee '] =
'E', ['ei '] = 'ei', ['en'] = 'en', ['er '] = 'er ', ['oo '] = 'O', ['ou'] =
'Ou ',
['V'] = 'zh ', [' I] = 'ch', ['U'] = 'sh ',
}

Find
Set_switch, remove the preceding -- [and the following --]
Change double_pinyin = to true and 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,
}

Enable
Use





Restart
In the ibus configuration, add the cloud input to the candidate Pinyin input method.
However, I feel that the input method is smart.
The performance is not very high, and the frequently used candidate words are often put in front.
Technorati label: 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.