Esto es para una publicación solo impresa. El programa de publicación que estamos usando, SILE, acepta entradas xml. En realidad aceptaría una entrada tipo TeX (es decir, USFM), pero el programador con quien estoy trabajando preferiría usar xml.
Asumo que el formato de USX funcionará perfectamente bien para el programador, por lo que estas otras preguntas son para mi propio entendimiento.
Supongo que son solo decisiones de diseño, pero me pregunto por qué quien creó USX decidió que <chapter> significaba “el número al principio de un capítulo” y no “capítulo”. Mi entendimiento del xml es que típicamente usa un formato como
<tag attributes=“aaa”>content</tag>
La forma en que están las cosas actualmente
<chapter number=“1” style=“c” > no tiene contenido
Donde yo esperaría
<chapter number=“1” style=“c”>the actual content of the chapter<\chapter>
Quizás me esté perdiendo algo, pero no veo cómo esto se deba a problemas de marcación superpuesta.
Aquí hay otro problema: siguiendo el estilo de los libros religiosos de nuestra región, nuestro proyecto planea marcar los números de versículo al final de los versículos, no al principio. Con la forma en que funciona actualmente el marcador <verse>, necesitaremos usar scripting para mover la etiqueta a una posición diferente en el documento xml de texto plano, pero si USX usara el formato que creo que debería:
<verse number=“1” style=“v”>verse text</verse>
entonces sería bastante simple que el programa que lee el xml interpretara esa línea y dijera “imprime el atributo ‘number’ al final de ‘verse text’ en lugar del principio”.
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”.
Traducción automática desde English