X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/blobdiff_plain/41e7f5db39253d0d5b0a7acd86bcdc4ff89dfdd4..8058e4606e20727c168c8ff6a1f4b9721ef06a09:/Makefile 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/; \