0 वोट
155 व्यूज़

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 में द्वारा (1.1k अंक) | 155 व्यूज़

1 उत्तर

0 वोट

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.
द्वारा (1.1k अंक)

संबंधित प्रश्न

0 वोट
2 उत्तर 219 व्यूज़
मैं ScriptureEarth.org के संचालन में मदद करता हूँ। हम इस संभावना के बारे में सपना देख रहे हैं कि लोगों को पृष्ठ आकार, ... करें। क्या यह किसी तरह से उचित लगता है? --लॉरें हॉर्थोर्न
LorenHawthorne 173 पूछा गया अगस्त 5, 2024
PTXprint में
0 वोट
1 उत्तर 20 व्यूज़
मैं PTXprint 3.0.11 का उपयोग कर रहा हूँ, लेकिन मैंने इसे कुछ समय से उपयोग नहीं किया है, इसलिए नए फीचर ... की गई कॉन्फ़िगरेशन का उपयोग करके चुनिंदा श्लोक छापना चाहता हूँ। धन्यवाद!
MnKN 134 पूछा गया फ़रवरी 21
PTXprint में
0 वोट
1 उत्तर 161 व्यूज़
First time user, trying to sort out format codes for printing new testament. Also how \toc1, \toc2, \toc3 are used in ptxprint
anon762804 102 पूछा गया मई 23, 2024
PTXprint में
0 वोट
1 उत्तर 239 व्यूज़
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 पूछा गया दिसंबर 16, 2023
PTXprint में
0 वोट
1 उत्तर 43 व्यूज़
मैं अपने स्थानीय FRT में कुछ ऐसा करना चाहता हूँ, लेकिन यह जानने के लिए पर्याप्त दस्तावेज़ीकरण नहीं मिल रहा है कि इसे ... लेकिन उदाहरणों के बिना, यह जानना कठिन है कि क्या करना है।
mvk1000 206 पूछा गया मई 20
PTXprint में
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
But if we walk in the light, as he is in the light, we have fellowship with one another, and the blood of Jesus, his Son, purifies us from all sin.
1 John 1:7
3,044 प्रश्न
6,004 उत्तर
5,671 टिप्पणियाँ
2,026 उपयोगकर्ता