From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92628 Path: news.gmane.org!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Questions on registers, and on processors used with registers Date: Sun, 4 Oct 2015 23:24:40 -0400 Message-ID: <5611ED78.8050304@rik.users.panix.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1485119768==" X-Trace: ger.gmane.org 1444015551 7495 80.91.229.3 (5 Oct 2015 03:25:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Oct 2015 03:25:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 05 05:25:39 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZiwPA-0003ie-Da for gctc-ntg-context-518@m.gmane.org; Mon, 05 Oct 2015 05:25:36 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6A22910222 for ; Mon, 5 Oct 2015 05:25:35 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id F0PoFNFmQreQ for ; Mon, 5 Oct 2015 05:25:33 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4498C10233 for ; Mon, 5 Oct 2015 05:25:01 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 22BE9101F7 for ; Mon, 5 Oct 2015 05:24:57 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id BNWZzt2XRxWR for ; Mon, 5 Oct 2015 05:24:55 +0200 (CEST) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id AD8E8101E8 for ; Mon, 5 Oct 2015 05:24:52 +0200 (CEST) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by filter3-utr.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t953Oogu015497 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 5 Oct 2015 05:24:51 +0200 Original-Received: from [192.168.201.10] (cpe-74-76-74-238.nycap.res.rr.com [74.76.74.238]) by mailbackend.panix.com (Postfix) with ESMTPSA id 88C3A172BF for ; Sun, 4 Oct 2015 23:24:49 -0400 (EDT) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=166.84.1.89; country=US; region=New York; city=New York; latitude=40.7553; longitude=-73.9924; http://maps.google.com/maps?q=40.7553,-73.9924&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08PpfoPdW - b3e568636e53 - 20151005 (trained as not-spam) Received-SPF: pass (filter3-utr.mf.surf.net: domain of context@rik.users.panix.com designates 166.84.1.89 as permitted sender) receiver=filter3-utr.mf.surf.net; client-ip=166.84.1.89; envelope-from=; helo=mailbackend.panix.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:92628 Archived-At: This is a multi-part message in MIME format. --===============1485119768== Content-Type: multipart/alternative; boundary="------------000309090604030309010505" This is a multi-part message in MIME format. --------------000309090604030309010505 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable A few questions on registers, and on processors used with registers: Can processors be used on entries in \setregisterentry? My tests so far=20 have not been successful. Can processors be used on one level of a two-level register=20 {\index{Name+Processor->quotation precis}? Again, no success with attempt= s. Can something other than page numbers be the indexed item? I have a book with many quotations, each identified by a number=20 (generated by \definelabel). For an index of quotations, it would be=20 more useful to point to that quotation number than the page number. Perhaps the last requirement would be served by building a list with the=20 quote number and quotation precis, suppressing the page numbers with=20 pagenumber=3D\gobbleoneargument. But placelist does not seem to behave as= =20 one would hope. The example in the wiki for setuplist (shown below) does=20 not print the numbers (1., 2.) in the first braced argument to writetolis= t. \definelist[Reprints][criterium=3Dall] \starttext \section{Sec 1} \writetolist[Reprints]{1.}{List entry A} \subsection{Subsec 1} \writebetweenlist[Reprints]{\hrule} \writetolist[Reprints]{2.}{List entry B} \completelist[Reprints] \stoptext I would prefer a register solution to take advantage of similar=20 formatting (column support and such) provided there, since this will=20 appear with the book=E2=80=99s standard indices. --=20 Rik --------------000309090604030309010505 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable A few questions on registers, and on processors used with registers:<= br>
Can processors be used on entries in \setregisterentry? My tests so far have not been successful.

Can processors be used on one level of a two-level register {\index{Name+Processor->quotation precis}? Again, no success with attempts.

Can something other than page numbers be the indexed item?

I have a book with many quotations, each identified by a number (generated by \definelabel). For an index of quotations, it would be more useful to point to that quotation number than the page number.
Perhaps the last requirement would be served by building a list with the quote number and quotation precis, suppressing the page numbers with pagenumber=3D\gobbleoneargument. But placelist does not seem to behave as one would hope. The example in the wiki for setuplist (shown below) does not print the numbers (1., 2.) in the first braced argument to writetolist.
\definelist[Reprints][criterium=3Dall]

\starttext
=C2=A0 \section{Sec 1}
=C2=A0 \writetolist[Reprints]{1.}{List entry A}
=C2=A0 \subsection{Subsec 1}
=C2=A0 \writebetweenlist[Reprints]{\hrule}
=C2=A0 \writetolist[Reprints]{2.}{List entry B}
=C2=A0 \completelist[Reprints]
\stoptext
I would prefer a register solution to take advantage of similar formatting (column support and such) provided there, since this will appear with the book=E2=80=99s standard indices.

--
Rik
--------------000309090604030309010505-- --===============1485119768== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1485119768==--