Bug? Copy Bible Verse - goofy behavior with VerseNumInContext

Jeff Meyer
Jeff Meyer Member Posts: 52 ✭✭
edited November 21 in English Forum

I may be doing something wrong, but VerseNumInContext doesn't behave properly if you want verses in parens or brackets or if you want spaces between the verse number and the verse.

For example, using VerseNumInContext with parens around verses like so:

%NoCharFormatting
%NoParFormatting
%NoFootnotes
%NoCitation
%NoRedLetter

=Header
<p><i>"

=ForEachVerse
([VerseNumInContext]) [VerseText]

=Footer
" ([FullPassageRef] [Version])</i></p>

gives this behavior:

"() When I saw him, I fell at his feet as though dead. But he laid his right hand on me, saying, “Fear not, I am the first and the last, (18) and the living one. I died, and behold I am alive forevermore, and I have the keys of Death and Hades." (Revelation 1:17–18 ESV)

If I get rid of the parens in the code, it gives this behavior:

" When I saw him, I fell at his feet as though dead. But he laid his right hand on me, saying, “Fear not, I am the first and the last, 18 and the living one. I died, and behold I am alive forevermore, and I have the keys of Death and Hades." (Revelation 1:17–18 ESV)

(note the space at the start:  " When...")

Honestly, formatting sections for

"=ForFirstVerse" (first verse formatting only)

"=ForAllButFirstVerse" (formatting for every verse but the first verse"

"=ForEachVerse" (formatting for all verses including the first verse"

would be extremely helpful.

As it stands, VerseNumInContext isn't particularly useful because it requires modification after pasting.

Thanks!

Jeff.

Tagged:

Comments

  • Dave Hooton
    Dave Hooton Member, MVP Posts: 35,672 ✭✭✭

    =ForEachVerse
    ([VerseNumInContext]) [VerseText]

    =Footer
    " ([FullPassageRef] [Version])</i></p>

    gives this behavior:

    "() When I saw him, I fell at his feet as though dead. But he laid his right hand on me, saying, “Fear not, I am the first and the last, (18) and the living one. I died, and behold I am alive forevermore, and I have the keys of Death and Hades." (Revelation 1:17–18 ESV)

    If I get rid of the parens in the code, it gives this behavior:

    " When I saw him, I fell at his feet ...

     [VerseNumInContext] — e.g., no number (first verse), 16, or 4:1 (if passage spans chapters)
    Logos Help (Bellingham, WA: Faithlife, 2024).

    If you want better behaviour, use

    ([VerseNum]) [VerseText]

    Dave
    ===

    Windows 11 & Android 13

  • Jeff Meyer
    Jeff Meyer Member Posts: 52 ✭✭

    Right, but if I don't want a first verse number at all, but want subsequent verse numbers in parens, how is that accomplished?

    [VerseNumInContext] [VerseText] doesn't do that, it gives "First verse 2 Second verse"

    ([VerseNumInContext]) [VerseText] doesn't do that, it gives "() First verse (2) Second verse"

    ([VerseNum]) [VerseText] doesn't do that, it gives "(1) First verse (2) Second verse"

    How do I get "First verse (2) Second verse"?

    Right now, I'm superscripting the verse number...I've grown to like that better anyway. So I'm using:

    <sup>[VerseNumInContext]</sup>[VerseText]

    I think that's as close as I can get.

  • Dave Hooton
    Dave Hooton Member, MVP Posts: 35,672 ✭✭✭

    Dave
    ===

    Windows 11 & Android 13