* change register entry separator
@ 2010-09-30 22:02 Jano Kula
2010-10-01 21:20 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Jano Kula @ 2010-09-30 22:02 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: change register entry separator
2010-09-30 22:02 change register entry separator Jano Kula
@ 2010-10-01 21:20 ` Hans Hagen
2010-10-08 17:16 ` Jano Kula
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2010-10-01 21:20 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Jano Kula
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: change register entry separator
2010-10-01 21:20 ` Hans Hagen
@ 2010-10-08 17:16 ` Jano Kula
0 siblings, 0 replies; 3+ messages in thread
From: Jano Kula @ 2010-10-08 17:16 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-10-08 17:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-30 22:02 change register entry separator Jano Kula
2010-10-01 21:20 ` Hans Hagen
2010-10-08 17:16 ` Jano Kula
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).