Scriptures

The Standard Works is a web-based keyboard-controlled reader for the LDS standard works (the Book of Mormon, the Bible, the Doctrine & Covenants, and the Pearl of Great Price). I wrote it with help from Chad Hansen. The text comes from the Mormon Documentation Project.

The App

The Standard Works (warning: this is a dev version and is liable to change from time to time)

Download

Download source from Github: http://github.com/bencrowder/scriptures

What it does

  • A nicer typographic treatment of the scriptures.
  • Keyboard controls for navigation.

Screenshots

Reading

Scriptures 1

Go to location (autocomplete)

Scriptures 2

Go to location (ready to go)

Scriptures 3

Keyboard shortcuts

  • j = next verse
  • k = prev verse
  • n = next chapter
  • p = prev chapter
  • g = go to location
  • r = random chapter

Installation

  1. Download the source and put it on your server.
  2. Download the MySQL version of the scriptures from the Mormon Documentation Project.
  3. Create a MySQL database on your server.
  4. Dump the scriptures into your database.
  5. Add a “priority” column (integer) to the “lds_scriptures_volume” table and populate it based on which order you want the volumes to come up in the autocomplete in “Go to location.” A lower number is a higher priority.
  6. Copy include/config.sample.php to include/config.php.
  7. Edit include/config.php and fill in your server’s information.
  8. Voila!

Notes

I’ve only tested it in Firefox and Safari (with Safari, the scrolling isn’t quite as smooth, but it still works).

If you specify a verse on the URL path, it’ll be highlighted. (Example: 2 Nephi 9:50.) You can highlight ranges as well. (Example: 2 Nephi 9:50–51.)

It uses exljbris’s free font Calluna.

Status

The “g” functionality (to jump to a specific chapter/verse, with autocomplete) doesn’t quite work yet, and there are several other bugs at the moment.