[sword-devel] Re: New Perl Sword Interface (With Attachment)
John Keiser
sword-devel@crosswire.org
16 Jul 2001 23:56:31 -0400
--=-7Osg8Y6TYVFs6AL7ikEC
Content-Type: text/plain
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 README has full docs. Here is an example
> that prints out the KJV:
>
> use Sword;
> my $vi = new Sword::VerseIterator("KJV");
> do {
> print $vi->get_key . " : " . $vi->get_verse . "\n";
> } while($vi->next);
>
>
> QUESTION
> --------
> I have some ideas for improving the interface, but for efficiency
> reasons, I'd like to know a few things ... is there a way to:
> - Get a list of books in a module
> - Get a list of chapters in a book
> - Get a list of verses in a chapter
>
> This could make the Perl interface even nicer for web sites that want to
> browse.
>
> --John
>
--=-7Osg8Y6TYVFs6AL7ikEC
Content-Type: application/x-gzip
Content-Disposition: attachment; filename=Sword-0.01.tar.gz
Content-ID: 995342188.1798.1.camel@cy209696-a
Content-Transfer-Encoding: base64
H4sICI9pUzsCA1N3b3JkLTAuMDEudGFyAO08f3faSJL5F32KMuYWkYAM/nmDY18IJjGJDRxgT/Iy
OVZIDSgWEiMJCJPn/Sz3Ua+quyUE2I43s+N5s6d+zwZa1dVV1dXdVdXV6sxdzywUtWJp59kfVYrF
/eLRwQF+FotHh0crn7I8Kx7t7e4fHu4flrC+VNrdP3oGB8+eoEz9QPcAnn1xR85DcN97/hctneX4
t2uVs8vaHzH+pWLxcH//vvE/KO2WovHfL6GeYAWqARST8X+a8YcZ83zLdYD0QDnZKIrSHTEQ+gGW
D1OfmRC4YDmB55pTg0GAz8f41WagOyZMPHdmmQwB/MCbGgHi9sF1lJE7F+1Q6LYda5XHZgsY68bI
chiYbMIckzmGxXywAqxfwEifMVAHrqewr/p4gh1VwXDHE8tG2nmnEiuSZlt9T/ewcY4/INQu9uUh
CCIY60SPEoz0APyRO7VN6LOQZPqOMCscIccRbk1RKqEkB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