From de02bcd71888ae8c401618b533fce66de59f93e0 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Thu, 22 May 2025 15:41:30 -0400 Subject: [PATCH] manual: Generate covers for French, Spanish manuals This required some adjustment of the template to increase the size of the box on the rear cover containing the text. Text was translated by Google Translate; I have not yet had native speakers verify the accuracy of the translations. --- manual/Makefile | 5 ++++- manual/cover/cover-es.sed | 14 ++++++++++++++ manual/cover/cover-fr.sed | 12 ++++++++++++ manual/cover/template.svg | 6 +++--- 4 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 manual/cover/cover-es.sed create mode 100644 manual/cover/cover-fr.sed diff --git a/manual/Makefile b/manual/Makefile index 75561fbb..ec825ce6 100644 --- a/manual/Makefile +++ b/manual/Makefile @@ -11,7 +11,7 @@ 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-en.pdf +COVER_PDF_FILES=cover-en.pdf cover-es.pdf cover-fr.pdf COVER_SVG_FILES=$(patsubst %.pdf,cover/%.svg,$(COVER_PDF_FILES)) all: $(MANUAL_PDF_FILES) @@ -33,3 +33,6 @@ cover-%.pdf: cover/cover-%.svg cover/serpentipede.png cover/minigunner.png clean: $(RM) $(MANUAL_PDF_FILES) $(COVER_PDF_FILES) $(COVER_SVG_FILES) + +# Inkscape can't process files in parallel, it has to be sequential: +.NOTPARALLEL: covers diff --git a/manual/cover/cover-es.sed b/manual/cover/cover-es.sed new file mode 100644 index 00000000..0e2e7756 --- /dev/null +++ b/manual/cover/cover-es.sed @@ -0,0 +1,14 @@ +s/__BACK_TEXT__/\ +Freedoom es un videojuego de disparos en\ +primera persona de contenido abierto,\ +software libre y de código abierto.\ +Desarrollado por voluntarios desde 2001,\ +Freedoom está disponible bajo la licencia\ +BSD de 3 cláusulas.\ +\ +Este manual ofrece abundante información,\ +incluyendo cómo jugar, estrategia, consejos\ +y trucos, y mucho más./ + +s/__FRONT_TITLE__/Manual del Juego/ +s/__SPINE_TITLE__/Manual de Freedoom/ diff --git a/manual/cover/cover-fr.sed b/manual/cover/cover-fr.sed new file mode 100644 index 00000000..c0d14f03 --- /dev/null +++ b/manual/cover/cover-fr.sed @@ -0,0 +1,12 @@ +s/__BACK_TEXT__/\ +Freedoom est un jeu de tir à la première\ +personne libre et open source. Développé\ +par des bénévoles depuis 2001, Freedoom\ +est disponible sous licence BSD à 3 clauses.\ +\ +Ce manuel fournit une mine d'informations,\ +notamment sur le jeu, la stratégie, des\ +trucs et astuces, et bien plus encore./ + +s/__FRONT_TITLE__/Manuel du Jeu/ +s/__SPINE_TITLE__/Manuel Freedoom/ diff --git a/manual/cover/template.svg b/manual/cover/template.svg index 0681d084..6cdf373f 100644 --- a/manual/cover/template.svg +++ b/manual/cover/template.svg @@ -145,7 +145,7 @@ style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.1;stroke-opacity:1" id="rect1" width="379.91611" - height="220.88562" + height="247.25345" x="96.99765" y="448.37463" />__BACK_TEXT____BACK_TEXT__