https://github.com/qingshan/mdict_reader
A dart library for reading mdict files. support MDX/MDD file formats.
https://github.com/qingshan/mdict_reader
dart dictionary mdict
Last synced: about 1 month ago
JSON representation
A dart library for reading mdict files. support MDX/MDD file formats.
- Host: GitHub
- URL: https://github.com/qingshan/mdict_reader
- Owner: qingshan
- License: mit
- Created: 2020-08-10T04:29:19.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-07T20:31:35.000Z (over 2 years ago)
- Last Synced: 2024-04-22T15:20:51.363Z (about 1 year ago)
- Topics: dart, dictionary, mdict
- Language: Dart
- Homepage:
- Size: 14.6 KB
- Stars: 22
- Watchers: 1
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Mdict Reader
============A dart library for reading mdict files. support MDX/MDD file formats.
[](https://pub.dev/packages/mdict_reader)
Tutorial
--------### Using the API
Import the package:
```dart
import 'package:mdict_reader/mdict_reader.dart';
```And call some code:
```dart
var mdict = MdictReader('example.mdx');
var record = mdict.query('hello');
stdout.write(record);
```### Using the command-line
Read defintion from MDX file:
```shell
dart bin/main.dart defintion [mdx_file] [query_word]
```Parse sounds URLs from MDX file:
```shell
dart bin/main.dart sounds [mdx_file] [query_word]
```Read data from MDD file (directly output binary to stdout):
```shell
dart bin/main.dart read [mdd_file] [sound_url]
```Misc
----### Acknowledge
This project was initially converted from [mdict analysis](https://bitbucket.org/xwang/mdict-analysis).
### License
The MIT License, see [LICENSE](https://github.com/qingshan/mdict_reader/raw/main/LICENSE).