Skip to content

Instantly share code, notes, and snippets.

View PeterDing's full-sized avatar
🪐
Working

Peter Ding PeterDing

🪐
Working
View GitHub Profile
@PeterDing
PeterDing / trans.py
Created June 12, 2011 14:32
rearranging the record that stardict saved to readable lines.
#!/usr/bin/env python
#########################################################
# I wrote the little script depended on following dictionaries:
# stardict-cced-2.4.2.tar.bz2, stardict-langdao-ec-gb-2.4.2.tar.bz2,
# stardict-ncce-ec-2.4.2.tar.bz2, stardict-xiangya-medical-2.4.2.tar.bz2
#
# If you want to use other dictionary you will add or remove parts of the code.
#
# Default is designed to remove the record of <Collins Cobuild English Dictionary>