A dart library for reading mdict files. support MDX/MDD file formats.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2023-02-07 12:31:32 -08:00
bin Fix dart analyze issues 2023-02-07 12:20:19 -08:00
lib Fix dart analyze issues 2023-02-07 12:20:19 -08:00
.gitignore Dart 2.12 requirement and null safety. 2022-05-20 22:49:02 -07:00
analysis_options.yaml Dart 2.12 requirement and null safety. 2022-05-20 22:49:02 -07:00
CHANGELOG.md Update changelog of 1.1.0 2023-02-07 12:12:01 -08:00
LICENSE Create LICENSE 2020-08-09 21:31:24 -07:00
pubspec.yaml Update version to 1.1.0 2023-02-07 11:56:01 -08:00
README.md Publish package 2023-02-07 12:31:32 -08:00

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.