Copy Bible Verses - Output to HTML or Markdown
Hello,
I write all of my sermons in Markdown.
Here's the following template:
%NoRedLetter
%NoFootnotes
%NoCitation
%UseBibleParagraphs
=Header
>[FullPassageRef] ([Version])
=ForEachVerse
<sup>[VerseNum]</sup> [VerseText]
=Footer
Which produces:
>Matthew 1:21–25 (CSB)
21 She will give birth to a son, and you are to name him Jesus, because he will save his people from their sins.”
22 Now all this took place to fulfill what was spoken by the Lord through the prophet:
23 See, the virgin will become pregnant
and give birth to a son,
and they will name him Immanuel,
which is translated “God is with us.”
24 When Joseph woke up, he did as the Lord’s angel had commanded him. He married her 25 but did not have sexual relations with her until she gave birth to a son. And he named him Jesus.
What I would like:
Matthew 1:21-25 (CSB) She will give birth to a son, and you are to name him Jesus, because he will save his people from their sins.”
>
><sup> 22 </sup>Now all this took place to fulfill what was spoken by the Lord through the prophet:
>
><sup> 23 </sup>See, the virgin will become pregnant
and give birth to a son,
and they will name him Immanuel,
which is translated “God is with us.”
>
><sup>24 </sup>When Joseph woke up, he did as the Lord’s angel had commanded him. He married her
>
><sup> 25 </sup>but did not have sexual relations with her until she gave birth to a son. And he named him Jesus.
What I need to know:
Is this even possible in Logos?
I don't mind writing a Perl or bash script to get the output that I wanted. But before I start cranking out a script, I just want to know if this is possible or not?
Thank you.
Comments
-
>
><sup> 22 </sup>Now all this took place to fulfill what was spoken by the Lord through the prophet:
>
><sup> 23 </sup>See, the virgin will become pregnantFor this you need:
=ForEachVerse
>
><p><sup>[VerseNum]</sup>[VerseText]</p>But it will not give you:
Matthew 1:21-25 (CSB) She will give birth to a son, and you are to name him Jesus
---> verse formatting is not allowed in the Header.
And I'm assuming you don't want to see
><sup> 22 </sup>Now all this took place to fulfill what was spoken by the Lord
as opposed to:
>22 Now all this took place to fulfill what was spoken by the Lord
Dave
===Windows 11 & Android 13
0 -
That's the catch. I do want:
><sup> 22 </sup>Now all this took place to fulfill what was spoken by the Lord
... because I am going to paste those lines into a code editor (VSCode).
0 -
Is this even possible in Logos?
I don't think there's a way to get the literal text "<sup>", as that's always interpreted as markup by CBV and there's no "escaping" feature (e.g., writing it as <sup>).
I don't mind writing a Perl or bash script to get the output that I wanted.
Might not take a script, but you could resort to search-and-replace. Change your CBV style to use "> <super>[VerseNum]</super> [VerseText]". Then search-and-replace <super> with <sup>, for example.
0 -
%NoRedLetter
%NoFootnotes
%NoCitation=Header
<p>[FullPassageRef] ([Version])</p><p>=ForEachVerse
<<sup>sup>[VerseNum]</</sup>sup> [VerseText]This format has allowed me to get Markdown superscript out of logos. If you break up your formatting brackets with another Logos lets you escape it into the export. With this it gives me:
1 John 2:5–6 (ESV)
<sup>5</sup> but whoever keeps his word, in him truly the love of God is perfected. By this we may know that we are in him: <sup>6</sup> whoever says he abides in him ought to walk in the same way in which he walked.
Which appears broken here, but works great in markdown. Hope this helps.
0 -
You, sir, simplified my writing by eliminating 8 steps every time I use an extended Bible passage.
Thank you so much!
For reference:
1. Logos Copy Paste Template:
Note:Notice the double space after ([Version]). This is so that you can have a carriage return immediately on the next line.
2. Pasted Markdown code:
3. Resulting web page:
I am so happy I could cry. May God bless you and keep you!
0 -
Andrew and Joseph, you two are the real MVPs. I'm using Bear as a markdown editor and this was exactly what I needed!
0 -
So good sir!
0