[sword-devel] Swig PHP bindings
lumi.n8 at gmail.com
Thu Feb 24 13:38:43 MST 2005
I currently have Sword 1.5.7 installed. I spent a good part of
yesterday and all morning trying to build the php_Sword.so shared
object and have come to the conclusion that i may need a little bit of
help with this.
Anyone out there use the Swig PHP bindings? How did you get it to work?
Thanks so much,
On Wed, 23 Feb 2005 10:05:14 +0000, Daniel Glassey
<dglassey at crosswire.org> wrote:
> nathan wrote:
> > Thanks for the info Chris.
> > I looked over the sword web project but I am really integrating
> > scripture tools into other PHP applications so I decided to stick with
> > Diatheke for now... I
> Hi Nathan,
> Alas we haven't announced yet about it but I hope you have installed the
> security update of diatheke for Debian stable.
> > Today however i discovered the Swig php bindings. I saw some
> > examples in perl. Has anyone used this with php yet? Do i have to
> > install swig on my server or is it enough to have sword installed...
> > Do I just include some files and have the sword classes available to
> > me... any info is appreciated. I'm running debian stable by the way.
> On the server it will be enough to have the sword libs plus the files
> that swig generates for you. Hopefully someone onlist can guide you
> through generating the bindings - making the php ones should be similar
> to making the perl ones.
> > On Sun, 20 Feb 2005 21:29:25 -0600, Chris Little <chrislit at crosswire.org> wrote:
> >>nathan wrote:
> >>>This is looking like some pretty incredible software. Good work to
> >>>everyone who is involved.
> >>>Question: I am having trouble finding information about how to fully
> >>>use all the features of Sword through Diatheke. Is there some place
> >>>that I am missing? :-)
> >>No, there's no documentation on Diatheke beyond what is printed when it
> >>executes without arguments. I would say it is no longer supported
> >>software, in that it isn't being developed any longer.
> >>>Specifically, what can I do with these flags:
> >>>[-t script] [-v variant#(-1=all|0|1)]
> >>[-t script] allows you to do transliteration. I don't remember which
> >>options are allowed, but it should definitely allow "Latin" as an
> >>option, and possibly "Latin-1".
> >>-v allows you to pick which set of variants are displayed, for modules
> >>that include variant readings.
> >>>Also, what features of Sword are not available through the command
> >>>line interface, anything worth me learning a little about c++ for? I
> >>>kind of get the code, because i have been doing php for so long. I am
> >>>building a web interface currently and Diatheke is working really
> >>Diatheke can't handle GenBooks at all. It could be added, but it
> >>wouldn't make sense to use with a command-line interface. For web
> >>interfaces, we recommend our OSIS Web Tool instead (see
More information about the sword-devel