Re: [sword-devel] SCRIPT: Covert Traditional Book Names to Short Sword Names

2012-08-02 Thread Peter von Kaehne
> Von: David Haslam > OSIS is an external standard, not merely internal to CrossWire. See > http://www.bibletechnologies.net/ That and Matthew Matthe Matth Matt Mat Ma M are all automatically deducted by the engine, but something like Pss for Psalms is not. The abbreviation section does th

Re: [sword-devel] SCRIPT: Covert Traditional Book Names to Short Sword Names

2012-08-02 Thread David Haslam
Dear Andrew, OSIS is an external standard, not merely internal to CrossWire. See http://www.bibletechnologies.net/ (Notwithstanding that some CrossWire volunteers were closely involved in its creation and updates.) Best regards, David -- View this message in context: http://sword-dev.350566.

Re: [sword-devel] SCRIPT: Covert Traditional Book Names to Short Sword Names

2012-08-01 Thread Andrew Thule
Thank you both. Both explanations make complete and utter sense. I see now the logic, but at the risk of furthering my appearance as a fool, may I ask .. ... notwithstanding the fact there is no direct need, if the OSIS abbreviations are already mostly the same, and are not standard (public facin

Re: [sword-devel] SCRIPT: Covert Traditional Book Names to Short Sword Names

2012-08-01 Thread DM Smith
Regarding the difference between the OSIS book abbreviations and abbr.conf: OSIS has a fixed abbreviation for each book. The SWORD Engine in parsing a reference tries to take arbitrary input and understand it. So the abbreviations there are for that purpose. They are also used as the "best" for

Re: [sword-devel] SCRIPT: Covert Traditional Book Names to Short Sword Names

2012-08-01 Thread Peter von Kaehne
> Von: Andrew Thule > Have I failed to grasp the purpose of abbr.conf, or is this a hiccup > between abbr.conf and osis2mod? You have. Totally and utterly. :-) The OSIS "abbreviations" are not "standard abbreviations" at all but are tokens used for osisID and osisRefs. They are not used in a

Re: [sword-devel] SCRIPT: Covert Traditional Book Names to Short Sword Names

2012-08-01 Thread Andrew Thule
On Tue, Jul 31, 2012 at 2:51 AM, Peter von Kaehne wrote: > You did not tell what the ultimate purpose for your conversion is, but > assuming you want to create OSIS references, you might want to investigate > using the sword API for doing the job. That is one of the things it is > excellent at.

Re: [sword-devel] SCRIPT: Covert Traditional Book Names to Short Sword Names

2012-07-31 Thread Andrew Thule
Perfect Peter, much appreciated. I'll give it a go, and see how it goes. Its nice the API is so flexible. ~A On Tuesday, July 31, 2012, Peter von Kaehne wrote: > > > Von: Andrew Thule > > > > This one is shorter > > using awk not php slightly more elegant and handles books of the form > > 1 J

Re: [sword-devel] SCRIPT: Covert Traditional Book Names to Short Sword Names

2012-07-30 Thread Peter von Kaehne
> Von: Andrew Thule > This one is shorter > using awk not php slightly more elegant and handles books of the form > 1 John and 1John: You did not tell what the ultimate purpose for your conversion is, but assuming you want to create OSIS references, you might want to investigate using the sw

Re: [sword-devel] SCRIPT: Covert Traditional Book Names to Short Sword Names

2012-07-30 Thread Andrew Thule
Opps. The .php one works (though doesn't handle names of the form 1John). I didn't mean to send that one though. This one is shorter using awk not php slightly more elegant and handles books of the form 1 John and 1John: -=-=-=- convert-long-2-short-names.awk Script -=-=-=- #!/usr/bin/awk -f BE

[sword-devel] SCRIPT: Covert Traditional Book Names to Short Sword Names

2012-07-30 Thread Andrew Thule
The sword lib contains a file abbr.conf which contains mapping from traditional book names to short sword module names as follows: [Text] Genesis=Gen Exodus=Ex Leviticus=Lev Numbers=Num Deuteronomy=Deut Joshua=Josh Judges=Judg Ruth=Ruth I Samuel=1Sam ... I've grown too lazy to continue converting