0 votes
147 vues

I’ve just tracked down the cause of a crash on someone’s project to a line Unfortunately there was a think-o when someone was writing the template for FRT books, and this line was included:

\rem sorta will sort by \toc1, sortb by \toc2, sortc by \toc3

This is pretty much guaranteed to cause a crash / undefined behaviour.

If you have a Front matter that includes that line, change it so that it reads:
\rem sorta will sort by toc1, sortb by toc2 , sortc by toc3
I.e. remove the slashes. Otherwise you will experience crashes.

Earlier versions of the USFM standard were a bit vague, but Paratext and the USFM-3 standard do NOT describe \rem as ‘ignore the rest of this line’, but as a paragraph style that produces no output.
This means:

  1. \rem continues until the next paragraph marker
  2. \rem still has to process any markers it contains. (how else will it spot the next paragraph-marker?).
  3. Since \toc1 and friends are also described as paragraph markers (although not used as such) they should cancel \rem
PTXprint par (1,1k points) | 147 vues

1 Réponse

0 votes

Correction… Point 3 above is probably incorrect. The standard states that “All paragraph markers should be preceded by a single newline.” Therefore, I feel that it is legitimate for the code to entirely ignore \toc1 etc. in the above situation.
I’m just submitting a small change (which will be available in a week or so, I guess), which obeys the following logic:

  1. USFM codes occurring after \rem and on the same line will be ignored.
  2. After that 1st line, \rem will continue as it has been doing until now: ignoring text but acting on any USFM codes met.
  3. \toc1 etc. are now recognised as paragraph breaks.
par (1,1k points)

Questions connexes

0 votes
2 réponses 219 vues
I help operate ScriptureEarth.org. We are dreaming about the possibility of setting up an option for people to request ... . Does this sound at all reasonable? --Loren Hawthorne
LorenHawthorne 173 posée août 5, 2024
0 votes
1 réponse 20 vues
J'utilise PTXprint 3.0.11, mais je ne l'ai pas utilisé depuis un certain temps, il y a donc de ... en utilisant la configuration que j'avais utilisée précédemment. Merci !
MnKN 134 posée févr. 21
0 votes
1 réponse 158 vues
First time user, trying to sort out format codes for printing new testament. Also how \toc1, \toc2, \toc3 are used in ptxprint
anon762804 102 posée mai 23, 2024
0 votes
1 réponse 239 vues
I am looking for a way to add a page break so that the next section header starts on a new page. Is there a code ... a new page? Is there a list of module codes somewhere? thanks
MnKN 134 posée déc. 16, 2023
0 votes
1 réponse 42 vues
Je voudrais faire quelque chose comme ce qui suit dans mon FRT local, mais je ne trouve pas assez de documentation ... mais sans exemples, il est difficile de savoir quoi faire.
mvk1000 206 posée mai 20
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
There is neither Jew nor Gentile, neither slave nor free, nor is there male and female, for you are all one in Christ Jesus.
Galatians 3:28
3,044 questions
6,003 réponses
5,671 commentaires
2,026 utilisateurs