%.epub: %.xml
dbtoepub $^
+# Replace Unicode Hair Space (U+200A) with space, as   is not
+# handled by LaTeX/dblatex, see <URL: https://bugs.debian.org/889603 >.
%.tex: %.xml
dblatex -t tex -b xetex $^
perl -p -i -e 's/\[latin1\]\{inputenc\}/[utf8]{inputenc}\n\\usepackage[$(TEXLANG)]{babel}/; \
+ s/ / /g; \
s/\\setcounter\{tocdepth\}.*/\\setcounter{tocdepth}{1}/; \
s/\\setcounter\{secnumdepth\}.*/\\setcounter{secnumdepth}{-1}/; \
s/\\caption\\end/\\caption{} \\end/; \