ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jano Kula <jano.kula@tiscali.cz>
To: ntg-context@ntg.nl
Subject: Re: change register entry separator
Date: Fri, 08 Oct 2010 19:16:36 +0200	[thread overview]
Message-ID: <4CAF51F4.4010406@tiscali.cz> (raw)
In-Reply-To: <4CA6508E.8020401@wxs.nl>

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
___________________________________________________________________________________


      reply	other threads:[~2010-10-08 17:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-30 22:02 Jano Kula
2010-10-01 21:20 ` Hans Hagen
2010-10-08 17:16   ` Jano Kula [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CAF51F4.4010406@tiscali.cz \
    --to=jano.kula@tiscali.cz \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).