Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-pms
Navigation:
Lists: gentoo-pms: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-pms@g.o
From: David Leverton <levertond@...>
Subject: [PATCH 2/2] Update TeX4ht sed hacks
Date: Thu, 16 Apr 2009 20:37:27 +0100
Account for slightly different whitespace in the output of newer
versions, the possibility of tables in appendices, and the silly
locale-dependent behaviour of sed.
---
 Makefile |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 27d58c1..a9f1108 100644
--- a/Makefile
+++ b/Makefile
@@ -21,12 +21,12 @@ pms.html: $(SOURCEFILES) pms.bbl
 	xhlatex pms
 	@# work around irregularity in how links to longtables are
 	@# formatted in the List of Tables
-	sed -i -e '/<span class="lotToc" >&#x00A0;/{N;N;s/\(&#x00A0;<a \nhref="[^"]\+">\)\([0-9.]\+\)\n/\2\1/}' pms.html
+	LC_ALL=C sed -i -e '/<span class="lotToc" >&#x00A0;/{N;N;s/\(&#x00A0;<a \nhref="[^"]\+">\)\([0-9A-Z.]\+\)[ \n]/\2\1/}' pms.html
 	@# indent algorithms properly, and avoid adding extra vertical
 	@# space in Konqueror
-	sed -i -e 's/span style="width:/span style="display:-moz-inline-box;display:inline-block;height:1px;width:/' pms.html
+	LC_ALL=C sed -i -e 's/span style="width:/span style="display:-moz-inline-box;display:inline-block;height:1px;width:/' pms.html
 	@# align algorithm line numbers properly
-	sed -i -e '/<span class="ALCitem">/{N;s/\n\(class="[^"]\+">\)\([0-9]:\)<\/span>/\1\&#x2007;\2/}' pms.html
+	LC_ALL=C sed -i -e '/<span class="ALCitem">/{N;s/\n\(class="[^"]\+">\)\([0-9]:\)<\/span>/\1\&#x2007;\2/}' pms.html
 
 pms.bbl: pms.bib pms.tex vc.tex eapi-cheatsheet.pdf
 	latex pms
-- 
1.6.2.3



Replies:
Re: [PATCH 2/2] Update TeX4ht sed hacks
-- Yannick Mortier
Re: [PATCH 2/2] Update TeX4ht sed hacks
-- Ciaran McCreesh
References:
[PATCH] Work around TeX4ht being weird
-- David Leverton
[PATCH 1/2] Work around TeX4ht being weird
-- David Leverton
Navigation:
Lists: gentoo-pms: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
[PATCH 1/2] Work around TeX4ht being weird
Next by thread:
Re: [PATCH 2/2] Update TeX4ht sed hacks
Previous by date:
Re: Patches for your reviewing pleasure: Various improvements, including cheat sheet
Next by date:
[PATCH 1/2] Work around TeX4ht being weird


Updated Jul 18, 2012

Summary: Archive of the gentoo-pms mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.