]> pere.pagekite.me Git - text-madewithcc.git/blobdiff - Makefile
Use dblatex param instead of LaTeX editing to set charset encoding to UTF-8.
[text-madewithcc.git] / Makefile
index 8b9926ceaf6dd2bcdfd9e3c83f35a6e58fe4a7e4..a36377c9ee30968951f7510762c5f1efd213a782 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -82,8 +82,7 @@ epub: $(SOURCE).epub
 # handled by LaTeX/dblatex, see <URL: https://bugs.debian.org/889603 >.
 %.tex: %.xml
        dblatex -T simple -t tex -b xetex -p extra/pdf.xsl $^
-       perl -p -i -e 's/\[latin1\]\{inputenc\}/[utf8]{inputenc}/; \
-               s/\\caption\\end/\\caption{} \\end/; \
+       perl -p -i -e 's/\\caption\\end/\\caption{} \\end/; \
                s/ / /g; \
                s/\\chapter\{(Colophon|Dedication)\}/\\chapter*{}/; \
                s/\\chapter\{(Foreword|Prefacio|Forord|Introduction|Introducción|Introduksjon)\}/\\chapter*{$$1} \\addcontentsline{toc}{chapter}{$$1}/; \