From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id C6A4525FBA for ; Thu, 2 May 2024 18:07:57 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 5AECB484A4B for ; Thu, 2 May 2024 18:06:34 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HBxNOMp8msFI for ; Thu, 2 May 2024 18:06:34 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 31A17484A1E for ; Thu, 2 May 2024 18:05:42 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 9D6DD4849FE for ; Thu, 2 May 2024 18:05:11 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hy0oc-Aee6hY for ; Thu, 2 May 2024 18:05:10 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=85.18.95.67; helo=mcpmr014msr.fastwebnet.it; envelope-from=massifr@fastwebnet.it; receiver= X-Greylist: delayed 580 seconds by postgrey-1.36 at cgl.ntg.nl; Thu, 02 May 2024 18:05:10 CEST Received: from mcpmr014msr.fastwebnet.it (mcpmr014msr.fastwebnet.it [85.18.95.67]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 5288A4849FD for ; Thu, 2 May 2024 18:05:10 +0200 (CEST) X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvledrvddukedgleeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuhfetuffvhgfguedpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpehmfhcuoehmrghsshhifhhrsehfrghsthifvggsnhgvthdrihhtqeenucggtffrrghtthgvrhhnpeeiledthfekieeftddvvdehjeetueefjeejieekveehieehteelleeuieeijeekieenucfkphepleehrddvvdelrddutdekrdehtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopegludelvddrudeikedruddrhedvngdpihhnvghtpeelhedrvddvledruddtkedrhedtpdhmrghilhhfrhhomhepmhgrshhsihhfrhesfhgrshhtfigvsghnvghtrdhithdpnhgspghrtghpthhtohepuddprhgtphhtthhopehnthhgqdgtohhnthgvgihtsehnthhgrdhnlh X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean Received: from [192.168.1.52] (95.229.108.50) by mcpmr014msr.fastwebnet.it (5.8.715.01) (authenticated as massifr@fastwebnet.it) id 638481B22348A684 for ntg-context@ntg.nl; Thu, 2 May 2024 17:55:29 +0200 Message-ID: Date: Thu, 2 May 2024 17:55:17 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: ntg-context@ntg.nl References: <32427de6-2bd9-48c7-a15a-2832d8db6515@uni-bonn.de> Content-Language: en-US, it-IT From: mf In-Reply-To: <32427de6-2bd9-48c7-a15a-2832d8db6515@uni-bonn.de> Message-ID-Hash: EVLEXTW32U7RQA6ZVKAAHAQIP4KL4QBO X-Message-ID-Hash: EVLEXTW32U7RQA6ZVKAAHAQIP4KL4QBO X-MailFrom: massifr@fastwebnet.it X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: more register questions! List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit Il 02/05/24 17:01, Thomas A. Schmitz ha scritto: > Hi, > > making wonderful progress on my registers and translating from xml. > There is one thing I can't figure out (and I or some other good soul may > have asked in the past...). Is it possible to mark occurrences in > footnotes? Ideally, the entry in the register would look like > > p. 100\high{20} > > to show that the term occurs in note 20 on p. 100. But if that's asking > too much, I would be content with applying a processor (say, italic) to > these register entries. From the looks of the tuc file, Context doesn't > appear to "know" that a register entry is within a footnote. But Hans > never ceases to amaze me, so maybe there is a way (short of applying > special markup to these notes in the source)? > I did something like that, with a processor that added a "n" after the occurrence page number. Since you typeset XML, maybe you can detect that an index (register) reference happens inside a note from the DOM element you are typesetting. Then you use a command like this: \index[NoteProcessor->sortkey]{index term} where NoteProcessor is defined like this: \defineprocessor[NoteProcessor][right={\itx n}] In this case I'm adding a smaller "n" to the right of the page number of the occurrence. Adding the \high style is not difficult: \defineprocessor[NoteProcessor][right=\high{n}] but replacing a fixed "n" with the footnote number is quite challenging. The second argument of \defineprocessor has a "command=\...##1" option that could be exploited, but I don't know exactly what gets passed to that custom command as ##1; maybe the page number of the occurrence. In that case, I'd look for a way to store the association between that occurrence and the footnote number, and retrieve that in the custom command. Massi ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________