mvnForum Homepage

Print at Dec 29, 2014 1:56:47 AM
Posts: 13   Pages: 2   [ 1 2 | Next Page ]
View all posts in this thread on one page
Posted by hermeneutes at Feb 27, 2004 4:33:47 AM
How to use diatheke?
Hello,

Is there a more detailed explanation on how to use diatheke on the command line?

To be frank, I don't understand how to use it from the usage message.

Some examples would be very welcome and helpful.

Will appreciate your help.

Regards,

Piotr

Posted by squinky at Jul 5, 2004 2:06:00 PM
Re: How to use diatheke?
$ diatheke -b KJV -s phrase -k "one body"
created default StringMgr
Verses containing "one body"-- Romans 12:4 ; Romans 12:5 ; I Corinthians 6:16 ; I Corinthians 10:17 ; I Corinthians 12:12 ; I Corinthians 12:13 ; I Corinthians 12:20 ; Ephesians 2:16 ; Ephesians 4:4 ; Colossians 3:15 -- 10 matches total (KJV)

That's normally about what I have to do :)

Posted by Nathaniel at Jul 21, 2004 10:30:16 AM
Re: How to use diatheke?
Thanks for the example Squinky, that set me in the right direction. Here are a few more examples for those who are interested:

-- Retrieve Acts ch 10
diatheke -b KJV -k "Acts 10"

-- First five verses of above
diatheke -b KJV -m 5 -k "Acts 10"

-- Acts chapter 1 and 2
diatheke -b KJV -k "Acts 1-2"

-- Genesis 1:1
diatheke -b KJV -o "G 1:1"

-- Galations 1:1 w/ Strong's (KJV Only)
diatheke -b KJV -o n -k "Ga 1:1"

-- I Corinithians 1:1 (also "ic 1:1")
diatheke -b KJV -o n -k "1c 1:1"

-- Revelation 1:1-1:7
diatheke -b KJV -k "Rev 1:1-7"

-- Revelation 1:1
diatheke -b KJV -m 1 -k "R 1:1-7"

-- Revelation 1:1,1:3,1:7 as HTML (w/ <p>,<i> tags)
diatheke -b KJV -f HTML -k "R 1:1,3,7"

-- verses with "my people", quotations optional
diatheke -b KJV -s phrase -k "my people"

-- verses with "skin" and "bones"
diatheke -b KJV -s multiword -k "skin bones"

-- verses with "church" or "assembly"
diatheke -b KJV -s regex -k "church | assembly"

-- Strong's Greek 3056
diatheke -b "StrongsGreek" -k "3056"

-- Definition of "horn" in Two Babylons
diatheke -b "2BabDict" -k "horn"

-- Entry for John 1:1 in Family Bible Notes
diatheke -b Family -k "Jn 1:1"

-- Entry for "Lion" in Scripture Alphabet Of Animals
diatheke -b SAOA -k "Lion"

-- Entry for "olive-tree" in Easton's Bible Dictionary
diatheke -b Easton -k "olive-tree"

Posted by tuubaaku at Apr 30, 2005 9:22:18 AM
Re: How to use diatheke?
This reply was very helpful to me. Could this information be put on the diatheke page, or at least a link to this forum? Otherwise, it is a bit difficult to figure out how Diatheke/CLI works.

Posted by tuubaaku at Jul 26, 2005 9:24:10 AM
Re: How to use diatheke?
Just wanted to say thanks for the new instructions in diatheke with the sword-1.5.8 release. Much more helpful.:)

Posted by grj at Sep 24, 2005 6:40:14 AM
Re: How to use diatheke?
Is there a way to make diatheke display verses? Thanks to this thread I can search on various books and get the references returned, but it would be nice to use diatheke to view the verses and text of books.

Thanks,

grj

Posted by tuubaaku at Sep 30, 2005 6:04:35 PM
Re: How to use diatheke?
Have you tried using Nathaniel's tips? For example,
diatheke -b KJV -k "Acts 10"
will display all the verses in Acts 10.

Is that what you want, or are you trying to do something else?

Posted by grj at Oct 14, 2005 10:30:46 AM
Re: How to use diatheke?
That helps with the Bible text. i must have overlooked that. Is there a way to display text from commentaries, etc?

Thanks,

grj

Posted by tuubaaku at Oct 29, 2005 7:41:23 PM
Re: How to use diatheke?
That helps with the Bible text. i must have overlooked that. Is there a way to display text from commentaries, etc?

Thanks,

grj


It should be just the same - replace the Bible module with a commentary module. For example:
diatheke -b MHC -k "Acts 10:1"

Note, however, that if the commentary doesn't specifically have an entry for that verse, it might not show anything.

Unfortunately I'm at work on a Windows computer right now so I can't check to make sure.

Posted by jazzuban at Oct 10, 2007 11:53:49 PM
Re: How to use diatheke?
I use diatheke to show results in a console. Paste the following code into a file, put that file somewhere in your path and make it executable.


#!/bin/bash
#Display Bible verses using diatheke
#Feel free to modify and improve
#Public Domain License

#Set this to your favorite resource, e.g. BOOK=KJV
BOOK=WEB

clear
echo "#################################################"
echo " Diatheke: display Bible verses"
echo " enter reference or write "quit" to exit"
echo "#################################################"


#This will make the script parse any references given
# as command line arguments

if [ $# -ge 1 ]; then
diatheke -b $BOOK -k $*
fi


## Main function - keep reading references until "quit" is given
# you can also exit by pressing CTRL + C

while [ 1 ]
do
read -p "verse> " INPUT
if [ "$INPUT" != "quit" ]
then
diatheke -b $BOOK -k $INPUT
echo _______________________________________
else
exit
fi

done

exit 0


Posts: 13   Pages: 2   [ 1 2 | Next Page ]