This generates beautiful Chinese characters to be used as screensaver on your e-Ink Kindles. Please have a look at http://px0.de/chinese-kindle-screensaver/ for more information and instructions on how to install the files on your Kindle.
- getMostFreqChars.py - takes a Chinese character frequency list, extracts a certain subset of it, and performs a couple of assorted operations (such as turning numerated pinyin into pinyin with diacritics). Currently, it is pretty inflexible and insists on using Jun Da's frequency list, but it can be easily adapted if you have something different in mind
- createScreensaverImage.py - actually draws the character in a way that I think is pretty. You're welcome to disagree and fork this!
- generateKindleScreensaverImages.py - the main program, which does little more than call the other two programs and store their output.
Each of these files can run by itself and give you an idea on what to expect.
I'm using a font called "华文黑体.ttf" to draw the character and translation. I'm not sure what its copyright is so I am not putting it up here. If you have it, just drop it into the 'resources' folder and everything should run. If you don't, choose another Chinese character font (that also includes roman letters), put into into the 'resources' folder and adapt createScreensaverImage.py.
The character frequency list on which this is based is the excellent work of Jun Da. The translations and pinyin are taken from from wonderful CC-EDICT and set in the beautiful Linux Libertine font.
#Output examples