Ini adalah untuk publikasi cetak saja. Program penerbitan yang kami gunakan, SILE, menerima input xml. Sebenarnya, program ini akan menerima input seperti TeX (yaitu USFM), tetapi programmer yang saya ajak bekerja lebih memilih menggunakan xml.
Saya mengasumsikan format USX akan berfungsi dengan sangat baik untuk programmer, jadi pertanyaan-pertanyaan lain ini adalah untuk pemahaman saya sendiri.
Saya rasa ini hanya keputusan desain, tetapi saya bertanya-tanya mengapa pembuat USX memutuskan bahwa <chapter> berarti “angka di awal bab” dan bukan “bab”. Pemahaman saya tentang xml adalah bahwa biasanya menggunakan format seperti
<tag attributes=“aaa”>content</tag>
Cara hal-hal saat ini
<chapter number=“1” style=“c” > tidak memiliki konten
Di mana saya akan mengharapkan
<chapter number=“1” style=“c”>the actual content of the chapter<\chapter>
Mungkin saya melewatkan sesuatu, tetapi saya tidak melihat bagaimana ini disebabkan oleh masalah markup yang tumpang tindih.
Berikut adalah masalah lain–mengikuti gaya buku-buku keagamaan di wilayah kami, proyek kami berencana menandai nomor ayat di akhir ayat, bukan di awal. Dengan cara penanda <verse> saat ini bekerja, kami akan perlu menggunakan scripting untuk memindahkan tag ke posisi yang berbeda dalam dokumen xml teks biasa, tetapi jika USX menggunakan format yang menurut saya seharusnya:
<verse number=“1” style=“v”>verse text</verse>
maka akan cukup sederhana bagi program yang membaca xml untuk menafsirkan baris tersebut dan mengatakan “cetak atribut ‘number’ di akhir ‘verse text’ alih-alih di awal”.
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”.
Diterjemahkan secara otomatis dari English