Re: [Tutor] Parsing Bible verses

2009-07-29 Thread tearsfornations
hey, i recently was working on some custom bible software and created an sqlite3 database of a few different bibles, one of which is the American Standard Version (ASV) which you can download here http://tearsfornations.hostcell.net/bibledoth/asv.bible.sqlite3 here is the create tables CREATE

Re: [Tutor] Parsing Bible verses

2009-05-25 Thread John Fouhy
2009/5/26 Eduardo Vieira : > Now, a little farther on the topic of a Bible database. I'm not sure > how I should proceed. I don't really have the db file I need, I will > have to generate it somehow, from a bible software, because the > version I want is for Portuguese. I have found a bible in sql,

Re: [Tutor] Parsing Bible verses

2009-05-25 Thread Eduardo Vieira
On Sat, May 23, 2009 at 3:37 AM, C or L Smith wrote: > Here is something from my toolbox of routines that might be useful for the > number ranges: > indices('-5--2') > [-5, -4, -3, -2] indices('3-4') > [3, 4] indices('3-4,10') > [3, 4, 10] > > /chris > > def indices(s,n=None): #("1

Re: [Tutor] Parsing Bible verses

2009-05-23 Thread C or L Smith
Here is something from my toolbox of routines that might be useful for the number ranges: >>> indices('-5--2') [-5, -4, -3, -2] >>> indices('3-4') [3, 4] >>> indices('3-4,10') [3, 4, 10] /chris def indices(s,n=None): #("1-3,7")->1,2,3,7;i("1,-3--1")->1,-3,-2,-1; or (slc,n=None)->slc.start,stop

Re: [Tutor] Parsing Bible verses

2009-05-21 Thread Eduardo Vieira
On Thu, May 21, 2009 at 7:03 PM, John Fouhy wrote: > 2009/5/22 Eduardo Vieira : >> I will be looking for lines like these: >> Lesson Text: Acts 5:15-20, 25; 10:12; John 3:16; Psalm 23 >> >> So, references in different chapters are separated by a semicolon. My >> main challenge would be make the pr

Re: [Tutor] Parsing Bible verses

2009-05-21 Thread John Fouhy
2009/5/22 Eduardo Vieira : > I will be looking for lines like these: > Lesson Text: Acts 5:15-20, 25; 10:12; John 3:16; Psalm 23 > > So, references in different chapters are separated by a semicolon. My > main challenge would be make the program guess that 10:12 refers to > the previous book. 15-20

Re: [Tutor] Parsing Bible verses

2009-05-21 Thread W W
On Thu, May 21, 2009 at 4:26 PM, Eduardo Vieira wrote: > Hello, I'm planning to create a script to read a certain file, find > the line that contains Bible references and then use that to query a > bible database in order to print the verses in another file. > I will be looking for lines like thes

[Tutor] Parsing Bible verses

2009-05-21 Thread Eduardo Vieira
Hello, I'm planning to create a script to read a certain file, find the line that contains Bible references and then use that to query a bible database in order to print the verses in another file. I will be looking for lines like these: Lesson Text: Acts 5:15-20, 25; 10:12; John 3:16; Psalm 23 So