From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114332 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Adam Reviczky via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: sorting for particular sub entries to register Date: Tue, 1 Feb 2022 00:09:00 +0000 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2860979477757952420==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4289"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Adam Reviczky To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 01 01:10:02 2022 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 1nEgkD-0000qL-9Y for gctc-ntg-context-518@m.gmane-mx.org; Tue, 01 Feb 2022 01:10:01 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A1D932893E3; Tue, 1 Feb 2022 01:09:20 +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 08lWH2rcLQ93; Tue, 1 Feb 2022 01:09:19 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E44A0289710; Tue, 1 Feb 2022 01:09:18 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D08CF28970C for ; Tue, 1 Feb 2022 01:09:15 +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 7bAU7_fnFjx5 for ; Tue, 1 Feb 2022 01:09:13 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.218.42; helo=mail-ej1-f42.google.com; envelope-from=reviczky@gmail.com; receiver= Original-Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (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 3BF7C2893E3 for ; Tue, 1 Feb 2022 01:09:12 +0100 (CET) Original-Received: by mail-ej1-f42.google.com with SMTP id o12so48221652eju.13 for ; Mon, 31 Jan 2022 16:09:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8q+H/zmLPa1cxC9pJmFFZ2jmwK6YQXpjBnRrEfXKFyw=; b=oL+b6DCQnUslC5chKuXY+gBZJ+be6lNI9sr6esGX5Ej/UUgL8ANnADEB/WgM4pG6gQ vKwgNIlCHB6LlzN+BknlduXGRa8V/p2C5u6Y3vkKt6IjpF6X7BUkkxb47wmm5Fvc0xTr XHMOZNd1K+lZAUABunfcUxGYxoIc3IUNfvSJj+rRS/vcMbz7+Gk9p4ceIVrGH6Us/b0K mWpo9K64cOicznHeivfCl9w0sHz4YaSPPSgzy4/qQkyISYuqxwFDdDQrZxL3NReuFxEs 7YuSfrTlPTAijaSwBxSIBvIPP2b2U56S4Yep1w235aUHb+uyG7hozZ7kIrQVNbU+hDl/ KXlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8q+H/zmLPa1cxC9pJmFFZ2jmwK6YQXpjBnRrEfXKFyw=; b=pqNLt8R6D9XkyBr2O6NPsDygUzA/a1eXRIcpntNirh9nRY7C38kXBxw9b+IIRsjaLn o6p8AhFOzRgzscrj6QByaaDr+UcdWXhnk/MQH0NsO6e57n6dlx9myjnyNyk46zWffsg6 X14fBG92Tt8qZC/NiWs0Gij1Up3xAbvq0MTq5HQ8cTj68X5/6/p9Vl8UDF+0UxLrSq8L LTa7thgwuX4wqwfYNkj/OJR+MBIFVyEG5KWYKuEcjm4NEtuxvlAgB5NDFouYOkxcSC9t Flwnhyso32Q+E1MBKhqanLIj409N79aMWelpGY875v4Yv4IqLaQ99hjjm5PEnqzWXEqK ceiA== X-Gm-Message-State: AOAM531sF3m1NwvwhUwi0bl4RcoyeA250p7yO4wXFCh1fN5Zj31j7nUL bfNirCBJsTxCHFsmS2IN+p3hUaE8rY/GCb55mvXd8sAQA9ILmA== X-Google-Smtp-Source: ABdhPJxz7cZM7KXqx8F89rNYedMpLurenyGwYcvSJzdx2eb+NGKlswj6F8O4Azf25O6NmPKueu5MeWcBs9qFBi0GIak= X-Received: by 2002:a17:907:3f8d:: with SMTP id hr13mr18551569ejc.608.1643674151697; Mon, 31 Jan 2022 16:09:11 -0800 (PST) In-Reply-To: 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:114332 Archived-At: --===============2860979477757952420== Content-Type: multipart/alternative; boundary="000000000000f0401a05d6e9b575" --000000000000f0401a05d6e9b575 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Julian, How about using the keys in every instance? \setupregister[index][n=3D1,method=3D{zc,pc,zm,pm,uc},style=3DWORD] \defineprocessor[special][style=3Ditalic] \starttext P\index[Plenary+periti]{Plenary Council+{\it periti} (experts)} B\index[Plenary+beriti]{Plenary Council+{\it beriti} (experts)} A\index[Plenary+aeriti]{Plenary Council+aeriti (experts)} S\index[animals+special]{animals+=E2=80=98special kinds=E2=80=99} B\index[animals+bpecial]{animals+bpecial} A\index[animals+apecial]{animals+=E2=80=98apecial=E2=80=99} U\index[animals+upecial]{animals+=E2=80=98upecial=E2=80=99} T\index[animals+tpecial]{animals+tpecial} \placeindex \stoptext See result in: https://live.contextgarden.net/cgi-bin/result.cgi?id=3Dj46Xh= Z Adam On Mon, Jan 31, 2022 at 10:38 PM jbf via ntg-context wrote: > Let me come back to the unresolved (for me) question of two situations in > sub entries to a book index (register). Sub entries that have formatting = or > sub entries that are surrounded by quote marks (straight or curly, it mak= es > no difference) do not appear in the correct alphabetical order. > > Two attempts on my part: > > text before \index[Plenary+periti]{Plenary Council+{\it periti} (experts)= } > text after. > > text before \index{animals+=E2=80=98special kinds=E2=80=99} text after. O= r alternatively, > \index[animals+special]{animals+=E2=80=98special kinds=E2=80=99} > > The setup for my register is a pretty standard one. The processor is not > for the 'periti' case above but I use it for book titles. > > \setupregister[index][n=3D1,method=3D{zc,pc,zm,pm,uc},style=3DWORD] > > \defineprocessor[special][style=3Ditalic] > > In the periti case it is the \it command that clearly interferes with > correct alphabetic positioning in the sub entry list. Placing +periti in > the key does not overcome that problem. > > In the =E2=80=98special kinds=E2=80=99 case it is the initial single quot= e mark (=E2=80=98) that > causes the problem. The item comes last in the sub entry list. And if i > include a key [special], then it comes first in the sub entry list. Eithe= r > way, it is out of the desired sorting order. > > I believe I have followed the helpful suggestions of various ones, but it > is always possible that I have not fully understood those suggestions. Th= e > reality is that at the moment the issue remains unresolved for me. Any > further wisdom out there to offer me? > > 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 > > _________________________________________________________________________= __________ > --000000000000f0401a05d6e9b575 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Julian,

How about using t= he keys in every instance?

\setupregister[index][n= =3D1,method=3D{zc,pc,zm,pm,uc},style=3DWORD]
\defineprocessor[special][s= tyle=3Ditalic]

\starttext
P\index[Plenary+periti]{Plenary Council= +{\it periti} (experts)}
B\index[Plenary+beriti]{Plenary Council+{\it be= riti} (experts)}
A\index[Plenary+aeriti]{Plenary Council+aeriti (experts= )}

S\index[animals+special]{animals+=E2=80=98special kinds=E2=80=99}=
B\index[animals+bpecial]{animals+bpecial}
A\index[animals+apecial]{a= nimals+=E2=80=98apecial=E2=80=99}
U\index[animals+upecial]{animals+=E2= =80=98upecial=E2=80=99}
T\index[animals+tpecial]{animals+tpecial}
\placeindex
\stoptext


Adam

On Mon, Jan 31, 2022 at 10:38 PM jbf via ntg-context = <ntg-context@ntg.nl> wrote:=
=20 =20 =20

Let me come back to the unresolved (for me) question of two situatio= ns in sub entries to a book index (register). Sub entries that have formatt= ing or sub entries that are surrounded by quote marks (straight or curly, i= t makes no difference) do not appear in the correct alphabetical order.

Two attempts on my part:

text before \index[Plenary+periti]{Plenary Council+{\it periti} (experts)} text after.

text before \index{animals+=E2=80=98special kinds=E2=80=99} text aft= er. Or alternatively, \index[animals+special]{animals+=E2=80=98special kind= s=E2=80=99}

The setup for my register is a pretty standard one. The processor is= not for the 'periti' case above but I use it for book titles.

\setupregister[index][n=3D1,m=
ethod=3D{=
zc,pc,zm,pm,u=
c},style=3DWORD]
\defineprocessor[special][sty=
le=3Ditalic]

In the periti case it is the \it command that clearly interferes wit= h correct alphabetic positioning in the sub entry list. Placing +periti in = the key does not overcome that problem.

In the =E2=80=98special kinds=E2=80=99 case it is the initial single= quote mark (=E2=80=98) that causes the problem. The item comes last in the= sub entry list. And if i include a key [special], then it comes first in t= he sub entry list. Either way, it is out of the desired sorting order.

I believe I have followed the helpful suggestions of various ones, b= ut it is always possible that I have not fully understood those suggestions= . The reality is that at the moment the issue remains unresolved for me. An= y further wisdom out there to offer me?

Julian

___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--000000000000f0401a05d6e9b575-- --===============2860979477757952420== 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== --===============2860979477757952420==--