Skip to main content

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 捐赠

请捐赠者在 issue 里留下捐赠信息,如交易流水号等,否则无法在支付系统里查找。再次感谢。

alipay_pay.jpg wx_pay.png

Metadata

Release files for mdict-utils 1.3.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for mdict-utils 1.3.14
File Interpreter ABI Platform
mdict_utils-1.3.14-py3-none-any.whl Python 3 none any Details

Release files / mdict_utils-1.3.14-py3-none-any.whl

Download URL mdict_utils-1.3.14-py3-none-any.whl
Size 37.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
205f7c37a12be29de8591276bb1cca525e6eaf3c43f43c6ac2a919b6f886e235
BLAKE2b-256 checksum
How to use checksums
caa966206ecbf53f97d2ea4249dcd2e2f113592e229d1758ffcea21c3b7fcfed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.3.14 This release

1 release file

1.3.12

1 release file

1.0.11

1 release file

1.0.10

1 release file

1.0.9.1

1 release file

1.0.9.0

1 release file

1.0.8.7

1 release file

1.0.8.6

1 release file

1.0.8.4

1 release file

1.0.8.3

1 release file

1.0.8.2

1 release file

1.0.8

1 release file

1.0.7

1 release file

1.0.6

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page