Editorial Workflows

NET Bible Blockquote

public workflow

Install Workflow...

This workflow contains at least one Python script. Only use it if you trust the person who shared this with you, and if you know exactly what it does.

I understand, install the workflow!

This is a workflow for Editorial, a Markdown and plain text editor for iOS. To download it, you need to view this page on a device that has the app installed.

Description: Insert Bible Verse (NET) as Markdown
by @markjhulme
::Version 1.0.1::

This workflow allows a selected Bible reference to be looked up in the New English Translation (NET) and returned as a markdown block quote beneath the reference. This workflow uses the API at [labs.bible.org](http://labs.bible.org/api_web_service).

CREDITS:

Thanks to [@pfcbenjamin](http://twitter.com/pfcbenjamin) for his workflows:

* [Bible Verse Block Quote](http://www.editorial-workflows.com/workflow/6398031989571584/a3n-NNsLNc0)
* [Bible Verse Footnote](http://www.editorial-workflows.com/workflow/6084824452300800/xHRj1B5NYsw)

Thanks also to Tutorial Doctor for python scripting from the [Net Bible workflow](http://www.editorial-workflows.com/workflow/5822043924725760/0uNvkjSFZJk).

Shared by: markjhulme.com

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Set Variable ?
Variable Name
selectstart
Value
Sel. Range: Start
Set Variable ?
Variable Name
selectend
Value
Sel. Range: End
Selected Text ?
Entire Line(s)
OFF
Empty Selection Output
  • No Output
  • All Text
  • Closest Word
Folded Text
  • Include
  • Replace with:
If… ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Stop ?
Stop
  • This Workflow
  • Repeat Block
Show HUD Alert
ON
Message
No Text Selected.
…End If
If… ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Set Variable ?
Variable Name
reference
Value
Input
Find Book ?
Search for
.*(?=[ ])
Match Group (RegEx)
0 (entire match)
Search Type
  • Regular Expression
  • Case-insensitive Search (A = a)
  • Case-sensitive Search (A ≠ a)
Output
  • Found Text
  • Range of Text (from:to)
Find / Replace ?
Find
  • Case-insensitive (A = a)
  • Case-sensitive (A ≠ a)
  • Regular Expression
Replace with
%20
Set Variable ?
Variable Name
Book
Value
Input
Leave Blank ?
Variable Name
reference
Value
reference
Find Chapter ?
Search for
(?<=[ ])[0-9].*(?=[:])
Match Group (RegEx)
0 (entire match)
Search Type
  • Regular Expression
  • Case-insensitive Search (A = a)
  • Case-sensitive Search (A ≠ a)
Output
  • Found Text
  • Range of Text (from:to)
Set Variable ?
Variable Name
Chapter
Value
Input
Leave Blank ?
Variable Name
reference
Value
reference
Find Verse ?
Search for
(?<=[:]).*
Match Group (RegEx)
0 (entire match)
Search Type
  • Regular Expression
  • Case-insensitive Search (A = a)
  • Case-sensitive Search (A ≠ a)
Output
  • Found Text
  • Range of Text (from:to)
Set Variable ?
Variable Name
Verse
Value
Input
Leave Blank ?
Variable Name
reference
Value
reference
Find ?
Search for
(?<=[:])\d+
Match Group (RegEx)
0 (entire match)
Search Type
  • Regular Expression
  • Case-insensitive Search (A = a)
  • Case-sensitive Search (A ≠ a)
Output
  • Found Text
  • Range of Text (from:to)
Set Variable ?
Variable Name
VerseStart
Value
Input
Leave Blank ?
Variable Name
reference
Value
reference
Find Verse End ?
Search for
(?<=[-]).*
Match Group (RegEx)
0 (entire match)
Search Type
  • Regular Expression
  • Case-insensitive Search (A = a)
  • Case-sensitive Search (A ≠ a)
Output
  • Found Text
  • Range of Text (from:to)
If… ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Set Variable ?
Variable Name
VerseEnd
Value
VerseStart
…End If
Set Variable ?
Variable Name
VerseEnd
Value
Input
Leave Blank ?
Variable Name
footname
Value
Leave Blank ?
Variable Name
bible text
Value
labs.net ?
Set Variable ?
Variable Name
bible text
Value
Input
Find / Replace ?
Find
']
  • Case-insensitive (A = a)
  • Case-sensitive (A ≠ a)
  • Regular Expression
Replace with
Find / Replace ?
Find
['
  • Case-insensitive (A = a)
  • Case-sensitive (A ≠ a)
  • Regular Expression
Replace with
If… ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Find / Replace ?
Find
(?=<li>)(.*)(?=verse_id: )
  • Case-insensitive (A = a)
  • Case-sensitive (A ≠ a)
  • Regular Expression
Replace with
Find / Replace ?
Find
<ul>verse_id:
  • Case-insensitive (A = a)
  • Case-sensitive (A ≠ a)
  • Regular Expression
Replace with
(
Find / Replace ?
Find
</li><li>verse_text:
  • Case-insensitive (A = a)
  • Case-sensitive (A ≠ a)
  • Regular Expression
Replace with
)
Find / Replace ?
Find
</li>verse_id:
  • Case-insensitive (A = a)
  • Case-sensitive (A ≠ a)
  • Regular Expression
Replace with
(
Find / Replace ?
Find
(?=</li>)(.*)(?=</ul>)
  • Case-insensitive (A = a)
  • Case-sensitive (A ≠ a)
  • Regular Expression
Replace with
Find / Replace ?
Find
  • Case-insensitive (A = a)
  • Case-sensitive (A ≠ a)
  • Regular Expression
Replace with
Find / Replace ?
Find
</ul>
  • Case-insensitive (A = a)
  • Case-sensitive (A ≠ a)
  • Regular Expression
Replace with
Remove Whitespace ?
  • Trim leading/trailing whitespace
  • Remove empty lines
…End If
Find / Replace ?
Find
<b>
  • Case-insensitive (A = a)
  • Case-sensitive (A ≠ a)
  • Regular Expression
Replace with
(
Find / Replace ?
Find
</b>
  • Case-insensitive (A = a)
  • Case-sensitive (A ≠ a)
  • Regular Expression
Replace with
)
Remove Whitespace ?
  • Trim leading/trailing whitespace
  • Remove empty lines
Set Variable ?
Variable Name
clean text
Value
Input
Replace Selected Text ?
Replacement Text
> reference (NET) > clean text
Stop ?
Stop
  • This Workflow
  • Repeat Block
Show HUD Alert
OFF
Message
Stopped
…End If
Generate Text ?
Text
bible text
Stop ?
Stop
  • This Workflow
  • Repeat Block
Show HUD Alert
ON
Message
console