openreader/src/types
Richard R cb9ca37500 refactor(epub): unify TTS segment planning with canonical windowing
Consolidate EPUB TTS segment planning around a single canonical windowing model.
Introduce `epub-canonical-window.ts` to provide stable, viewport-independent
segment windows for both playback and sidebar. Refactor segment planning,
prefetching, and playback handoff to use canonical ordinals and keys, ensuring
that segments straddling page breaks are uniquely identified and never replayed
across pages. Update TTSContext, SegmentsSidebar, and related hooks to support
windowed canonical segments and precise ordinal continuity. Extend types and
interfaces to carry canonical segment metadata and windowing context.

Add comprehensive unit tests for canonical window selection, segment
materialization, and cache behavior.

BREAKING CHANGE: EPUB TTS segment planning, playback, and sidebar now rely on
canonical windowing, affecting segment key generation and playback logic.
2026-06-08 18:35:18 -06:00
..
client.ts feat(tts): add multilingual reader foundation 2026-06-06 06:18:50 -06:00
config.ts refactor(config): centralize provider default resolution and simplify user preference inheritance 2026-06-06 15:25:10 -06:00
document-settings.ts feat(tts): add multilingual reader foundation 2026-06-06 06:18:50 -06:00
documents.ts test(pdf-parse): add unit tests for client lifecycle and worker route flows 2026-06-04 20:04:30 -06:00
parsed-pdf.ts refactor(types,api): centralize PDF and TTS type exports to compute-core/types 2026-05-22 01:51:51 -06:00
tts.ts refactor(epub): unify TTS segment planning with canonical windowing 2026-06-08 18:35:18 -06:00
user-state.ts chore(config): remove smartSentenceSplitting option and related code paths 2026-05-20 04:51:10 -06:00