Implement block-level highlighting in PDF viewer by leveraging parsed document structure and TTS segment locator. Extend highlightPattern API to accept options for parsedDocument, locator, and block geometry mode. Update PDFViewer to use block geometry highlighting when available, improving accuracy and alignment of sentence and word highlights with ONNX-based DocLayoutV3 parsing. Refactor highlighting logic to support both legacy span-based and new geometry-based approaches. |
||
|---|---|---|
| .. | ||
| EPUBViewer.tsx | ||
| HTMLViewer.tsx | ||
| PDFViewer.tsx | ||