diff options
author | Ulrich Müller <ulm@gentoo.org> | 2015-06-03 21:24:08 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2015-06-03 21:24:08 +0200 |
commit | 16f446142d8e0f29f29cb8f65baa6bfbef06aafb (patch) | |
tree | 52e6d60e928b0a550fbaff4b38b588e4d98d38e1 /Makefile | |
parent | Use the same line width for Emacs and Vim. (diff) | |
download | pms-16f446142d8e0f29f29cb8f65baa6bfbef06aafb.tar.gz pms-16f446142d8e0f29f29cb8f65baa6bfbef06aafb.tar.bz2 pms-16f446142d8e0f29f29cb8f65baa6bfbef06aafb.zip |
Makefile: Declare encoding of HTML output as utf-8.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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" > /{N;N;s/\( <a \nhref="[^"]\+">\)\([0-9A-Z.]\+\)[ \n]/\2\1/}' pms.html |