file dict.db is in line with CC-CEDIT as of 28/01/2026
place dict.db and clipboard_lookup.py in chosen (the same) location; place chinese-lookup-wrapper.sh in ~/bin (create ~/bin if it doesn't already exist);
Ubuntu/Ubuntu-Studio wayland tested (should work on most debian based distros)
install any missing dependencies if prompted:
python3-sqlite3 # Usually pre-installed
python3-pypinyin
pip install pypinyin
wl-clipboard # Clipboard access python3-notify2 # Desktop notifications
xclip # Clipboard access python3-notify2 # Desktop notifications
libnotify-bin # Notification daemon dbus # Message bus system
sudo apt install python3-pypinyin xclip python3-notify2 libnotify-bin
(for troubleshooting - optional) python3-dbus # DBus Python bindings gir1.2-gtk-3.0 # GTK/GObject introspection (for alternative clipboard)
Most Ubuntu/Debian systems already have python3-sqlite3, dbus, and libnotify-bin installed by default.