X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/blobdiff_plain/a8104c5bdc5f52ba17176e0beb18c59f89d19097..c5bf0c01c996fbee49b8890f7bf9845a08dd5be0:/fixup-docbook-translated.rb
diff --git a/fixup-docbook-translated.rb b/fixup-docbook-translated.rb
index 1d7e3a0..696c0dd 100644
--- a/fixup-docbook-translated.rb
+++ b/fixup-docbook-translated.rb
@@ -52,12 +52,19 @@ xml.search('preface').each do |pref|
# Some formatting issues we need to modify
attrib_text.gsub!(/Paul y Sarah/, 'Paul y Sarah')
attrib_text.gsub!(/Merkley (CEO.*)/, 'Merkley
' % attrib_text) log 1, 'Moved: %s' % attrib_text end +log 0, 'Replace colophon + legalinfo 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, 'Writing processed file' # Unable to figure out API way to replace DOCTYPE data = xml.to_xml()%s