- if File.exists?(trans_img)
- log 1, 'Replaced %s by %s' % [orig_img, trans_img]
- img.set_attribute('fileref', trans_img)
- end
-end
-
-log 0, 'Final editorial requests: Attributions on top, as in other chapters, also for prefaces'
-xml.search('preface').each do |pref|
- title = pref.search('title').first
- attrib = pref.search('blockquote').last
- attrib_text = attrib.inner_text.gsub(/\s+/,' ')
-
- # 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!(/Wolf (Ins.*)/, 'Wolf <citetitle>\1</citetitle>')
+ # 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!(/Wolf (Ins.*)/, 'Wolf <citetitle>\1</citetitle>')