Render embedded Bible paragraphs inline
This commit is contained in:
@@ -90,6 +90,9 @@ JHN 8 31 0 paragraph 0 Then Jesus said,
|
||||
JHN 8 31 1 same 0 "If you remain in My word,
|
||||
JHN 8 32 0 same 0 you shall know the truth."
|
||||
JHN 8 33 0 paragraph 0 They answered Him.
|
||||
JHN 8 39 0 paragraph 0 They answered Him, "Abraham is our father."
|
||||
JHN 8 39 1 paragraph 0 Jesus said to them, "If you were Abraham's children,
|
||||
JHN 8 40 0 same 0 you would do the works of Abraham."
|
||||
HEB 4 7 0 paragraph 0 again He establishes a certain day:
|
||||
HEB 4 7 1 line 0 "Today, if you will hear His voice,
|
||||
HEB 4 7 2 line 1 do not harden your hearts."
|
||||
@@ -126,8 +129,28 @@ HEB 4 7 2 line 1 do not harden your hearts."
|
||||
"\n" &
|
||||
" [33] They answered Him."
|
||||
|
||||
test "joins markerless paragraph continuations":
|
||||
let passages = embedded_bible.fetchPassages(layoutRows, "John 8:39-40", "TEST")
|
||||
|
||||
check passages[0] == "John 8:39-40\n" &
|
||||
" [39] They answered Him, \"Abraham is our father.\" " &
|
||||
"Jesus said to them, \"If you were Abraham's children, " &
|
||||
"[40] you would do the works of Abraham.\""
|
||||
|
||||
test "supports legacy verse rows":
|
||||
const legacyRows = "JHN\t3\t16\tFor God so loved the world.\n"
|
||||
let passages = embedded_bible.fetchPassages(legacyRows, "John 3:16", "TEST")
|
||||
|
||||
check passages[0] == "John 3:16\n [16] For God so loved the world."
|
||||
|
||||
test "groups legacy rows into paragraphs using pilcrows":
|
||||
const legacyRows =
|
||||
"JHN\t8\t31\tThen Jesus said.\n" &
|
||||
"JHN\t8\t32\tYou shall know the truth.\n" &
|
||||
"JHN\t8\t33\t\xC2\xB6 They answered Him.\n"
|
||||
let passages = embedded_bible.fetchPassages(legacyRows, "John 8:31-33", "TEST")
|
||||
|
||||
check passages[0] == "John 8:31-33\n" &
|
||||
" [31] Then Jesus said. [32] You shall know the truth.\n" &
|
||||
"\n" &
|
||||
" [33] They answered Him."
|
||||
|
||||
Reference in New Issue
Block a user