Repository navigation
Scriptorium EPUB 1.0.0
The first release of Scriptorium EPUB: small Python scripts that turn PDFs into EPUB and keep an EPUB collection in order, plus a personal library server for every device at home.
What's inside
pdf2epub.py: PDF → EPUB with no compromise on quality. Every page is read from its picture by a free offline recognition engine and checked word by word against the PDF text layer. You get real paragraphs, joined hyphenation, bold and italic, headings, lists, tables, formulas, footnotes and the book's own table of contents. A stopped run goes on from the same page. Quick mode uses the text layer only.make_server.py: your own library server. It builds a catalog of any EPUB folder, with covers, search, sorting and a built-in reader. Double-clickOpen Library (network)and the library opens on your phone, tablet and laptop over home Wi-Fi. Accounts sync your reading place, bookmarks and folders across devices. You can install it like an app on a phone and read offline. Devices that are not signed in see only the sign-in page.epub_rename.pysorts books intoOut/Books/<Author>/<Author> - <Title>.epubusing the metadata inside each book, and verifies every copy.fix_cover.pymakes sure every book has a cover readers can find. It draws a missing one from the title and author, and repairs pages that strict readers can't open.
Requirements
- Python 3.10 or newer. Nothing else for the library tools.
pdf2epub.pyalso needs Poppler. The recognition engine installs itself on first run and currently works on Linux x86-64.- Pillow is optional, for smaller catalog covers and drawn covers.
See the README for the quick start.