Re: [NTG-context] register for biblical citations

2021-04-17 Thread Hans Hagen
On 4/17/2021 7:04 AM, jbf wrote: necessarily understand the Lua code, but I did take the trouble to look As with many such features, indeed we use lua but most of the concepts originate in by now decades old mkii. These replacement tricks that can drive sorting actually come from there. But

Re: [NTG-context] register for biblical citations

2021-04-16 Thread jbf
You will be happy to know that this works perfectly, and naturally I extended the pattern to cover another 30 books or so. I don't necessarily understand the Lua code, but I did take the trouble to look through sort-ini.lua to get some kind of idea of what was happening and basically to

Re: [NTG-context] register for biblical citations

2021-04-16 Thread jbf
Okay, that's all clear enough. Thank you. I'll keep working at it. Julian On 16/4/21 11:08 pm, Hans Hagen wrote: On 4/16/2021 12:22 PM, jbf wrote: There was no mention of the indicator anywhere in what I copied from your example. I did try indicator=no just now in case it should be made

Re: [NTG-context] register for biblical citations

2021-04-16 Thread jbf
I did, actually. But maybe I can play with that a bit further. My first attempt at doing that was unsuccessful (when I got to 'z' I thought I might be able to then go 'za' etc). I'll keep playing, but Hans' luacode approach might ultimately be the solution for me. He's given me the principles;

Re: [NTG-context] register for biblical citations

2021-04-16 Thread jbf
You are correct on both counts; it is not quite random (just not what I was looking for ) and yes, the abbreviated book title needs to be in the mix as well, just in case it also ends up throwing things out. But, as you can see subsequently, each contribution is making things clearer (for me,

Re: [NTG-context] register for biblical citations

2021-04-16 Thread Hans Hagen
On 4/16/2021 12:22 PM, jbf wrote: There was no mention of the indicator anywhere in what I copied from your example. I did try indicator=no just now in case it should be made explicit: You use a couple of chartacters that will be filtered (crlf and so). Try weird ones, like:

Re: [NTG-context] register for biblical citations

2021-04-16 Thread r . ermers
It seems that the items are actually not randomly listed. It appears to me that the list is sorted on the chapter number, and then the verse number. The abbreviated book title is not involved in this sorting order, which it should be. Robert > Op 16 apr. 2021, om 12:22 heeft jbf het

Re: [NTG-context] register for biblical citations

2021-04-16 Thread Henning Hraban Ramm
> Am 16.04.2021 um 11:47 schrieb jbf : > > So, not sure where to go from here. Could I perhaps return to my earlier > question, which indicated that by using the keyword approach [a] [b] and so > on, as far as [z] I was at least getting a passable result, but how could I > continue past [z]?

Re: [NTG-context] register for biblical citations

2021-04-16 Thread jbf
There was no mention of the indicator anywhere in what I copied from your example. I did try indicator=no just now in case it should be made explicit: (\setupregister[bibcit][language=biblical,before=,indicator=no] but that makes no difference either. Same result. Seemingly random index.

Re: [NTG-context] register for biblical citations

2021-04-16 Thread Hans Hagen
On 4/16/2021 11:47 AM, jbf wrote: Hans, thanks for your ingenious solution but there is still a way to go I suspect! I implemented (copy-paste) precisely the solution offered and I get an index but with some strange results ! Notice that in my previous own solution (but only as far as 26

Re: [NTG-context] register for biblical citations

2021-04-16 Thread jbf
Hans, thanks for your ingenious solution but there is still a way to go I suspect! I implemented (copy-paste) precisely the solution offered and I get an index but with some strange results ! Notice that in my previous own solution (but only as far as 26 books!) I at least got an index in the

Re: [NTG-context] register for biblical citations

2021-04-16 Thread Hans Hagen
On 4/15/2021 11:28 AM, jbf wrote: My simple MWE: \defineregister[bibcit] \setupregister[bibcit][% indicator=no, before=] text... \bibcit[a]{Gen 3:6 (MAC) }Gen 3:6 (and so one for each Genesis reference, then moving on to Leviticus with [b] etc.) In other words, I have used the key

Re: [NTG-context] register for biblical citations

2021-04-15 Thread jbf
My simple MWE: \defineregister[bibcit] \setupregister[bibcit][% indicator=no, before=] text... \bibcit[a]{Gen 3:6 (MAC) }Gen 3:6 (and so one for each Genesis reference, then moving on to Leviticus with [b] etc.) In other words, I have used the key option [] using the alphabet to

Re: [NTG-context] register for biblical citations

2021-04-15 Thread Hans Hagen
On 4/14/2021 11:16 PM, jbf wrote: I am wondering if anyone has had to set up a register (index) for biblical citations, where the order is not alphabetical but the order of the biblical books themselves, so, for example, citations from Genesis (e.g. Gen 1:1; Gen 6:4; Ex 15:2; Deut 12:8 etc.

[NTG-context] register for biblical citations

2021-04-14 Thread jbf
I am wondering if anyone has had to set up a register (index) for biblical citations, where the order is not alphabetical but the order of the biblical books themselves, so, for example, citations from Genesis (e.g. Gen 1:1; Gen 6:4; Ex 15:2; Deut 12:8 etc. etc). I am not at all sure how to