Compile a single PDF containing all the hymns in the collection “Hymns—For Home and Church”.
You do not need to download the source code repository to use this tool. The recommended
way to use this tool is to run it through uv. Install uv on your computer and
then run:
uvx hymnsThis will perform the following actions:
- Download PDF files for all hymns into a folder named
.local/cachein the current directory. - Add hymn numbers to the first page of each hymn, in the correct corner.
- Arrange all hymns into a single PDF file.
- Add blank pages if necessary to keep two-page hymns in a single spread.
- Write the combined PDF file to
hymns-eng-letter.pdfin the current directory. Ifhymns-eng-letter.pdfalready exists, it will be overwritten.
The resulting PDF is designed to be printed double-sided.
Any files that need to be downloaded to generate the final PDF will be saved in
a directory named .local/cache inside the current directory. If files already
exist in the cache folder, they will not be downloaded again.
You can safely delete this folder and everything in it. The next time you use this tool, the files will be downloaded again.
The default language is English. The default paper size is Letter (8.5 x 11 inches).
You can specify a different language or a different paper size by using --lang or
--size when you run the tool:
> uvx hymns --lang spa --size a4
# or abbreviated:
> uvx hymns -l spa -s a4Currently supported languages are:
eng: Englishfra: Frenchpor: Portuguese (Brazil)spa: Spanish
Currently supported paper sizes are:
letter: 8.5 x 11 inchesa4: 210 x 297 mm
You can generate all possible combinations of language and paper size by running:
> uvx --from hymns gen-all-hymnsIf you already have a printed copy of a previous version, you only need to print added or changed pages to update your copy.
- Print pages 1–2 to replace pages 1–2 in your existing copy.
- Print pages 17–36 to replace pages 17–18 in your existing copy.
- Print pages 1–2 to replace pages 1–2 in your existing copy.
- Print pages 35–60 to replace pages 35–36 in your existing copy.
- Print pages 67–69 to insert at the end of your existing copy.
- Print pages 1–2 to replace pages 1–2 in your existing copy.
- Print pages 55–70 to replace pages 55–58 in your existing copy.
- Print page 83 to insert at the end of your existing copy.
- Print pages 1–2 to replace pages 1–2 in your existing copy.
- Print pages 71–84 to insert after page 70 in your existing copy.
- Print pages 95–99 to replace pages 81–83 in your existing copy.
- Print pages 1–2 to replace pages 1–2 in your existing copy.
- Print pages 83–102 to replace pages 83–84 in your existing copy.
- Print page 119 to insert at the end of your existing copy.