From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/115912 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mikael Sundqvist via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Quick way to proofread / check index entries? Date: Sun, 4 Sep 2022 10:35:47 +0200 Message-ID: References: <02E42EA8-4B38-46E2-9731-3F101E498C24@scorecrow.com> <675040e3-bdf0-4b81-b147-ddfcb4424f38@www.fastmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3996650493559721038==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27953"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Mikael Sundqvist To: Richard Mahoney , mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Sep 04 10:36:34 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 1oUl7J-00074C-Vg for gctc-ntg-context-518@m.gmane-mx.org; Sun, 04 Sep 2022 10:36:34 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C19E62A40E7; Sun, 4 Sep 2022 10:36:04 +0200 (CEST) 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 CRwTvPCnzwNK; Sun, 4 Sep 2022 10:36:02 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B22242A4206; Sun, 4 Sep 2022 10:36:02 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D194D2A4206 for ; Sun, 4 Sep 2022 10:36:00 +0200 (CEST) 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 odJu3zc2iVFG for ; Sun, 4 Sep 2022 10:35:59 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.218.43; helo=mail-ej1-f43.google.com; envelope-from=mickep@gmail.com; receiver= Original-Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 883D02A40E7 for ; Sun, 4 Sep 2022 10:35:59 +0200 (CEST) Original-Received: by mail-ej1-f43.google.com with SMTP id kk26so11568076ejc.11 for ; Sun, 04 Sep 2022 01:35:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date; bh=GHydktCFYkbMDqsnrt88i1vhaShY4pCK4yVR8U7EU5I=; b=U3Tq9wYtsLPkoTt9Mr3d7p/Rm4EMjcW2sJ5C+1ThIvA+vFGR6UnPtnQBYR9+R5pBjY 9W7Wcq34zU+ZXpHvXuoGdlhenunla8GQB45aSj+GgGievp/QjaC5qgPETffn2Nvo7ucE 5iWNIK4qIo3U8tmdHO2IoItfR35rfzOZyZZAZLcz6rZf0M62qO0Buxg74RMtezTnuVAw szx87rDm3uk+zvsKWJIXmT0LbCtGOsgYro52JF45YaS6qKw6ryyrnZcXRCR/KR2QRzuA aqs/miG7zPjMGkLtbtrbDvb4OIRfLo8yhJQ8PYx37CYyHWVBkwZTJaon71BQbwECkkvg mMZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date; bh=GHydktCFYkbMDqsnrt88i1vhaShY4pCK4yVR8U7EU5I=; b=gZRkzB8KpjvVHzJnYmiKYhrf2J8H9exfB960BSZb+w+wETqEU4ZNNkCgle+7ppx2Q6 ++rwMZXZjHKIPQAabHFWIAtz+lTIc47nfp2Xsgb6l/nMuUjh2Vi3aXbDR4qJprmFFbrL xaIqoNvtEJeta57m5Y4VEnvgpqnWxTjbLP1gL8A55eiGB+I+H9Yaa7dOoCHsROTBgpv0 sLC+iqD+LNxoqs+/Wg19oSd3xcijwO+DQ5mgROLFuwhf9baRHctBKieB6GdhdRA21pxo 3xSvYC+397kV63LvlyODugbJP8NGOoChUws1n6WHM4m5NcDLkU+UKAeVv+1BX7a7/FOt FmhQ== X-Gm-Message-State: ACgBeo2JRQF/eRuNs8TUPB//OeOJa81RSz9NSdgwunApaAJGJuevuA5+ ZXZEW8MxfZbfnxswOdBQfF1fXR7fIrIkQeGtrpQ= X-Google-Smtp-Source: AA6agR5H5zGHI4V4K8NdLwLMPk9B73epv7Xj59ZabD82S/xB8+T0wmKuvQlvPkhCe2uguPs3Wz1GGwK2WBs27OJG5e8= X-Received: by 2002:a17:906:d54c:b0:750:5e1c:b88c with SMTP id cr12-20020a170906d54c00b007505e1cb88cmr7413736ejc.485.1662280559020; Sun, 04 Sep 2022 01:35:59 -0700 (PDT) In-Reply-To: <675040e3-bdf0-4b81-b147-ddfcb4424f38@www.fastmail.com> 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:115912 Archived-At: --===============3996650493559721038== Content-Type: multipart/alternative; boundary="0000000000003ccea205e7d5daf8" --0000000000003ccea205e7d5daf8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Den s=C3=B6n 4 sep. 2022 08:59Richard Mahoney via ntg-context skrev: > Bruce, > > Did something of the sort a while back: redefined the index command to > something short, in capitals; then adjusted the syntax highlighting to pi= ck > up the code. This was for emacs + auctex, so it was just a case of > adjusting one of the stock auctex files. I think Scite may let one do > something similar. > > Richard > > > -- > *T* +6433121699 *M* +64210640216 > rmahoney@indica-et-buddhica.org > https://indica-et-buddhica.org/ > > *Indica et Buddhica* > Littledene Bay Road Oxford NZ > NZBN: 9429041761809 > > > ----- Original message ----- > From: Bruce Horrocks via ntg-context > To: ntg-context mailing list > Cc: Bruce Horrocks > Subject: [NTG-context] Quick way to proofread / check index entries? > Date: Sunday, 4 September 2022 06:51 > > My own fault for not thinking head :-) but I have a largeish text with a > lot of \index{...} entries. To make life easier for the proofreader I wou= ld > like to temporarily redefine \index to wrap it or replace it with somethi= ng > that will highlight indexed items in the text where they occur, e.g. chan= ge > their colour. > > I could do this with a global find and replace (across many files) to > replace \index with \MyIndex, say, and then define a \MyIndex that > understands the various parameter options but this is a hassle. Before I = do > this, is there anything already pre-built? > > The ultimate aim is to enable a proofreader to see each indexed term wher= e > it appears in order to judge whether the term deserves to be in the index > at all. (Working backwards from the index itself is possible but clicking= a > page number, trying to find the term on the page, then reading the contex= t > to make a decision is quite hard work - much easier to read through and > deal with the terms as they appear.) > > =E2=80=94 > Bruce Horrocks > Hampshire, UK > > > _________________________________________________________________________= __________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > _________________________________________________________________________= __________ > > > > _________________________________________________________________________= __________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > _________________________________________________________________________= __________ > Not by the computer, so cannot test, but I found these in an old document of mine: \enabletrackers[nodes.destinations] \enabletrackers[nodes.references] \usemodule[references-show] I hope it helps. /Mikael > --0000000000003ccea205e7d5daf8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Den s=C3=B6n 4 sep. 2022 08:59Richard Mahoney via ntg-context = <ntg-context@ntg.nl> skrev:=
Bruce,
<= div>
Did something of the sort a while back: redefined the in= dex command to something short, in capitals; then adjusted the syntax highl= ighting to pick up the code. This was for emacs + auctex, so it was just a = case of adjusting one of the stock auctex files. I think Scite may let one = do something similar.=C2=A0

Richard
<= div>

=
--
T +6433121699=C2=A0 M +64210640216
<= /div>

=
Indica et Buddhica
Littledene=C2=A0 Bay Road=C2= =A0 Oxford=C2=A0 NZ
NZBN: 9429041761809
<= br>

----- Original message -----
Fro= m: Bruce Horrocks via ntg-context <ntg-context@ntg.nl>
<= div>To: ntg-context mailing list <ntg-context@ntg.nl>
Cc: Bruce Horrocks <ntg@scorecrow.com>
Subject: [= NTG-context] Quick way to proofread / check index entries?
Da= te: Sunday, 4 September 2022 06:51

My own fault for not thinking head := -) but I have a largeish text with a lot of \index{...} entries. To make li= fe easier for the proofreader I would like to temporarily redefine \index t= o wrap it or replace it with something that will highlight indexed items in= the text where they occur, e.g. change their colour.

I could do this with a global find and replace (across many files) = to replace \index with \MyIndex, say, and then define a \MyIndex that under= stands the various parameter options but this is a hassle. Before I do this= , is there anything already pre-built?

The ult= imate aim is to enable a proofreader to see each indexed term where it appe= ars in order to judge whether the term deserves to be in the index at all. = (Working backwards from the index itself is possible but clicking a page nu= mber, trying to find the term on the page, then reading the context to make= a decision is quite hard work - much easier to read through and deal with = the terms as they appear.)

=E2=80=94
=
Bruce Horrocks
Hampshire, UK

_________________________________________________________________________= __________
If your question is of interest to others as well,= please add an entry to the Wiki!

archive=C2=A0 :=C2=A0https://bitbucket.org/phg/con= text-mirror/commits/
wiki=C2=A0=C2=A0=C2=A0=C2=A0 :=C2=A0= = https://contextgarden.net
_______________________________= ____________________________________________________


3D""
_______________________= ____________________________________________________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / https:= //www.ntg.nl/mailman/listinfo/ntg-context
webpage=C2=A0 : https://www.pragma-ade.nl / http:= //context.aanhet.net
archive=C2=A0 : https://bitbucket.org/ph= g/context-mirror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: https://contextgarden.net
___________________________________________________________________________= ________

Not by the computer, so cannot test, but I found these in an old = document of mine:

\enabletrackers[nodes.destinations]
\ena= bletrackers[nodes.references]
\usemodule[references-= show]

I hope it helps.

/Mikael=C2=A0
=
--0000000000003ccea205e7d5daf8-- --===============3996650493559721038== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============3996650493559721038==--