cargo install --path .
sdunpack file.dict [file.syn] < file.idx > file.txt
This example relies on some of the command line utilities provided by dictd.
dictzip -d file.dict.dz
sdunpack file.dict file.syn < file.idx > file.txt
short_name=$(grep '^bookname=' file.ifo | cut -d '=' -f 2)
url=$(grep '^website=' file.ifo | cut -d '=' -f 2)
dictfmt --utf8 --index-keep-orig --headword-separator '|' -s "$short_name" -u "$url" -t file2 < file.txt
dictzip file2.dict