[sword-devel] Sword, PHP, and PostNuke
Wed, 8 Jan 2003 16:24:23 -0800 (PST)
Thanks for trying to help, Joachim!
I looked into SWIG, but it's over my head. My
programming experience has been limited to web
scripting languages and a litle FORTRAN. Besides, I
think SWIG may be overkill.
Maybe I am wrong about SWIG, but from what I gather,
using it would either require becoming intimately
familiar with the Sword source code (and I don't even
know the language it's written in), or requiring that
all servers on which my module is used have Sword
installed. Both of these are impractical at best.
Please let me re-phrase my original request:
What I envision is for PostNuke site administrators to
simply download Sword text modules to their web sites,
and use an installation routine that reads those
modules, determines what books, chapters, and verses
they contain, and inserts the data into a MySQL table.
(Or, just uses the Sword text modules as flat files
instead of doing the database thing.)
Regardless of what the project ultimately does with
the data in the NT and OT files, it needs to be able
to read *.bks, *.chs, and *.vss files. Otherwise,
I'll have to limit this project to only those texts
which match the KJV book-chapter-verse format. I
*could* do this, but I really don't want to.
So, I am looking for help with either of the
A. Obtaining PHP code that can read *.bks, *.chs, and
B. understanding the specifics of these files so I can
develop this portion of the code myself. Again, I
don't understand C and C++ (or whatever language Sword
is written in). I do have an intermediate knowledge
of PHP, and I am familiar with basic coding practices
--- firstname.lastname@example.org wrote:
> There are SWIG (www.swig.org) bindings of Sword. PHP
> is also supported
> by Swig, so you can try this.
> The SWIG bindings are in the bindings/swig dir of
> the source code
> If you need help getting started let me know.
> Curtis Farnham <email@example.com> schrieb am
> 07.01.2003, 16:22:37:
> > Hello all!
> > I joined the Sword Project about a week ago
> because I
> > want to write a module for the PostNuke CMS
> > (http://www.postnuke.com) that uses Sword modules
> > provides Bible text searching and lookup
> > I wrote a PostNuke module already
> > (http://pn.e-cdf.com) that works with Sword texts,
> > the only way I found to do it was to use mod2vpl
> and a
> > PHP script I wrote to first convert texts to
> > (Yet Another Electronic Bible Text Format ;-) ).
> > It's a type of CSV, actually. But before I go any
> > farther, I want to bring up the question here.
> > Has anybody ported the Sword API (or parts of it)
> > PHP? It'd be really nice if I could just provide
> > PostNuke module written around a PHP-ported Sword
> > tell people to go to the Sword site and get
> > texts they'd like.
> > At a bare minimum, I need help getting/developing
> > code that properly interprets bks, chs, and vss
> > I don't know C/C++, so my attempts at manually
> > interpreting the Sword code were unproductive. If
> > somebody can at least help me with the bks, chs,
> > vss files, I can probably handle it from there.
> > Thanks!
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> > http://mailplus.yahoo.com
> > _______________________________________________
> > sword-devel mailing list
> > firstname.lastname@example.org
> sword-devel mailing list
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.