Use this project to compile a single PDF containing all the hymns in the collection Hymns—For Home and Church.
Running hymns.py
will perform the following actions:
- Download PDF files for all hymns.
- Add hymn numbers to the first page of each hymn.
- 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.pdf
in the current directory. Ifhymns-eng-letter.pdf
already exists, it will be overwritten.
The resulting PDF is designed to be printed double-sided.
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 hymns.py
:
> python hymns.py --lang spa --size a4
# or abbreviated:
> python hymns.py -l spa -s a4
Currently 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:
> python gen-all.py
The official cover image for this new collection of hymns as found at the Churchʼs website is legally protected.
The Churchʼs wordmark and symbol are to be used only as approved by the First Presidency and Quorum of the Twelve Apostles. They may not be used as decorative elements. Nor may they be used in any personal, commercial, or promotional way. (General Handbook, 38.8.8)
To include the cover image on the first page of the generated file, you can use --cover
when you run hymns.py
:
> python hymns.py --cover
# or abbreviated
> python hymns.py -c
If 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.