Isso é para uma publicação apenas em formato impresso. O programa de publicação que estamos usando, SILE, aceita entradas em xml. Na verdade, ele aceitaria uma entrada semelhante ao TeX (ou seja, USFM), mas o programador com quem estou trabalhando prefere usar xml.
Estou assumindo que o formato USX funcionará perfeitamente bem para o programador, então essas outras perguntas são para o meu próprio entendimento.
Acho que são apenas decisões de design, mas estou me perguntando por que quem criou o USX decidiu que <chapter> significava “o número no início de um capítulo” e não “capítulo”. Meu entendimento sobre xml é que ele normalmente usa formatações como
<tag attributes=“aaa”>content</tag>
Da forma como as coisas estão atualmente
<chapter number=“1” style=“c” > não tem conteúdo
Onde eu esperaria
<chapter number=“1” style=“c”>the actual content of the chapter<\chapter>
Talvez eu esteja perdendo algo, mas não vejo como isso seja causado por problemas de marcação sobreposta.
Aqui está outro problema – seguindo o estilo dos livros religiosos da nossa região, nosso projeto planeja marcar os números dos versículos no final dos versículos, não no início. Da forma como o marcador <verse> funciona atualmente, precisaremos usar scripts para mover a tag para uma posição diferente no documento xml em texto simples, mas se o USX usasse o formato que acho que deveria usar:
<verse number=“1” style=“v”>verse text</verse>
então seria bastante simples fazer o programa que lê o xml interpretar aquela linha e dizer “imprima o atributo ‘number’ no final de ‘verse text’ em vez do início”.
This is for a print-only publication. The publishing program we’re using, SILE, takes xml inputs. It would actually take a TeX-like input (i.e. USFM), but the programmer I’m working with would prefer to use xml.
I’m assuming the format of USX will work perfectly fine for the programmer, so these other questions are for my own understanding.
I guess it’s just design decisions, but I’m wondering why whoever created USX decided that <chapter> meant “the number at the beginning of a chapter” and not “chapter”. My understand of xml is that it typically uses formatting like
<tag attributes=“aaa”>content</tag>
The way things currently are
<chapter number=“1” style=“c” > has no content
Where I would expect
<chapter number=“1” style=“c”>the actual content of the chapter<\chapter>
Maybe I’m missing something, but I don’t see how this is caused by overlapping markup issues.
Here’s another issue–following the style of religious books of our region our project plans to mark verse numbers at the end of verses, not the beginning. The way the <verse> marker currently works we’ll need to use scripting to move the tag to a different position in the plain text xml document, but if USX used the format I think it ought to:
<verse number=“1” style=“v”>verse text</verse>
then it would be quite simple to have the program reading the xml interpret that line and say “print out the attribute ‘number’ at the end of ‘verse text’ instead of the beginning”.