De acuerdo, he revisado el archivo. El error entra en la categoría de “Está ocurriendo algo muy extraño”
El error se debió a que TeX estaba intentando convertir el texto متّی\mt1 متّی en parte de la línea de encabezado en curso (\h).
\h es una línea especial que, debido a cómo se usa en PTXprint, debe aparecer en una línea por sí sola, sin que le sigan otros marcadores USFM. El USFM final tiene una línea:
\h متّی\mt1 متّی
Que es la causa.
Su archivo SFM de entrada no parece contener esta línea, pero está presente para cuando el archivo llega a TeX. Así que supuse que era el archivo de cambios, y en efecto, desactivar el archivo de cambios soluciona el problema.
Investigando más a fondo, encuentro esta línea en changes.txt
"(\\toc3 (.+?)\s+)" > "\1\\h \2"
Esa línea coloca \h en la misma línea que lo que le sigue.
Lo siguiente es una versión que no causará errores:
"(\\toc3 (.+?)\s+)" > "\1\\h \2\n"
El \n al final, agregando una nueva línea.
OK, I’ve had a look at the archive. The error comes into the class of “Something very odd is happening”
The error was because TeX was trying to turn the text متّی\mt1 متّی into part of the running header line (\h).
\h is a special line which, because of how it is used in PTXprint, must occur on a line on its own, with no other USFM markers following it. The final USFM has a line:
\h متّی\mt1 متّی
Which is the cause.
Your input SFM file does not seem to contain this line, but it’s there’s one by the time the file gets to TeX. So I guessed that it is the changes file, and sure enough, turning off the changes file fixes the problem.
Digging deeper, I find this line, in changes.txt
"(\\toc3 (.+?)\s+)" > "\1\\h \2"
That line puts \h on the same line with whatever follows it.
The following is a version which will not cause crashes:
"(\\toc3 (.+?)\s+)" > "\1\\h \2\n"
The \n at the end, adding a new line.
Traducción automática desde English