openreader/compute/core/src
Richard R ff5a6b834d fix(epub): unify TTS word highlight mapping and normalization
Refactor EPUB and HTML word highlighting to use a shared, position-preserving
text normalization pipeline for mapping TTS alignment offsets to DOM positions.
Replace the previous fuzzy token-matching logic with a direct char→DOM map
based on the canonical "audio" text form, ensuring highlights stay in sync
across languages and with Unicode-aware hyphenation handling.

- Add `highlight-char-map.ts` for shared normalization logic
- Update normalization to handle Unicode hyphenation consistently across
  compute, client, and shared layers
- Remove unused fuzzy token mapping and cache logic from EPUB highlighting
- Update tests for new highlight mapping and normalization behavior

BREAKING CHANGE: Removes legacy fuzzy token-based word highlight mapping in favor of direct char offset mapping; highlight cache and tokenization APIs are removed.
2026-06-09 08:20:53 -06:00
..
api-contracts refactor(pdf-parse): extract encodeParserVersion utility and strengthen artifact readiness 2026-06-04 20:46:02 -06:00
config feat(pdf,config): implement stale parse-state healing and unify op stale window config 2026-05-22 01:21:18 -06:00
control-plane feat: improve PDF parsing recovery and reader UI (#98) 2026-06-03 04:44:55 -06:00
pdf refactor(pdf): centralize pdf.js runtime configuration and asset resolution 2026-06-05 10:40:38 -06:00
platform cleanup compute core/server dead paths 2026-05-26 18:43:05 -06:00
types refactor(core,server): migrate contracts to api-contracts and modularize job handlers 2026-05-24 11:39:25 -06:00
whisper fix(epub): unify TTS word highlight mapping and normalization 2026-06-09 08:20:53 -06:00
index.ts refactor(pdf-parse): extract encodeParserVersion utility and strengthen artifact readiness 2026-06-04 20:46:02 -06:00
local-runtime.ts feat(worker): add granular PDF progress reporting and abort error handling 2026-05-29 20:13:59 -06:00