ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: mf <massifr@fastwebnet.it>
To: ntg-context@ntg.nl
Subject: Re: force index entries without page number
Date: Fri, 4 Sep 2020 11:30:59 +0200	[thread overview]
Message-ID: <db6cc6f8-136d-ed78-626f-f148c9c9e027@fastwebnet.it> (raw)
In-Reply-To: <C4144A69-C564-401C-A30E-CD687B310AB2@fiee.net>

Il 04/09/20 11:01, Henning Hraban Ramm ha scritto:
> 
> 
>> Am 03.09.2020 um 13:32 schrieb mf <massifr@fastwebnet.it>:
>>
>> Use check=yes
> 
> But I need check=no, because my author has several entries like
> 
> 
> Miller, Carolyne, born Princess of Sayn-Wittgenstein   123–125
> 
> Sayn-Wittgenstein, Carolyne of  see Miller, Carolyne
> 
> 
> i.e. the reference target often has a different wording from the entry,
> and thus \seeindex{Something}{} always inserts a "see".
Now I understand.
Since I'm working with XML, I'm using registers in an even stricter way: 
the text I'm indexing is actually the ID of a person in a database.
Something like this:

<person-ref idref="v18in231">Carolyne</person-ref>

in the main text results in a \index[miller_carolyne]{v18in231}

In another place of the XML there's a record like this:

<person id="v18in231" sort-key="miller_carolyne">Miller, Carolyne ... 
</person>

The deeptextcommand parameter of \setupregister is set to a macro that 
takes the ID and gives back the text of the person.

Maybe in the database there's also another record like this:

<see-person id="v18in242" idref="v18in231" 
sort-key="sayn_wittgenstein_carolyne">Sayn-Wittgenstein, Carolyne 
<see>Miller, Carolyne</see><see-person>

that results in a 
\seeindex[sayn_wittgenstein_carolyne]{Sayn-Wittgenstein, 
Carolyne}{Miller, Carolyne}

> 
> I don’t know how common these "passim" entries are in scientific works; maybe I could use
> 
> Mainperson  firstpage–lastpage
> 
> instead to avoid the major hassle of tricking the index mechanisms.
> 
in that case \startindex...\stopindex or \startregister...\stopregister 
could be your friends.

Massi
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2020-09-04  9:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-03  8:17 Henning Hraban Ramm
2020-09-03  8:56 ` mf
2020-09-03  9:09   ` mf
2020-09-03  9:14     ` mf
2020-09-03  9:38     ` Henning Hraban Ramm
2020-09-03 11:32       ` mf
2020-09-04  9:01         ` Henning Hraban Ramm
2020-09-04  9:30           ` mf [this message]
2020-09-04  9:59 ` Wolfgang Schuster
2020-11-07 10:11   ` Henning Hraban Ramm

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=db6cc6f8-136d-ed78-626f-f148c9c9e027@fastwebnet.it \
    --to=massifr@fastwebnet.it \
    --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).