X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/blobdiff_plain/068a33e0026c567fafc4d10d5a294c9a2a0987ae..c6c6d1ac6b72482d896edeba74953d64abc798e8:/fixup-docbook-translated.rb diff --git a/fixup-docbook-translated.rb b/fixup-docbook-translated.rb index d04f250..2d084a9 100644 --- a/fixup-docbook-translated.rb +++ b/fixup-docbook-translated.rb @@ -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 y Sarah') - attrib_text.gsub!(/Merkley (CEO.*)/, 'Merkley \1') + attrib_text.gsub!(/Merkley,? (CEO.*)/, 'Merkley \1') attrib_text.gsub!(/Wolf (Ins.*)/, 'Wolf \1') attrib.remove - title.after('
%s
' % attrib_text) + title.after('
%s
' % attrib_text) log 1, 'Moved: %s' % attrib_text end end