Skip to content

Packs / language-and-ocr-public

focus-reader

ADHD-friendly local book reader: bionic bold, line focus, pace mode, highlights + notes, from a PDF or text file.

Install

logicpacks pack use language-and-ocr-public/focus-reader
get_pack language-and-ocr-public/focus-reader

The second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.

Keys it needs (names only)

None.

Playbooks included

  • Spec: spec/SPEC.md (goal, steps, edge cases, don’ts)
  • Routes: local
  • Checks: 2 in outcome/checks.yaml
  • Code: build_reader.py
  • Tools: python3, pdftotext

Usage, last 8 weeks

New: no recorded use yet.

Purpose (from spec/SPEC.md)

Goal

Turn a book into one offline HTML page that keeps attention on one line at a time and saves highlights.

Steps

  1. python3 code/build_reader.py book.pdf reader.html --title 'Book' (PDF via pdftotext -layout).
  2. Check chapters were detected; else pass --chapter-regex for that book's heading style.
  3. Export highlights as markdown from the toolbar.

Edge cases

  • Two-column PDFs interleave lines with -layout; try without -layout.
  • Highlights live in the browser's localStorage for that file path.

Don'ts

  • Don't put copyrighted books into any shared repo; build readers locally.