From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86916 Path: news.gmane.org!not-for-mail From: john Culleton Newsgroups: gmane.comp.tex.context Subject: Preparing a weird index. Date: Sat, 5 Apr 2014 15:42:12 -0400 Organization: WexfordPress Message-ID: <20140405154212.186ddde9@localb.wexfordpress.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1396712563 12833 80.91.229.3 (5 Apr 2014 15:42:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Apr 2014 15:42:43 +0000 (UTC) To: "'mailing list for ConTeXt users'" Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 05 17:42:38 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WWSju-00024E-5i for gctc-ntg-context-518@m.gmane.org; Sat, 05 Apr 2014 17:42:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8FE8710229 for ; Sat, 5 Apr 2014 17:42:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id bjKMkN6iXSiI for ; Sat, 5 Apr 2014 17:42:37 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4D8C6101E9 for ; Sat, 5 Apr 2014 17:42:33 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 78445101E6 for ; Sat, 5 Apr 2014 17:42:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id iYXxk+BK0Cb2 for ; Sat, 5 Apr 2014 17:42:28 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id D8D0A101E1 for ; Sat, 5 Apr 2014 17:42:28 +0200 (CEST) Original-Received: from qmta07.westchester.pa.mail.comcast.net (qmta07.westchester.pa.mail.comcast.net [IPv6:2001:558:fe14:43:76:96:62:64]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s35FgFJo017606 for ; Sat, 5 Apr 2014 17:42:27 +0200 Original-Received: from omta06.westchester.pa.mail.comcast.net ([76.96.62.51]) by qmta07.westchester.pa.mail.comcast.net with comcast id mEsK1n00516LCl057FiDtK; Sat, 05 Apr 2014 15:42:13 +0000 Original-Received: from localb.wexfordpress.net ([68.50.233.152]) by omta06.westchester.pa.mail.comcast.net with comcast id mFiD1n00Q3HwwZ83SFiDCK; Sat, 05 Apr 2014 15:42:13 +0000 X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.20; x86_64-unknown-linux-gnu) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1396712533; bh=CJqMqHfZeaFGO9sI9ur0+RfZQbF8eCGSjR7MryQF5hg=; h=Received:Received:Date:From:To:Subject:Message-ID:Mime-Version: Content-Type; b=lx90W9dZEj0r/ysTyQUGZ3GeOnWZaZaCNuuex/WpibBIRLvfcMcjywurXOHJmaYYH NLCa8bOOTvzxX2IrE4/9oc6+1qiRLBjr3yb1qKMZBbISwF7KeikOUmgCMqpPKu/Ha2 KJ6EeqEGL82c9Pqd4+afUfzSwLN9fyF7Br8Ibg0fUV2QzgpzHxAbWgIY4HYCLPQD7J DgX3sAJ5zA06ayEZJcYQAG3AKu9WhMWAiEwFdlzpfsUntEzxfErIWdfvbtG8v+60Yj pEQwP2u+i5pdhyziF3a95WV4PCsjE9/d79JYvKWH2OF9w3wW4CvlLBZDcoCxP1x/iP mr5Qwj6ZCpqyA== X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2001:558:fe14:43:76:96:62:64; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WLKfGgRg - 36f8c4253abd - 20140405 X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:86916 Archived-At: I have a customer that uses a publisher that has truly weird requirements. The weirdness is that the locaters are not page numbers but paragraph numbers. And some paragraph numbers start with the prefix 'BO' and others with the chapter number. so a correct sequence would be BO.15 3.2 A finished sequence would be goddess @@ BO.15 3.2 3.5 The sort order has to be letter by letter, as defined in the Chicago Manual of Style. Can Context sort and summarize these locaters? I can even change the BO sequence to 0 (zero) and then change it back later on. The key is can Context sort by paragraph number rather than page number for an index. I have looked into Xindy for this job but the learning curve is pretty steep and the documentation pretty opaque. makeindex won't handle decimals for locators. I don't mind doing a little reformatting along the way (I already have for this project) but I don't want to rewrite makeindex or xindy just for this job. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: "Create Book Covers with Scribus" available at http://www.booklocker.com/books/4055.html ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________