Releases: dbmdz/mirador-textoverlay
0.3.8
0.3.7
Improvement:
Selected text is now visible in WebKit-based browsers, even if general text display is disabled, just as in Firefox.
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
0.3.5
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
0.3.3
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
- 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
Version 0.3.0
Automatic text and background colors, new tool for overriding them (#25):
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):
Any transformations applied to the viewport with the mirador-image-tools plugin are now reflected in the text overlay.
Configurable font
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.
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.
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.
Version 0.2.0
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:
Bugfixes:
- Add support for
seeAlso
entries with multiple resources (#2, thanks @mejackreed for reporting)