Copy Bible Verses - Output to HTML or Markdown

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

Posts 4
Joseph Louthan | Forum Activity | Posted: Sun, Aug 29 2021 4:12 PM

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.

Posts 27226
Forum MVP
Dave Hooton | Forum Activity | Replied: Sun, Aug 29 2021 6:13 PM

Joseph Louthan:

>
><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

For this you need:

=ForEachVerse
>
><p><sup>[VerseNum]</sup>[VerseText]</p>

But it will not give you:

Joseph Louthan:
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

Joseph Louthan:
><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 10 & Android 8

Posts 4
Joseph Louthan | Forum Activity | Replied: Mon, Aug 30 2021 6:23 AM

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).

Posts 9153
LogosEmployee

Joseph Louthan:
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 &lt;sup&gt;).

Joseph Louthan:
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.

Page 1 of 1 (4 items) | RSS