300Tang is a simple app that periodically shows you random Tang poetry. I wrote this GNOME extension with C and GTK+ for myself to display a different poem periodically on my desktop. I used this resource to download the 320 poems in json format.
If you don't interact with the window, a new poem will be displayed after a while. You can choose to save it for later, or copy it to your clipboard.
You need to have GTK+.
To compile the source code, use
gcc 300Tang.c `pkg-config --cflags --libs gtk+-3.0` -o 300Tang
and then run it with
./300Tang
(incomplete)
- Add actual extension files like metadata and package with flatpak
- Reformat the code with GNU style indentation
- Add random poem selection
- Add option to save and/or copy to clipboard
- Add Pinyin and English (need to find machine-readable source for this)
MIT.