]> pere.pagekite.me Git - text-madewithcc.git/commitdiff
Added a colophon for Spanish
authorGunnar Wolf <gwolf@gwolf.org>
Thu, 31 Oct 2019 01:08:10 +0000 (19:08 -0600)
committerGunnar Wolf <gwolf@gwolf.org>
Thu, 31 Oct 2019 01:08:10 +0000 (19:08 -0600)
extra/es/colophon.tex [new file with mode: 0644]
fixup-docbook-translated.rb

diff --git a/extra/es/colophon.tex b/extra/es/colophon.tex
new file mode 100644 (file)
index 0000000..43be9de
--- /dev/null
@@ -0,0 +1,44 @@
+\vfill
+
+% Terminamos en página par; deja una página vacía para que el colofón
+% también esté en par
+\eject
+\pagestyle{empty}
+\quad
+\eject
+
+\pagestyle{empty}
+
+\mbox{}
+\vfill
+\centering
+
+\parbox{0.5\textwidth}{
+  \scriptsize
+  \centering
+
+  \textit{Hecho con Creative Commons} es una obra del Instituto de
+  Investigaciones Económicas de la Universidad Nacional Autónoma de
+  México. Se terminó de imprimir el 5 de noviembre de 2019.
+
+  \vskip 1em
+
+  Se tiraron 200 ejemplares en impresión digital en los talleres de
+  Dataprint, Georgia 181, colonia Nápoles, delegación Benito Juárez,
+  03810, CdMx.
+
+  \vskip 1em
+
+  La formación tipográfica estuvo a cargo de Gunnar Wolf, empleando el
+  sistema tipográfico \LaTeX, el generador pandoc y el lenguaje
+  semántico DocBook, utilizando la fuente Computer Modern.
+
+  \vskip 1em
+
+  La impresión se realizó sobre papel bond de 90g. El cuidado de la
+  edición estuvo a cargo de Marisol Simón.
+
+}
+
+\vfill
+
index 696c0dd97874f67d90a55840af4502f09419abd8..38ec06e98fdf01fdba0f7c6d907e7fc99b1d5696 100644 (file)
@@ -59,11 +59,23 @@ xml.search('preface').each do |pref|
   log 1, 'Moved: %s' % attrib_text
 end
 
-log 0, 'Replace colophon + legalinfo by the information assembled by our publisher'
+log 0, 'Replace legal info by the information assembled by our publisher'
 if legal = File.open('extra/es/legal_info.xml', 'r').read rescue nil
   xml.search('colophon').first.inner_html = legal
 end
 
+log 0, 'Add a colophon at the end'
+# Doing this the dirty, non-DocBooky way: I'm adding a large <?latex
+# ... ?> section to the last appendix. This should probably go in the
+# <colophon> section, but it's already used.
+#
+# A cleaner way would be to replace the <xsl:param
+# name="latex.enddocument"> section in pdf_es.xsl — But it gets
+# trickier :-Þ
+if colophon = File.open('extra/es/colophon.tex', 'r').read rescue nil
+  xml.search('appendix').last.search('para').last.after('<?latex %s ?>' % colophon)
+end
+
 
 log 0, 'Writing processed file'
 # Unable to figure out API way to replace DOCTYPE