Quoting  "Thomas A. Schmitz" :
> -- was [EMAIL PROTECTED] on Oct 16, 2005 at 12:11:31 --

> In theory, you can say
> 
> \startregister[index]{great+topic} and \stopregister[index]{great+topic}

Many thanks Thomas, that's what I was looking for :))

> and this will do what you want. However, this is one of several bugs  
> in the index module of ConTeXt: this will print just this range and  
> gobble all other entries in the index for great/topic.

You're right, a quick test demonstrated the bug.
However, the .tui contained 
 r f {index} {108} {} {great+topic} {2--0-9-1-1-0-0-0--101} {111}
 r t {index} {109} {} {great+topic} {2--0-9-1-1-0-0-0--102} {112}
 c \listentry{subsubsection}{110}{}{A section}{2--0-9-1-2-0-0-0--102}{112}
 c \mainreference{}{eq:aneq}{2--0-9-1-2-0-0-0--102}{112}{37}
 r e {index} {111} {} {great+topic} {2--0-9-1-2-0-0-0--103} {113}

and the .tuo
%
% TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 / Registers
%
\registerentry{index}{a}
\registerentrya{index}{astonishing}
\registerentryb{index}{bug}
\registerpage{index}{,}{113}{2--0-9-1-3-0-0-0--103}{113}
\registerentry{index}{g}
\registerentrya{index}{great}
\registerentryb{index}{topic}
\registerfrom{index}{,}{108}{2--0-9-1-1-0-0-0--101}{111}
\registerpage{index}{,}{111}{2--0-9-1-2-0-0-0--103}{113}
\registerto{index}{,}{109}{2--0-9-1-1-0-0-0--102}{112}


When swapping the two last lines in the .tuo and running 
 texexec --once 
make it print the index
 great
   topic 101-102, 103

which is not that nice (should have been merged into 101-103), 
but recovered the missing file.

In the texutil script there seems to be only sorting on entries' labels
and no further sorting with the page number because it sorts this string
  join($JOIN,$Class,$LCKey,$Key,$Entry,$TextHow,$RegStatus,
         $RealPageNumber,$Location,$Page,$PageHow,$SeeToo) 

What about using a hash instead of a string to handle the register
entries' information so that it will be easier to handle the page ranges
after having sorted the labels?

> I wrote a note 
> to the list about these bugs about a week ago, but there were no  
> replies. I guess if there are two of us and we yell loud enough, Hans  
> will hear us eventually :-)

I'm with you :))

By the way, this may benefit Taco's bibmodule when implementing the
backtracking referencing mechanism...


Greetings,
Olivier




_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to