mvnForum Homepage

Print at Sep 23, 2014 7:32:43 PM
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


Posted by mashdot at Jan 2, 2008 8:25:51 AM
Re: How to use diatheke?
Does anyone know how to turn off the verse numbering?

eg.
diatheke -b ESV -k gen 1:1-3

Genesis 1:1: In the beginning, God created the heavens and the earth.
Genesis 1:2: The earth was without form and void, and darkness was over the face of the deep. And the Spirit of God was hovering over the face of the waters.
Genesis 1:3: And God said, Let there be light, and there was light.

and rather have output like...

In the beginning, God created the heavens and the earth.
The earth was without form and void, and darkness was over the face of the deep. And the Spirit of God was hovering over the face of the waters.
And God said, Let there be light, and there was light.

Also I still think there needs to be a man page created for diatheke breaking down all the options.

Posted by DaveClem at Feb 16, 2009 5:28:00 PM
Re: How to use diatheke?
if your using a linux shell (bash, sh, etc) one way would be

diatheke -b ESV -k gen 1:1-3 | cut -d ":" -f3-10

this will give the desired output but doesn't really turn it off. it splits each line into fields, and uses the colon to determine the field, then displays the 3rd to the 10th field

(the reason being, that if the text uses a colon at any point then everything after the colon in the text would be lost if you just used -f3, so just to be sure i set it to the 10th feidl , reasoning your not going to have more than 7 colons in a verse of scripture.)

there might be a way to do it with diatheke of course...

Posted by hailukah at Sep 1, 2009 1:38:30 PM
Re: How to use diatheke?
Hi everyone,

I'm not sure if anyone would be interested in a frontend to diatheke, but here goes...

This works for me in Ubuntu 9.04. It's written entirely in bash script.

http://omploader.org/vMjlqbQ

Save the script as opsis (Greek for appearance) and make executable

chmod a+x opsis


./opsis -h

will list the few command line options.

./opsis

runs opsis in its normal mode. It allows to read the bible by chapter. Perform a lookup in Nave's (it's much quicker than searching). Save a bookmark of current reading location. And see a list of modules to chose from.

I'd appreciate any feedback.

josh