Version 0.9.0
What's Changed
Added
- Contextualization catalog: translatable, i18next-based JSON replacing the code-defined announcement catalog. See UtteranceExtraction.md.
ExtractUtterancesOptions.contextualizationLocale— pick which shipped catalog locale to use.ExtractUtterancesOptions.contextualization— for a custom or overridden catalog: override wording, shape, and params per call.ReadiumSpeechNavigatorConfiguration.contextualizationOverrides— the same overrides, set once for a navigator.ReadiumSpeechUtterance.locate— options forcreateLocator()to build a locator for the utterance's source.ReadiumSpeechUtterance.synthetic— true when the utterance's text isn't copied from the source, so word-level highlighting can be skipped (element-level highlighting vialocatestill works).makeGnd()/parseMarkup()can generatetextrefs from a live document. See GuidedNavigation.md.- Table
cell/rowheader/rowcontextualizations carry positional context (column header, row number).
Changed
extractUtterances(),extractUtterancesWithSources(),loadGndContent(), andsubmitPreferences()are nowasync.LocatorOptionsrestructured aroundtext/cssSelector/domRange/fragment.skippableAtVerbosityrenamed toskippedAtVerbosity.setRate()/setPitch()/setVolume()now restart the current utterance so changes apply immediately, not on the next one.- An unscoped
<th>resolves tocolumnheader/rowheaderinstead of alwayscell. - A table/figure with no explicit ARIA name now speaks its caption as its own description instead of as a separate utterance.
- A link with an accessible name speaks that name instead of its visible text.
Fixed
setRate()/setPitch()/setVolume()and playback-rate clamping no longer propagateNaN/±Infinity.
Removed
defaultAnnouncements,Announcement,AnnouncementKey,AnnouncementPair,Announcements,RoleAnnouncement,isAnnouncementPair— superseded by the JSON contextualization catalog (defaultContextualizations,Contextualizations,ContextualizationEntry).ExtractUtterancesOptions.announcements— superseded bycontextualization.contextualizations.
Full Changelog: v0.8.1...v0.9.0