end
end
-log 0, 'Including the %s version introduction' % lang
if intro = File.open('extra/%s/intro_%s.xml' % [lang, lang],
'r').read rescue nil
+ log 0, 'Including the %s version introduction' % lang
xml.search('preface').last.after( intro )
else
- log 0, ' -!- Introduction text not found or empty'
+ log 0, ' -!- Not including the %s introduction text' % lang
end
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