Changes:
2020-08-04 Bert Bos <bert@luna.phonk.net>
* unent.hash: gperf 3.1 generates size_t instead of unsigned int.
* Makefile.am: Call gperf on unent.hash with "-k 1-6" instead of
"-k 1,2,$ -D". Added test select25.sh.
* select25.sh: Test added. (Contributed by Hugo Peixoto.)
* selector.c: An attribute selector with an empty string such as
[foo=''], resulted in a NULL value instead of an empty string,
which led to a crash. (Found and fixed by Hugo Peixoto.)
2019-10-05 Bert Bos <bert@w3.org>
* Published version 7.8.
* textwrap.c, langinfo.c, hxnormalize.c: Added knowledge about
languages that do not use spaces between words. In such languages,
a newline should not be converted to a space in outc() in
textwrap.c, but only to a break opportunity.
2019-08-28 Bert Bos <bert@w3.org>
* hxtoc.c: The element to group headings in HTML5 is called
HGROUP, not HEADER. The heading of a section (SECTION, ARTICLE,
etc.) need not be the first element, there may be non-header
elements before it.
* hxwls.c: Print "longdesc", "classid" or "codebase" in the second
column for the corresponding attribute. Also recognize srcset
(somewhat).
2018-08-03 Bert Bos <bert@w3.org>
* hxnormalize.c: Added option -X to indicate the input is XML
instead of HTML. Handle conversion of CDATA elements to XML by
escaping < and & instead of adding <![CDATA[. Added corresponding
test normalize13.sh.
2018-04-29 Bert Bos <bert@w3.org>
* Released version 7.7.
* dtd.hash: Don't include the arguments in the forward declaration
of lookup_element(), because those arguments differ slightly
depending on which version of gperf is used to generate dtd.c:
"unsigned int" in gperf 3.0 vs "size_t" in gperf 3.1.
* conficgure.ac: Check for libiconv with the AM_ICONV macro (from
gettext) instead of AC_SEARCH_LIBS. (Advice from Christian
Weisgerber, received via Anthony Bentley). That in turn requires
adding config.rpath to the EXTRA_DIST in Makefile.am.
2018-02-23 Bert Bos <bert@w3.org>
* tests/index10.sh: Added a test for a term database.
* hxindex.c: Replaced fgets() by getline(), to allow lines of
arbitrary length in the term database.
2018-02-15 Bert Bos <bert@w3.org>
* tests/index9.sh: Added a test for hxindex's option -N.
* tests/index5.sh: Updated for hxindex's option -N.
* tests/cite5.sh: Added the example from hxmkbib.1 as a test.
* tests/normalize12.sh: Added a test for the NOSCRIPT element.
* hxindex.1: Added option -N.
* hxmkbib.1: The example was missing some "%" signs.
* hxmkdir.c: Read the template before reading the auxfile, so that
a pipe like "hxcite -a auxfile bib template | hxmkbib -a auxfile
bib" becomes possible. hxcite will have the time to finishe
writing the auxfile before hxmkbib reads it.
2018-02-12 Bert Bos <bert@w3.org>
* hxindex.c: Added option -N.
* dtd.hash: Since HTML5, the NOSCRIPT element is phrase-level
instead of block-level.
2018-02-09 Bert Bos <bert@w3.org>
* Version 7.6 released.
* selmatch.c: matches_sel() could read uninitialized memory
(h->parent where h is the root of a tree) potentially leading to a
SIGBUS. Thanks to Anthony J. Bentley for finding this bug.
2018-01-20 Bert Bos <bert@w3.org>
* Version 7.5 released.
* hxcite.1: Spelling error.
* hxincl.1: Spelling error.
* url.c: Fixed unsafe way to call warnx(). Thanks to Robin
Naundorf for these three corrections.
2017-12-08 Bert Bos <bert@w3.org>
* tests/normalize11.sh: Added to test for "main".
* dtd.hash: Added the HTML5 element "main".
2017-12-07 Bert Bos <bert@w3.org>
* hxwls.c: Added support for HTML5 elements (source, audio, video)
and for the classid and codebase attribute. Fixed an error: input
has a src attribute, not href.