Ao adicionar id:GLO|, você já está especificando ‘apenas no livro GLO’, então não há benefício em usar outro marcador, a menos que você queira formatá-lo de forma diferente.
Mesmo que você queira formatar \m de forma diferente em GLO, você ainda pode deixar o USFM inalterado e formatar o marcador id:GLO|m A única razão pela qual eu usaria um marcador especial seria se ele não fosse um \m ‘em essência’.
Por curiosidade, \penalty se aplica exatamente no lugar em que é encontrado, seja em modo horizontal (quebrando uma linha de texto em parágrafos) ou vertical (quebrando parágrafos em páginas).
Como no final do \k estamos em modo horizontal, inseri-lo após o \k diz ‘não inicie um novo parágrafo aqui’. O TeX então encontra o \p ou \m, que inclui em sua definição “Se estivermos em modo horizontal, preencha o parágrafo com o que foi especificado e \penalty -10000”, e então ele quebra ali em vez disso (mesmo que não houvesse preenchimento de fim de parágrafo, as penalidades não são cumulativas, então ele obedientemente não quebra no 10000 e obedientemente quebra no -10000).
Por curiosidade 2, Não se deixe tentar criar um hook para tentar inserir uma quebra de parágrafo após um estilo de caractere. Eu tentei de várias maneiras e concluí que isso apenas deixa o código muito, muito confuso se você pedir para configurar um novo parágrafo enquanto ele está processando o final de um estilo de caractere.
By adding the id:GLO| you are already specifying ‘only in the GLO book’, so there’s no benefit to using another marker, unless you want to format it differently.
Even if you want to format \m differently in GLO, you can still leave the USFM unchanged, and format the marker id:GLO|m The only reason I’d use a special marker would be if it’s not a \m ‘at heart’.
FWIW, \penalty applies at exactly the place it’s met, whether that’s in horizontal (breaking a line of text into paragraphs) or vertical (breaking paragraphs into pages).
Since at the end of the \k it’s in horizontal mode, inserting it after the \k says ‘don’t start a new paragraph here’. TeX then meets the \p or \m which includes in its definition “If we are in horizontal mode, fill the paragraph with whatever has been specified and \penalty -10000”, and so it breaks there instead (even if there were no end-of-par fill, penalties are not cumulative, so it would obediently not break at the 10000 and obediently break at the -10000).
FWIW2, Don’t get tempted to try to make a hook to try to insert a paragraph break after a character style. I tried it several ways, and concluded that it just gets the code really really confused if you ask it to set up a new paragraph while it’s processing the end of a character style.
Tradução automática de English