This is the mail archive of the davenport@berkshire.net mailing list for the Davenport project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

DAVENPORT: generating index with 'collateindex.pl -g'



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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]