Thanks to everyone who replied about marking up the Bible. I've now done
the job so I'll present briefly what I did, in case anyone's interested,
though I can't pretend that my solution is the best one.
I used a DIV TYPE='Book' for each of the 66 books in my edition. Most of
these are divided into DIV TYPE='Chapter's, however a few of them do not
contain DIVs and one of them is divided into 5 DIV TYPE='Psalmbook's,
each of which is divided into DIV TYPE='Psalm's. One of those, Psalm
119, is divided into 22 'Psalmpart's.
The bottom-level DIVs are divided into SEGs which is what I use for
verses. Each SEG and each numbered DIV has the attribute N giving the
traditional reference, book, chapter and verse, except that to avoid
having to invent short names for the books I numbered them, so a typical
reference is N='01.2.3' (Genesis, chapter 2, verse 3).
Lines of verse are marked with L. There is a single instance of a
highlighted word, HI, and there are two NOTEs.
Although I have used TEI elements roughly according to the spirit of
TEI, I hope, the document does not conform to the DTD. This is because
Ls go straight into the PCDATA and I haven't used any Ps.
I had to put Ls straight into the PCDATA because I have no means of
automatically deciding whether they are Qs or something else; I only
know that they are typographically distinguished as lines of verse.
Instead of using the element P I used &P; to mark paragraph breaks
because paragraphs frequently overlap with SEGs (verses).
I could have fiddled it to make it conform to the DTD, e.g. by marking
all groups of Ls as Qs and making the contents of each chapter a giant
P, but I thought it more important to respect the intended meaning of
the TEI elements than to fit the DTD. (Is this right?)
The essence of my DTD is given below.
Edmund
<!DOCTYPE bible [
<!ELEMENT bible - - (div+) >
<!ELEMENT div - - ((head | note)?, (div+ | seg+)) >
<!ATTLIST div
type (Book | Psalmbook | Chapter | Psalm | Psalmpart) #REQUIRED
n CDATA #IMPLIED >
<!ELEMENT seg - - (#PCDATA) +(l | note | hi) >
<!ATTLIST seg
n CDATA #REQUIRED >
<!ELEMENT head - - (#PCDATA) >
<!ELEMENT note - - (#PCDATA) >
<!ELEMENT l - - (#PCDATA) >
<!ELEMENT hi - - (#PCDATA) >
<!ENTITY P "">
]>
|