Batch process books through the complete pipeline - generate cropped images for split pages, OCR all pages, then translate with context. Use when asked to process, OCR, translate, or batch process one or more books.
Add this skill
npx mdskills install Embassy-of-the-Free-Mind/batch-translateComprehensive pipeline for OCR and translation of historical texts with excellent API documentation
A Next.js application for digitizing and translating historical texts. Built for the Embassy of the Free Mind.
npm install
npm run dev
All page images go through /api/image for consistent sizing and cropping:
| Tier | Size | Quality | Use Case |
|---|---|---|---|
| Thumbnail | 400px | 70% | Grid views, page navigation |
| Display | 1200px | 80% | Main reading view |
| Full | 2400px | 90% | Magnifier, fullscreen |
Books with two-page spreads can be split. Each page stores:
crop.xStart and crop.xEnd (0-1000 scale)cropped_photo (optional pre-generated Vercel Blob URL)Cropping happens on-demand via Sharp. OCR automatically crops inline and saves the result for future use.
src/
├── app/ # All routes, pages, and API endpoints
│ ├── api/ # API routes
│ ├── book/ # Book pages (detail, read, pipeline)
│ └── page.tsx # Homepage
├── components/ # Reusable React components
├── hooks/ # Reusable React hooks for component logic
└── lib/ # Business Logic, Utilities (mongodb, ai, types), and Services
Best experience: Claude Code
/plugin marketplace add Embassy-of-the-Free-Mind/batch-translateThen /plugin menu → select skill → restart. Use /skill-name:init for first-time setup.
Other platforms
Install via CLI
npx mdskills install Embassy-of-the-Free-Mind/batch-translateBatch Translate is a free, open-source AI agent skill. Batch process books through the complete pipeline - generate cropped images for split pages, OCR all pages, then translate with context. Use when asked to process, OCR, translate, or batch process one or more books.
Install Batch Translate with a single command:
npx mdskills install Embassy-of-the-Free-Mind/batch-translateThis downloads the skill files into your project and your AI agent picks them up automatically.
Batch Translate works with Claude Code, Claude Desktop, Cursor, Vscode Copilot, Windsurf, Continue Dev, Codex, Gemini Cli, Amp, Roo Code, Goose, Opencode, Trae, Qodo, Command Code. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.