<TEI xmlns="http://www.tei-c.org/ns/1.0">
  <teiHeader>
    <fileDesc>
      <titleStmt>
        <title type="main">TEI by Example</title>
        <title type="sub">Module 5: Drama</title>
        <author xml:id="RvdB">Ron Van den Branden</author>
        <editor xml:id="EV">Edward Vanhoutte</editor>
        <editor xml:id="MT">Melissa Terras</editor>
        <sponsor>Association for Literary and Linguistic Computing (ALLC)</sponsor>
        <sponsor>Centre for Data, Culture and Society, University of Edinburgh, UK</sponsor> 
        <sponsor>Centre for Digital Humanities (CDH), University College London, UK</sponsor>
        <sponsor>Centre for Computing in the Humanities (CCH), King’s College London, UK</sponsor>
        <sponsor>Centre for Scholarly Editing and Document Studies (CTB) , Royal Academy of Dutch Language and Literature, Belgium</sponsor>
        <funder>
          <address>
            <addrLine>Centre for Scholarly Editing and Document Studies (CTB)</addrLine>
            <addrLine>Royal Academy of Dutch Language and Literature</addrLine>
            <addrLine>Koningstraat 18</addrLine>
            <addrLine>9000 Gent</addrLine>
            <addrLine>Belgium</addrLine>
          </address>
          <email>ctb@kantl.be</email>
        </funder>
        <principal>Edward Vanhoutte</principal>
        <principal>Melissa Terras</principal>
      </titleStmt>
      <publicationStmt>
        <publisher>Centre for Scholarly Editing and Document Studies (CTB) , Royal Academy of Dutch Language and Literature, Belgium</publisher>
        <distributor>Centre for Scholarly Editing and Document Studies (CTB) , Royal Academy of Dutch Language and Literature, Belgium</distributor>
        <pubPlace>Gent</pubPlace>
        <address>
          <addrLine>Centre for Scholarly Editing and Document Studies (CTB)</addrLine>
          <addrLine>Royal Academy of Dutch Language and Literature</addrLine>
          <addrLine>Koningstraat 18</addrLine>
          <addrLine>9000 Gent</addrLine>
          <addrLine>Belgium</addrLine>
        </address>
        <availability status="free">
          <p>Licensed under a <ref target="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution ShareAlike 3.0 License</ref>
                    </p>
        </availability>
        <date when="2010-07-09">9 July 2010</date>
      </publicationStmt>
      <seriesStmt>
        <title>TEI By Example.</title>
        <respStmt>
          <name>Edward Vanhoutte</name>
          <resp>editor</resp>
        </respStmt>
        <respStmt>
          <name>Ron Van den Branden</name>
          <resp>editor</resp>
        </respStmt>
        <respStmt>
          <name>Melissa Terras</name>
          <resp>editor</resp>
        </respStmt>
      </seriesStmt>
      <sourceDesc>
        <p>Digitally born</p>
      </sourceDesc>
    </fileDesc>
    <encodingDesc>
      <projectDesc>
        <p>TEI By Example offers a series of freely available online tutorials walking individuals through the different stages in marking up a document in TEI (Text Encoding Initiative). Besides a general introduction to text encoding, step-by-step tutorial modules provide example-based introductions to eight different aspects of electronic text markup for the humanities. Each tutorial module is accompanied with a dedicated examples section, illustrating actual TEI encoding practise with real-life examples. The theory of the tutorial modules can be tested in interactive tests and exercises.</p>
      </projectDesc>
    </encodingDesc>
    <profileDesc>
      <langUsage>
        <language ident="en-GB">en-GB</language>
      </langUsage>
    </profileDesc>
    <revisionDesc>
      <change when="2020-06-28" who="#RvdB">integrated examples in a single file</change>
    </revisionDesc>
  </teiHeader>
  <text xml:id="TBED05v00" type="examples">
    <body>
            <div xml:id="shakespeare" type="example">
        <head>William Shakespeare: <title level="m">Titus Andronicus</title>
                </head>
        <p>The following example is a fragment (the front matter, and scene 2 of the second act) of William Shakespeare’s <title level="m">Titus Andronicus</title>, encoded and made available by the Perseus Digital Library.</p>
        <p>The text of the play is preceded by front matter, consisting of a character list, and a prologue. The character list is encoded as a <gi>castList</gi> structure within a <gi>div1</gi> container in the <gi>front</gi> part. The cast list consists of <gi>castItem</gi> elements, listing the roles (<gi>role</gi>) with their description (<gi>roleDesc</gi>). Each role is identified with the <att>xml:id</att> attribute. Three named groups of characters are grouped into <gi>castGroup</gi> elements; one nameless group of minor characters is listed as <tag>castItem type="list"</tag>. Notice, how in the latter type of lists, both <gi>role</gi> and <gi>roleDesc</gi> are used a bit indiscriminate at first sight (e.g., both 
          <egXML xmlns="http://www.tei-c.org/ns/Examples" rend="inline omit-ns">
            <roleDesc>Romans</roleDesc>
          </egXML> 
          and 
          <egXML xmlns="http://www.tei-c.org/ns/Examples" rend="inline omit-ns">
            <role xml:id="tit-11">Goths and Romans</role>
          </egXML> 
          occur). On second sight, however, <gi>role</gi> appears to be used for all speaking characters, who are formally identified with an <att>xml:id</att> attribute. The front matter is concluded with a prologue (<gi>prologue</gi>) consisting of 28 lines spoken by the Chorus. The cast list is succeeded by a general description of the setting in which the action takes place, in the <gi>set</gi> element.</p>
        <p>The body of the play (<gi>body</gi>) consists of 14 scenes, grouped into 5 acts. Acts are encoded in <gi>div1</gi> elements, in which the scenes occur as <gi>div2</gi> elements. Each speech is marked with <gi>sp</gi>, containing the indication of the speaker as it occurs in the source text (<gi>speaker</gi>), as well as a formal indication (using the <att>who</att> attribute). Stage instructions are encoded inside <gi>stage</gi>. The speeches are encoded as verse lines (<gi>l</gi>) Notice, however, how logical lines (<gi>l</gi>) are distinguished from typographic lines: the latter are explicitly encoded with the <gi>lb</gi> element, occurring inside <gi>l</gi>.<note>Notice, how the <gi>lb</gi> elements in this example make use of the <att>ed</att> (edition) attribute, for indicating the specific edition in which the specific line breaks occur. For an explanation of this feature, see section <ref target="https://tei-c.org/release/doc/tei-p5-doc/en/html/CO.html#CORS5">3.10.3 Milestone Elements</ref> of the TEI Guidelines.</note>
                </p>
        <figure xml:id="shakespeare-example">
          <egXML xmlns="http://www.tei-c.org/ns/Examples">
            <text xml:lang="en">
              <front>
                <div1 type="act" n="cast" org="uniform" sample="complete">
                  <head>DRAMATIS PERSONÆ</head>
                  <castList>
                    <castItem type="role">
                      <role xml:id="tit-22">SATURNINUS</role>
                      <roleDesc>son to the late Emperor of Rome and afterwards declared Emperor</roleDesc>
                    </castItem>
                    <castItem type="role">
                      <role xml:id="tit-4">BASSIANUS</role>
                      <roleDesc>brother to Saturninus; in love with Lavinia</roleDesc>
                    </castItem>
                    <castItem type="role">
                      <role xml:id="tit-25">TITUS ANDRONICUS</role>
                      <roleDesc>a noble Roman general against the Goths</roleDesc>
                    </castItem>
                    <castItem type="role">
                      <role xml:id="tit-15">MARCUS ANDRONICUS</role>
                      <roleDesc>tribune of the people and brother to Titus</roleDesc>
                    </castItem>
                    <castGroup>
                      <head rend="braced">sons to Titus Andronicus.</head>
                      <castItem type="role">
                        <role xml:id="tit-13">LUCIUS</role>
                      </castItem>
                      <castItem type="role">
                        <role xml:id="tit-21">QUINTUS</role>
                      </castItem>
                      <castItem type="role">
                        <role xml:id="tit-16">MARTIUS</role>
                      </castItem>
                      <castItem type="role">
                        <role xml:id="tit-18">MUTIUS</role>
                      </castItem>
                    </castGroup>
                    <castItem type="role">
                      <role xml:id="tit-14">YOUNG Lucius</role>
                      <roleDesc>a boy, son to Lucius</roleDesc>
                    </castItem>
                    <castItem type="role">
                      <role xml:id="tit-20">PUBLIUS</role>
                      <roleDesc>son to Marcus the Tribune</roleDesc>
                    </castItem>
                    <castGroup>
                      <head rend="braced"> kinsmen to Titus.</head>
                      <castItem type="role">
                        <role>SEMPRONIUS</role>
                      </castItem>
                      <castItem type="role">
                        <role>CAIUS</role>
                      </castItem>
                      <castItem type="role">
                        <role>VALENTINE</role>
                      </castItem>
                    </castGroup>
                    <castItem type="role"/>
                    <castItem type="role">
                      <role xml:id="tit-2">AEMILIUS</role>
                      <roleDesc>a noble Roman</roleDesc>
                    </castItem>
                    <castGroup>
                      <head rend="braced"> sons to Tamora.</head>
                      <castItem type="role">
                        <role>ALARBUS</role>
                      </castItem>
                      <castItem type="role">
                        <role xml:id="tit-10">DEMETRIUS</role>
                      </castItem>
                      <castItem type="role">
                        <role xml:id="tit-8">CHIRON</role>
                      </castItem>
                    </castGroup>
                    <castItem type="role">
                      <role xml:id="tit-1">AARON</role>
                      <roleDesc>a Moor, beloved by Tamora</roleDesc>
                    </castItem>
                    <castItem type="list">
                      <role xml:id="tit-7">A Captain</role>
                      <role xml:id="tit-26">Tribune</role>
                      <role xml:id="tit-17">Messenger</role> and <role xml:id="tit-9">Clown</role>
                      <roleDesc>Romans</roleDesc>
                    </castItem>
                    <castItem type="list">
                      <role xml:id="tit-11">Goths and Romans</role>
                    </castItem>
                    <castItem type="role">
                      <role xml:id="tit-24">TAMORA</role>
                      <roleDesc>Queen of the Goths</roleDesc>
                    </castItem>
                    <castItem type="role">
                      <role xml:id="tit-12">LAVINIA</role>
                      <roleDesc>daughter to Titus Andronicus</roleDesc>
                    </castItem>
                    <castItem type="role">
                      <role xml:id="tit-19">A Nurse</role>
                    </castItem>
                    <castItem type="list">
                      <roleDesc>Senators</roleDesc>
                      <roleDesc> Tribunes</roleDesc>
                      <roleDesc> Officers</roleDesc>
                      <roleDesc> Soldiers</roleDesc>
                      <roleDesc>and Attendants</roleDesc>
                    </castItem>
                    <castItem type="role"/>
                  </castList>
                </div1>
                <set>
                  <p>Scene: Rome, and the country near it.</p>
                </set>
              </front>
              <body>
                <!-- ... -->
                <div1 n="2" type="act" org="uniform" sample="complete">
                  <head>ACT II</head>
                  <!-- ... -->
                  <div2 n="2" type="scene" org="uniform" sample="complete">
                    <head>SCENE II</head>
                    <stage type="setting"> A forest near Rome. Horns and cry of hounds heard. </stage>
                    <lb n="699" ed="F1"/>
                    <stage type="entrance">Enter TITUS ANDRONICUS, <lb n="700" ed="F1"/>with Hunters, etc.,
                      MARCUS, LUCIUS, QUINTUS, and MARTIUS.</stage>
                    <lb ed="G"/>
                    <lb n="701" ed="F1"/>
                    <sp who="#tit-25">
                      <speaker>Tit.</speaker>
                      <l>The hunt is up, the morn is bright and grey, <lb ed="G"/>
                        <lb n="702" ed="F1"/>
                      </l>
                      <l>The fields are fragrant and the woods are green: <lb ed="G"/>
                        <lb n="703" ed="F1"/>
                      </l>
                      <l>Uncouple here and let us make a bay <lb ed="G"/>
                        <lb n="704" ed="F1"/>
                      </l>
                      <l>And wake the emperor and his lovely bride <lb ed="G"/>
                        <lb n="705" ed="F1"/>
                      </l>
                      <l>And rouse the prince and ring a hunter's peal, <lb ed="G"/>
                        <lb n="706" ed="F1"/>
                      </l>
                      <l>That all the court may echo with the noise. <lb ed="G"/>
                        <lb n="707" ed="F1"/>
                      </l>
                      <l>Sons, let it be your charge, as it is ours, <lb ed="G"/>
                        <lb n="708" ed="F1"/>
                      </l>
                      <l>To attend the emperor's person carefully: <lb ed="G"/>
                        <lb n="709" ed="F1"/>
                      </l>
                      <l>I have been troubled in my sleep this night, <lb ed="G"/>
                        <lb n="710" ed="F1"/>
                      </l>
                      <l>But dawning day new comfort hath inspired. <lb n="711" ed="F1"/>
                        <stage>A cry of hounds, and horns winded in a peal.</stage>
                        <lb n="712" ed="F1"/>
                        <lb n="713" ed="F1"/>
                        <stage type="entrance">Enter SATURNINUS, TAMORA, BASSIANUS, LAVINIA, DEMETRIUS, CHIRON,
                          <lb n="714" ed="F1"/>and Attendants.</stage>
                        <lb n="11" ed="G"/>
                        <lb n="715" ed="F1"/>
                      </l>
                      <l>Many good morrows to your majesty; <lb ed="G"/>
                        <lb n="716" ed="F1"/>
                      </l>
                      <l>Madam, to you as many and as good: <lb ed="G"/>
                        <lb n="717" ed="F1"/>
                      </l>
                      <l>I promised your grace a hunter's peal. <lb ed="G"/>
                        <lb n="718" ed="F1"/>
                      </l>
                    </sp>
                    <sp who="#tit-22">
                      <speaker>Sat.</speaker>
                      <l>And you have rung it lustily, my lord; <lb ed="G"/>
                        <lb n="719" ed="F1"/>
                      </l>
                      <l>Somewhat too early for new-married ladies. <lb ed="G"/>
                        <lb n="720" ed="F1"/>
                      </l>
                    </sp>
                    <sp who="#tit-4">
                      <speaker>Bas.</speaker>
                      <l>Lavinia, how say you? <lb ed="G"/>
                        <lb n="721" ed="F1"/>
                      </l>
                    </sp>
                    <sp who="#tit-12">
                      <speaker>Lav.</speaker>
                      <l>I say, no; <lb ed="G"/>
                        <lb n="722" ed="F1"/>
                      </l>
                      <l>I have been broad awake two hours and more. <lb ed="G"/>
                        <lb n="723" ed="F1"/>
                      </l>
                    </sp>
                    <sp who="#tit-22">
                      <speaker>Sat.</speaker>
                      <l>Come on, then; horse and chariots let us have, <lb ed="G"/>
                        <lb n="724" ed="F1"/>
                      </l>
                      <l>And to our sport. <stage>To Tamora</stage>Madam, now shall ye see <lb ed="G"/>
                        <lb n="725" ed="F1"/>
                      </l>
                      <l>Our Roman hunting. <lb n="20" ed="G"/>
                        <lb n="726" ed="F1"/>
                      </l>
                    </sp>
                    <sp who="#tit-15">
                      <speaker>Marc.</speaker>
                      <l>I have dogs, my lord, <lb ed="G"/>
                        <lb n="727" ed="F1"/>
                      </l>
                      <l>Will rouse the proudest panther in the chase, <lb ed="G"/>
                        <lb n="728" ed="F1"/>
                      </l>
                      <l>And climb the highest promontory top. <lb ed="G"/>
                        <lb n="729" ed="F1"/>
                      </l>
                    </sp>
                    <sp who="#tit-25">
                      <speaker>Tit.</speaker>
                      <l>And I have horse will follow where the game <lb ed="G"/>
                        <lb n="730" ed="F1"/>
                      </l>
                      <l>Makes way, and run like swallows o'er the plain. <lb ed="G"/>
                        <lb n="731" ed="F1"/>
                      </l>
                    </sp>
                    <sp who="#tit-10">
                      <speaker>Dem.</speaker>
                      <l>Chiron, we hunt not, we, with horse nor hound, <lb ed="G"/>
                        <lb n="732" ed="F1"/>
                      </l>
                      <l>But hope to pluck a dainty doe to ground. <stage>Exeunt.</stage>
                      </l>
                    </sp>
                  </div2>
                  <!-- ... -->
                </div1>
                <!-- ... -->
              </body>
            </text>
          </egXML>
          <head type="legend">Adapted from a TEI P4 encoding of William Shakespeare’s play <title level="m">Titus Andronicus</title> (<ref type="bibl" target="#shakespeare1594">Shakespeare 1594</ref>). TEI XML source available from <ptr target="http://www.perseus.tufts.edu/hopper/dltext?doc=Perseus%3Atext%3A1999.03.0037"/>.</head>
        </figure>
      </div>
        </body>
    <back>
      <div type="bibliography">
        <listBibl>
          <bibl xml:id="ibsen1918">
                        <author>Ibsen, Henrik</author>. <date>1918</date>. <title level="m">The Wild Duck</title>. <pubPlace>New York</pubPlace>: <publisher>Boni and Liveright, Inc.</publisher>. Encoded and made available by the University of Virginia Library, Text Collection at <ptr target="http://etext.lib.virginia.edu/toc/modeng/public/IbsWild.html"/>.</bibl>
          <bibl xml:id="marlowe1616">
                        <author>Marlowe, Christopher</author>. <date>1616</date>. <title level="m">The Tragedie of Doctor Faustus</title>. Encoded and made available by the Perseus Digital Library. Available online at <ptr target="http://www.perseus.tufts.edu/hopper/text?doc=Perseus:text:1999.03.0011"/>.</bibl>
          <bibl xml:id="melville1922">
                        <author>Melville, Herman</author>. <date>1922</date>. <title level="m">Moby-Dick or, The Whale</title>. <pubPlace>London</pubPlace>, <pubPlace>Bombay</pubPlace>, <pubPlace>Sidney</pubPlace>: <publisher>Constable and Company LTD.</publisher> <biblScope>p. 214–215.</biblScope>. Facsimile available from Internet Archive at <ptr target="http://www.archive.org/details/mobydickorwhale01melvuoft"/>.</bibl>
          <bibl xml:id="shakespeare1594">
                        <author>Shakespeare, William</author>. <date>1594</date>. <title level="m">Titus Andronicus</title>. Encoded and made available by the Perseus Digital Library. Available online at <ptr target="http://www.perseus.tufts.edu/hopper/text?doc=Perseus:text:1999.03.0037"/>.</bibl>
          <bibl xml:id="wilde1930">
                        <author>Wilde, Oscar</author>. <date>1930</date>. <title level="a">The Importance of Being Earnest</title>. In: <title level="m">Plays, Prose Writings and Poems</title>. <pubPlace>London</pubPlace>: <publisher>Everyman</publisher>. Encoded and made available by CELT: Corpus of Electronic Texts: a project of University College, Cork. Available online at <ptr target="http://www.ucc.ie/celt/published/E850003-002/"/>.</bibl>
        </listBibl>
      </div>
    </back>
  </text>
  <!-- 
        $Date$
        $Id$  -->
</TEI>