Code Monkey home page Code Monkey logo

dtk's Introduction

dtk.el

Read Biblical texts in Emacs

image


diatheke is a front-end to the SWORD library. dtk facilitates reading a Biblical text, or other diatheke-accessible material, in Emacs.

Getting started

  1. Ensure that diatheke is installed. In Debian, it is available as the diatheke package.

  2. Ensure that at least one text accessible as a diatheke module is installed. One way to do this is by using the 'module manager' of Xiphos. A number of texts are also available in Debian as packages (e.g., sword-text-kjv).

Usage

Prerequisites: Define the variables dtk-module-category (default: "Biblical Texts") and dtk-module (default: the first module returned by diatheke). These may be set interactively by calling dtk-select-module-category and dtk-select-module, respectively.

M-x dtk will create a dedicated buffer *dtk* and prompt for completion of book, chapter and verse. Corresponding text(s) will be inserted to *dtk* upon completion.

The *dtk* buffer enables dtk-mode and provides the following keybindings:

Key Commands Description
g dtk-go-to Prompt and insert new text
f dtk-forward-verse Forward verse
b dtk-backward-verse Backward verse
c dtk-clear-dtk-buffer Clear dtk buffer
M dtk-select-module-category Select type of text (Bible text, Commentaries, Dictionaries..)
m dtk-select-module Select module (Bible versions)
s dtk-search Search text
S dtk-show-dict-entry Show Strong's dictionary data for word at point
q dtk-quit Quit buffer
x dtk-follow Insert the corresponding verse into dtk buffer if point is under full citation
C-M-b dtk-backward-chapter Move point to previous chapter
C-M-f dtk-forward-chapter Move point to next chapter

To insert Biblical text directly in any buffer, use M-x dtk-bible. Call with prefix argument (C-u) to temporarily change module when inserting text.

An example use-package configuration:

(use-package dtk
  :bind (("C-c B" . dtk-bible))
  :custom
  (dtk-default-module "KJV")
  (dtk-default-module-category "Biblical Texts")
  (dtk-word-wrap t)
  )

Performing a dictionary lookup

Some texts have dictionary references embedded in the texts. For these texts, dictionary lookups may be available. By default, S will, by invoking dtk-show-dict-entry, display the related dictionary entry, if that entry is available.

Searching within a text

Search the selected text with M-x dtk-search.

Selecting a module

Modules fall into a number of categories. Select the category of module which is under consideration with M-x dtk-select-module-category. By default, this functionality is bound to M.

Select the module of interest (e.g., KJV, ESV, or RNKJV) with M-x dtk-select-module. By default, this functionality is bound to m.

See also

diatheke.el is another interface to diatheke.

sword-converter converts SWORD module content to JSON and SQLite. Provides search functionality.

sword-to-org converts SWORD modules content to org outlines.

dtk's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.