-spec.html: spec-html.xml TidyHTML-spec MyStyle-chunk-html.xsl \
- MyStyle-html.xsl MyStyle.xsl
- /bin/rm -rf spec_html
- xmlto -x MyStyle-chunk-html.xsl -o spec_html html spec-html.xml
- ./TidyHTML-spec
+spec-txt.html: spec-txt.xml \
+ MyStyle-txt-html.xsl MyStyle-html.xsl MyStyle.xsl
+ xmlto -x MyStyle-txt-html.xsl html-nochunks $<
+
+spec.utf8: spec-txt.html Tidytxt
+ @grep -iq 'LC_CTYPE=.*utf-\?8' local_params || { \
+ echo 'your current locale does not support UTF-8' >&2; \
+ false; }
+ w3m -dump $< | ./Tidytxt -utf8 >$@
+
+spec.txt: spec-txt.html Tidytxt
+ LC_ALL=C w3m -dump $< | ./Tidytxt >$@
+ ./SanityTestText spec.txt