From: Rocco Rutte Date: Thu, 29 Nov 2007 14:24:38 +0000 (+0100) Subject: Add a really ugly hack to make sure the plain text manual is us-ascii. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed4b59e28b8fa1cfe4571b92159cbffe7bec30fa;p=neomutt Add a really ugly hack to make sure the plain text manual is us-ascii. The hack is filtering manual.html to another HTML file but replacing unicode chars by their ascii equivalents. The intermediate file is used to dump HTML to us-ascii text (and only for that). --- diff --git a/doc/Makefile.am b/doc/Makefile.am index 15ab1f43e..7787c368f 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -27,6 +27,7 @@ EXTRA_DIST = dotlock.man \ smime-notes.txt \ Muttrc Muttrc.head stamp-doc-rc \ makedoc.c makedoc-defs.h \ + db-cleanup.xsl \ html.xsl chunk.xsl $(BUILT_DISTFILES) HTML_DOCFILES = manual.html index.html intro.html gettingstarted.html \ @@ -98,10 +99,11 @@ uninstall-local: done check: -manual.txt: manual.html - -lynx -dump -nolist -with_backspaces $^ > $@ || \ - w3m -dump $^ > $@ || \ - elinks -dump -no-numbering -no-references $^ > $@ +manual.txt: manual.html db-cleanup.xsl + -xsltproc --nonet -o manual-txt.html $(srcdir)/db-cleanup.xsl manual.html || cp manual.html manual-txt.html + -lynx -dump -nolist -with_backspaces manual-txt.html > $@ || \ + w3m -dump manual-txt.html > $@ || \ + elinks -dump -no-numbering -no-references manual-txt.html > $@ Muttrc: stamp-doc-rc diff --git a/doc/db-cleanup.xsl b/doc/db-cleanup.xsl new file mode 100644 index 000000000..d146a98e3 --- /dev/null +++ b/doc/db-cleanup.xsl @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +