Fcitx5自製碼表輸入法


以下是一個在 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

改裝後的托盤圖示 (英文 + 中文)

Fixing Glitching UI and Video Playback of Vivaldi on Raspberry Pi


The video playback problem used to bother me a lot, it happens whenever an version update occurs, such as 7.0 to 7.1. Since the pre-installed chromium browser on raspberry pi os has no problem playing html5 video, so i think the existing shared object libraries might be workable on vivaldi. Here’s an easy way i tried to get things work without downloading files from snap:

1. update vivaldi browser to the latest version (currently 7.1.3570.58 Stable 64-bit )

2. copy libffmpeg.so from chromium to vivaldi directory and rename it as libffmpeg.so.7.1 to match the current vivaldi version

sudo cp /usr/lib/chromium-browser/libffmpeg.so /opt/vivaldi/libffmpeg.so.7.1

3. restart vivaldi

4. in order to check if proprietary media works, visit  HTML5 Proprietary Media on Linux and the success video will play.

5. disable gpu-rasterization so the messy startpage and layout back to normal

vivaldi://flags/#enable-gpu-rasterization

It seems everything works fine after all


OS : RaspberryPi OS Bullseye Backport (arm64)
Vivaldi : 7.1.3570.58 stable (64-bit)
Chromium : 126.0.6478.164 Built on Debian , running on Debian 11 (64-bit)

樹莓派安裝Shutter(Bullseye)


1. 由於 Shutter 在 Bullseye Backports 軟件倉庫裡,因此需要首先加入安裝源

sudo nano /etc/apt/sources.list

2. 在 sources.list 添加這行

deb https://deb.debian.org/debian bullseye-backports main contrib non-free

3. 保存後更新

sudo apt update

4. shutter 需要新版本的 libgtk3-imageview-perl (>=10) 依賴包

sudo apt install -t bullseye-backports libgtk3-imageview-perl

5. 安裝 shutter

sudo apt install shutter

6. 查看 shutter 是否安裝成功

shutter --version