From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/110244 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: jbf Newsgroups: gmane.comp.tex.context Subject: Re: styling part of an index entry Date: Fri, 8 Jan 2021 10:01:34 +1100 Message-ID: References: <4eb8b297-a330-9511-112e-8e9e960e11a9@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4859223369515084327==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33430"; 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 Cc: mailing list for ConTeXt users To: "Jairo A. del Rio" Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 08 00:02:22 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 1kxeIQ-0008YW-1B for gctc-ntg-context-518@m.gmane-mx.org; Fri, 08 Jan 2021 00:02:22 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 523FF1C198A; Fri, 8 Jan 2021 00:01:43 +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 mJ4ZnMBdtJy3; Fri, 8 Jan 2021 00:01:42 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5F4E61C1992; Fri, 8 Jan 2021 00:01:42 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 218BD1C198E for ; Fri, 8 Jan 2021 00:01:41 +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 EsMFBm3wJkQF for ; Fri, 8 Jan 2021 00:01:40 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.215.181; helo=mail-pg1-f181.google.com; envelope-from=roma83537@gmail.com; receiver= Original-Received: from mail-pg1-f181.google.com (mail-pg1-f181.google.com [209.85.215.181]) (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 F2A091C198A for ; Fri, 8 Jan 2021 00:01:39 +0100 (CET) Original-Received: by mail-pg1-f181.google.com with SMTP id 30so6345459pgr.6 for ; Thu, 07 Jan 2021 15:01:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=Lew4Fci81/9jIOHg6tJGYbl5zR2XEwwqSJ1T4wkzZso=; b=c8kQ4S5KkuwvaEzI4MKyvE50MuiDAko5Merw+vDkRySpF8TM2/z1zgPAnOzaeFwCvV +spHYQqUtRBTXFO+nRyaDFNpxC+AXtwe+iSjIMD/GZvjdeKvLuigTvpneQMPxkfk+835 2GPxsmAbrKB6pvRsOrLe38HB5EeZkOgf9XOBEHxuvrnE4fC+/zu2lRl+h8mBm1fF98kI l93xsk9ilBD2KetH+pTjazogHIJyi5xBqWc85h3qaF0kQu+76SD06AChkZEiKLuk4zEU W04dfvkCIS0A50jnrhXeDdfilZuDOJ0yR6e+zfZm7cM6HbIVcZqPogxxkBIb+Ly3OEmR F2rA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=Lew4Fci81/9jIOHg6tJGYbl5zR2XEwwqSJ1T4wkzZso=; b=Tf0gju1p9kteZ/8Q4rHXXyUwOXAsTkVRYjsqz3u5TTUK44DiJONB8Hpr0ZL2NQ1FTo iooVk1ZrCj9bOH55lpnRbYCNrKLEcMUlLAMgkk5cSCxWUwDrp54+rGc1wIQvcJh0GOGa vFC3ZeE6H2K11PTAKo2/p90W/UiWaVF5ym4PXJgHXA91AHe2/Ue+vJntAoZ0IuIOuqcG s4lpJVcbiEf2RkehSzeQrjCZh66k7B72x/dmAi392tZLhj8WykVcfJBgc5r4dyGFWh9X kwEafEAzlbFpf3zTmTI81EzUOxnW4AIr3P+dF13xG5LG1FEDXBmriJ9sqTLtIY7Q9ZBJ MDmw== X-Gm-Message-State: AOAM532CsNaKKICPQ40oGBDur7xGr/Y8TGK/jpYtmens9hy+xKmxdDuZ fR3C6laNAcmd/HpoVZZJ0JCUxayfZls7YA== X-Google-Smtp-Source: ABdhPJyZaQiJw6CXajKqIe5jtRZ0DAu7CxHFprVgqM8LSMAOiHtikvRLnTuVnMHsC8bo7xBAuYZcUQ== X-Received: by 2002:a65:5c48:: with SMTP id v8mr4069034pgr.400.1610060498000; Thu, 07 Jan 2021 15:01:38 -0800 (PST) Original-Received: from [192.168.0.100] ([120.21.17.208]) by smtp.gmail.com with ESMTPSA id w11sm7428659pge.28.2021.01.07.15.01.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Jan 2021 15:01:37 -0800 (PST) In-Reply-To: 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:110244 Archived-At: This is a multi-part message in MIME format. --===============4859223369515084327== Content-Type: multipart/alternative; boundary="------------778C1A6079F193400498476F" Content-Language: en-US This is a multi-part message in MIME format. --------------778C1A6079F193400498476F Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Thanks Jairo, with some tweaking I now have it working ( I had \placeindex instead of \placemyindex! And altered the 'style' name to something else as you hinted I should). Now, this might be asking too much of ConTeXt, but some Newspaper names don't italicise the 'The', only the main name. Is it possible, do you think, to get the -> operator to work only on, say 'Observer' and not 'The', and for that matter not on the page number as well? Perhaps not, but worth asking the question anyway! Julian On 8/1/21 9:46 am, Jairo A. del Rio wrote: > Hi. In latest LMTX (2021.01.07 16:59), your example works as expected: > > \defineregister[myindex] > > \defineprocessor[style][style=italic]%Isn't another name available? > > \starttext > > In \myindex{style->Observer, The}{\em The Observer} of 31 July 2018 > > \placemyindex% > > \stoptext > > Jairo > > > El jue, 7 de ene. de 2021 a la(s) 17:29, jbf (roma83537@gmail.com > ) escribió: > > 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 > > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ > > > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ --------------778C1A6079F193400498476F Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Thanks Jairo, with some tweaking I now have it working ( I had \placeindex instead of \placemyindex! And altered the 'style' name to something else as you hinted I should).

Now, this might be asking too much of ConTeXt, but some Newspaper names don't italicise the 'The', only the main name. Is it possible, do you think, to get the -> operator to work only on, say 'Observer' and not 'The', and for that matter not on the page number as well? Perhaps not, but worth asking the question anyway!

Julian

On 8/1/21 9:46 am, Jairo A. del Rio wrote:
Hi. In latest LMTX (2021.01.07 16:59), your example works as expected:

\defineregister[myindex]

\defineprocessor[style][style=italic]%Isn't another name available?

\starttext

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

\placemyindex%

\stoptext

Jairo


El jue, 7 de ene. de 2021 a la(s) 17:29, jbf (roma83537@gmail.com) escribió:

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

___________________________________________________________________________________
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
___________________________________________________________________________________

___________________________________________________________________________________
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
___________________________________________________________________________________
--------------778C1A6079F193400498476F-- --===============4859223369515084327== 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== --===============4859223369515084327==--