Ceci est destiné à une publication uniquement imprimée. Le programme de publication que nous utilisons, SILE, prend en entrée des fichiers xml. Il accepterait en réalité une entrée de type TeX (c'est-à-dire USFM), mais le développeur avec qui je travaille préférerait utiliser du xml.
Je suppose que le format USX conviendra parfaitement au développeur, donc ces autres questions sont pour ma propre compréhension.
Je suppose qu'il s'agit simplement de décisions de conception, mais je me demande pourquoi la personne qui a créé USX a décidé que <chapter> signifiait « le numéro au début d'un chapitre » et non « chapitre ». Ma compréhension du xml est qu'il utilise généralement un formatage comme
<tag attributes=“aaa”>content</tag>
La façon dont les choses sont actuellement
<chapter number=“1” style=“c” > n'a aucun contenu
Alors que je m'attendrais à
<chapter number=“1” style=“c”>the actual content of the chapter<\chapter>
Peut-être que je manque quelque chose, mais je ne vois pas comment cela est causé par des problèmes de balisage superposé.
Voici un autre problème – suivant le style des livres religieux de notre région, notre projet prévoit de marquer les numéros de versets à la fin des versets, et non au début. Avec la façon dont le marqueur <verse> fonctionne actuellement, nous devrons utiliser des scripts pour déplacer la balise à une position différente dans le document xml en texte brut, mais si USX utilisait le format que je pense qu'il devrait utiliser:
<verse number=“1” style=“v”>verse text</verse>
alors il serait assez simple que le programme lisant le xml interprète cette ligne et dise « imprimer l'attribut 'number' à la fin de 'verse text' au lieu du début ».
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”.
Traduit automatiquement depuis English