Dear ConTeXters,
there are 3 topics dealing with register (index):
1. [Spurious space] There are entries like
\registerpage{index}{,}{5}{2--1-1-0-1-0-0-0--1}{2}
in a *.tuo file. Since the definition (core-reg.tex)
\def\dosetpageregisterpage#1#2#3#4#5#6%
{\doifreglevelelse[#5]%
{\dodosetpageregisterpage{#1}{#2}{#3}{#4}{#5}{#6}}%
{}}
there will be a spurious space between page number like
Entry 23 , 67
instead of
Entry 23, 67
Solution:
\def\dosetpageregisterpage#1#2#3#4#5#6%
{\doifreglevelelse[#5]%
{\dodosetpageregisterpage{#1}{#2}{#3}{#4}{#5}{#6}}%
{}\ignorespaces}
Test file:
--------------
\starttext
Text\index{test}.
\page[yes]
Paragraph\index{test}.
\placeindex
\stoptext
--------------
2. [feature request] Current register implementation enable upto three
entry level (\index{level 1+level 2+level 3}). My custommer require 4
levels. Please could the entry number be extended?
3. [not important, just for info] Formating of the register entries is
not much user friendly. See \hangindent1em in a following definition:
\def\dosetpageregisterentrya#1#2%
{\flushseenregisterpage
\edef\currententrylevel{1}%
\global\let\c!entryb\relax
\global\let\c!entryc\relax
\gdef\c!entrya
{\iffirstregisterentry\else\endgraf\fi % new
\global\firstregisterpagetrue
\hangindent1em\noindent\c!entryreference
\dohandlepageregisterentry{#1}{#2}%
\global\firstregisterentryfalse
\global\firstsubentrytrue
\global\firstsubsubentrytrue}}
So, when one want the change formating he has to redefine this
definition. It is against a ConTeXt spirit.
Best
Vit
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________