Giter Club home page Giter Club logo

mdict-utils's Introduction

MDict Tool

MDict pack/unpack tool

Note

Support MIT and 996.icu license

Install

pip install mdict-utils

Usage

Meta information:

mdict -m dict.mdx

All key list:

mdict -k 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

Reference

Donate 捐赠

alipay_pay.jpg

wx_pay.png

mdict-utils's People

Contributors

liuyug avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.