Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

hebrew-book-typesetter

БесплатноЗапускает вложенные скриптыНе проверен

Turn a long Hebrew Word manuscript (memoir, poetry with nikkud, chidushei torah, academic book) into a print-ready book PDF, then prepare it for an Israeli…

skills-ilот skills-il★ 28 звёзд на GitHub

Об этом скилле

Hebrew Book Typesetter

Problem

Israeli authors who self-publish usually arrive with a long Word file and a print shop that wants "a closed PDF". Word cannot reliably produce a right-bound book with mirrored margins, Hebrew-letter page numbers and running heads, and AI assistants routinely get the Hebrew-specific parts wrong: binding on the left, the cover laid out like an English book, 15 written as yud-heh, nikkud and teamim broken by the font, and the imprint details the Books Law requires left out. A wrong file means paying for a reprint.

Instructions

Step 1: Collect the decisions before touching the file

Ask only what you cannot infer. Most authors do not know these answers yet, so offer the default and say why.

Decision Default Notes
Print shop Ask Their own file spec beats every default below. Ask the user to request it.
Binding Perfect-bound paperback A short stapled booklet (קונטרס) has no spine and needs a page count the shop can fold into sheets; a hardcover needs the binder's own layout. Ask which one.
Trim size A5 (14.8 x 21 cm) The most common size in Israel per PrintaBook. 17 x 24 cm suits academic books and sefarim with long notes (Dfus Eichut lists it as standard).
Bleed None for a text-only interior Only needed when ink reaches the page edge (photos, full-page backgrounds) and always on the cover. Armon Rama, for example, requires 3 mm on each side.
Margins Inside 22, outside 20, top 28, bottom 22 mm Dfus Eichut suggests 2.8 cm top and 2.2 cm bottom when there is a running head; PrintaBook asks for at least 1.5 cm. Make the inside margin larger for thick books.
Page numbers Hebrew letters for sefarim, digits for memoirs and academic books Hebrew letters without geresh or gershayim, as the Academy of the Hebrew Language rules for page numbers.
Chapter start Next page odd makes every chapter open on a recto; the blank pages it adds get no number.
Font Frank Ruhl Libre Free (SIL Open Font License), includes meteg. See Step 5.
Front matter Title, imprint page on its back, then any dedication, approbations, introduction, table of contents Sefarim usually carry approbations (הסכמות) and a dedication or memorial page (הקדשה / לעילוי נשמת); ask for them.

A Word page count is not a book page count. Compute the cover only after the PDF exists.

Step 2: Convert the Word file

Route A (shell available). Use pandoc's Typst writer and keep images:

pandoc manuscript.docx -t typst --extract-media=media -o body.typ

Hebrew text, nikkud and Word footnotes survive the conversion (footnotes become #footnote[...]). Text direction does not travel with it; the template in Step 4 sets it.

Route B (chat surface, no shell, non-technical user). Read the uploaded .docx and write the Typst source chapter by chapter (ch01.typ, ch02.typ, ...), using = for chapter titles, == for sections and #footnote[...] for notes. Escape Typst special characters (#, $, *, _, @, <) with a backslash, and write abbreviations with real gershayim and geresh (רש״י, ד׳).

Fidelity is the main risk on this route, especially for Torah text: carry every word, letter and nikkud mark over exactly as written, never retype from memory or "correct" anything. After each chapter, state its first and last sentence and its approximate word count so the user can compare it with the Word file, and ask them to check pesukim and sources by eye.

Give the user references/book-template.typ (a ready template with an imprint page and table of contents; fill in the title, author and the ____ details, and add one #include line per chapter). Then walk them through typst.app: create a free account, start an empty project, upload the .typ files and the font files (Frank Ruhl Libre, plus the Ezra SIL file SILEOT.ttf whenever the text quotes pesukim with teamim; without it those words show doubled letters or boxes), open book.typ, and download the PDF from the button at the top right. Long manuscripts do not fit in one reply: deliver one chapter per message and keep a running list of what is done. If the project gets too many files, merge chapters into fewer files.

Step 3: Check and clean what pandoc produced

python3 scripts/inspect_body.py body.typ

It reports headings, footnotes, images, tables, quote marks inside abbreviations, cantillation marks, and short fully-bold lines. Then fix what it found:

python3 scripts/inspect_body.py body.typ --fix-quotes
python3 scripts/inspect_body.py body.typ --promote 1 --match '^פרק' --out step1.typ
python3 scripts/inspect_body.py step1.typ --promote 2 --out body.typ
  • Word keeps a typewriter or curly quote in ראשי תיבות; a sefer has hundreds of them, and print should show ״ and ׳. --fix-quotes converts a quote before the last letter of a word (רש"י) and a quote after a letter that ends a word (ד'), and leaves an opening quotati
Полный SKILL.md на GitHub

Установить hebrew-book-typesetter в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

SKILL_HE.mdevidence.jsonmetadata.jsonreferences/book-template.typreferences/isbn-and-deposit.mdreferences/print-shop-handoff.mdscripts/cover_size.pyscripts/inspect_body.pyscripts/make_book.py

FAQ

Что делает скилл hebrew-book-typesetter?

Turn a long Hebrew Word manuscript (memoir, poetry with nikkud, chidushei torah, academic book) into a print-ready book PDF, then prepare it for an Israeli print shop, ISBN and legal deposit. Use when the user says 'lay out my book', 'typeset a Hebrew book', 'imud sefer', 'imud le-dfus', 'print-ready PDF', 'self-publish a book in Hebrew', 'my Word file for the printer', or asks about ISBN (mis'tav) or depositing copies at the National Library. Converts docx with pandoc to Typst, builds a right-bound layout with mirrored margins, Hebrew-letter page numbers (tet-vav for 15), running heads, footnotes and a table of contents, then computes the cover and spine. Prevents the costly reprint that follows a file with wrong binding side, broken nikkud or missing imprint details. Do NOT use for short documents, letters, reports or slides (use hebrew-document-generator) or for writing and editing the text itself (use hebrew-content-writer).

Как установить скилл hebrew-book-typesetter?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл hebrew-book-typesetter запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить hebrew-book-typesetter с