以下是一個在 debian 11 下基於 fcitx5 製作的碼表輸入法 (前提已安裝 fcitx5-table)
1. 安裝 libime_tabledict
sudo apt-get install libime-bin
2. 下載想要的碼表 (.txt)
https://github.com/fcitx/fcitx5-table-extra/tree/master/tables
"wget -c https://raw.githubusercontent.com/fcitx/fcitx5-table-extra/master/tables/cantonese.txt"
3. 對下載回來的 .txt 碼表內容進行修改以符合自己的使用需要(比如增補詞匯)

4. 然後將 .txt 碼表 compile 成字典(eg. cantonese.main.dict)
libime_tabledict cantonese.txt cantonese.main.dict
5. 把編譯後的字典 .dict 拷貝到 fcitx5 的 table 目錄中
sudo install -Dm 644 cantonese.main.dict /usr/share/fcitx5/table
6. 下載配置檔 (.conf.in)
https://github.com/fcitx/fcitx5-table-extra/tree/master/tables
"wget -c https://raw.githubusercontent.com/fcitx/fcitx5-table-extra/master/tables/cantonese.conf.in"
7. 用文字編輯器打開 cantonese.conf.in 并修改以下內容
[InputMethod]
Name=Cantonese Pinyin # 輸入法名稱
Icon=fcitx_cantonese # 輸入法的托盤圖示 (存放位置在第14點有寫)
Label=廣 # 輸入法托盤顯示名稱
LangCode=zh_HK
Addon=table
Configurable=True
[Table]
File=table/cantonese.main.dict # 字典的位置 (等於 usr/share/fcitx5/table/cantonese.main.dict)
8. 修改後保存并拷貝到 fcitx5 的 inputmethod 目錄
sudo install -Dm 644 cantonese.conf /usr/share/fcitx5/inputmethod/cantonese.conf
9. 重新啟fcitx5,在輸入法設定框把新增的輸入法移到左面就可以使用了

10. 下載托盤圖示
https://fl.us.mirror.archlinuxarm.org/aarch64/extra/fcitx5-table-extra-5.1.7-1-any.pkg.tar.xz
11. 解壓 fcitx5-table-extra-5.1.7-1-any.pkg.tar.xz
tar -xvf fcitx5-table-extra-5.1.7-1-any.pkg.tar.xz
12. 得到一個 /usr 文件夾, 托盤圖示在 /icons 裡

13. 套件裡的托盤圖示

14. 把選好的圖示放到系統 fcitx5 的目錄
/usr/share/icons/hicolor/48x48/apps/fcitx_cantonese.png #要跟 cantonese.conf 裡 “Icon=fcitx_cantonese“ 一致
15. 如果覺得下載的托盤圖示不搭調,可以自己做或是網上找其他的
** 樹莓派作業系統的托盤圖示(英文輸入下)在這裡
/usr/share/icons/PiXflat/48x48/devices/input-keyboard.png
改裝後的托盤圖示 (英文 + 中文)
