Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/pms:eapi-6 commit in: /
Date: Sun, 30 Aug 2015 19:03:35
Message-Id: 1433359448.16f446142d8e0f29f29cb8f65baa6bfbef06aafb.ulm@gentoo
1 commit: 16f446142d8e0f29f29cb8f65baa6bfbef06aafb
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 3 19:24:08 2015 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 3 19:24:08 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=16f44614
7
8 Makefile: Declare encoding of HTML output as utf-8.
9
10 Makefile | 2 ++
11 1 file changed, 2 insertions(+)
12
13 diff --git a/Makefile b/Makefile
14 index e7ccdc6..2b18660 100644
15 --- a/Makefile
16 +++ b/Makefile
17 @@ -27,6 +27,8 @@ pms.html: $(SOURCEFILES) pms.bbl
18 @# some www servers ignore meta tags, resulting in a wrong charset.
19 @# therefore recode the very few non-ascii characters
20 recode -d l1..h3 pms.html
21 + @# declare encoding as utf-8, although it is pure ascii
22 + LC_ALL=C sed -i -e '/<?xml\|<meta/s/iso-8859-1/utf-8/' pms.html
23 @# work around irregularity in how links to longtables are
24 @# formatted in the List of Tables
25 LC_ALL=C sed -i -e '/<span class="lotToc" >&#x00A0;/{N;N;s/\(&#x00A0;<a \nhref="[^"]\+">\)\([0-9A-Z.]\+\)[ \n]/\2\1/}' pms.html