Ubuntu與嘸蝦米: 在fcitx下,(boshiamy)嘸蝦米的使用最為順暢、穩定!(新酷音、m17n、倉頡、輕鬆法亦適用) [論壇 - Ubuntu 與中文]


正在瀏覽:   1 名遊客


 到底部   前一個主題   下一個主題  [無發表權] 請登錄或者註冊

« 1 2 3 (4) 5 »


回覆: Ubuntu與嘸蝦米: 在fcitx下,(boshiamy)嘸蝦米的使用最為順暢、穩定!(新酷音、m17n、倉頡、輕鬆法亦適用)
會員一級
註冊日期:
2014/5/15 23:11
所屬群組:
已註冊使用者
等級: 1
HP : 0 / 0
MP : 0 / 0
EXP: 0
離線
工作日記~0
Posted on May 15, 2014

剛開始工作下班後,為了解決無聊所以就去賣中古電腦的地方買了一台電腦,花了新台幣 6000 元,配備如下:

記憶體 : 2.0 GiB
處理器 : Intel® Celeron(R) CPU E1200 @ 1.60GHz × 2
繪圖 : Gallium 0.4 on NV86
磁碟 : 160 G
OS : Windows XP SP3
剛開始時,只是打發時間,後來呢被網路上的一些網站所吸引,於是心裡有了想要架設網站的想法 !

於一個多星期,因為想架個網站,就去買了一個網址,花了5百多元註冊了一個 Domain ,買好了 Doman 後,因為身上的錢不夠所以在網路上四處找免費的主機,註冊了一堆帳號,當初一開始是單純的想要個免費的空間及代管,後來呢,我現到了免費主機經銷模式,結果註冊了一堆帳號,很多都不能用我自己的 Domain ,且全都是外國網站,結果發生了很多東西我不會用之類的事情,我的英文真的是不好,和客服完全無法對話,真的很慘,曾經考慮過用國內的主機,但是國內的主機價格和國外真的是天差地,甚是有的是直接在國外買便宜的服務,然後在國內用相對有利潤的價格提供給使用者,不過相對也是有好處啦,出了問題後好處理,畢竟語言相同。不過我還是找到了一個國外的免費主機可以支持我的 Domain ,就用了這個主機了,因為註冊了一堆帳號,很多都忘光了。

找到了免費的主機後,開始要學怎麼架網站的相關知識,開始在網路查詢文章,下載文件,後來電腦中毒了。接著就找防毒軟體等等之類的程式來解決,後來呢雪球越滾越大,電腦系統完全壞了,我的 OS 是 Windows XP SP3 由於是去中古電腦那裡買的,所
以我也沒有原版的軟體可以重灌,於是在上班中午休息的時間,快速的把我那台騎了十機年的摩托車加進到時速 / 80 Km ,把手中的電腦及400元交給老闆後,就急著趕回去上班,下班拿到電腦回到我的小窩時,感覺好開心,終於電腦又回復正常了。

接著繼續上網看有關如何架設網站的資料及影片,後來選了 Drupal 來當我開發網站的 CMS ,接著到處找資料看影片,學習要如何使用,結果發現還真的很難,就在這段過
程中,我的首頁被綁架了,於是又開始找資料看要如何解決,一些教我怎麼重設的文章所教的方法我一一去試,結果都是無效,後來就找看看有沒有什麼軟體可以幫助我,接著就這個軟體沒用,就在接著找下一個來解決,結果發現這個問頭解決了,後續冒出連我自己都不曉得怎麼解決的一堆問題,什麼記憶體不能為 Read / Write ,電腦有時順有
頓,有時發出~叮咚~咚叮的聲音,一發出這個聲音時,電腦就停好久,有了上次的經驗後,我辛辛苦苦找的到 PDF 檔,我很果決的用 7z 壓縮後,馬上上傳到我的Google硬碟上,後來發現有 Lunix 這個系統這以使用,而且都是免費居多,就找了很多資料教人怎麼用 USB 隨身碟 做開機程式來安裝 Linux ,接著呢,不斷重覆下載程式使用看要怎麼把ISO 的檔案燒去隨身碟裡,接著我三更半夜跑到 7 – 11 買了一個 8 G 隨身碟 花了我 299 元,天真的我以為只要把 ISO 複製到隨身碟就 OK 了,然著就用隨身碟來灌 Lunix ,後來發現,疑 ~! 電腦怎麼都不會跑,一直保持在開機的黑畫面,重覆試了 N 個小時,想說怎麼都一直沒安裝,不曉得怎麼關機的我,就直接按電源了 ~! N 個小時後,我想說可能方法不對,就想說在進 Windows 裡在看看教學好了,結果畫面居然變藍色白字,出現一堆英文,最下面顯示 Jraid.sys 出問題,後來我就去中古電腦的老闆那邊問,我的電腦進不去,請問要怎麼把 Lunix 灌進隨身碟裡,讓隨身碟來安裝 Linux ,結果那裡的學徒說他不會,冏~ ,說他只會曉得怎麼去看電腦裡的什麼東西壞了,接著我回去要把電腦拿到中古電腦那裡重灌系統好了,結果路上下大雨,馬上路邊停著把雨衣拿出來,雨衣不是穿在我身上,而是套在電腦上,哈哈,到了店裡之後,我碰到老闆了,從買電腦不到一個月的時間,我重灌了兩次電腦,後來問老問 Linux 要怎麼灌 ? 老闆說以我的能力應該灌不起來,說我沒系統基礎,後來我堅持要灌 Linux ,老闆就千交代,萬交代,記得不要把 Linux 灌在 Windows 系統裡的那個分區,我就跟他說”好”,我就把 400 元重灌 XP 的錢,及另外把壞的硬碟換成另一個硬碟,300 元,合計 700 元交給了老闆,老闆順便送了我一張 Linux 的 CD ,我就很高興的回去安裝,然後安裝好了才發現是伺服器版本,不是桌面版的,黑色的畫面,滿滿的英文字 ~ 我”冏”了~

接著我想說,不然進 Windows 裡找資料好了,才發現,我的 Window 被 Linux 吃掉了…天啊,才不到半小時的時間啊,快瘋了,電腦又進入無主人的狀態了,結果我去網咖,在找找怎麼用隨身碟灌 Linux ,接著就碰到有關 Ubuntu 的介紹,看了一堆教學文,我終於成功的把 Ubuntu 燒進我的隨身碟了,接著回到我的小窩裡,把隨身碟插了進去,終於看到圖形介面的 Ubuntu 後,我好感動~

安裝好了之後,我想灌嘸蝦米才發現不像 XP 一樣,下載了之後點兩下就OK了,還牽涉到所謂的 root 這個問題,為了這個問題,我花了三天的時間不斷的試,不斷的重新安裝 Linux 終於讓我知道什麼是 root 了,為什麼花了三天?因為我亂看教學文,把一些桌面的東西都弄的怪怪的,於是就重新安裝,終於小懂了什麼是 root 之後,發現嘸蝦米還要配什麼 scim gcin fcitx 等等的,於是又慢慢試一直試,一試再試,我好像電腦桌面又變的怪怪的了,不知道又重新灌了幾次,我終於花了四天的時間,在我的 Ubuntu Linux 裡灌好了嘸蝦米,我真的好感動,就上來發了這篇文章~!真的真的很感動,我可以順利的打…中…文…了,而不用一指一指的天下皆一指的慢慢輸入中文了,安裝到終於弄懂怎麼裝輸入法我花了八天,也許這在 Windows 裡,不用幾分鐘,我花了八天 0.0v

Thank you for share~! thank u very much ~

PS:
另外有各疑問,心裡一直不懂,sudo add-apt-repository ppa:fcitx-team/nightly 這一行到底是什麼意思?一直困擾著我,不曉得為什麼,也許在下次改版或是電腦出來了什麼問題我也許又不曉得要花幾天去解決嘸蝦米的問題~!

2014/5/15 23:17
應用擴展 工具箱
回覆: Ubuntu與嘸蝦米: 在fcitx下,(boshiamy)嘸蝦米的使用最為順暢、穩定!(新酷音、m17n、倉頡、輕鬆法亦適用)
會員四級
註冊日期:
2010/10/28 17:23
來自 台灣-台南市
所屬群組:
已註冊使用者
等級: 19
HP : 0 / 465
MP : 149 / 17588
EXP: 61
離線
pai22640 寫到:
另外有各疑問,心裡一直不懂,sudo add-apt-repository ppa:fcitx-team/nightly 這一行到底是什麼意思?一直困擾著我,不曉得為什麼,也許在下次改版或是電腦出來了什麼問題我也許又不曉得要花幾天去解決嘸蝦米的問題~!

這行應該是加入fcitx輸入法的PPA,讓日後fcitx更新更方便。

2014/5/16 11:28
lubuntu 16.04.2 (AMD64)
ASUS K53BR筆電
RAM: 1.5GB
應用擴展 工具箱
回覆: Ubuntu與嘸蝦米: 在fcitx下,(boshiamy)嘸蝦米的使用最為順暢、穩定!(新酷音、m17n、倉頡、輕鬆法亦適用)
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 37
HP : 0 / 905
MP : 679 / 30304
EXP: 23
離線
reppk 寫到:
pai22640 寫到:
另外有各疑問,心裡一直不懂,sudo add-apt-repository ppa:fcitx-team/nightly 這一行到底是什麼意思?一直困擾著我,不曉得為什麼,也許在下次改版或是電腦出來了什麼問題我也許又不曉得要花幾天去解決嘸蝦米的問題~!

這行應該是加入fcitx輸入法的PPA,讓日後fcitx更新更方便。


關於PPA的概念,可以先參考這篇的說明。

看上面的網頁,如果看簡體不習慣的話,瀏覽器可以安裝同文堂, 支援很多種瀏覽器。

或是打指令查詢「add-apt-repository」的用法
$ man add-apt-repository

另外可以查詢「ubuntu ppa」,或是「personal package archives」,或是「add-apt-repository」查詢更多資料。

https://help.ubuntu.com/community/Repositories/CommandLine


add-apt-repository 是一個 python 的指令

$ type add-apt-repository
-------------------------------------------
add-apt-repository is /usr/bin/add-apt-repository
-------------------------------------------

$ vi /usr/bin/add-apt-repository


根據「這篇」和實際測試(14.04)。

「add-apt-repository」屬於 package「software-properties-common
package「software-properties-common」的 source package 是「software-properties

實際測試如下
#下載package
$ apt-get download software-properties-common
$ dpkg -x software-properties-common_0.92.37.1_all.deb
$ ls software-properties-common/usr/bin/ -l

有兩個指令「add-apt-repository」和「apt-add-repository」
「apt-add-repository」只是一個「symbolic link」到「add-apt-repository」

# 下載 source package
$ apt-get source software-properties-common

會看到有一行訊息
--------------------------------------------------------
Picking 'software-properties' as source package instead of 'software-properties-common'
--------------------------------------------------------

$ vi software-properties-0.92.37.1/debian/control
就會看到這個「source package」拆了很多「package」




另外題外話。
我這幾天剛好看到這篇,也可以當作的參考資料。


2014/5/16 12:20
應用擴展 工具箱
回覆: Ubuntu與嘸蝦米: 在fcitx下,(boshiamy)嘸蝦米的使用最為順暢、穩定!(新酷音、m17n、倉頡、輕鬆法亦適用)
會員四級
註冊日期:
2010/10/28 17:23
來自 台灣-台南市
所屬群組:
已註冊使用者
等級: 19
HP : 0 / 465
MP : 149 / 17588
EXP: 61
離線
請問目前fcitx的嘸蝦米字碼表跟官方的字碼表有差別嗎? 平時用官方的用習慣了,不知道如果換成fcitx的會不會有落差?
另外,不同輸入法框架的字碼表是不是無法直接複製後使用? 因為目前嘸蝦米官方只有SCIM、gcin、IBus三種,沒有支援fcitx。

PS:目前是用gcin,但現在Lubuntu預裝fcitx,想說哪天也來試試。

2015/11/5 22:50
lubuntu 16.04.2 (AMD64)
ASUS K53BR筆電
RAM: 1.5GB
應用擴展 工具箱
回覆: Ubuntu與嘸蝦米: 在fcitx下,(boshiamy)嘸蝦米的使用最為順暢、穩定!(新酷音、m17n、倉頡、輕鬆法亦適用)
版主
註冊日期:
2008/7/14 0:03
來自 螢幕的另一端
所屬群組:
網站管理員
已註冊使用者
討論區管理群
等級: 33
HP : 0 / 810
MP : 514 / 36032
EXP: 40
離線
初學者最好還是先將linux系統安裝在 vmware or virtualbox 的環境裡測試,不要直接安裝在實體機上面,才不會把系統弄壞了,你又沒有第2台電腦可以上網找資料,那就要哭哭了~

2015/11/6 1:07
應用擴展 工具箱
回覆: Ubuntu與嘸蝦米: 在fcitx下,(boshiamy)嘸蝦米的使用最為順暢、穩定!(新酷音、m17n、倉頡、輕鬆法亦適用)
會員四級
註冊日期:
2010/10/28 17:23
來自 台灣-台南市
所屬群組:
已註冊使用者
等級: 19
HP : 0 / 465
MP : 149 / 17588
EXP: 61
離線
用了fcitx一年多,大致上還算書慣,只是有些小問題:
1. 符號的輸入跟原版嘸蝦米不太一樣,例如要打「^」按Shift+6卻會出現「……」,不知是不是設定有誤。
2. 日文假名似乎是半形字,如,跟一般用的全形字不同。
不知道有沒有辦法解決?

2017/2/27 23:31
lubuntu 16.04.2 (AMD64)
ASUS K53BR筆電
RAM: 1.5GB
應用擴展 工具箱
回覆: Ubuntu與嘸蝦米: 在fcitx下,(boshiamy)嘸蝦米的使用最為順暢、穩定!(新酷音、m17n、倉頡、輕鬆法亦適用)
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 37
HP : 0 / 905
MP : 679 / 30304
EXP: 23
離線
reppk 寫到:
用了fcitx一年多,大致上還算書慣,只是有些小問題:
1. 符號的輸入跟原版嘸蝦米不太一樣,例如要打「^」按Shift+6卻會出現「……」,不知是不是設定有誤。
2. 日文假名似乎是半形字,如,跟一般用的全形字不同。
不知道有沒有辦法解決?



簡單紀錄一下我探索的步驟,讓您參考,讓您可以有探索的起點。

## 相關套件

* fcitx-table-boshiamy (Source Package: fcitx-table-extra)
* fcitx-modules (Source Package: fcitx)

## 探索步驟

執行下面指令,使用「boshiamy」當關鍵字,查詢相關的套件。


$ apt-cache search boshiamy



顯示


fcitx-table-boshiamy - Flexible Input Method Framework - Boshiamy table



找到一個套件「fcitx-table-boshiamy」。


執行下面指令,下載「fcitx-table-boshiamy」這個套件。


$ apt-get download fcitx-table-boshiamy




執行下面指令,解開「fcitx-table-boshiamy」這個套件


$ dpkg -x fcitx-table-boshiamy_0.3.7-2_all.deb fcitx-table-boshiamy



解開來後,會看到一個資料夾「fcitx-table-boshiamy」

執行下面指令,觀看「fcitx-table-boshiamy」這個資料夾的結構


$ tree fcitx-table-boshiamy



顯示


fcitx-table-boshiamy
└── usr
    └── share
        ├── doc
        │   └── fcitx-table-boshiamy
        │       ├── changelog.Debian.gz
        │       └── copyright
        ├── fcitx
        │   ├── imicon
        │   │   └── boshiamy.png
        │   └── table
        │       ├── boshiamy.conf
        │       └── boshiamy.mb
        └── icons
            └── hicolor
                └── 64x64
                    └── apps
                        └── fcitx-boshiamy.png

11 directories, 6 files



執行下面指令,觀看「fcitx-table-boshiamy/usr/share/fcitx/table/boshiamy.conf」這個檔案的內容。


$ cat fcitx-table-boshiamy/usr/share/fcitx/table/boshiamy.conf



若有安裝「fcitx-table-boshiamy」這個套件的話,執行下面指令觀看「/usr/share/fcitx/table/boshiamy.conf」這個檔案的內容。


$ cat /usr/share/fcitx/table/boshiamy.conf




執行下面指令,下載「fcitx-table-boshiamy」的「Source Package」,也就是「fcitx-table-extra」。


$ apt-get source fcitx-table-boshiamy



下載下來後,會看到一個資料夾「fcitx-table-extra」。


執行下面指令,觀看「fcitx-table-extra」這個資料夾的結構。


$ tree fcitx-table-extra



顯示


fcitx-table-extra-0.3.7
├── AUTHORS
├── ChangeLog
├── CMakeLists.txt
├── COPYING
├── COPYING.GPL3
├── debian
│   ├── changelog
│   ├── compat
│   ├── control
│   ├── copyright
│   ├── fcitx-table-array30-big.install
│   ├── fcitx-table-array30.install
│   ├── fcitx-table-boshiamy.install
│   ├── fcitx-table-cangjie3.install
│   ├── fcitx-table-cangjie5.install
│   ├── fcitx-table-cangjie-big.install
│   ├── fcitx-table-cantonese.install
│   ├── fcitx-table-cantonhk.install
│   ├── fcitx-table-easy-big.install
│   ├── fcitx-table-jyutping.install
│   ├── fcitx-table-quick3.install
│   ├── fcitx-table-quick5.install
│   ├── fcitx-table-quick-classic.install
│   ├── fcitx-table-scj6.install
│   ├── fcitx-table-stroke5.install
│   ├── fcitx-table-t9.install
│   ├── fcitx-table-wubi-large.install
│   ├── fcitx-table-wu.install
│   ├── fcitx-table-zhengma.install
│   ├── fcitx-table-zhengma-large.install
│   ├── README.source
│   ├── rules
│   ├── source
│   │   └── format
│   └── watch
├── icons
│   ├── CMakeLists.txt
│   ├── fcitx-array30-big.png
│   ├── fcitx-array30.png
│   ├── fcitx-boshiamy.png
│   ├── fcitx-cantonese.png
│   ├── fcitx-cantonhk.png
│   ├── fcitx-easy-big.png
│   ├── fcitx-jyutping.png
│   ├── fcitx-quick3.png
│   ├── fcitx-quick5.png
│   ├── fcitx-quick-classic.png
│   ├── fcitx-scj6.png
│   ├── fcitx-stroke5.png
│   ├── fcitx-t9.png
│   ├── fcitx-wu.png
│   └── fcitx-zhengma.png
├── NEWS
├── po
│   ├── CMakeLists.txt
│   ├── de.po
│   ├── fcitx-table-extra.pot
│   ├── ja.po
│   ├── zh_CN.po
│   └── zh_TW.po
├── README
└── tables
    ├── array30-big.conf.in
    ├── array30-big.txt
    ├── array30.conf.in
    ├── array30.txt
    ├── boshiamy.conf.in
    ├── boshiamy.txt
    ├── cangjie3.conf.in
    ├── cangjie3.txt
    ├── cangjie5.conf.in
    ├── cangjie5.txt
    ├── cangjie-big.conf.in
    ├── cangjie-big.txt
    ├── cantonese.conf.in
    ├── cantonese.txt
    ├── cantonhk.conf.in
    ├── cantonhk.txt
    ├── CMakeLists.txt
    ├── easy-big.conf.in
    ├── easy-big.txt
    ├── jyutping.conf.in
    ├── jyutping.txt
    ├── quick3.conf.in
    ├── quick3.txt
    ├── quick5.conf.in
    ├── quick5.txt
    ├── quick-classic.conf.in
    ├── quick-classic.txt
    ├── scj6.conf.in
    ├── scj6.txt
    ├── stroke5.conf.in
    ├── stroke5.txt
    ├── t9.conf.in
    ├── t9.txt
    ├── wubi-large.conf.in
    ├── wubi-large.txt
    ├── wu.conf.in
    ├── wu.txt
    ├── zhengma.conf.in
    ├── zhengma-large.conf.in
    ├── zhengma-large.txt
    └── zhengma.txt

5 directories, 98 files



執行下面指令,觀看「fcitx-table-extra-0.3.7/tables/boshiamy.txt」這個檔案的內容。


$ less fcitx-table-extra-0.3.7/tables/boshiamy.txt



使用「あ」當關鍵字,查詢「fcitx-table-extra-0.3.7/tables/boshiamy.txt」這個檔案。


$ grep 'あ' fcitx-table-extra-0.3.7/tables/boshiamy.txt -n



顯示


26602:ja, あ




使用「ja,」當關鍵字,查詢「fcitx-table-extra-0.3.7/tables/boshiamy.txt」這個檔案。


$ grep 'ja,' fcitx-table-extra-0.3.7/tables/boshiamy.txt



顯示


ja, あ
ja, ぁ
ja,v ぁ



執行


$ grep '……' fcitx-table-extra-0.3.7/tables/boshiamy.txt



沒有任何顯示


執行下面指令,下載「fcitx-table」的「Source Package」,也就是「fcitx


$ apt-get source fcitx-table



執行下面指令,查詢「……」相關的檔案。


$ grep '……' fcitx-4.2.9.1/* -R



顯示


fcitx-4.2.9.1/ChangeLog: * 修复一个设置输入法切换快捷键的问题(笔误……)
fcitx-4.2.9.1/ChangeLog: * ……
fcitx-4.2.9.1/ChangeLog: * ……
fcitx-4.2.9.1/ChangeLog: * ……
fcitx-4.2.9.1/data/punc.mb.zh_HK:^ ……
fcitx-4.2.9.1/data/punc.mb.zh_CN:^ ……
fcitx-4.2.9.1/data/punc.mb.zh_TW:^ ……
fcitx-4.2.9.1/doc/wb_fh.htm: <td align="center">……</td>




執行


$ dpkg -S punc.mb.zh_TW



顯示


fcitx-modules: /usr/share/fcitx/data/punc.mb.zh_TW



表示「/usr/share/fcitx/data/punc.mb.zh_TW」是屬於「fcitx-modules」這個套件。


執行


$ dpkg -L fcitx-modules | grep punc




顯示


/usr/lib/x86_64-linux-gnu/fcitx/fcitx-punc.so
/usr/share/fcitx/addon/fcitx-punc.conf
/usr/share/fcitx/data/punc.mb.zh_CN
/usr/share/fcitx/data/punc.mb.zh_TW
/usr/share/fcitx/data/punc.mb.zh_HK




執行下面指令,觀看「/usr/share/fcitx/data/punc.mb.zh_TW」的內容


$ cat /usr/share/fcitx/data/punc.mb.zh_TW



顯示


. 。
, ,
? ?
: :
; ;
< 《 》
> 〈 〉
\ 、
! !
$ $
^ ……
* ×
_ ——
( (
) )
[ 「
] 」
{ 『
} 』
~ ~




================================================================================


## 如何編譯

執行下面指令,下載「fcitx-table-boshiamy」的「Source Package」,也就是「fcitx-table-extra


$ apt-get source fcitx-table-extra



或是執行


$ apt-get source fcitx-table-boshiamy




執行下面指令,觀看編譯所需的套件


$ apt-cache showsrc fcitx-table-extra | grep '^Build-Depends:'



或是執行


$ apt-cache showsrc fcitx-table-boshiamy | grep '^Build-Depends:'



顯示


Build-Depends: cmake, debhelper (>= 9), fcitx-bin (>= 1:4.2.8), fcitx-libs-dev (>= 1:4.2.8), fcitx-tools (>= 1:4.2.8), intltool



執行下面指令,安裝編譯所需的套件


$ sudo apt-get build-dep fcitx-table-extra



或是執行


$ sudo apt-get build-dep fcitx-table-boshiamy



執行下面指令,切換到「fcitx-table-extra-0.3.7」這個資料夾


$ cd fcitx-table-extra-0.3.7




執行下面指令,建立「build」這個資料夾


$ mkdir -p build



執行下面指令,切換到「build」這個資料夾


$ cd build




執行


$ cmake ..



顯示


-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'fcitx'
-- Found fcitx, version 4.2.9.1
-- Checking for module 'fcitx-config'
-- Found fcitx-config, version 4.2.9.1
-- Checking for module 'fcitx-utils'
-- Found fcitx-utils, version 4.2.9.1
-- fcitx4-config found /usr/bin/fcitx4-config
-- Found Fcitx: 4.2.9.1 (Required is at least version "4.2.8.4")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/tmp/fcitx-table-extra-0.3.7/build



然後執行


$ make



執行


$ ls tables/boshiamy* -1



顯示


tables/boshiamy.conf
tables/boshiamy.mb




對照上面提到的「dpkg -L fcitx-table-boshiamy」
可以看到下面兩個檔
/usr/share/fcitx/table/boshiamy.mb
/usr/share/fcitx/table/boshiamy.conf

================================================================================

下面紀錄,一開始我忘了要執行「apt-get build-dep」那一段,所做的因應步驟。

在執行「make」的時候,會看到下面的提示訊息


...略...
[ 15%] Built target fcitx-addon-apply-translation-4
Scanning dependencies of target table_data
[ 18%] Generating boshiamy.mb
/bin/sh: 1: TXT2MB-NOTFOUND: not found
tables/CMakeFiles/table_data.dir/build.make:79: recipe for target 'tables/boshiamy.mb' failed
make[2]: *** [tables/boshiamy.mb] Error 127
CMakeFiles/Makefile2:770: recipe for target 'tables/CMakeFiles/table_data.dir/all' failed
make[1]: *** [tables/CMakeFiles/table_data.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2



可以看到上面有一個關鍵字「TXT2MB-NOTFOUND」。

所以執行


$ apt-file search txt2mb





顯示


fcitx-tools: /usr/bin/txt2mb
fcitx-tools: /usr/share/man/man1/txt2mb.1.gz



執行


$ apt-cache show fcitx-tools



顯示


Package: fcitx-tools
Priority: optional
Section: universe/utils
Installed-Size: 605
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: IME Packaging Team <pkg-ime-devel@lists.alioth.debian.org>
Architecture: amd64
Source: fcitx
Version: 1:4.2.9.1-1ubuntu1.16.04.2
Replaces: fcitx (<< 1:4.2.9.1)
Depends: fcitx-bin (>= 1:4.2.9.1), libc6 (>= 2.14), libfcitx-config4 (>= 4.2.7), libfcitx-utils0 (>= 4.2.7)
Suggests: fcitx
Breaks: fcitx (<< 1:4.2.9.1)
Filename: pool/universe/f/fcitx/fcitx-tools_4.2.9.1-1ubuntu1.16.04.2_amd64.deb
Size: 77954
MD5sum: f8f8431ac86e97c9927a752e6e05baaf
SHA1: 5981cb2b82f2cf9e16f74ef1e8556cbd0a585adc
SHA256: 35e5a9daf476359a081866c2fc04c9c479369a60ac6fffac6ce5fec6f221f54b
Description-en: Flexible Input Method Framework - various tools
Fcitx is a input method framework with extension support, which provides
an interface for entering characters of different scripts in applications
using a variety of mapping systems.
.
It offers a pleasant and modern experience, with intuitive graphical
configuration tools and customizable skins and mapping tables. It is
highly modularized and extensible, with GTK+ 2/3 and Qt4 IM Modules, support
for UIs based on Fbterm, pure Xlib, GTK+, or KDE, and a developer-friendly
API.
.
This package provides the following tools:
* createPYMB: create a Pinyin data file (.mb)
* mb2org: convert a .mb data file to .org file
* mb2txt: convert a .mb data file to text file
* readPYBase: read Pinyin base file
* readPYMB: read Pinyin data file (.mb)
* scel2org: convert scel data file (Sougou) to .org file
* txt2mb: convert text file to .mb data file
Description-md5: 7b1008dde7050f5a61ca4951210c4e42
Homepage: https://github.com/fcitx/fcitx
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu



執行下面指令,安裝「fcitx-tools」這個套件。


$ sudo apt-get install fcitx-tools



執行


$ dpkg -L fcitx-tools



顯示


/.
/usr
/usr/bin
/usr/bin/scel2org
/usr/bin/mb2org
/usr/bin/readPYMB
/usr/bin/createPYMB
/usr/bin/txt2mb
/usr/bin/mb2txt
/usr/bin/readPYBase
/usr/share
/usr/share/doc
/usr/share/doc/fcitx-tools
/usr/share/doc/fcitx-tools/copyright
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/createPYMB.1.gz
/usr/share/man/man1/mb2txt.1.gz
/usr/share/doc/fcitx-tools/changelog.Debian.gz
/usr/share/man/man1/readPYMB.1.gz
/usr/share/man/man1/scel2org.1.gz
/usr/share/man/man1/mb2org.1.gz
/usr/share/man/man1/txt2mb.1.gz
/usr/share/man/man1/readPYBase.1.gz



================================================================================

## 如何使用「txt2mb」

執行下面指令,閱讀「txt2mb」使用說明

$ man txt2mb


執行下面指令,下載「fcitx-table-boshiamy」的「Source Package」,也就是「fcitx-table-extra


$ apt-get source fcitx-table-boshiamy



產生「test」資料夾


$ mkdir -p test



複製「boshiamy.txt」到「test/boshiamy.txt」


$ cp fcitx-table-extra-0.3.7/tables/boshiamy.txt test/



切換到「test」這個資料夾


$ cd test



執行下面指令,執行成功,就會產生一個檔案「boshiamy.mb」


$ txt2mb boshiamy.txt boshiamy.mb




## 相關網址

* GitHub / fcitx / fcitx / tools / cli / txt2mb.c

================================================================================

更多「套件操作實務」,請參考這個「索引」。


報告完畢


2017/2/28 15:52
應用擴展 工具箱
回覆: Ubuntu與嘸蝦米: 在fcitx下,(boshiamy)嘸蝦米的使用最為順暢、穩定!(新酷音、m17n、倉頡、輕鬆法亦適用)
會員一級
註冊日期:
3/29 9:53:17
所屬群組:
已註冊使用者
等級: 1
HP : 0 / 0
MP : 0 / 0
EXP: 0
離線
Hi,

我從軟體中心中找不到fcitx various tools的資訊。因為我已經安裝fcitx5的版本了,是不是要從別的位置安裝這個工具?
討論區中的資訊在新版22.04 LTS上已經看不到了。有人知道原因嗎?

Best Regards,
Tony Lin

3/30 11:26:48
應用擴展 工具箱
回覆: Ubuntu與嘸蝦米: 在fcitx下,(boshiamy)嘸蝦米的使用最為順暢、穩定!(新酷音、m17n、倉頡、輕鬆法亦適用)
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 37
HP : 0 / 905
MP : 679 / 30304
EXP: 23
離線
================================================================================

[回到索引]

================================================================================

# 關於「fcitx-tools」,「libime-bin」,「fcitx5-chinese-addons-bin」

================================================================================

TonyLinCyberView 寫到:
Hi,

我從軟體中心中找不到fcitx various tools的資訊。因為我已經安裝fcitx5的版本了,是不是要從別的位置安裝這個工具?
討論區中的資訊在新版22.04 LTS上已經看不到了。有人知道原因嗎?

Best Regards,
Tony Lin


您要找的是不是「fcitx-tools」這個「Package」,

您想要使用該「Package」提供的「工具集」。


/usr/bin/createPYMB
/usr/bin/mb2org
/usr/bin/mb2txt
/usr/bin/readPYBase
/usr/bin/readPYMB
/usr/bin/scel2org
/usr/bin/txt2mb
/usr/share/doc/fcitx-tools/changelog.Debian.gz
/usr/share/doc/fcitx-tools/copyright
/usr/share/man/man1/createPYMB.1.gz
/usr/share/man/man1/mb2org.1.gz
/usr/share/man/man1/mb2txt.1.gz
/usr/share/man/man1/readPYBase.1.gz
/usr/share/man/man1/readPYMB.1.gz
/usr/share/man/man1/scel2org.1.gz
/usr/share/man/man1/txt2mb.1.gz




我個人猜測「fcitx5」是不是已經沒有提供那些工具,或是該「Package」已經改名了,以下紀錄我的探索過程。

================================================================================

執行下面指令



apt-cache search fcitx | grep tool



顯示


fcitx-config-common - graphic Fcitx configuration tool - common files
fcitx-config-gtk - graphic Fcitx configuration tool
fcitx-tools - Flexible Input Method Framework - various tools
fcitx5-chinese-addons-bin - Chinese-related addon for fcitx5 (binary tools)
fcitx5-config-qt - configuration tool for Fcitx5 (Qt version)
libime-bin - Generic Input Method Implementation (tools)




================================================================================

執行下面指令



apt-cache search fcitx | grep tools



顯示


fcitx-tools - Flexible Input Method Framework - various tools
fcitx5-chinese-addons-bin - Chinese-related addon for fcitx5 (binary tools)
libime-bin - Generic Input Method Implementation (tools)



* fcitx-tools / filelist
* fcitx5-chinese-addons-bin / filelist
* libime-bin / filelist

================================================================================

執行下面指令



apt-cache search fcitx5 | grep tool



顯示


fcitx5-chinese-addons-bin - Chinese-related addon for fcitx5 (binary tools)
fcitx5-config-qt - configuration tool for Fcitx5 (Qt version)
libime-bin - Generic Input Method Implementation (tools)



================================================================================


執行下面指令



apt-cache search fcitx5 | grep tools



顯示


fcitx5-chinese-addons-bin - Chinese-related addon for fcitx5 (binary tools)
libime-bin - Generic Input Method Implementation (tools)



================================================================================

另外介紹一個輔助工具「apt-file」,預設是沒有安裝在系統裡的。

這個工具可以用來輔助查詢檔案屬於哪個「Package」,即使檔案沒有安裝在系統裡。

================================================================================

執行下面指令,安裝「apt-file


sudo apt-get install apt-file



安裝完成後,記得要執行下面資料,更新相關資料庫,才能查詢


sudo apt-file update



================================================================================

接著以「/usr/bin/txt2mb」為例,

執行下面指令,以「txt2mb」當作關鍵字來查詢


apt-file search txt2mb



顯示


fcitx-tools: /usr/bin/txt2mb
fcitx-tools: /usr/share/man/man1/txt2mb.1.gz



執行下面指令,以「/usr/bin/txt2mb」當作關鍵字來查詢


apt-file search '/usr/bin/txt2mb'



顯示


fcitx-tools: /usr/bin/txt2mb




表示「/usr/bin/txt2mb」是來自於「fcitx-tools」這個「Package」。

================================================================================

以「/usr/bin/scel2org」為例,

執行下面指令,以「scel2org」當作關鍵字來查詢


apt-file search scel2org



顯示


fcitx-tools: /usr/bin/scel2org
fcitx-tools: /usr/share/man/man1/scel2org.1.gz
fcitx5-chinese-addons-bin: /usr/bin/scel2org5



參見下面的「## 相關討論」紀錄連結

================================================================================

另外「fcitx5」和「fcitx」這兩個「Package」是「Conflict」的


執行下面指令,


apt-cache show fcitx5 | grep '^Conflicts'



顯示


Conflicts: fcitx (<< 1:5), fcitx-bin (<< 1:5), fcitx-data (<< 1:5)



執行下面指令,


apt-cache show fcitx | grep '^Conflicts'



顯示


Conflicts: fcitx (<< 1:5), fcitx-bin (<< 1:5), fcitx-data (<< 1:5)




apt-cache show fcitx5 | grep '^Conflicts'



顯示


Conflicts: fcitx5




================================================================================

所以當您安裝了「fcitx5」,

若此時執行「sudo apt-get install fcitx-tools」。

就會先將「fcitx5」移除,然後安裝「fcitx」。

會看到類似如下的資訊



...略...

The following packages will be REMOVED:
  fcitx5
The following NEW packages will be installed:
  fcitx fcitx-bin fcitx-config-common fcitx-config-gtk fcitx-data
  fcitx-frontend-all fcitx-frontend-gtk2 fcitx-frontend-gtk3
  fcitx-frontend-qt5 fcitx-module-dbus fcitx-module-kimpanel fcitx-module-lua
  fcitx-module-quickphrase-editor5 fcitx-module-x11 fcitx-modules fcitx-tools
  fcitx-ui-classic libfcitx-config4 libfcitx-core0 libfcitx-gclient1
  libfcitx-qt5-1 libfcitx-qt5-data libfcitx-utils0 libgettextpo0
  libpresage-data libpresage1v5 libtinyxml2.6.2v5 presage
0 upgraded, 28 newly installed, 1 to remove and 43 not upgraded.
Need to get 6,420 kB of archives.
After this operation, 22.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] 




這時候,若您不要繼續,記得不要按下「Enter」,

可以按下「Ctrl + c」離開,

或是按下「n」,接著按下「Enter」離開。

================================================================================


## 相關討論

* Ubuntu 22.04 LTS (Jammy Jellyfish) Released / 回覆 - #16
* demo-forum-case / fcitx5-table-extra / build_deb_from_github_source
* Arch Package / fcitx5-table-extra / Package Contents

> /usr/share/fcitx5/table/boshiamy.main.dict

* fcitx5-table-extra / tables / CMakeLists.txt


    COMMAND LibIME::tabledict ARGS "${CMAKE_CURRENT_SOURCE_DIR}/${table}.txt"
    "${CMAKE_CURRENT_BINARY_DIR}/${table}.main.dict")




## GitHub / fcitx

* Search: fcitx5
* fcitx5-table-extra
* fcitx5-chinese-addons / tools
* Search: libime
* libime / tools


## Ubuntu Package

* fcitx5-chinese-addons-bin / filelist


/usr/bin/scel2org5
/usr/share/doc/fcitx5-chinese-addons-bin/changelog.Debian.gz
/usr/share/doc/fcitx5-chinese-addons-bin/copyright




* libime-bin / filelist


/usr/bin/libime_history
/usr/bin/libime_migrate_fcitx4_pinyin
/usr/bin/libime_migrate_fcitx4_table
/usr/bin/libime_pinyindict
/usr/bin/libime_prediction
/usr/bin/libime_slm_build_binary
/usr/bin/libime_tabledict
/usr/share/doc/libime-bin/changelog.Debian.gz
/usr/share/doc/libime-bin/copyright



================================================================================

以上簡易探索,提供參考

報告完畢

================================================================================

[回到索引]

================================================================================

3/31 6:55:36
應用擴展 工具箱
回覆: Ubuntu與嘸蝦米: 在fcitx下,(boshiamy)嘸蝦米的使用最為順暢、穩定!(新酷音、m17n、倉頡、輕鬆法亦適用)
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 37
HP : 0 / 905
MP : 679 / 30304
EXP: 23
離線
================================================================================

[回到索引]

================================================================================

# 在「fcitx5」,如何編譯「boshiamy.txt」

================================================================================

延續上面「#39」最後「## 相關討論」那部份的紀錄

可以從

* Arch Package / fcitx5-table-extra / Package Contents

那裡看到

在「fcitx5」


/usr/share/fcitx5/table/boshiamy.main.dict




對照在「#37」提到的

在「fcitx」


/usr/share/fcitx/table/boshiamy.mb




也就是在「fcitx5」,應該不是使用「txt2mb boshiamy.txt boshiamy.mb」來產生「boshiamy.mb」

================================================================================

所以回到「fcitx5-table-extra」

* fcitx5-table-extra / tables / CMakeLists.txt


    COMMAND LibIME::tabledict ARGS "${CMAKE_CURRENT_SOURCE_DIR}/${table}.txt"
    "${CMAKE_CURRENT_BINARY_DIR}/${table}.main.dict")



可以看到上面關鍵的兩行

================================================================================

執行下面指令,安裝「libime-bin


sudo apt-get install libime-bin



安裝好後,執行下面指令


dpkg -L libime-bin



顯示


/.
/usr
/usr/bin
/usr/bin/libime_history
/usr/bin/libime_migrate_fcitx4_pinyin
/usr/bin/libime_migrate_fcitx4_table
/usr/bin/libime_pinyindict
/usr/bin/libime_prediction
/usr/bin/libime_slm_build_binary
/usr/bin/libime_tabledict
/usr/share
/usr/share/doc
/usr/share/doc/libime-bin
/usr/share/doc/libime-bin/copyright
/usr/share/doc/libime-bin/changelog.Debian.gz



也可以在網頁上看到上面的檔案列表

* libime-bin / filelist


================================================================================

可以看到其中有一個輔助工具「/usr/bin/libime_tabledict


執行下面指令


libime_tabledict -h



顯示


Usage: libime_tabledict [-du] <source> <dest>
-d: Dump binary to text
-u: User dict
-h: Show this help




================================================================================

接著來測試「libime_tabledict」的用法。

================================================================================

先執行下面指令,下載「boshiamy.txt


wget -c https://raw.githubusercontent.com/fcitx/fcitx5-table-extra/master/tables/boshiamy.txt




================================================================================

## Fcitx5 / 如何 Compile 「boshiamy.txt」

執行下面指令,將「boshiamy.txt」,compile 成「boshiamy.main.dict」



libime_tabledict boshiamy.txt boshiamy.main.dict



================================================================================

## Fcitx5 / 如何 Dump 「boshiamy.main.dict」

接著執行下面指令,將「boshiamy.main.dict」,dump 成「dump-boshiamy.txt」


libime_tabledict -d boshiamy.main.dict dump-boshiamy.txt




可以執行「less dump-boshiamy.txt」來觀看「dump-boshiamy.txt 」

可以看到類似如下的內容


KeyCode=',.[]abcdefghijklmnopqrstuvwxyz
Length=5
[Data]
a 對
aa 寸
aa 丶
aav 丶
aaa 鑫
aaa 龘
aaa 鑆
aaav 龘


...略...



可以對照觀看原始的「boshiamy.txt」。

================================================================================

[回到索引]

================================================================================

3/31 9:39:56
應用擴展 工具箱

« 1 2 3 (4) 5 »

 [無發表權] 請登錄或者註冊


可以查看帖子.
不可發帖.
不可回覆.
不可編輯自己的帖子.
不可刪除自己的帖子.
不可發起投票調查.
不可在投票調查中投票.
不可上傳附件.
不可不經審核直接發帖.