]> pere.pagekite.me Git - text-destroy-surveillance.git/commitdiff
Generate UTF-8 HTML files.
authorPetter Reinholdtsen <pere@hungry.com>
Mon, 12 Oct 2020 12:43:53 +0000 (14:43 +0200)
committerPetter Reinholdtsen <pere@hungry.com>
Mon, 12 Oct 2020 12:43:53 +0000 (14:43 +0200)
Makefile
docbook-utf8.xsl [new file with mode: 0644]

index c0092e3ce24d3db3abc67385123fc06372e99615..44413e7f4edd03964b7995af294a1539de9222c3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -43,7 +43,7 @@ $(SOURCE).nb.pdf: $(SOURCE).nb.xml Makefile pdf.xsl
        dbtoepub -s epub.xsl $^ -o $@
 
 .xml.html:
-       xmlto -m pdf.xsl html-nochunks $^
+       xmlto -x docbook-utf8.xsl -m pdf.xsl html-nochunks $^
 
 XMLLINTOPTS = --nonet --noout  --xinclude --postvalid 
 lint: book.xml
diff --git a/docbook-utf8.xsl b/docbook-utf8.xsl
new file mode 100644 (file)
index 0000000..549ae30
--- /dev/null
@@ -0,0 +1,10 @@
+<?xml version='1.0'?>
+<xsl:stylesheet  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                 version="1.0">
+
+<xsl:import href="/usr/share/xml/docbook/stylesheet/docbook-xsl/html/docbook.xsl"/>
+<xsl:output method="html"
+            encoding="UTF-8"
+            indent="no"/>
+
+</xsl:stylesheet>