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 ago by (106 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.

ago by (2.9k points)
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
They devoted themselves to the apostles’ teaching and to fellowship, to the breaking of bread and to prayer.
Acts 2:42
2,803 questions
5,652 answers
5,216 comments
1,679 users