A dart library for reading mdict files. support MDX/MDD file formats.
- Dart 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| bin | ||
| lib | ||
| .gitignore | ||
| analysis_options.yaml | ||
| CHANGELOG.md | ||
| LICENSE | ||
| pubspec.yaml | ||
| README.md | ||
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.