if legal = File.open('extra/%s/legal_info.xml' % lang, 'r').read rescue nil
log 0, 'Replace legal info by the information assembled by our publisher'
xml.search('colophon').first.inner_html = legal
+else
+ log 0, ' -!- Not including the %s legal_info text' % lang
end
# Doing this the dirty, non-DocBooky way: I'm adding a large <?latex
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
end