From 6f024dc94d27ecd51887ed1f1dbff2f3637dc4e7 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Tue, 22 Sep 2020 00:18:21 +0200 Subject: [PATCH] Use formatting rules in epub too. --- Makefile | 4 ++-- epub.xsl | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 epub.xsl diff --git a/Makefile b/Makefile index 2a05994..e8123be 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,7 @@ mekaniker-ordbok-nb.pdf: $(SOURCE_NB) dblatex $(DBLATEX_OPTS) -o $@ book.xml mekaniker-ordbok-nb.epub: $(SOURCE_NB) - dbtoepub book.xml -o $@ + dbtoepub -s epub.xsl book.xml -o $@ mekaniker-ordbok-nb.html: $(SOURCE_NB) xmlto -m pdf.xsl html-nochunks book.xml @@ -54,7 +54,7 @@ mekaniker-ordbok-sme.pdf: $(SOURCE_SME) dblatex $(DBLATEX_OPTS) -o $@ book-sme.xml mekaniker-ordbok-sme.epub: $(SOURCE_SME) - dbtoepub book-sme.xml -o $@ + dbtoepub -s epub.xsl book-sme.xml -o $@ mekaniker-ordbok-sme.html: $(SOURCE_SME) xmlto -m pdf.xsl html-nochunks book-sme.xml diff --git a/epub.xsl b/epub.xsl new file mode 100644 index 0000000..2e00256 --- /dev/null +++ b/epub.xsl @@ -0,0 +1,5 @@ + + + + + -- 2.47.2