From e4be4de12aa4cc8f2a80f43d4aef570c8f7ef551 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Fri, 2 Feb 2018 07:44:08 +0000 Subject: [PATCH] Use dblatex param instead of LaTeX editing to set charset encoding to UTF-8. --- Makefile | 3 +-- extra/pdf.xsl | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8b9926c..a36377c 100644 --- a/Makefile +++ b/Makefile @@ -82,8 +82,7 @@ epub: $(SOURCE).epub # handled by LaTeX/dblatex, see . %.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}/; \ diff --git a/extra/pdf.xsl b/extra/pdf.xsl index 5703ef2..1192e51 100644 --- a/extra/pdf.xsl +++ b/extra/pdf.xsl @@ -15,6 +15,8 @@ 1 openright,twoside + utf8 + example -- 2.47.2