]> pere.pagekite.me Git - text-madewithcc.git/commitdiff
Replace hair space in latex file to avoid bug #889603.
authorPetter Reinholdtsen <pere@hungry.com>
Tue, 6 Feb 2018 08:29:06 +0000 (09:29 +0100)
committerPetter Reinholdtsen <pere@hungry.com>
Tue, 6 Feb 2018 08:29:06 +0000 (09:29 +0100)
Makefile

index 0cb41ab4d0a63ec188402d8d8b9f2cd6a588018c..8327c897f88bd9882b30acb51680ecd990c0c258 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -87,9 +87,12 @@ epub: $(SOURCE).epub
 %.epub: %.xml
        dbtoepub $^
 
+# Replace Unicode Hair Space (U+200A) with space, as &hairsp; is not
+# handled by LaTeX/dblatex, see <URL: https://bugs.debian.org/889603 >.
 %.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/; \