]> pere.pagekite.me Git - text-madewithcc.git/commitdiff
Move removal of colophon title for latex step to docbook editing step.
authorPetter Reinholdtsen <pere@hungry.com>
Fri, 9 Feb 2018 14:24:35 +0000 (14:24 +0000)
committerPetter Reinholdtsen <pere@hungry.com>
Thu, 22 Feb 2018 18:12:09 +0000 (18:12 +0000)
Makefile
fixup-docbook.rb

index 08413604269e8b05e4e9117bf37205146612b535..7253d97bbbf470c0e62067f749290ea274739897 100644 (file)
--- 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 <URL: https://bugs.debian.org/889603 >.
 %.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
index 5de33e71ca8d4452c32430f433d0da48f64641a0..0d3b5ccba597519c1f2305ba1386527f38ecc32a 100755 (executable)
@@ -138,6 +138,9 @@ Kickstarter.com platform.</para>
 
 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