]> pere.pagekite.me Git - text-madewithcc.git/blobdiff - fixup-docbook-translated.rb
Publish nb epub and pdf editions.
[text-madewithcc.git] / fixup-docbook-translated.rb
index d04f250d48d0140585e0b2ad21a2520159dc3ff2..2d084a9479f7137068af77659478bad125b59b82 100644 (file)
@@ -26,7 +26,7 @@ if intro = File.open('extra/%s/intro_%s.xml' % [lang, lang],
   log 0, 'Including the %s version introduction' % lang
   xml.search('preface').last.after( intro )
 else
-  log 0, ' -!- Not including the %s introduction text'
+  log 0, ' -!- Not including the %s introduction text' % lang
 end
 
 if 'es' == lang
@@ -38,11 +38,11 @@ if 'es' == lang
 
     # Some formatting issues we need to modify
     attrib_text.gsub!(/Paul y Sarah/, 'Paul <?latex \textup{>y<?latex } > Sarah')
-    attrib_text.gsub!(/Merkley (CEO.*)/, 'Merkley <citetitle>\1</citetitle>')
+    attrib_text.gsub!(/Merkley,? (CEO.*)/, 'Merkley <citetitle>\1</citetitle>')
     attrib_text.gsub!(/Wolf (Ins.*)/, 'Wolf <citetitle>\1</citetitle>')
 
     attrib.remove
-    title.after('<blockquote><attribution>%s</attribution></blockquote>' % attrib_text)
+    title.after('<blockquote><attribution>%s</attribution><para/></blockquote>' % attrib_text)
     log 1, 'Moved: %s' % attrib_text
   end
 end