From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/108954 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Duncan Hothersall Newsgroups: gmane.comp.tex.context Subject: Fine tuning an index Date: Thu, 8 Oct 2020 16:58:16 +0100 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6009139907779134189==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5747"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 08 17:59:54 2020 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 1kQYKd-0001L8-Mw for gctc-ntg-context-518@m.gmane-mx.org; Thu, 08 Oct 2020 17:59:51 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 89A6E1A94EB; Thu, 8 Oct 2020 17:58:39 +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 XgwvOGIEpNXI; Thu, 8 Oct 2020 17:58:37 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CA0DA1A94F9; Thu, 8 Oct 2020 17:58:37 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 289081A94EB for ; Thu, 8 Oct 2020 17:58:36 +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 qLJoAmNQG4tD for ; Thu, 8 Oct 2020 17:58:34 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.42; helo=mail-io1-f42.google.com; envelope-from=dh@capdm.com; receiver= Original-Received: from mail-io1-f42.google.com (mail-io1-f42.google.com [209.85.166.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 B1CA11A94DA for ; Thu, 8 Oct 2020 17:58:34 +0200 (CEST) Original-Received: by mail-io1-f42.google.com with SMTP id d197so6758512iof.0 for ; Thu, 08 Oct 2020 08:58:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=capdm.com; s=google; h=mime-version:from:date:message-id:subject:to; bh=H9mppbeoHPj2gZZ5+hfr0NicHKDHH5ELu8AcUYVc7aU=; b=ms5u3MitJLBQEn58naCfiK8c3x85F29Ba7a72YMulrd/c216uCAN3eRzjaJtGPWuFH 7QARlO3rkGc8LUp0IHjvZPQ56jESizA5kGBqUe6FMr38RJ7WBAlzblINdNJNuBK6r9w6 9bl+vkQDVla/BboEZmq8Vj5TPbBX0gDhR08VE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=H9mppbeoHPj2gZZ5+hfr0NicHKDHH5ELu8AcUYVc7aU=; b=Gd/GF7k/9C9/CPzxKy5rdtd9P0egtXXPSbOjXEF6ZGXGVu33IWCxuhijyMjfC27vxo GbNbxZs/cWcUDmec12/CxHf2NOkISpy4ddQpAxbZTbl0gDUhQdOn9DUYsM2BIVl9hdVd p/389vxgO6aQPNlr7ESa7JQHHL+ek6+JPkv5RTuQzmuTX4Dh6/3WhQigGx7DvYx4iY2d EQayOL4TMbN0MxwKZCp9Iq5oitvzpZOpxt2r/g9bvqfPVjEhZJj8duFA92XI9QEnpaHi /FUu+hmm4Wx1Gkm/CKcsDQG0Ryp2B/WoKC1jYmw2QYgR+OjEBvyvpMOured1bXJYMXyI gDLQ== X-Gm-Message-State: AOAM531KOqT4i3pZzy/qotjvNL2b25tEMhSRzKP82vdWUvANJY1TUqpd WAxv4dE0gwuVPMJbiRmF+vd3R9jmxJ3KteyZVKkIPPnDAwg= X-Google-Smtp-Source: ABdhPJyiPjBsmuXnFpRzUXwBNKVBBtBHFDwc5EWA1cCyKfodpX/lYL/LoTwDkjlm+CCwqF1jDsa57VkTbd28Nn4amaA= X-Received: by 2002:a02:a384:: with SMTP id y4mr7649337jak.63.1602172712830; Thu, 08 Oct 2020 08:58:32 -0700 (PDT) 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:108954 Archived-At: --===============6009139907779134189== Content-Type: multipart/alternative; boundary="0000000000006b2bf705b12ae765" --0000000000006b2bf705b12ae765 Content-Type: text/plain; charset="UTF-8" I'm doing my first mkiv index (it took me a long time to upgrade from mkii!) and I really like the processor feature to format elements differently. But there are a couple of things I would really like to achieve that I'm struggling with: 1. Elided numbers in an index range entry. For example if I have a \startregister - \stopregister pair resulting in an index entry like entry 354--356 I would like to be able to make this read entry 354--6 There are different conventions for number span elision but usually teens aren't elided so entry 314--316 would become entry 314-16. It strikes me that if I could set up a processor specifically for page number ranges I could possibly write a macro to do elision; but I don't think that's currently possible? Maybe it's possible in lua to write code which both identifies range page numbers and carries out the elision. I'm not quite sure where to start. 2. Fine tuning column and page breaking in an index. This is tricky, because there are usually very few "good" places to break an index, and automatic breaking seems to alter slightly depending on whether interactions are set up or not, but is there a way to manually insert a column or page break into the register before or after a certain entry, the way there is for a table of contents? Sorry for no MWE, for obvious reasons. Any pointers to what might be able to be done on these would be much appreciated. Thanks. Duncan --0000000000006b2bf705b12ae765 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm doing my first mkiv index (it took me a long time = to upgrade from mkii!) and I really like the processor feature to format el= ements differently. But there are a couple of things I would really like to= achieve that I'm struggling with:
  1. Elided numbers in an ind= ex range entry. For example if I have a \startregister=C2=A0- \stopregister= pair resulting in an index entry like

    entry 354--356

    I would= like to be able to make this read

    entry 354--6

    There are dif= ferent conventions for number span elision but usually teens aren't eli= ded so

    entry 314--316

    would become

    entry 314-16.
    It strikes me that if I could set up a processor specifically for page nu= mber ranges I could possibly write a macro to do elision; but I don't t= hink that's currently possible? Maybe it's possible in lua to write= code which both identifies range page numbers and carries out the elision.= I'm not quite sure where to start.

  2. Fine=C2=A0tuning co= lumn and page breaking in an index. This is tricky, because there are usual= ly very=C2=A0few "good" places to break an index, and automatic b= reaking seems to alter slightly depending on whether interactions are set u= p or not, but is there a way to manually insert a column or page break into= the register before or after a certain entry, the way there is for a table= of contents?
Sorry for no MWE, for obvious reasons. Any poin= ters to what might be able to be done on these would be much appreciated.

Thanks.

Duncan
<= br>
--0000000000006b2bf705b12ae765-- --===============6009139907779134189== 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== --===============6009139907779134189==--