m4tinbeigi-official/hermes-literary-translation-mastery/persian-book-typesetting-epub
Claude Code and agent skill by m4tinbeigi-official/hermes-literary-translation-mastery
- community
Checking that the SKILL.md file is still in the repository.
Use when compiling, typesetting, styling, and generating standard EPUB, PDF, and print-ready Persian books from Markdown. Embeds Vazirmatn font, RTL stylesheet, interactive pop-up footnotes, multi-level NCX TOC, and cover metadata.
Install
npx vskill@latest install m4tinbeigi-official/hermes-literary-translation-mastery/persian-book-typesetting-epubSKILL.md
Persian Book Typesetting & Standard EPUB Generation
Overview
Automates the production of publication-grade Persian e-books (EPUB 3.0), interactive digital documents, and print-ready layouts. Incorporates embedded Persian typography (Vazirmatn), strict Right-to-Left (RTL) CSS rules, interactive pop-up footnotes, clean chapter hierarchies, and customizable book jackets.
Standards & Typography Rules
1. Typography & Font Embedding
- Primary Typeface: Vazirmatn (وزیرمتن) with comprehensive weights (Regular, Medium, Bold, ExtraBold).
- Line Height: 1.8 to 2.1 for Persian readability (tighter line heights cause vowel/diacritic collisions).
- Text Justification:
text-align: justify;withtext-justify: inter-word;to avoid irregular spacing.
2. RTL Styling Boilerplate (style.css for EPUB)
EPUB 3.0 Package Structure
Step-by-Step Compilation Workflow
- Pre-processing Markdown Files:
- Run the
persian-orthography-and-stylecleaning script over all chapters. - Convert standard Markdown footnotes
[^term]into HTML anchor links compatible with EPUB3 readers (Apple Books, Calibre, Kobo).
- Metadata & Manifest Generation:
- Set
page-progression-direction="rtl"incontent.opf. - Set language code
<dc:language>fa</dc:language>.
- Packaging with Python / Zip:
- Write uncompressed
mimetypefile first (application/epub+zip). - Pack files with standard compression.
- Validation:
- Check against EPUBCheck standards (valid XHTML, uncorrupted font streams).
Verification Checklist
- [ ]
page-progression-direction="rtl"declared on the spine incontent.opf. - [ ] Vazirmatn embedded properly in WOFF2 format.
- [ ] Footnotes link bi-directionally between body text and footer notes.
- [ ] Table of Contents renders correctly in RTL e-readers.
- [ ] No raw Markdown artifacts or broken HTML tags in
.xhtmlchapters.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/productivity/persian-book-typesetting-epub/SKILL.md
Popularity
- Repository stars
- 47
- Repository forks
- 3
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/m4tinbeigi-official/hermes-literary-translation-mastery/persian-book-typesetting-epub)