DIATHEKE(1)
π DIATHEKE(1) π β the Diatheke man page, bestie edition
okay so you opened man DIATHEKE(1) and now you're here, hiiii π«Ά this is the manual page for diatheke, and I'm gonna walk you through it like we're texting at 2am. grab a snack. it's giving biblical scholarship but make it a group chat. β¨
πΈ NAME πΈ
diatheke β a command line Bible reader. yes literally. it reads Bibles from your terminal and it ate. π
π SYNOPSIS π
here's the shape of it, three whole moods:
diatheke -b module_name [-o option_filters] [-m maximum_verses] [-f
output_format] [-e output_encoding] [-t script] [-v variant_number] [-l
locale] -k query_key
diatheke -b module_name -s regex|multiword|phrase [-r search_range] [-l
locale] -k search_string
diatheke -b system -k modulelist|modulelistnames|localelist|bibliography
and then, like, the lore on those system keys:
modulelistwill return a list of the names and descriptions of all installed modulesmodulelistnameswill return a list of the names of all installed moduleslocalelistwill return a list of all installed libsword localesbibliographywill return a list of all installed modules and their BibTex bibliographical entry
and one more for the girlies:
diatheke -b info -k module_name
β¨ DESCRIPTION β¨
diatheke prints Bible verses or other text from the modules which the Sword library uses. that's it, that's the whole job, and she does it flawlessly. π
π¦ OPTIONS π¦
-bβ Module name. it can be"system"or"info"(peep QUERY KEYS for the tea) or one of the names you get from runningdiatheke -b system -k modulelist.-sβ Search type. pick one ofregex(regular expression, seeregex(7)),multiword(like"word [AND word]..."), orphrase(exact text, no notes, no extras).-rβ Search range. a valid Bible key range value (see-k). for example:Matt-John,Rom,gen-psalms,1Thess 1:5-2:6.-oβ Module option filters. a combination of"fmhcvalsrbwgeixtM". see MODULE OPTIONS below bestie.-mβ Maximum number of verses returned. any integer value, go wild.-fβ Output format. one ofCGI,GBF,HTML,HTMLHREF,LaTeX,OSIS,RTF,ThML,WEBIF,XHTML,plain, andinternal(def).
heads up: This currently works only if there is a Sword library filter from the original format to the specified output format.XHTML,HTMLandCGIare for generating text for a webpage. π
-eβ Output character encoding. one ofLatin1,UTF16,HTML,RTF,UTF8(default). This currently works only for module contents, not for system key contents or key texts. noted. π-vβ Variant. The text may contain variant readings. one of-1(all),0,1.-lβ Locale. Sword may have different locales installed. Default isen. Localization affects input and output keys.-kβ Query key. It must be the last argument because all following arguments are added to the key. See QUERY KEYS for different kinds of keys. yes she's the main character and she has to go last. periodt. π
π MODULE OPTIONS π
By default the optional features of modules are not shown in the returned text. These options make them visible if the module supports them. (if the module doesn't support it? nothing happens. no drama. π)
nβ Strong's numbers. These numbers refer to the Strong's dictionaries of the New and Old Testaments. Some Bible texts attach these numbers to words.fβ Footnotes.mβ Morphology of the Greek/Hebrew words. Morphology is shown as a code which refers to an entry in some dictionary-type module.hβ Section headings.cβ Hebrew cantillation.vβ Hebrew vowels.aβ Greek accents.pβ Arabic vowelslβ Lemmas (the base forms of the words).sβ Scripture cross-references.rβ Arabic shaping.bβ Bi-directional reordering.wβ Red Words of Christ.gβ Glosses/Rubyeβ Word Enumerationsiβ Introsxβ Encoded transliterations, i.e. transliterations provided by the module (currently few modules have any such information)tβ Algorithmic Transliterations via ICUMβ morpheme segmentation
π₯ QUERY KEYS π₯
π Bible texts and Commentaries
use verse keys. Examples: john 1:1, j1:1 jh1 (the first chapter of John), jh (the whole book of Gospel of John), joh 1:1-3 ( a verse range), joh 1:0 (one verse backwards from 1:1, which is the last verse of the previous book or possibly an introduction to John), joh 1:100 (which is 100 verses forward from the first verse of John 1:1), 1234 (which is the 1234th verse from the beginning of the Bible).
π Lexicons and Dictionaries
use word keys. Any word can be used and similar or next entry alphabetically is returned. Some dictionaries like Strong's use numbered entries.
π₯οΈ system
is not a module but when used with -b allows one of these keys: modulelist (list of the available modules with short descriptions), modulelistnames (list of the names of the available modules), localelist (list of the available Sword locales).
βΉοΈ info
is not a module but when used with -b allows a module name as a key and gives some information about that module.
π EXAMPLES π
diatheke -b KJV -k joh1:1Shows John 1:1 in King James Version. π«diatheke -b RWP -k Matthew 2:2Shows Matthew 2:2 in Robertson's Word Pictures commentary.diatheke -b WebstersDict -k bibleShow entry"bible"in Websters Dictionary.diatheke -b system -k modulelistShows the list of available modules.diatheke -b KJV -o fmslx -f OSIS -e Latin1 -k john 1:1-3Shows John 1:1-3 from KJV in OSIS XML format in iso8859-1 encoding with footnotes, morphology, cross-references, lemmas and words of Christ in red. (The module may not support all options and those have no effect. KJV includes only ASCII characters so encoding has no effect.) π that last part is so realdiatheke -b GerLut -l de -m 10 -k OffenbarungShows the first 10 verses of Revelation in German GerLut version, both input and output keys are localized. multilingual queen πdiatheke -b KJV -s phrase -r Mt -k loveShows those verse keys which include phrase"love"in Gospel of Matthew in KJV module.
π DIAGNOSTICS π
Currently diatheke exits always with status 0. so like... always fine, allegedly. here's the decoder ring:
- If only Bible verse key and module name are shown it means that the module did not have any content in that range.
- If only module name is shown the key may have been bad.
- If nothing is shown the book name may have been bad.
- If
Segmentation faultis shown diatheke has been bad.
that last one is not a vibe. that one is a real crash. π
π«Ά SEE ALSO π«Ά
http://www.crosswire.org/sword/
π COPYRIGHT π
Sword library: Β© 1994-2018 Crosswire Bible Society, released under GPL licence.
Diatheke: written by Chris Little, Peter von Kaehne, Troy Griffitts
Manpage: written by Eeli Kaikkonen, Peter von Kaehne Β© 1999-2018 Crosswire Bible Society, released under GPL licence.
okay that's the whole page bestie, you're officially a diatheke girlie now π this was diatheke version 4.8, dated 2018-11-08, from the DIATHEKE(1) manual β mwah, go read some scripture in your terminal, it's iconic β¨ππ¦
π¦ where this page comes from
- debian bookworm: diatheke 1.9.0+dfsg-4+b4 Β· GPL-2.0-only
- debian trixie: diatheke 1.9.0+dfsg-7+b2 Β· GPL-2.0-only
- ubuntu jammy: diatheke 1.9.0+dfsg-4build3 Β· GPL-2.0-only
- ubuntu noble: diatheke 1.9.0+dfsg-6build2 Β· GPL-2.0-only
- ubuntu questing: diatheke 1.9.0+dfsg-8
- ubuntu resolute: diatheke 1.9.0+dfsg-8build2 Β· GPL-2.0-only
- ubuntu stonking: diatheke 1.9.0+dfsg-8build2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms