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 understand where you were getting things like: sorters and
interfaces.variables.before from. At least I could see that much!
Thank you Hans,
Julian
On 16/4/21 11:08 pm, Hans Hagen wrote:
sorters.definitions["biblical"] = {
method = interfaces.variables.before,
replacements = {
{ "Gen", utf.char(0xFF01) },
{ "Ex", utf.char(0xFF02) },
{ "Lev", utf.char(0xFF03) },
{ "Deut", utf.char(0xFF04) },
{ "Lam", utf.char(0xFF05) },
{ "Dan", utf.char(0xFF06) },
{ "Joel", utf.char(0xFF07) },
{ "Ps", utf.char(0xFF08) },
{ "Prov", utf.char(0xFF09) },
{ "Sir", utf.char(0xFF0A) },
{ "Mt", utf.char(0xFF0B) },
{ "Mk", utf.char(0xFF0C) },
},
}
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________