MDict pack/unpack tool
Project description
MDict pack/unpack tool
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
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
Reference
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.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file mdict_utils-1.3.12-py3-none-any.whl
.
File metadata
- Download URL: mdict_utils-1.3.12-py3-none-any.whl
- Upload date:
- Size: 36.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f440f13e30f87a9737267f6b75ac13d2e986d500e0d9b6c859fdc8de650343c |
|
MD5 | 60a52f8b4859d27dc7e0ec1db528d80e |
|
BLAKE2b-256 | 5482d232fefe9adf04b1d9ede5f24b59cfe289c50887386823e9116b17ff635e |