Skip to content

Dictionary Preview v1.1.0

Choose a tag to compare

This release adds a new optional floating preview mode to Dictionary Preview, alongside several layout, usability, and performance improvements.

The plugin can now display dictionary definitions either in the original bottom preview panel or in a compact floating card. The floating card automatically chooses whether to appear near the top or bottom of the screen to avoid covering the selected word, while preserving the same flexible height behavior used by the standard preview.

Highlights

  • Added optional Floating preview mode.

  • Added smart floating-card positioning to avoid overlapping the selected word.

  • Preserved adaptive height behavior in both bottom and floating preview modes.

  • Added a minimum compact height to avoid unnecessary scrolling in short one-sentence definitions.

  • Improved preview title layout:

    • selected word shown prominently;
    • dictionary name shown below in smaller italic text;
    • dictionary result count shown when multiple results are available.
  • Kept the original preview button behavior:

    • configurable left action;
    • previous/next dictionary buttons when multiple results are available;
    • right button to open KOReader’s standard dictionary popup.
  • Improved handling of multiple dictionary results by focusing navigation on useful definitions.

  • Cleaned up and reorganized the code for easier maintenance.

  • Added small performance improvements by caching repeated values and reducing unnecessary recalculations.

Settings

This release keeps the existing settings and adds a new one:

dictionarypreview_floating_preview

The new option can be toggled from:

Dictionary preview → Floating preview

Upgrade notes

Replace the existing dictionarypreview.koplugin files with the new version and restart KOReader.

The standard bottom preview remains the default behavior. Floating preview mode must be enabled manually from the plugin menu.