From 8058e4606e20727c168c8ff6a1f4b9721ef06a09 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Tue, 6 Feb 2018 09:29:06 +0100 Subject: [PATCH] Replace hair space in latex file to avoid bug #889603. --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 0cb41ab..8327c89 100644 --- a/Makefile +++ b/Makefile @@ -87,9 +87,12 @@ epub: $(SOURCE).epub %.epub: %.xml dbtoepub $^ +# Replace Unicode Hair Space (U+200A) with space, as   is not +# handled by LaTeX/dblatex, see . %.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/; \ -- 2.47.2