]> pere.pagekite.me Git - text-madewithcc.git/blobdiff - fixup-docbook.rb
Copyedited for Tribe of Noise
[text-madewithcc.git] / fixup-docbook.rb
index 7ed81df2f024c7ffe6494a9d5fcbdc8748b9f1a7..fb72e87a26f49bfacdf5849a3672798c345cb452 100755 (executable)
@@ -38,8 +38,8 @@ xml.css('articleinfo').each do |node|
 XML
   node.last_element_child.after(<<'XML')
 <publisher>
-    <publishername>Gunnar Wolf</publishername>
-    <address><city>Mexico City</city></address>
+    <publishername>Instituto de Investigaciones Económicas</publishername>
+    <address><city>Universidad Nacional Autónoma de México</city></address>
 </publisher>
 XML
 end
@@ -85,7 +85,9 @@ log 0, 'remove empty notes/web links sections'
 end
 
 log 0, 'remove title from dedication'
-xml.css('dedication title')[0].content = ""
+if ! xml.css('dedication title').empty?
+  xml.css('dedication title')[0].content = ""
+end
 
 log 0, 'move legal notice to bookinfo'
 xml.css('book bookinfo')[0].last_element_child.after('<legalnotice>')
@@ -143,7 +145,7 @@ Kickstarter.com platform.</para>
 <ulink url="https://gitlab.com/gunnarwolf/madewithcc-es/"/>, and the
 translations are maintained on
 <ulink url="https://hosted.weblate.org/projects/madewithcc/"/>.  If
-you find any error in the book, please let us know via gitlab.</para>
+you find any error in the book, please let us know via Gitlab or Weblate.</para>
 
 <para>
 Classifications: