Skip to content

Instantly share code, notes, and snippets.

@cranarma
cranarma / stardict2txt.py
Created October 3, 2019 03:04 — forked from rongyi/stardict2txt.py
convert a stardict dictionary to txt
#!/usr/bin/python
# -*- coding: utf-8 -*-
import struct
import types
import gzip
class IfoFileException(Exception):
"""Exception while parsing the .ifo file.
Now version error in .ifo file is the only case raising this exception.