manual: Convert cover SVG to a template file

We generate the previous SVG by doing sed substitutions to insert the
front cover and spine titles, plus the rear cover text. A follow-up
commit will generate the French and Spanish covers as well.
This commit is contained in:
Simon Howard 2025-05-22 15:21:34 -04:00
parent 5b89315bcc
commit 868e9fa6c8
3 changed files with 25 additions and 35 deletions

View file

@ -11,7 +11,8 @@
ASCIIDOCTOR_FLAGS = -a pdf-page-size=A5
MANUAL_ADOC_FILES=$(wildcard freedoom-manual-??.adoc)
MANUAL_PDF_FILES=$(subst .adoc,.pdf,$(MANUAL_ADOC_FILES))
COVER_PDF_FILES=cover.pdf
COVER_PDF_FILES=cover-en.pdf
COVER_SVG_FILES=$(patsubst %.pdf,cover/%.svg,$(COVER_PDF_FILES))
all: $(MANUAL_PDF_FILES)
@ -24,8 +25,11 @@ covers: $(COVER_PDF_FILES)
freedoom-manual-%.pdf: freedoom-manual-%.adoc
-asciidoctor-pdf $(ASCIIDOCTOR_FLAGS) $< -o $@
cover.pdf: cover/cover.svg cover/serpentipede.png cover/minigunner.png
cover/cover-%.svg: cover/cover-%.sed cover/template.svg
sed -f $< < cover/template.svg > $@
cover-%.pdf: cover/cover-%.svg cover/serpentipede.png cover/minigunner.png
inkscape -o $@ $<
clean:
$(RM) $(MANUAL_PDF_FILES) $(COVER_PDF_FILES)
$(RM) $(MANUAL_PDF_FILES) $(COVER_PDF_FILES) $(COVER_SVG_FILES)

13
manual/cover/cover-en.sed Normal file
View file

@ -0,0 +1,13 @@
s/__BACK_TEXT__/\
Freedoom is an open-content First-Person\
Shooter (FPS) game that is Free and Open\
Source Software. Developed by volunteers\
since 2001, Freedoom is made available\
under the 3-clause BSD license.\
\
This manual gives a wealth of information,\
including how to play the game, strategy,\
tips and tricks and more./
s/__FRONT_TITLE__/Game Manual/
s/__SPINE_TITLE__/Freedoom Manual/

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 53 KiB

Before After
Before After