Re: [NTG-context] change register entry separator

2010-10-08 Thread Jano Kula

Hello Hans,

On 10/01/2010 11:20 PM, Hans Hagen wrote:

On 1-10-2010 12:02, Jano Kula wrote:

Hi,

any way to change register entry and subentry separator from + to
something else? Preferably to kanji character, so I'm sure it will not
appear in the text. Entries and subentries are autoflushed, so it can be
really anything.

Other way around: I substitute + with  PLUS  in index terms before
writing into the index, but which command is reading the sorted index
entries to change it back to + when typesetting the sorted index on
pages?


\setregisterentry[index]
[entries:1=...,
entries:2=...,
entries:3=...,
keys:1=...,
keys:2=...,
keys:3=...,
...


Thank you, it took me a while, to find out if this was the answer to the 
first or second question ;) Partly, because there is a bug somewhere, I 
think.


If the entry with [keys:1=blue, keys:2=red] is supposed to be sorted by 
blue on the first level, and by red on the second, it doesn't work 
as expected. Instead of keys, the entries are written into the *.tuc file.


Can you, please, have a look at the minimal example?

Thanks,

Jano



\starttext
\placeregister[index]

\blank[3*big]

\page

% works
\setregisterentry[index][entries=aaa,keys=bbb] page 2

\page

% works
\setregisterentry[index][entries:1=aaa,entries:2=bbb] page 3

\page

% doesn't work
% in *.tuc file the entries are written on both positions
% { aaa, aaa },
% { bbb, bbb },
\setregisterentry[index][entries:1=aaa,entries:2=bbb,keys:1=ccc,keys:2=ddd] 
page 4


\stoptext

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] change register entry separator

2010-10-01 Thread Hans Hagen

On 1-10-2010 12:02, Jano Kula wrote:

Hi,

any way to change register entry and subentry separator from + to
something else? Preferably to kanji character, so I'm sure it will not
appear in the text. Entries and subentries are autoflushed, so it can be
really anything.

Other way around: I substitute + with  PLUS  in index terms before
writing into the index, but which command is reading the sorted index
entries to change it back to + when typesetting the sorted index on
pages?


\setregisterentry[index]
  [entries:1=...,
   entries:2=...,
   entries:3=...,
   keys:1=...,
   keys:2=...,
   keys:3=...,
   ...

ok, not nice that it's plural but there's also the regular 'entries'

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] change register entry separator

2010-09-30 Thread Jano Kula

Hi,

any way to change register entry and subentry separator from + to 
something else? Preferably to kanji character, so I'm sure it will not 
appear in the text. Entries and subentries are autoflushed, so it can be 
really anything.


Other way around: I substitute + with  PLUS  in index terms before 
writing into the index, but which command is reading the sorted index 
entries to change it back to + when typesetting the sorted index on pages?


Thanks,

Jano

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___