Skip to content

A dart library for reading mdict files. support MDX/MDD file formats.

License

Notifications You must be signed in to change notification settings

qingshan/mdict_reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mdict Reader

A dart library for reading mdict files. support MDX/MDD file formats.

Pub Package

Tutorial

Using the API

Import the package:

import 'package:mdict_reader/mdict_reader.dart';

And call some code:

var mdict = MdictReader('example.mdx');
var record = mdict.query('hello');
stdout.write(record);

Using the command-line

Read defintion from MDX file:

dart bin/main.dart defintion [mdx_file] [query_word]

Parse sounds URLs from MDX file:

dart bin/main.dart sounds [mdx_file] [query_word]

Read data from MDD file (directly output binary to stdout):

dart bin/main.dart read [mdd_file] [sound_url]

Misc

Acknowledge

This project was initially converted from mdict analysis.

License

The MIT License, see LICENSE.

About

A dart library for reading mdict files. support MDX/MDD file formats.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages