summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2015-06-03 21:24:08 +0200
committerUlrich Müller <ulm@gentoo.org>2015-06-03 21:24:08 +0200
commit16f446142d8e0f29f29cb8f65baa6bfbef06aafb (patch)
tree52e6d60e928b0a550fbaff4b38b588e4d98d38e1
parentUse the same line width for Emacs and Vim. (diff)
downloadpms-16f44614.tar.gz
pms-16f44614.tar.bz2
pms-16f44614.zip
Makefile: Declare encoding of HTML output as utf-8.
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e7ccdc6..2b18660 100644
--- a/Makefile
+++ b/Makefile
@@ -27,6 +27,8 @@ pms.html: $(SOURCEFILES) pms.bbl
@# some www servers ignore meta tags, resulting in a wrong charset.
@# therefore recode the very few non-ascii characters
recode -d l1..h3 pms.html
+ @# declare encoding as utf-8, although it is pure ascii
+ LC_ALL=C sed -i -e '/<?xml\|<meta/s/iso-8859-1/utf-8/' pms.html
@# work around irregularity in how links to longtables are
@# formatted in the List of Tables
LC_ALL=C sed -i -e '/<span class="lotToc" >&#x00A0;/{N;N;s/\(&#x00A0;<a \nhref="[^"]\+">\)\([0-9A-Z.]\+\)[ \n]/\2\1/}' pms.html