mdict_reader 1.1.0 copy "mdict_reader: ^1.1.0" to clipboard
mdict_reader: ^1.1.0 copied to clipboard

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

Mdict Reader #

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

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.

2
likes
120
pub points
18%
popularity

Publisher

verified publisherqingshan.dev

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

args, pointycastle, xml

More

Packages that depend on mdict_reader