dsh-study-reader: Read PDFs, Word Documents & Slides in Original Format in DSH with Contextual Translation and Q&A

Introduction

When dealing with long documents in DSH, a common practice is to feed the entire document to the model or paste it in chunks. Layouts, charts, and page numbers are easily lost, and citations are difficult to map back to the original text. Study Reader is a Cordis plugin running in DeepSeek Harness. It opens PDF, Word, and PowerPoint in the DSH main interface preserving the original layout, connecting selection, translation, sidebar Q&A, and annotations to a single reading thread. Document parsing and page rendering are executed on the local Host; translation and Q&A use the model vendors configured in DSH, rather than being a fully offline reading assistant.

What is this

The plugin npm package name is study-reader, the repository is TermerOfMe/dsh-study-reader, maintainer TermerOfMe, license MIT. The community directory classification is Model Inference. The current package version in the materials is 1.17.6; GitHub stars 1.

This version emphasizes Original Reading: it preserves pagination, charts, and formulas, and allows text selection on pages. PDF pages are rendered by the Host’s PDFium, and the text layer is provided by PDF.js; Word / PowerPoint are converted to PDF by DSH’s built-in Office to PDF service before display. The README explicitly states that the “Study View” offering text reflow is no longer provided.

Core Features

Reading and Navigation

  • Single Page / Continuous Page: Single page shows one page at a time; continuous page scrolls up and down, automatically loading pages near the viewport and two pages before and after the current page.
  • Zoom and Navigation: Fit to width, fit to page, 25%–300% zoom; toolbar supports going back/forward to reading position, reading area supports Alt+← / Alt+→, mouse side buttons work on the page area.
  • Continue Last Reading: Remembers page numbers and positions within the page based on the document path, saved in the current profile’s local data directory, localStorage as a backup; position won’t auto-migrate if the file is renamed or moved.
  • Night Reading: PDF pages follow DSH’s light/dark theme; converted pages for Word/PowerPoint also apply. Text selection, region coordinates, and original screenshots sent to the model are not affected by display filters.

Selection, Translation, and Citation

A floating toolbar appears after selecting body text, allowing Translation, Follow-up, or Explanation. The default is English to Simplified Chinese, and the target language can be switched; translation references the paragraph, context, and section headings.

Drag normally to select text; Hold Ctrl (Mac: ⌘) and drag to box-select a region. When citing, the selected region screenshot will be sent to the model along with the citation. Normal text selection also attaches a screenshot of the selected area.

  • Study Mode: Answers only based on current position and previous content; if there is a more systematic explanation later in the text, it will prompt “Continue Reading” and allow jumping.
  • Re-read Mode: Can use the full text, enabling cross-chapter association and retrieval.

Models can autonomously read ahead: they can view the Table of Contents (ToC), search the original text, then read the body text or page images. The default limit is max 3 rounds, total 8 reading units, max 3 tool operations per round. There are still boundaries for reading ahead in Study Mode.

The input box bottom bar allows selecting from models configured in DSH “Settings → Models”; Q&A, reading ahead, translation, and book overview share this selection; switching only affects subsequent requests.

Bookmarks, Highlights, Annotations, and Find

The page toolbar can add bookmarks to the current page; after selecting text or Ctrl/⌘ selecting a region, highlights or annotations with tags can be saved. “Bookmarks and Annotations” supports filtering by type, original text, notes, tags, and page number.

The magnifying glass in the top right can search ToC titles and extracted body paragraphs; results include page number and context.

Answer Citations and Auditable Context

Citations like [B12], [Page 3] in answers can preview the original text and page images before “Jump to Original”. Under each Q&A and translation there is View Injected Context, which can expand system prompt, user message, image thumbnails, token estimate, and time spent for this request. When the model returns reasoning content, Thinking Process (streaming, collapsed by default) appears above the answer.

Formulas in answers and translations are typeset locally using KaTeX ($…$, $$…$$ etc.), not relying on external formula CDNs.

History and Branching

Multiple conversation segments are automatically saved per document and can be switched in “History”; it supports editing questions to re-ask or creating branches, or branching from a specific message. Branches are independent sessions.

Book Overview

The Overview panel in the ToC reads the first page of each chapter in batches, generating and caching chapter summaries; Re-read mode can inject up to 4,000 words. The README clearly states it is based on the ToC and chapter first pages and cannot replace the full text as a basis.

Diagnostics

The i (Diagnostics) in the top right can view plugin version, page rendering engine, model/Office availability, and current document statistics, making it easy to copy anonymized information when providing feedback.

Installation and Enablement

The plugin can only run inside DSH, not as a standalone webpage. Verified DSH desktop runtimes in the materials are 0.2.2-rc.1, 0.2.2-rc.3; Host OS in the materials is Windows x64 (macOS/Linux not yet verified). engines.dsh in package.json matches the table above; Node.js requirement is >=22.13.0, README recommends Node.js 24 LTS. Reading PDF requires DSH Web GUI and local file service; Word/PowerPoint additionally require DSH Office to PDF service.

  1. Open DSH “Plugins” page on the left, click “Add Plugin”.
  2. Enter package name study-reader, select “npm Official Source” as install source, click “Install”. When pinning a version, you can enter e.g., study-reader@1.16.7 (based on npm published versions).
  3. If prompted to approve dependency scripts, review the package names listed in the interface; if prompted to restart, fully exit and restart DSH, then refresh the page.
  4. Open “Study” on the left, check the version in “Diagnostics” top right.

Plugin package page: https://www.npmjs.com/package/study-reader. When migrating from the old local package @local/dsh-study-reader, you should remove the old bundle first before installing study-reader to avoid duplicate registration of the same entry.

Install via GitHub

In the “Add Plugin” input box, enter the repository address:

https://github.com/TermerOfMe/dsh-study-reader

When pinning a version, append # and an existing tag name from the repository’s Tags to the address. After clicking “Install”, review dependencies as prompted, restart if necessary, and check the version in “Study” → “Diagnostics”.

Developers installing from a local source code directory need to link the directory via DSH Plugin Manager’s install_bundle link; npm ci is only executed in the source code directory, and after installation, do not delete or arbitrarily move that directory. Regular users should prioritize npm or GitHub window installation.

Typical Usage

  1. Refresh the DSH page and click Study on the left.
  2. Click Open Document, select or enter the path for PDF/Word/PowerPoint.
  3. Drag-select text on the page: use the floating menu Translate, Follow-up, or Explain; if text cannot be selected, use Ctrl/⌘ to select a region.
  4. Switch Study Mode / Re-read Mode at the top of the Q&A.
  5. Use Table of Contents to jump; if no PDF bookmarks, fall back to title recognition by font size. Click Overview to generate chapter summaries (use as needed, not full text basis).
  6. Switch between Single Page and Continuous Page to the left of the page number; use the Find in the top right to search body text and ToC titles.
  7. Q&A records are saved in data/study-reader/conversations of the current profile’s data/study-reader/ related paths (the README truncation also points to this directory structure); some options like translation and zoom are in browser localStorage.

Q&A and translations will not be written to DSH’s Session records; uninstalling the plugin also won’t automatically clear browser history, annotation directories, or DSH-managed image attachments.

Applicable Scenarios and Notes

Who is it for: Users who need to read papers, textbooks, handouts, or presentation drafts with layout in DSH, and want a learning/review process with “select-to-translate”, page-number citations, and branchable conversations.

Permissions and Privacy: The plugin runs with the current DSH process permissions; it is advisable to review source code and the MIT license before installation. Translation and Q&A will send questions, selected text, selection screenshots, Table of Contents, and reading-ahead content (within allowed range) to the model vendor you configured; the specific scope can be verified via “View Injected Context”. Please anonymize diagnostics and context before submitting a public issue.

Compatibility: Q&A reading images requires the model to declare support for image input; model autonomous reading-ahead requires native tool calling. If the Office conversion is unavailable, the materials state that a converted PDF can be used.

Conclusion

Study Reader brings “page-turning in original layout” and “model Q&A with citations” into the DSH left-side entry: local rendering and annotations, while translation and reasoning happen on the model side. Links for Directory and Repository are below.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye