Acabo de rastrear la causa de un error grave en el proyecto de alguien hasta una línea. Lamentablemente, hubo un error de pensamiento cuando alguien estaba escribiendo la plantilla para los libros FRT, y se incluyó esta línea:
\rem sorta will sort by \toc1, sortb by \toc2, sortc by \toc3
Esto está prácticamente garantizado para causar un error grave / comportamiento indefinido.
Si tiene un material preliminar (Front matter) que incluye esa línea, cámbielo para que diga:
\rem sorta will sort by toc1 , sortb by toc2 , sortc by toc3
Es decir, elimine las barras. De lo contrario, experimentará errores graves.
Las versiones anteriores del estándar USFM eran un poco vagas, pero Paratext y el estándar USFM-3 NO describen \rem como 'ignorar el resto de esta línea', sino como un estilo de párrafo que no produce salida.
Esto significa:
\rem continúa hasta el siguiente marcador de párrafo
\rem aún debe procesar cualquier marcador que contenga. (¿De qué otra manera detectaría el siguiente marcador de párrafo?).
Ya que \toc1 y similares también se describen como marcadores de párrafo (aunque no se usen como tales), deberían cancelar \rem
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:
\rem continues until the next paragraph marker
\rem still has to process any markers it contains. (how else will it spot the next paragraph-marker?).
Since \toc1 and friends are also described as paragraph markers (although not used as such) they should cancel \rem
Traducción automática desde English Mostrar original