- attrib.remove
- title.after('<blockquote><attribution>%s</attribution></blockquote>' % attrib_text)
- log 1, 'Moved: %s' % attrib_text
+# 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/%s/colophon.tex' % lang, 'r').read rescue nil
+ log 0, 'Add a colophon at the end'
+ xml.search('appendix').last.search('para').last.after('<?latex %s ?>' % colophon)
+else
+ log 0, ' -!- Not including the %s colophon text' % lang