From: Petter Reinholdtsen Date: Wed, 30 Sep 2015 07:15:16 +0000 (+0200) Subject: Fix pages in epub and html version. X-Git-Tag: edition-2015-10-10~50 X-Git-Url: https://pere.pagekite.me/gitweb/text-free-culture-lessig.git/commitdiff_plain/b9ec14bc457cf4e191d31d2515f64efb33a78732?hp=de8c61547fc200dec4e099bc958879835cc97f80 Fix pages in epub and html version. --- diff --git a/Makefile b/Makefile index eb9e4ba..2166654 100644 --- a/Makefile +++ b/Makefile @@ -44,6 +44,11 @@ HTML_XSLT = \ data/html.xsl \ data/stylesheet-html.xsl +EPUB_XSLT = \ + $(XSLT) \ + data/html.xsl \ + data/stylesheet-epub.xsl + PDF_XSLT = \ $(DB_XSLT) \ $(XSLT) \ @@ -134,8 +139,10 @@ pdf-compare: freeculture.xml $(IMAGES) %.txt: %.xml $(IMAGES) xmlto txt $< -%.epub: %.xml $(IMAGES) - $(DBTOEPUB) $< +%.epub: %.xml $(IMAGES) $(EPUB_XSLT) + $(DBTOEPUB) \ + -s data/stylesheet-epub.xsl \ + $< %.mobi: %.epub ebook-convert $< $@ diff --git a/data/html.xsl b/data/html.xsl index 43cd579..4f25199 100644 --- a/data/html.xsl +++ b/data/html.xsl @@ -8,4 +8,22 @@ 3 + + + + +
+ + + + + + + + +
+
+