Project

General

Profile

Feature #470

Chapter reference lookup

Added by Luke Murphey almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
12/07/2012
Due date:
% Done:

100%


Description

Add ability to go directly to a chapter by entering a verse in a text-box.

Associated revisions

Revision 232 (diff)
Added by Luke Murphey almost 12 years ago

Added ability to jump to section in document by typing an section reference. Reference #470.

Revision 232 (diff)
Added by Luke Murphey almost 12 years ago

Added ability to jump to section in document by typing an section reference. Reference #470.

Revision 224 (diff)
Added by Luke Murphey almost 12 years ago

Added ability to jump to section in document by typing an section reference. Reference #470.

Revision 250 (diff)
Added by Luke Murphey almost 12 years ago

Fixed issue where incorrect chapter references caused verses to flag as invalid too.

Also updated the Javascript such that the section description is updated according to the verse selected.

Closes #470.

Revision 250 (diff)
Added by Luke Murphey almost 12 years ago

Fixed issue where incorrect chapter references caused verses to flag as invalid too.

Also updated the Javascript such that the section description is updated according to the verse selected.

Closes #470.

Revision 242 (diff)
Added by Luke Murphey almost 12 years ago

Fixed issue where incorrect chapter references caused verses to flag as invalid too.

Also updated the Javascript such that the section description is updated according to the verse selected.

Closes #470.

History

#1 Updated by Luke Murphey almost 12 years ago

There are a couple of difficulties with this:

  • Some works have sections with spaces in them. These spaces are difficult to distinguish from spaces intended to separate indicators (like a reference to "1 Timothy")
  • References that include the verse indicator may be treated as chapter indicators

#2 Updated by Luke Murphey almost 12 years ago

  • % Done changed from 0 to 50

#3 Updated by Luke Murphey almost 12 years ago

I think I have a method to handle differentiating verse indicators and chapter indicators.

  1. Try to match division on all of the indicators
  2. If the match succeeds, the return the division
  3. If the match fails, try to match without the last indicator
  4. If the partial match fails, then stop
  5. If the partial match succeeds, ensure that the verse exists in the given chapter
  6. If the verse exists, then return the verse and chapter

The function to get the chapter should also return the verse that matched so that it can indicate that a verse was matched.

#4 Updated by Luke Murphey almost 12 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 50 to 100

Also available in: Atom PDF