1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
Author: Daniel Baumann <daniel@debian.org>
Description: Fixing anchors to be proper html.
Last-Update: 2012-05-20
--- a/Makefile
+++ b/Makefile
@@ -54,6 +54,7 @@ $(foreach l,$(TRANSLATIONS),$(addprefix $(l)/,$(TXTFILES))):
$(foreach l,$(LANGS),book-$(l)): book-%: book-%.xml
xmlto -m custom-html.xsl -o book-$* html book-$*.xml
sed -i'' -e 's/xmlns:fo[^ ]*//g' book-$*/*.html
+ sed -i -e 's|<a name="_|<a id="|g' -e 's|8230_and_then_some|and_then_some|g' -e 's|#_|#|g' book-$*/*.html
-ls book-$*/*.html | xargs -n 1 tidy -utf8 -m -i -q
./makeover $*
|