From: Petter Reinholdtsen Date: Fri, 2 Feb 2018 07:44:08 +0000 (+0000) Subject: Use dblatex param instead of LaTeX editing to set charset encoding to UTF-8. X-Git-Tag: es-printed~512 X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/commitdiff_plain/e4be4de12aa4cc8f2a80f43d4aef570c8f7ef551?hp=2d5e52ac1ff23e3971f8ecc48bfd2915b69f15a6 Use dblatex param instead of LaTeX editing to set charset encoding to UTF-8. --- 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