From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/110242 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: jbf Newsgroups: gmane.comp.tex.context Subject: styling part of an index entry Date: Fri, 8 Jan 2021 09:29:28 +1100 Message-ID: <4eb8b297-a330-9511-112e-8e9e960e11a9@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7514042909830639835==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11147"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 07 23:30:06 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kxdnB-0002lb-AU for gctc-ntg-context-518@m.gmane-mx.org; Thu, 07 Jan 2021 23:30:05 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 054D41C199A; Thu, 7 Jan 2021 23:29:38 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Khn-6sxKlC19; Thu, 7 Jan 2021 23:29:35 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A17CB1C198D; Thu, 7 Jan 2021 23:29:35 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0C1101C1982 for ; Thu, 7 Jan 2021 23:29:35 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jbDPoXuTz9m9 for ; Thu, 7 Jan 2021 23:29:34 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.216.52; helo=mail-pj1-f52.google.com; envelope-from=roma83537@gmail.com; receiver= Original-Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 2B1F21C197D for ; Thu, 7 Jan 2021 23:29:34 +0100 (CET) Original-Received: by mail-pj1-f52.google.com with SMTP id b5so5014913pjl.0 for ; Thu, 07 Jan 2021 14:29:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=pmMwgSEPtIock8VsR4bgC/ssSvlTer9wqUELzm0g44M=; b=Gu9oTB6aeK7zV1V7n0WxnSsC2hyHeX9tq3CVFAeC/yh5gKFOFCyI5Ucd4/3a6mCZ3G HN3q1/7EzXwWUOYnebWgNsOSAB69959GUDb/XHxkdMx0uGHNTZM7oUTeoOwWDtmprXeP otmR3J0nLvIEJc2wnms5yRaPvY77/VyGJz1+7rXB2Z8zWZkbnE86mXMISj44MmRfFVEb 2nVrD5+CFmA4gq6gpoCuQdTIRcxc12jqtrJSuZEEVqJZ52Y6ntKpyc/SVvR9XY8p7aeY bySScRjZffPatK92+0Vngg6sDplWgSN5UQ/+9N3MjVIM8/W+lF+5Tad80Gt+Km8G1+lG 8xwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language; bh=pmMwgSEPtIock8VsR4bgC/ssSvlTer9wqUELzm0g44M=; b=PsgA91bZvDFN7DaAtlYBWL/liNXbSYH5FQiEBj6KqeJ/9nsBK02yo2GdC6GOQhOfnC yQrw7xmHGnRzVO6H5tszff5rDBcsXJ+VnqcNinCxXLDQ7n+1OgFXhwK6hni0gyrMlTlt tdLtRFoE7lLIsK8uVrhvqe94nirl+XtAGH0/x6VXYAT6GCD9uGUYCAn1wiVkIJ2mxqWF TLJmbZu5F4LLbyCJgL68Ja6ZJevz2nM4IXDwFDlRGQZjEI6J6WWuMvSSqi7d5RmjjRWs G6n714nkRpRE1MLPkdw/0lx1STNHfLlT4QJKVQVxRocJKnAqN0d9VebKv2+iwl25W7iI VAww== X-Gm-Message-State: AOAM532fSYV4BQNhZ4FtXMKGZTfPgkdtXfwoPVo0pxauDCUXC0ubSnGA Ip2r8ED7VEdhxVHl2nrSI8uXJKEh8Rs53Q== X-Google-Smtp-Source: ABdhPJx4DN72nkAOhCMLlLtJsJQ50bEEckTrE1bBR+SJXbnTanFA4opwGFbNcuq4/Pnx6yJEJYUJlw== X-Received: by 2002:a17:90a:e64e:: with SMTP id ep14mr582909pjb.5.1610058572058; Thu, 07 Jan 2021 14:29:32 -0800 (PST) Original-Received: from [192.168.0.100] ([120.21.17.208]) by smtp.gmail.com with ESMTPSA id j8sm5844888pji.1.2021.01.07.14.29.30 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Jan 2021 14:29:31 -0800 (PST) Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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.io gmane.comp.tex.context:110242 Archived-At: This is a multi-part message in MIME format. --===============7514042909830639835== Content-Type: multipart/alternative; boundary="------------4AD30F18AB6B5AA44273FBD5" Content-Language: en-US This is a multi-part message in MIME format. --------------4AD30F18AB6B5AA44273FBD5 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit I'm wondering if further progress has been made in Mk IV on styling parts of an index (register) entry? I have followed the explanation on the wiki, but do not seem to be able to achieve what I need. And what I need is to be able to italicise entries that refer to newspaper names, e.g. The Observer MWE \defineregister[myindex] \defineprocessor[style][style=italic] \starttext In \myindex{style->Observer, The} {\em The Observer} of 31 July 2018 \stoptext The only result I am getting is: ->Observer, The   223 But what I want is /Observer, The/ (in other words, in italics). Clearly I am doing something wrong, or not enough, or... maybe there is another way to achieve waht I need? Julian --------------4AD30F18AB6B5AA44273FBD5 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

I'm wondering if further progress has been made in Mk IV on styling parts of an index (register) entry? I have followed the explanation on the wiki, but do not seem to be able to achieve what I need.

And what I need is to be able to italicise entries that refer to newspaper names, e.g. The Observer

MWE

\defineregister[myindex]
\defineprocessor[style][style=italic]

\starttext

In \myindex{style->Observer, The} {\em The Observer} of 31 July 2018

\stoptext

The only result I am getting is:

->Observer, The   223

But what I want is Observer, The (in other words, in italics).

Clearly I am doing something wrong, or not enough, or... maybe there is another way to achieve waht I need?

Julian

--------------4AD30F18AB6B5AA44273FBD5-- --===============7514042909830639835== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============7514042909830639835==--