<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-15" who="#RvdB">technical revision</change>
      <change when="2010-07-13" who="#RvdB">
                <list>
                    <item>added distinction <gi>gi</gi> — <tag>gi scheme="..."</tag> — <gi>tag</gi>
                    </item>
        <item>final spellcheck</item>
                </list>
            </change>
      <change when="2010-07-09" who="#RvdB">release</change>
      <change when="2009-09-29" who="#RvdB">corrected typos</change>
      <change when="2009-06-09" who="#RvdB">authoring</change>
    </revisionDesc>
  </teiHeader>
  <text xml:id="TBED05v00" type="tutorials">
    <body>
            <div xml:id="summary">
        <head>Summary</head>
        <p>This tutorial module has focused on the encoding of specific phenomena of drama texts in TEI. When all of the concepts discussed are applied to the example text, this is how its transcription could look:
          <figure xml:id="example21">
            <egXML xmlns="http://www.tei-c.org/ns/Examples">                        
              <text>
                <front>
                  <castList>
                    <head>CHARACTERS:</head>
                    <castItem>
                      <role xml:id="user">USER</role>
                      <roleDesc>a computer user</roleDesc>
                    </castItem>
                    <castItem>
                      <role xml:id="comp">COMP</role>
                      <roleDesc>a DECPDP-10 computer</roleDesc>
                    </castItem>
                    <castGroup rend="braced">
                      <head>demigods:</head>
                      <castItem>
                        <role xml:id="prog">PROG</role>
                        <roleDesc>the computer programmer</roleDesc>
                      </castItem>
                      <castItem>
                        <role xml:id="engi">ENGI</role>
                        <roleDesc>an engineer</roleDesc>
                      </castItem>
                      <castItem type="list">
                                                <roleDesc>helpdesk</roleDesc>, <roleDesc>narrator</roleDesc>
                                            </castItem>
                    </castGroup>
                  </castList>
                  <set>
                    <p>The play is situated in an anonymous computer lab room, at an undetermined time. Technical equipment looks outdated, though, while suggesting naive technological optimism.</p>
                  </set>
                  <prologue>
                    <head>Prologue, spoken by USER:</head>
                    <sp>
                      <lg type="stanza">
                        <l>'Twas brillig, and the slithy toves</l>
                        <l>Did gyre and gimble in the wabe;</l>
                        <l>All mimsy were the borogoves,</l>
                        <l>And the mome raths outgrabe.</l>
                      </lg>
                      <lg type="stanza">
                        <l>"Beware the Jabberwock, my son!</l>
                        <l>The jaws that bite, the claws that catch!</l>
                        <l>Beware the Jubjub bird, and shun</l>
                        <l>The frumious Bandersnatch!"</l>
                      </lg>
                    </sp>
                  </prologue>
                </front>
                <body>
                  <div type="act">
                    <head>ACT I</head>
                    <div type="scene">
                      <head>SCENE 1: HELLO WORLD</head>
                      <stage>user, computer</stage>
                      <stage type="setting">In a clean room without windows, a table stands in the middle, carrying a computer screen. The screen blinks, <sound type="soundEffect">the computer emits random beeps</sound>.</stage>
                      <stage type="technical">[<view>A big screen on the left hand side of the stage displays the word <caption>HELLO</caption>, and will be used to project the contents of the computer screen.</view> <view>A big screen on the right hand stage of the stage displays the word <caption>WORD</caption>, until the action starts. Then, the user's face is filmed in <camera type="angle">close up</camera> and projected onto this screen.</view>]</stage>
                      <stage type="entrance">
                        <move who="#user" type="entrance" where="C"/>
                        (user enters room, walks towards the table, takes a seat, and reads what's on the screen)</stage>
                      <tech type="light">[spotlight follows user]</tech>
                      <sp>
                        <speaker>COMP</speaker>
                        <p>Hello.</p>
                      </sp>
                      <stage type="gesture">(user looks around and starts typing)</stage>
                      <sp>
                        <speaker>USER</speaker>
                        <p>What is on the table?</p>
                      </sp>
                      <sp>
                        <speaker>COMP</speaker>
                        <p>The table does not exist.</p>
                      </sp>
                      <stage type="gesture">(user frowns)</stage>
                      <sp>
                        <speaker>USER</speaker>
                        <p>There is a table in the room.</p>
                      </sp>
                      <sp>
                        <speaker>COMP</speaker>
                        <p>Ok.</p>
                      </sp>
                      <sp>
                        <speaker>USER</speaker>
                        <p>What is on the table?</p>
                      </sp>
                      <sp>
                        <speaker>COMP</speaker>
                        <p>Nothing.</p>
                      </sp>
                      <sp>
                        <speaker>USER</speaker>
                        <p>There is a black box on the table.</p>
                      </sp>
                      <sp>
                        <speaker>COMP</speaker>
                        <p>Ok.</p>
                      </sp>
                      <sp>
                        <speaker>USER</speaker>
                        <p>What is on the table?</p>
                      </sp>
                      <sp>
                        <speaker>COMP</speaker>
                        <p>A black box.</p>
                      </sp>
                      <sp>
                        <speaker>USER</speaker>
                        <p>There is a black box on the table.</p>
                      </sp>
                      <sound type="soundEffect" discrete="true">(computer beeps frantically)</sound>
                      <sp>
                        <speaker>COMP</speaker>
                        <p>I know.</p>
                      </sp>
                      <sp>
                        <speaker>USER</speaker>
                        <p>There is a red ball in the black box.</p>
                      </sp>
                      <sp>
                        <speaker>COMP</speaker>
                        <p>Ok.</p>
                      </sp>
                      <sp>
                        <speaker>USER</speaker>
                        <p>Where is the black box?</p>
                      </sp>
                      <sp>
                        <speaker>COMP</speaker>
                        <p>The black box is on the table.</p>
                      </sp>
                      <sp>
                        <speaker>USER</speaker>
                        <p>What is in the black box?</p>
                      </sp>
                      <sp>
                        <speaker>COMP</speaker>
                        <p>A red ball.</p>
                      </sp>
                      <sp>
                        <speaker>USER</speaker>
                        <p>Where is the black ball?</p>
                      </sp>
                      <sp>
                        <speaker>COMP</speaker>
                        <p>I don't know what black ball you are talking about.</p>
                      </sp>
                      <sp>
                        <speaker>USER</speaker>
                        <p>Where is the red ball?</p>
                      </sp>
                      <sp>
                        <speaker>COMP</speaker>
                        <p>In the black box.</p>
                      </sp>
                      <sp>
                        <speaker>USER</speaker>
                        <p>There is a black ball in the box.</p>
                      </sp>
                      <sp>
                        <speaker>COMP</speaker>
                        <p>Ok.</p>
                      </sp>
                      <sp>
                        <speaker>USER</speaker>
                        <p>The red ball is on the table.</p>
                      </sp>
                      <sp>
                        <speaker>COMP</speaker>
                        <p>In fact the red ball is in the box.</p>
                      </sp>
                      <sp>
                        <speaker>USER</speaker>
                        <p>The ball in the box is small.</p>
                      </sp>
                      <sp>
                        <speaker>COMP</speaker>
                        <p>I cannot understand such a sentence at the present time.</p>
                      </sp>
                      <sp>
                        <speaker>USER</speaker>
                        <p>The black ball is small.</p>
                      </sp>
                      <sp>
                        <speaker>COMP</speaker>
                        <p>I see.</p>
                      </sp>
                      <sp>
                        <speaker>USER</speaker>
                        <p>What is in the box?</p>
                      </sp>
                      <sp>
                        <speaker>COMP</speaker>
                        <p>A small black ball and a red ball.</p>
                      </sp>
                      <stage type="exit">
                        <move who="#user" type="exit" where="L"/>
                        (user smiles, stands up, takes a small green ball out of his pocket, walks away throwing and catching the ball)</stage>
                      <sound type="music">[<name type="music.group">Kraftwerk</name>'s "<name type="music.song">Computer Love</name>" accompanies the exit]</sound>
                    </div>
                  </div>
                </body>
                <back>
                  <epilogue>
                    <head>Epilogue, spoken by PROG:</head>
                    <sp>
                      <lg type="stanza">
                        <l>"And hast thou slain the Jabberwock?</l>
                        <l>Come to my arms, my beamish boy!</l>
                        <l>O frabjous day! Callooh! Callay!"</l>
                        <l>He chortled in his joy.</l>
                      </lg>
                      <lg type="stanza">
                        <l>'Twas brillig, and the slithy toves</l>
                        <l>Did gyre and gimble in the wabe;</l>
                        <l>All mimsy were the borogoves,</l>
                        <l>And the mome raths outgrabe.</l>
                      </lg>
                    </sp>
                  </epilogue>
                  <performance>
                    <head>Hello World, and Goodbye.</head>
                    <p>Performed for the first time on the <name type="event">Festival for Computing in the Humanities</name>, at <name type="place.venue">Shakespeare's New Globe Theatre</name>, <name type="place.city">London</name>, on <date when="2050-06-21">June 21, 2050</date>.</p>
                    <castList>
                      <head>Actors:</head>
                      <castItem>
                        <actor>Alfred Brown</actor>
                        <role>PROG</role>
                      </castItem>
                      <castItem>
                        <actor>Barry Crowne</actor>
                        <role>ENGI</role>
                      </castItem>
                      <castItem>
                        <actor>Douglas Everett</actor>
                        <role>USER</role>
                      </castItem>
                    </castList>
                  </performance>
                </back>
              </text>
            </egXML>
            <head type="legend">A fully encoded transcription of the example text.</head>
          </figure>
        </p>
      </div>
        </body>
  </text>
  <!-- 
        $Date: 2020-07-08 02:33:20 +0200 (Wed, 08 Jul 2020) $
        $Id: TBED05v00.xml 425 2020-07-08 00:33:20Z ron.vandenbranden $  -->
</TEI>