0 votes
61 views

It seems that if there is any \esb...\esbe material in the biblical text that a \ref field in a Module is trying to access, PTXPrint gets confused and is not able to expand the \ref field into its full form. Either PTXPrint finds the \esb marker and then never finds the \esbe  marker and fails with an error message "Reached end of book without finding \esbe" (which seems to happen when \ref specifies verse 1), or PTXPRINT just ignores the \ref field altogether and finishes without an error (which seems to happen when the \ref field  begins with verse 2 or later). I would have expected that PTXPrint would just ignore the \esb material and keep looking until it found a proper verse. If I take out the \esb material from the biblical text, the module and PTXPrint works as expected.  As our book of Psalms has a short \esb...\esbe section at the beginning of each Psalm, this means we can't use any Psalms. Any chance you guys can take a look at this? I have included a screenshot below of the Psalm 2 source text which creates the problem, the module source, the Final SFM which shows PTX's confusion, and the error message (for a Module specifying verse 1 as the start).

  

PTXprint by (206 points) | 61 views

1 Answer

0 votes
The \esb in Psa 2 is faulty. You cannot have \ip inside an \esb. Changing the \ip paragraphs to \p seems to resolve the issue. See https://docs.usfm.bible/usfm/3.1/sbar/esb.html for more details. I have no idea if Paratext would fail this when doing basic marker checks, but somewhere along the line it will be considered faulty text.
by (656 points)
Thanks Martin. You are right that changing \ip to \p seems to help - if all I want is verse 1. But now the \ref in the module expands to include not just verse 1, but all the entire content of \esb as well.  That isn't really what I had in mind. I just want verse 1 without \esb. (Interestingly, it skips over \s which is between \esb and \v 1, so that shows that the algorithm CAN skip extraneous stuff.)

But if I specify verse 2 or any subsequent verse, the program fails. It only works - sort of - with verse 1. So it seems there is still some kind of issue here. Again, if I remove the \esb material, it all works fine. Sorry for the trouble!

NB: We have 600+ pages of Bible school materials in XXA-XXF which have hundreds (a thousand?) hard-coded scripture passages from ancient versions of our Biblical text. As we come down to the wire to publish the NT after all these years, the module capabilities would be a really  nice alternative to copying and pasting all those passages manually - probably not for the last time.

Related questions

0 votes
1 answer 25 views
We've been using Modules and PTX Print to create illustrated Bible story books for several years. We include the \fig ... I have in mind. Any help will be received gratefully!
KimB 670 asked Nov 17, 2025
0 votes
1 answer 122 views
I have a lectionary Bible module, and in PTXPrint, some of the \ref texts are missing, and some show more verses ... perhaps a setting I'm missing, about paragraphs or something?
beve 128 asked Apr 10, 2025
0 votes
2 answers 16 views
The lectionary has selections that could benefit from 'introductory' lines. For example, "Moses said," before Deu. 4:1- ... , Israel, listen..."}. Suggestions welcome. Thanks, Paul
Paul 639 asked Jul 13
0 votes
1 answer 11 views
After updating to PTXprint 3.0.25, I am finding that the Shrink / Expand (by % text size) options (via right- ... text size) is working again. I anyone else experiencing the same?
[Expert]
jmkla
290
asked May 13
0 votes
2 answers 186 views
Paratext removes the /c 2 marker when I save. What am I missing? Are there other specific markers needed between the chapters markers to ... \ib \c 1 \ref GEN 1 \c 2 \ref GEN 2
listentwice 1.2k asked Jul 20, 2021
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
All the believers were one in heart and mind. No one claimed that any of their possessions was their own, but they shared everything they had.
Acts 4:32
3,037 questions
5,994 answers
5,661 comments
2,022 users