From: Petter Reinholdtsen Date: Fri, 9 Feb 2018 14:24:35 +0000 (+0000) Subject: Move removal of colophon title for latex step to docbook editing step. X-Git-Tag: es-printed~495 X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/commitdiff_plain/17ae076995b523b870751f39389eedd42ccfabed Move removal of colophon title for latex step to docbook editing step. --- diff --git a/Makefile b/Makefile index 0841360..7253d97 100644 --- a/Makefile +++ b/Makefile @@ -101,8 +101,7 @@ DBLATEX_OPTS = -T simple -t tex -b xetex -p extra/pdf.xsl # handled by LaTeX/dblatex, see . %.tex: %.xml dblatex $(DBLATEX_OPTS) $^ - perl -p -i -e 's/ / /g; \ - s/\\chapter\{(Colophon|Dedication)\}/\\chapter*{}/;' $@ + perl -p -i -e 's/ / /g' $@ XMLLINTOPTS = --nonet --noout --xinclude --postvalid lint: $(SOURCE).xml diff --git a/fixup-docbook.rb b/fixup-docbook.rb index 5de33e7..0d3b5cc 100755 --- a/fixup-docbook.rb +++ b/fixup-docbook.rb @@ -138,6 +138,9 @@ Kickstarter.com platform. XML +log 0, 'remove title from colophon' +xml.css('colophon title')[0].content = "" + log 0, 'change CC logo images to informalfigure' xml.css('figure mediaobject imageobject imagedata[width="40.0%"]').each do |id| f = id.parent.parent.parent