Skip to content

mdict.koplugin 0.1.0

Choose a tag to compare

@moopoint-dev moopoint-dev released this 31 Oct 22:24

First release of mdict.koplugin: MDict (.mdx/.mdd) dictionaries in KOReader's own dictionary popup, next to its StarDict dictionaries.

Highlights

  • On Android, entries are laid out by the system WebView (Chromium) and shown a page at a time, so complex dictionary layouts keep their original look, including vertical Japanese. Elsewhere, entries fall back to KOReader's built-in HTML renderer.
  • Swipe or tap to turn pages. In vertical entries, swipe left to right for the next page and up or down to change dictionary.
  • Links, anchors, cross references, sections that open in place, Find in definition, and audio on Android (AAC, MP3, Ogg and WAV).
  • Per-dictionary writing direction and page layout, your own font, an e-ink mode, and override files (name.koreader.css, name.koreader.lua) for dictionaries that need fixes on an e-reader.
  • Dictionaries whose keys are not in the plugin's sort order are indexed once in the background.

Since the first commit

  • Much faster on e-ink devices: popups open in about half a second, pages turn in about 0.15 s, and links open in under 0.6 s.
  • The next result is prepared in advance while you read the current one.
  • Pages break inside long sense groups instead of pushing whole groups to the next page.
  • An entry that a dictionary stores both on a combined page and under a key of its own is shown once.

Install

  1. Unzip mdict.koplugin-0.1.0.zip into koreader/plugins/.
  2. Put dictionaries in koreader/data/dict/, each .mdx next to its .mdd files.
  3. Restart KOReader. MDict dictionaries appear in Manage dictionaries.

See the README for settings and override files.