湖濱散記部落格的樹心幽徑[login][主頁]
214:20130515成功在w3機器(Linux Fedora 17)的ibus裝嘸蝦米輸入法

(1)參考:REF:http://newtoypia.blogspot.tw/2012/07/ibus-table-boshiamy.html

(2)察看中文化設定:

[webadm@life ~]$ cat  /etc/sysconfig/i18n
\LANG="zh_TW.UTF-8"
SYSFONT="False"
[webadm@life ~]$

(3)裝ibus-table
[root@life webadm]# yum install ibus-table
Loaded plugins: langpacks, presto, refresh-packagekit
updates/17/i386/metalink                                 | 7.5 kB     00:00    
updates                                                  | 4.6 kB     00:00    
updates/primary_db                                       | 6.6 MB     00:01    
:

  Updating   : ibus-table-1.5.0.20130419-1.fc17.noarch                      1/2
  Cleanup    : ibus-table-1.5.0-2.fc17.noarch                               2/2
  Verifying  : ibus-table-1.5.0.20130419-1.fc17.noarch                      1/2
  Verifying  : ibus-table-1.5.0-2.fc17.noarch                               2/2

Updated:
  ibus-table.noarch 0:1.5.0.20130419-1.fc17                                    

Complete!
[root@life webadm]#

(4)察看是否有boshiamy.svg

[root@life webadm]# ls  /usr/share/ibus-table/icons
acommit.svg   english.svg      half-punct.svg  phrase.svg    tab-mode.svg
boshiamy.svg  full-letter.svg  ibus-table.svg  py-mode.svg   tcb-mode.svg
cb-mode.svg   full-punct.svg   ncommit.svg     scb-mode.svg  tc-mode.svg
chinese.svg   half-letter.svg  onechar.svg     sc-mode.svg
[root@life webadm]# ls  /usr/share/ibus-table/icons|grep boshiamy
boshiamy.svg
[root@life webadm]#

 

(5)下載並備妥編碼檔boshiamy.txt

[root@life webadm]# cp boshiamy.txt /usr/share/ibus-table/tables/

[root@life webadm]# cat /usr/share/ibus-table/tables/boshiamy.txt

:

zzrb    艞    100
zzw    籧    100
END_TABLE

(6)產生編碼資料庫檔boshiamy.db

[root@life webadm]# cd  /usr/share/ibus-table/tables/
[root@life tables]# ls
boshiamy.db  boshiamy.txt  template.txt
[root@life tables]# ls -l
總計 2124
-rw-r--r--. 1 root root 1908736  8月 17  2012 boshiamy.db
-rw-r--r--. 1 root root  255909  5月 15 07:33 boshiamy.txt
-rw-r--r--  1 root root    4653  4月 19 19:09 template.txt
[root@life tables]#  ibus-table-createdb -s boshiamy.txt -n boshiamy.db
[root@life tables]# ls -l
總計 4012
-rw-r--r--  1 root root 3842048  5月 15 07:36 boshiamy.db
-rw-r--r--. 1 root root  255909  5月 15 07:33 boshiamy.txt
-rw-r--r--  1 root root    4653  4月 19 19:09 template.txt
[root@life tables]#

(7)移除用戶的cache檔

[root@life ~]# ls ~webadm/.ibus
hunspell-tables  tables
[root@life ~]# ls ~webadm/.ibus/tables/
boshiamy-user.db  debug.log
[root@life ~]# ls ~webadm/.ibus/tables/boshiamy-user.db
/home/webadm/.ibus/tables/boshiamy-user.db
[root@life ~]# rm ~webadm/.ibus/tables/boshiamy-user.db
rm:是否移除普通檔案‘/home/webadm/.ibus/tables/boshiamy-user.db’? y
[root@life ~]#

(8)用戶重新登入並設定ibus

 


select id,article_id,topic,text from lt_articles_text where article_id =214; ok. update lt_articles set num_reads=num_reads +1 where id=214; ok.