How do I get Bible text in this specific format?

Page 1 of 1 (3 items)
This post has 2 Replies | 1 Follower

Posts 27
Tim Lewis | Forum Activity | Posted: Wed, Dec 23 2015 3:31 AM

I am trying to get the text of a passage from the API in the following format:


Here is what I've tried so far:

  1. Using style=quotation gets very close to what I would like, but I'd like to remove the version from the citation.
  2. Using this with the eachVerse="[VerseText]"%20([FullPassageRef]) doesn't work because that results in the reference being interspersed throughout the text of the passage (following each verse).
  3. I tried using header="[VerseText]"%20([FullPassageRef])&eachVerse=%20, but that just returns "[VerseText]" (Psalm 23:1–6) (i.e. without the VerseText expanded).
  4. The closest I've been able to get to what I actually want is to use header="&footer="%20([FullPassageRef]), and plan on removing the new lines with some post-processing (passages like Psalm 23 would also need some additional post-processing to make sure the tabs at the beginning of each line were being removed).

In summary, options #1 and #4 seem like the best options so far, but they require some post-processing, which I'd like to avoid, if possible.  Is it possible to do what I want to do without post-processing?

Posts 2069
Forum MVP
Reuben Helmuth | Forum Activity | Replied: Thu, Jan 7 2016 4:44 AM

Tim Lewis:
Using style=quotation gets very close to what I would like, but I'd like to remove the version from the citation.

I'm in pretty deep water pretty fast with what you're doing, but I noticed the style names match the "copy bible verses" tool in the desktop application and the syntax looks the same. On the desktop you can create a custom format. When you click to add a format, the currently active format will populate the syntax which you can then edit, so my thought was to start with "quotation" and simply remove the [version]. 

Please note that though I've created a number of new styles using this method, when I try to delete "version" it is currently crashing.

Posts 27
Tim Lewis | Forum Activity | Replied: Thu, Jan 7 2016 5:41 AM

First, let me mention that I don't own the Logos software.  I'm just trying to use their API to import the text of Bible verses into a Google Doc.

For that reason, it is somewhat surprising to me to see that the syntax for the Quotation style is using the Header and Footer to prepend and append the custom text to the verse.  When I do that, the header and footer end up on separate lines from the body.

Currently, I'm just getting the Quotation style and removing everything between the comma and the closing parenthesis programmatically, but I may end up switching to that method (which is essentially described by option #4 described above) since it seems a little more robust.

Page 1 of 1 (3 items) | RSS