0 votes
I wanted to try printing one chapter.  I ran the Basic Checks and corrected the errors in chapter 1 but when I went to print it I got the following error...

Failed due to an error in the USFM file.

Run the Basic Checks in Paratext and try again.

<class 'SyntaxError'>: Cannot parse .

PTXprint Version 2.8.18
PTXprint by (108 points)

1 Answer

0 votes

Traditionally PTXprint has been able to print almost anything you throw at it. But as we have recently added interactive PDFs which require a greater level of 'control' over the text, I am guessing it is tripping up on structural USFM issues later in the file. You could work around this problem by just adding a changes.txt rule like this, for example, to throw away everything after (and including) chapter 2 of MRK, which would leave you with the contents of just chapter 1:  (replace MRK with the right book and chapter as needed)

at MRK "(?s)\\c 2\s.+" >  ""

If for some reason, you still get the same error even with this change, then try placing this additional line before the rule:

sections("initial")
at MRK "(?s)\\c 2\s.+" >  ""

If you still get an error after that, it indicates that there is some other error (not necessarily a USFM issue) within chapter 1.

by (2.9k points)
Thanks for your help.  That worked.  I did need to add the 'sections("initial")' line.
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Accept the one whose faith is weak, without quarreling over disputable matters.
Romans 14:1
2,819 questions
5,673 answers
5,238 comments
1,695 users