0 votos
153 vistas

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 por (1,1k puntos) | 153 vistas

1 Respuesta

0 votos

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.
por (1,1k puntos)

Preguntas relacionadas

0 votos
2 respuestas 219 vistas
Ayudo a operar ScriptureEarth.org. Soñamos con la posibilidad de configurar una opción para que las personas soliciten ... Suena esto de alguna manera razonable? --Loren Hawthorne
LorenHawthorne 173 preguntada ago 5, 2024
0 votos
1 respuesta 20 vistas
Estoy usando PTXprint 3.0.11, pero no lo he usado en un tiempo, por lo que hay nuevas ... versículos seleccionados usando la configuración que usé anteriormente. Gracias!
MnKN 134 preguntada feb 21
0 votos
1 respuesta 161 vistas
Soy usuario por primera vez, intentando ordenar los códigos de formato para imprimir el Nuevo Testamento. También, ¿cómo se usan \toc1, \toc2, \toc3 en ptxprint?
anon762804 102 preguntada may 23, 2024
0 votos
1 respuesta 239 vistas
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 preguntada dic 16, 2023
0 votos
1 respuesta 43 vistas
Me gustaría hacer algo como lo siguiente en mi FRT local, pero no puedo encontrar documentación suficiente para saber ... posible, pero sin ejemplos, es difícil saber qué hacer.
mvk1000 206 preguntada may 20
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Very truly I tell you, whoever accepts anyone I send accepts me; and whoever accepts me accepts the one who sent me.
John 13:20
3,044 preguntas
6,004 respuestas
5,671 comentarios
2,026 usuarios