[sword-devel] New Sword Website

2001-08-15 Thread John Keiser
Chris, I saw a post where you talked about the new website, http://www.sword.cx/sword. Is that ready? That's the one I want to link to from my site, because it is infinitely easier to understand and much better-looking than the current one :) --John

Re: [sword-devel] PR

2001-08-07 Thread John Keiser
On 07 Aug 2001 09:13:59 -0700, [EMAIL PROTECTED] wrote: > > Yes, but with some caution. These forums can become battle grounds for > > translation wars and other worthless disputes. Tempers get heated and > > people get slandered. You should know what you will do when trouble comes, > > before it

RE: [sword-devel] Sword-Perl 0.3

2001-07-26 Thread John Keiser
UTF modules aren't yet handled. I'll try and get that into the next release (probably more like this weekend--lots of work to do this week). Other stuff I'm planning is other search methods (right now it's exact by default and I don't even think that's a good default) and a few new methods (next_

[sword-devel] Re: Sword Web Interface!

2001-07-22 Thread John Keiser
Coupla small fixes attached. It was coloring always on browse and Revelation 22 went into an infinite loop. --John On 22 Jul 2001 02:12:15 -0400, John Keiser wrote: > Well, all this Perl stuff has come to fruition. I have completed a > fairly nice-looking Web interface to Sword that

[sword-devel] Sword Web Interface!

2001-07-22 Thread John Keiser
Try again, better luck!\n"; } else { print_verse_range $p, \@mods, @search_results; } } else { # MAIN FORM print qq^ Search/Browse Enter a list of books/chapters and verses you want to look up (Enter nothing to perform a normal search.) Books/Chapters: (i.e. Acts 17-18;John 3:16) Enter a search term or a verse you wish to lookup (enter a book/chapter to browse and highlight searched terms): Search/Verse: Choose modules: ^; my $first_one = 1; foreach my $mod_name (Sword::get_modules) { if($first_one) { print qq^$mod_name ^; $first_one = 0; } else { print qq^$mod_name ^; } } print qq^ ^; } print << "EOM"; http://www.johnkeiser.com";>John Keiser was here! This stuff is under the http://www.gnu.org/copyleft/gpl.html";>GPL. Copyleft (C) 2001. EOM sword_web.gif

[sword-devel] Sword-Perl 0.3

2001-07-21 Thread John Keiser
ocales and set_locale are the functions.) - Documentation! man Sword or perldoc Sword after install for full documentation on the entire burgeoning interface :) --John Keiser Sword-0.3.tar.gz

Re: [sword-devel] Feature Complete Perl Interface

2001-07-21 Thread John Keiser
Hmm. So what you're saying is, even if I get a whole other SWKey object (as I am doing in that example--it's not just a reference, it's a whole SWKey), that object is tied to whatever the current key is in SWModule? I'll have to think about that, it pretty much invalidates my entire architectu

RE: [sword-devel] Feature Complete Perl Interface

2001-07-21 Thread John Keiser
On 21 Jul 2001 10:57:23 -0700, Chris Little wrote: > > In short, you need to do > > LocaleMgr::systemLocaleMgr.setDefaultLocaleName(locale); > vk.setLocale(locale); > When you set the default locale name, do subsequent VerseKeys get created with that Locale automati

RE: [sword-devel] Feature Complete Perl Interface

2001-07-21 Thread John Keiser
A minor change: the border where the greater than comparison has trouble is between Amos 9:15 and Obadiah 1:1--not between Obadiah and Jonah. Amos is the 30th book; Obadiah is the 31st. --John On 21 Jul 2001 17:43:10 -0400, John Keiser wrote: > On 21 Jul 2001 10:57:23 -0700, Chris Lit

RE: [sword-devel] Feature Complete Perl Interface

2001-07-21 Thread John Keiser
On 21 Jul 2001 10:57:23 -0700, Chris Little wrote: > > > I'll take a look ... right now I'm implementing a new > > parse_verse_list() in Perl (the Sword one doesn't seem to > > actually support ranges, even though there's an option for it). > > It does parse verse lists. Just use VerseKey::Pa

Re: [sword-devel] Feature Complete Perl Interface

2001-07-21 Thread John Keiser
; $vi->set_book($book); > > $vi->set_chapter_num(1); > > $vi->set_verse_num(1); > > print $vi->get_key(), " : ", $vi->get_verse(), "\n"; > > # You can use get_book, get_chapter_num > > } > > > > > > 3. Search for verses > > > > And of course you can search! This gets everything in the KJV with the > > word "sword" in it: > > > > use Sword; > > my $mod = new Sword::Module("KJV"); > > foreach my $result ($mod->search("sword")) { > > print "$result->[0] : $result->[1]\n"; > > } > > > > > > --John Keiser > > > Content-Type: application/x-gzip; name="Anhang: 1" > Content-Transfer-Encoding: base64 > Content-Description: > >

[sword-devel] Feature Complete Perl Interface

2001-07-19 Thread John Keiser
ord; my $mod = new Sword::Module("KJV"); foreach my $result ($mod->search("sword")) { print "$result->[0] : $result->[1]\n"; } --John Keiser Sword-0.02.tar.gz

[sword-devel] New Perl Sword Interface

2001-07-16 Thread John Keiser
Well, I've written a library interface to Sword. Right now I'm sure it works with 1.5.2 because I've tested it. It links directly to the library for maximum speed. The package is attached. The README has full docs. Here is an example that prints out the KJV: use Sword; my $vi = new Sword::Ve

[sword-devel] Re: New Perl Sword Interface (With Attachment)

2001-07-16 Thread John Keiser
On 16 Jul 2001 23:55:54 -0400, John Keiser wrote: > Well, I've written a library interface to Sword. Right now I'm sure it > works with 1.5.2 because I've tested it. It links directly to the > library for maximum speed. > > The package is attached. The REA