Strepsiades2/dsh-book-reader
Read PDFs in DSH together with the model: a native toolbar on the official PDF preview plus three model tools — page map, full-text search, and page content with optional page images.
Installing adds a toolbar row to DSH's PDF preview: previous/next, page jump box (printed page or PDF-physical via p152 syntax), full-text search with in-page highlights, and an AI position hint toggle that injects 'you are reading page N' once per turn when the page changed. Reading position and zoom are remembered per book and restored on reopen. The model can call the three tools to look up the TOC, search for a phrase or theorem number, and read page text or images — so it can actually assist with a document instead of guessing from a paste.
Install
dsh plugin add dsh-book-readerThe npm line from the README's Quick Start (dsh-book-reader 0.3.1). After installing, restart DSH, then open any .pdf in the right sidebar — the toolbar appears in the preview header. The README also shows how to optionally give the model a reading guide skill (ln -sfn) that covers page-numbering pitfalls and cost guidance. English and Chinese tooltips throughout.
Compatibility
MIT. Decorates DSH's own PDF preview rather than replacing it, so zoom, text selection, reload and Office→PDF conversion keep working. The README explicitly says 'Native, not a replacement.' Three model tools are exposed: pdf_info (page count, TOC, page offset — text, ~free), pdf_search (full-text search tolerating quotes/LaTeX/hyphen splits, with keyword fallbacks and optional pages range — text, ~free), and pdf_read_pages (chosen pages as text, optionally with page images at ~350–1024 tokens/page).
Details
- Repo: Strepsiades2/dsh-book-reader
- Category: Tools & Capabilities
- Stars: 1
- Version: 0.3.1 (npm)
Alternatives
vitas/dsh-ocr-free · TYEclipse/dsh-color · merenguesL/dsh-tool-normalizer