[sword-devel] What is the command to retrieve text by args like "Genesis 1:1"

Troy A. Griffitts scribe at crosswire.org
Wed May 6 16:13:16 MST 2009


Dear Wei-Wei,

My apologies for the delayed response.  We again had a backlog of admin 
tasks and your email and subscription was stuck in the queue.

I would suggest reviewing:

sword/examples/cmdline/lookup.cpp

Hope this gets you started.  Let me know if you have any questions.


	-Troy.



Wei-Wei Guo wrote:
> Dear all,
> 
> I want to write a Sword extension for Sphinx. The extension can help on
> Bible study by this way:
> 
> If I type :bible:`Genesis 1:1` in text, after compiling, the following
> line will be inserted
> 
>    In the beginning God created the heavens and the earth.
> 
> So I need to know, is it possible to call a command generating the
> previous line with argument of "Genesis 1:1" or something similar? And
> if the command can select Bible texts module, such as ChiNCVs or ASV,
> it would be better.
> 
> If there is no such convenient command, could you point me to some
> materials with which I can write a simple script. Except an API primer,
> I don't find any other document like man page or help file of Sword.
> 
> 
> Best wishes,
> Wei-Wei
> 
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page




More information about the sword-devel mailing list