This is the mail archive of the
davenport@berkshire.net
mailing list for the Davenport project.
DAVENPORT: generating index with 'collateindex.pl -g'
- To: davenport@berkshire.net
- Subject: DAVENPORT: generating index with 'collateindex.pl -g'
- From: Jochen Hein <jochen@jochen.org>
- Date: 15 Jul 1999 21:54:05 +0200
- Reply-To: davenport@berkshire.net
Running collateindex.pl with '-g' produces invalid output:
perl collateindex.pl -g -o index.sgml HTML.index
jade -t sgml -ihtml -d style.dsl\#html -V nochunks referenz.sgml > referenz.html
jade:index.sgml:22:10:E: end tag for element "INDEXDIV" which is not open
The following patch for:
# $Id: collateindex.pl,v 1.1.1.2 1999/01/28 15:23:14 rosalia Exp $
fixes that:
--- collateindex.pl.orig Thu Jul 15 20:49:26 1999
+++ collateindex.pl Thu Jul 15 20:49:52 1999
@@ -270,7 +270,6 @@
if (!&tsame($last, $idx, 'primary')) {
print "DIFF PRIM\n" if $debug;
&end_entry() if not $first;
- $first = 0; # there can only be on first ;-)
if ($lettergroups) {
# If we're grouping, make the right indexdivs
@@ -334,6 +333,7 @@
&print_term($idx);
$last = $idx;
+ $first = 0; # there can only be on first ;-)
}
# Termcount is > 0 iff some entries were skipped.
As a sidenode, jadetex renders the output as follows:
StichwortverzeichniDs
^ D-word
A ....
A-word
...
^marks the problem.
Jochen
--
We're showing progress. Things are getting worse at a slower rate.