2013-03-23 Bert Bos * toc1.sh: Added a first test for hxtoc. * Removed type Boolean in favor of bool from stdbool.h. * hxtoc.c: Implemented the HTML5 algorithm which says that a Hn that is the first child of a sectioning element (or of a HGROUP that is itself the first child of a sectioning element) doesn't have level n, but a level equal to the number of ancestors that are sectioning elements. Where a sectioning element is a DIV, SECTION, ARTICLE, ASIDE or NAV whose first child is either an HGROUP or an Hn. 2013-03-18 Bert Bos * hxtoc.c: option -d not only looks for DIV elements, but now also for ARTICLE, ASIDE, NAV and SECTION. 2013-01-09 Bert Bos * Released 6.3 * scan.l: A lonely "<" is allowed in SGML (although not in XML). Accept it and turn it into a "<". 2012-11-16 Bert Bos * tests: Added incl10.sh, incl11.sh and index5.sh. * hxindex.c: Fixed bug in command line parsing that caused hxindex not to accept the -b option. Added options -s and -u to control the title attribute that is added on links when -n is used. The title attribute now contains something like "section 3.2" or, if -b is also used, something like "Working with cork, section 3.2". The format of the index database for option -i changed and now includes the document title. The program now uses errx() instead of errexit(), so that error messages include the program name. 2012-10-23 Bert Bos * openurl.c: Added some assert() statements. * hxincl.c: Added options -v and -M. * hxaddid.c hxcite.c hxcopy.c hxextract.c hxpipe.c hxref.c hxremove.c hxselect.c: Added option -v to print the version number. * hxtabletrans.c: Added. 2012-10-21 Bert Bos * selector.c: Renamed Root to RootSel to avoid clash with Root in tree.c * hxremove.c: Added * tree.c: Added some routines to add nodes to a tree without checking against the HTML DTD (useful for generic XML documents and used by hxremove) 2012-10-19 Bert Bos * scan.l: added set_yyin() and get_yyin_name() to store/retrieve the name of the file that is going to parsed. Also added the file name as a parameter to include_file(). This is used by hxincl.c * hxincl.c: Now remembers the name of the included file so that the path of a recursively included file is relative to the file that includes it, rather than to the top level file. 2012-10-18 Bert Bos * hxincl.c: Now allows %-delimited variables in the file name that is to be included. 2012-10-09 Bert Bos * extract1.sh: Added a "sleep 1" after starting the servers to allow them more time to start and open some sockets. * hxref.c: "@", "(", ")" and "_" are now treated as significant letters when comparing terms. * genid.c: "@" is now used in the generated ID replaced by the letters "at" and "_" is kept as is. 2012-10-02 Bert Bos * Released version 6.2 * html.y: fixed type error in call() macro: void != NULL. (Bug found by Michael Tautschnig of Debian) 2012-08-31 Bert Bos * hxnormalize.c: When checking whether an optional end tag can be omitted, skip any text nodes with only spaces. In HTML mode, don't try to guess the attribute name for a given attribute value (i.e., dont replace by
), but leave the attribute value alone. * textwrap.c: fixed bug that created lines indented with spaces and no further content. * dtd.hash: insert line break before , and