Figure 1: Marked-up text

Codes

    <book n>
        conventional book number n
    <div n>
        interpretative structural division n
    <sn storyname>
        beginning of story storyname on level n; terminated by "--"
    <prn name>
        presence of type n of character name
    <loc place>
        geographical placename place
    <sp name>
        beginning of speech by character name
    {=name}
        normalized form of sentient being name

Text (Ovid, Met. 3.1-9, 316-331).

<book 3><div 3><s1 Cadmus><sp poet>iamque deus {=Jupiter=deus}
      posita fallacis imagine tauri
se {=Jupiter=sui} confessus erat Dictaeaque<loc Crete> rura
      tenebat
cum pater ignarus {=Agenor=pater_ignarus/Cadmus/} Cadmo {=Cadmus}
      perquirere raptam {=Europa=rapta}
imperat et poenam si non invenerit addit
exilium facto pius et sceleratus eodem
orbe pererrato quis enim deprendere possit
furta Iovis {=Jupiter-furta} profugus patriamque iramque parentis
      {=Agenor=parens/Cadmus/-ira}
vitat Agenorides {=Cadmus=Agenorides, =Agenor-son/Cadmus/}
      Phoebique {=Apollo=Phoebus-oracula} oracula<loc Parnassus>
      supplex {=Cadmus=supplex}
consulit et quae sit tellus habitanda requirit
...
<s2 Tiresias & the Gods' Debate><pr1 Tiresias>dumque ea per
      terras fatali {=Fata-lex} lege geruntur
tutaque bis geniti sunt incunabula Bacchi
      {=Bacchus_bis_genitus-incunabula}
forte Iovem {=Jupiter} memorant diffusum nectare curas
seposuisse graves vacuaque agitasse remissos
cum Iunone {=Juno} iocos et <sp Jupiter>maior vestra
      {=Juno=vos-voluptas} profecto est
quam quae contingit maribus <sp poet>dixisse <sp Jupiter>voluptas
<sp poet>illa {=Juno=illa} negat placuit quae sit sententia docti
quaerere Tiresiae {=Tiresias_doctus-sententia} Venus
      {=Venus-utraque_nota} huic erat utraque nota
<s3 Tiresias' Vision>nam duo magnorum viridi coeuntia silva
corpora serpentum baculi violaverat ictu
deque viro {=Tiresias=vir} factus mirabile femina
      {=Tiresias=femina} septem
egerat autumnos octavo rursus eosdem
vidit et <sp Tiresias>est vestrae si tanta potentia plagae
<sp poet>dixit <sp Tiresias>ut auctoris sortem in contraria mutet
      {=Tiresias=auctor_plaga}
nunc quoque vos feriam <sp poet>percussis anguibus isdem
forma prior rediit genetivaque venit imago<s3 ->