MDict pack/unpack tool
Project description
MDict pack/unpack tool
Note
Support MIT and 996.icu license
All files must be UTF-8 encoding, include HTML and TXT
Install
pip install mdict-utils
Usage
Meta information:
mdict -m dict.mdx
All key list:
mdict -k dict.mdx
Query key:
mdict -q <word> dict.mdx
Note
只用于测试词典打包是否正确。
Unpack
Unpack MDX:
mdict -x dict.mdx -d ./mdx
Unpack MDX/MDD and split into 5 files:
mdict -x dict.mdx -d ./mdx --split-n 5
Unpack MDX/MDD and split into a…z files:
mdict -x dict.mdx -d ./mdx --split-az
Unpack MDD:
mdict -x dict.mdd -d ./mdd
Unpack MDX/MDD to sqlite3 DB:
mdict -x dict.mdx --exdb mdict -x dict.mdd --exdb
Unpack MDX/MDD to sqlite3 DB with zip compress:
mdict -x dict.mdx --exdb-zip
Pack
Pack MDX:
mdict --title title.html --description description.html -a dict.txt dict.mdx
Pack MDX with many TXT files:
mdict --title title.html --description description.html -a dict.part1.txt -a dict.part2.txt dict.mdx
or:
mdict --title title.html --description description.html -a txt_dir dict.mdx
Pack MDD:
mdict --title title.html --description description.html -a mdd_dir dict.mdd
Other
Convert TXT to sqlite3 DB:
mdict --txt-db dict.txt
Convert sqlite3 DB to TXT:
mdict --db-txt dict.db
Donate 捐赠
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size mdict_utils-1.0.10-py3-none-any.whl (35.7 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Close
Hashes for mdict_utils-1.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bae0f97782abbd2b2b914e2f610c46d0b6c3f8f797c80c59292db67c3ae071fc |
|
MD5 | 288ab8d4b6dfe3165622f444fac3f0cd |
|
BLAKE2-256 | c3315eed7c7497b34de4521cded86b0d154452d2fa4471160d4ca5b91d37ac44 |