OK, dei uma olhada no arquivo compactado. O erro se enquadra na categoria de “Algo muito estranho está acontecendo”
O erro ocorreu porque o TeX estava tentando transformar o texto متّی\mt1 متّی em parte da linha de cabeçalho contínua (\h).
\h é uma linha especial que, devido à forma como é usada no PTXprint, deve ocorrer em uma linha própria, sem outros marcadores USFM após ela. O USFM final tem uma linha:
\h متّی\mt1 متّی
Que é a causa.
Seu arquivo SFM de entrada não parece conter essa linha, mas ela está lá quando o arquivo chega ao TeX. Então, supus que fosse o arquivo de alterações, e, de fato, desativar o arquivo de alterações corrige o problema.
Investigando mais a fundo, encontro esta linha, em changes.txt
"(\\toc3 (.+?)\s+)" > "\1\\h \2"
Essa linha coloca \h na mesma linha com o que vier depois.
A seguir está uma versão que não causará travamentos:
"(\\toc3 (.+?)\s+)" > "\1\\h \2\n"
O \n no final, adicionando uma nova linha.
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.
Tradução automática de English Mostrar original