From: Petter Reinholdtsen Date: Tue, 6 Feb 2018 08:29:06 +0000 (+0100) Subject: Replace hair space in latex file to avoid bug #889603. X-Git-Tag: es-printed~574 X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/commitdiff_plain/8058e4606e20727c168c8ff6a1f4b9721ef06a09?hp=41e7f5db39253d0d5b0a7acd86bcdc4ff89dfdd4 Replace hair space in latex file to avoid bug #889603. --- 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/; \