From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/54589 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Sort register (index) by Bible book Date: Fri, 20 Nov 2009 20:38:43 +0100 Message-ID: <4B06F043.8040700@wxs.nl> References: <877htqz4mc.wl%berend@pobox.com> <4B025543.4080901@elvenkind.com> <4B02CCCF.10001@jhnet.nl> <4B02CE04.8030400@elvenkind.com> <87ocmx80tl.wl%berend@pobox.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1258745980 19748 80.91.229.12 (20 Nov 2009 19:39:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Nov 2009 19:39:40 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 20 20:39:34 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NBZKQ-0004Fr-BV for gctc-ntg-context-518@m.gmane.org; Fri, 20 Nov 2009 20:39:34 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 571A7C9AC1; Fri, 20 Nov 2009 20:37:01 +0100 (CET) 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 PE8C1X7sVoaL; Fri, 20 Nov 2009 20:36:58 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7DE2CC9A8A; Fri, 20 Nov 2009 20:36:57 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D9028C9A8A for ; Fri, 20 Nov 2009 20:36:52 +0100 (CET) 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 u3B4z5Wb2c5I for ; Fri, 20 Nov 2009 20:36:17 +0100 (CET) Original-Received: from mail.solcon.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by balder.ntg.nl (Postfix) with ESMTP id 9128EC9A41 for ; Fri, 20 Nov 2009 20:36:17 +0100 (CET) X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-9 (SurgeMail 4.2a3) with ESMTP id 5602-1713362 for ; Fri, 20 Nov 2009 20:38:00 +0100 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: <87ocmx80tl.wl%berend@pobox.com> X-Authenticated-User: hagen@controller-9 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:54589 Archived-At: berend@pobox.com wrote: >>>>>> "Taco" == Taco Hoekwater writes: > > Taco> You could pre-assign a zero-padded number to each book > Taco> (Genesis=001, Exodus=002), and use that number inside the > Taco> square brackets. > > Right, but that would be extremely annoying to type in all the time > :-) > > I'm looking for a more automated solution, but given that even you > don't know one, it seems I have to write some sorting mechanism > myself. > > Or perhaps use the trick above as the input is XML, and the verses are > clearly marked, so I could generate ConTeXt with the proper sort > codes. > > Who does the index sorting, is that texexec? in mkii yes, and in mkiv it's done in lua if you go for xml, an duse mkiv, then you can write your own sorting code as you can access the tree Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________