Download a clean, validated EPUB of the Magnifica Humanitas encyclical to read offline on a Kindle or ebook reader
Generate the English or French version of the encyclical as an EPUB using a single command-line language flag
Adapt the converter script to fetch and package other Vatican documents into properly formatted EPUB files
This repository contains a Python script that converts Pope Leo XIV's encyclical "Magnifica Humanitas" from the Vatican's official website into clean EPUB files. An EPUB is a standard ebook format that works with most ebook readers and apps. The script fetches the HTML source from the Vatican website and transforms it into a properly formatted ebook complete with a cover image, metadata, a table of contents, and footnotes. The project provides ready-made EPUB files for both the English and French versions of the document. The build script accepts a language flag so you can generate either version from the command line. The author also notes that the converter is not hard-coded to only those two languages: adding support for another language would mainly involve supplying the Vatican URL for that language and some localized metadata. The generated EPUB files pass validation with epubcheck, a widely used tool that checks ebook files against the official EPUB specification, with no reported errors or warnings. This means the output files should open correctly in any compliant ebook reader. The README is brief and the project is focused on a single specific task. It is useful for anyone who wants a properly formatted offline copy of this papal document for reading on an ebook device, and the Python source is available if anyone wants to adapt the converter for other Vatican documents.
← n2ctech on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.