Skip to content

Releases: dbmdz/mirador-textoverlay

0.3.8

24 Feb 17:54
Compare
Choose a tag to compare
  • New Serbian Translation (#290, thanks @DigitLib!)
  • Add application/alto+xml as media type for ALTO
  • Dependency Updates

0.3.7

22 Apr 12:14
Compare
Choose a tag to compare

Improvement:
Selected text is now visible in WebKit-based browsers, even if general text display is disabled, just as in Firefox.

image

The default background color is opaque (contrary to Chrome's default style) to improve readability (together with the white text, contrast is WCGA AAA compliant at a 7:1 ratio).

The colors, as well as the general font family can be customized with a new textOverlay section in Mirador's theme (both dark and light):

Mirador.viewer({
  // ...
  themes: {
    light: {
      overlayFont: 'sans', // Any legal CSS `font-family` value
      selectionTextColor: 'rgba(255, 255, 255, 1)', // Any legal CSS color
      selectionBackgroundColor: 'rgba(0, 55, 255, 1)', // Any legal CSS color
    },
  },
  // ...
}

0.3.6

30 Mar 17:02
Compare
Choose a tag to compare

Bugfix: If the resolution between a Canvas and its hOCR page was not identical, the text would be misaligned. This is now fixed, if they display the same image and only differ in their size, the text is now scaled accordingly.

0.3.5

22 Mar 16:09
Compare
Choose a tag to compare

Bugfix: The text overlay settings bubble is now no longer visible if none of the active canvases has a text associated with them.
Accessibility: The default page background color has now always a WCAG compliant contrast with the text color (at least 7:1). This also fixes cases where pages with black borders would get black as both the text and the background color.

0.3.4

19 Feb 11:29
Compare
Choose a tag to compare

Fixes Mobile Safari 12 bugs:

  • Text selection was not working
  • Color pickers were not working

0.3.3

18 Feb 11:03
Compare
Choose a tag to compare

This is a bugfix release:

  • Fix text selection on mobile Safari. This has the unfortunate drawback that you have to base any panning and zooming gestures in areas of the page that are not covered by text if selection is enabled. We therefore recommend disabling text selection by default for touchscreen users in your Mirador deployment.
  • Fix broken state when selection and visibility are initially disabled. This caused changes to the settings to not have any effect.
  • Fix broken rendering in book view when left canvas had no associated text. In these cases, the text would be shown on the wrong canvas.
  • Fix multiple accessbility issues.

0.3.2

22 Oct 11:11
Compare
Choose a tag to compare
  • Fix tooltip display in fullscreen mode (#40)
  • Make the toolbar responsive (#39)
  • Fix hOCR end-of-line whitespace handling (#36): Text copied from the overlay should now have mostly proper whitespace and linebreaks
  • Fix interplay with the annotation overlay (#35): The text now no longer hides the rendered annotations, i.e. you can now see annotations and text at the same time.

0.3.1

04 Aug 14:27
Compare
Choose a tag to compare

The previous deployment to npmjs.org included an unnecessary dependency on mirador-image-tools, this has been removed in this patch release.

Version 0.3.0

04 Aug 10:04
Compare
Choose a tag to compare

Automatic text and background colors, new tool for overriding them (#25):

colors
If possible, the plugin now automatically determines the most suitable text and background colors from the page image itself. Users can also use the new "color picker" button in the toolbar to override these colors.

Synchronize rotation and flipping with mirador-image-tools (#26):

imagetoolssync
Any transformations applied to the viewport with the mirador-image-tools plugin are now reflected in the text overlay.

Configurable font

comicsans
Users can now pick a font of their choosing for rendering the text with the fontFamily configuration option.

Improved performance (#11, #14, #16, #33)

Previously, performance was less than ideal, especially during panning and zooming with large manifests. For this release, the plugin was optimized to use GPU-acceleration as much as possible (how much this is used in practice depends on the device and the OS). Users should now be able to hit >30FPS during panning and zooming in most cases.

Improve word and line box rendering in Firefox and Chrome (#17, #22)

Rendering in Firefox used to be pretty much broken due to a missing SVG feature. With this release, a workaround was found and implemented, resulting in a huge improvement in the rendering quality. Also, the rendering parameters were tuned to result in a more regular text appearance that better fits the image in most cases.

Firefox before:

Firefox after:

Indicate in toolbar when OCR is being fetched ( #13)


The toolbar bubble now indicates with a rotating spinner that texts are currently being fetched

Adapt settings toolbar to palette of currently used theme (#19)

All hard-coded colors were removed and replaced with code that determines them dynamically based on the currently used theme.

Dark Theme before:

Dark Theme after:

Fix selection behavior in WebKit-based browsers (#30)

Text selection that crossed multiple lines was very glitchy in WebKit-based browsers, this has now been fixed.

Behavior before:

selection_befor

Behavior after:

selection_after

Version 0.2.0

16 Jul 07:56
Compare
Choose a tag to compare

The only major new feature of this version is a new settings UI that is more convenient, especially for mobile users, inspired by mirador-image-tools:

new_settings_ui

Bugfixes:

  • Add support for seeAlso entries with multiple resources (#2, thanks @mejackreed for reporting)