0 suara
154 tampilan

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 oleh (1,1k poin) | 154 tampilan

1 Jawaban

0 suara

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.
oleh (1,1k poin)

Pertanyaan terkait

0 suara
2 jawaban 219 tampilan
Saya membantu mengoperasikan ScriptureEarth.org. Kami bermimpi tentang kemungkinan menyediakan opsi bagi orang-orang untuk ... Apakah ini terdengar masuk akal? --Loren Hawthorne
LorenHawthorne 173 bertanya Agu 5, 2024
0 suara
1 jawaban 20 tampilan
Saya menggunakan PTXprint 3.0.11 tetapi sudah lama tidak menggunakannya sehingga ada fitur-fitur baru. Saya ... menggunakan konfigurasi yang saya gunakan sebelumnya. Terima kasih!
MnKN 134 bertanya Feb 21
0 suara
1 jawaban 161 tampilan
Pengguna baru, mencoba merapikan kode format untuk mencetak Perjanjian Baru. Juga bagaimana \toc1, \toc2, \toc3 digunakan dalam ptxprint
anon762804 102 bertanya Mei 23, 2024
0 suara
1 jawaban 239 tampilan
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 bertanya Des 16, 2023
0 suara
1 jawaban 43 tampilan
Saya ingin melakukan sesuatu seperti berikut di FRT lokal saya, tetapi tidak dapat menemukan dokumentasi yang cukup ... contoh, sulit untuk mengetahui apa yang harus dilakukan.
mvk1000 206 bertanya Mei 20
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
May the God who gives endurance and encouragement give you the same attitude of mind toward each other that Christ Jesus had.
Romans 15:5
3,044 pertanyaan
6,004 jawaban
5,671 komentar
2,026 pengguna