Use links w/ UTF-8 output for HTML->TXT

Stop using old `lynx`; use `links`, and use UTF-8 codepage for
output (for Russian, Chinese, etc. to still work right).

Regenerate all TXT versions of docs available in HTML.
This commit is contained in:
Bill Kendrick 2017-12-03 10:59:26 -08:00
parent 40d5949150
commit f9b677e40d
25 changed files with 6403 additions and 5594 deletions

View file

@ -7,16 +7,13 @@
# Bill Kendrick
# bill@newbreedsoftware.com
#
# Sept. 4, 2005 - August 19, 2014
# Sept. 4, 2005 - December 3, 2017
# $Id$
# Bah, "-no-numbering" and "-no-references" went away recently!? -bjk 2008.04.28
LINKS_OPTIONS:=-dump
LINKS_OPTIONS:=-dump -codepage utf8
LINKS:=links $(LINKS_OPTIONS)
LYNX_OPTIONS:=-dump
LYNX:=lynx $(LYNX_OPTIONS)
# FIXME: Support finding files in ??/html/ and ??_??/html/)
HTMLFILES:=$(wildcard html/*.html)
TEXTFILES:=$(patsubst html/%.html,%.txt,$(HTMLFILES))
@ -91,16 +88,16 @@ $(IT_TEXTFILES): it/%.txt: it/html/%.html
$(LINKS) $< > $@
$(JA_TEXTFILES): ja/%.txt: ja/html/%.html
$(LYNX) $< > $@
$(LINKS) $< > $@
$(NL_TEXTFILES): nl/%.txt: nl/html/%.html
$(LINKS) $< > $@
$(RU_TEXTFILES): ru/%.txt: ru/html/%.html
$(LYNX) $< > $@
$(LINKS) $< > $@
$(ZH_CN_TEXTFILES): zh_cn/%.txt: zh_cn/html/%.html
$(LYNX) $< > $@
$(LINKS) $< > $@
$(ZH_TW_TEXTFILES): zh_tw/%.txt: zh_tw/html/%.html
$(LYNX) $< > $@
$(LINKS) $< > $@