<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="wilde" type="example">
        <head>Oscar Wilde: <title level="m">The Importance of Being Earnest</title>
                </head>
        <p>This example features a fragment (the front matter and first page) of Oscar Wilde’s <title level="m">The Importance of Being Earnest</title>, a play in three acts. In this transcription, no further scenes are discerned within the acts.</p>
        <figure xml:id="wilde-example">
          <egXML xmlns="http://www.tei-c.org/ns/Examples">
            <text n="E850003-002">
              <front>
                <pb n="450"/>
                <div type="dramatisPersonae">
                  <head>THE PERSONS OF THE PLAY:</head>
                  <list type="maleParts">
                    <item>John Worthing, J.P.</item>
                    <item>Algernon Moncrieff</item>
                    <item>Rev. Canon Chasuble, D.D.</item>
                    <item>Merriman, <emph>Butler</emph>
                                        </item>
                    <item>Lane, <emph>Manservant</emph>
                                        </item>
                  </list>
                  <list type="femaleParts">
                    <item>Lady Bracknell</item>
                    <item>Hon. Gwendolen Fairfax</item>
                    <item>Cecily Cardew</item>
                    <item>Miss Prism, <emph>Governess</emph>
                                        </item>
                  </list>
                </div>
                <div type="sceneList">
                  <head>THE SCENES OF THE PLAY:</head>
                  <stage>
                                        <list>
                    <item>Act I. Algernon Moncrieff's Flat in Half-Moon
                      Street, W.</item>
                    <item>Act II. The Garden at the Manor House,
                      Woolton.</item>
                    <item>Act III. Drawing-room at the Manor House,
                      Woolton.</item>
                  </list>
                                    </stage>
                  <stage type="time">TIME: <emph>The Present</emph>
                                    </stage>
                </div>
              </front>
              <body>
                <div1 type="play" xml:lang="en">
                  <head>The Importance of Being Earnest</head>
                  <pb n="451"/>
                  <div2 n="1" type="act">
                    <head>FIRST ACT</head>
                    <stage type="setting">Scene <view>
                                                <emph>Morning-room in
                      Algernon's flat in Half-Moon Street. The room is
                      luxuriously and artistically furnished. The sound of a
                      piano is heard in the adjoining room.</emph>
                      <emph>Lane is arranging afternoon tea on the table, and
                        after the music has ceased, Algernon
                        enters.</emph>
                                            </view>
                                        </stage>
                    <sp>
                      <speaker>Algernon.</speaker>
                      <p>Did you hear what I was playing, Lane?</p>
                    </sp>
                    <sp>
                      <speaker>Lane.</speaker>
                      <p>I didn't think it polite to listen, sir.</p>
                    </sp>
                    <sp>
                      <speaker>Algernon.</speaker>
                      <p>I'm sorry for that, for your sake. I don't play
                        accurately—anyone can play accurately—but I
                        play with wonderful expression. As far as the piano is
                        concerned sentiment is my <foreign xml:lang="fr">forte</foreign>. I
                        keep science for Life.</p>
                    </sp>
                    <sp>
                      <speaker>Lane.</speaker>
                      <p>Yes, sir.</p>
                    </sp>
                    <sp>
                      <speaker>Algernon.</speaker>
                      <p>And, speaking of the science of Life, have you got the
                        cucumber sandwiches cut for Lady Bracknell?</p>
                    </sp>
                    <sp>
                      <speaker>Lane.</speaker>
                      <p>Yes, sir.</p>
                      <stage>[<emph>Hands them on a salver.</emph>]</stage>
                    </sp>
                    <sp>
                      <speaker>Algernon.</speaker>
                      <p>
                                                <stage>[<emph>Inspects them, takes two, and sits down
                        on the sofa.</emph>]</stage> Oh! … by the
                        way, Lane, I see from your book that on Thursday night,
                        when Lord Shoreman and Mr. Worthing were dining with me,
                        eight bottles of champagne are entered as having been
                        consumed.</p>
                    </sp>
                    <sp>
                      <speaker>Lane.</speaker>
                      <p>Yes, sir; eight bottles and a pint.</p>
                    </sp>
                    <sp>
                      <speaker>Algernon.</speaker>
                      <p>Why is it that at a bachelor's establishment the
                        servants invariably drink the champagne? I ask merely
                        for information.</p>
                    </sp>
                    <sp>
                      <speaker>Lane.</speaker>
                      <p>I attribute it to the superior quality of the wine,
                        sir. I have often observed that in married households
                        the champagne is rarely of a first-rate brand.</p>
                    </sp>
                    <sp>
                      <speaker>Algernon.</speaker>
                      <p>Good Heavens! Is marriage so demoralizing as that?</p>
                    </sp>
                    <sp>
                      <speaker>Lane.</speaker>
                      <p>I believe it <emph>is</emph> a very pleasant state,
                        sir. I have had very little experience of it myself up
                        to the present. I have only been married once. That was
                        in consequence of a misunderstanding between myself and
                        a young person.</p>
                    </sp>
                    <sp>
                      <speaker>Algernon.</speaker>
                      <p>
                                                <stage>[<emph>Languidly.</emph>]</stage> I don't know
                        that I am much interested in your family life, Lane.</p>
                    </sp>
                    <sp>
                      <speaker>Lane.</speaker>
                      <p>No, sir; it is not a very interesting subject. I never
                        think of it myself.</p>
                    </sp>
                    <pb n="452"/>
                    <!-- ... -->
                  </div2>
                </div1>
              </body>
            </text>
          </egXML>
          <head type="legend">Adapted from a TEI P3 SGML encoding of Oscar Wilde’s play <title level="m">The Importance of Being Earnest</title>, in the anthology <title level="m">Plays, Prose Writings and Poems by Oscar Wilde</title> (<ref target="#wilde1930" type="bibl">Wilde 1930</ref>). TEI SGML source available from <ptr target="http://www.ucc.ie/celt/published/E850003-002.sgml"/>.</head>
        </figure>
        <p>The actual text is preceded by a character list and a list of the scenes, both encoded as <gi>div</gi> elements inside the <gi>front</gi> part of the <gi>text</gi>, with appropriate values for their <att>type</att> attributes. The character list is encoded as a plain <gi>list</gi> structure, containing <gi>item</gi> elements for the characters (divided into sub-lists of male and female characters). Role descriptions are encoded with <gi>emph</gi> elements. Whereas the specialised <gi>castList</gi>, <gi>castGroup</gi> and <gi>castItem</gi>, <gi>role</gi>, and <gi>roleDesc</gi> elements could have been used, this is a perfectly valid (though less expressive) interpretation and application of the TEI elements. The scenes are listed in a <gi>stage</gi> element, which is a bit more controversial, as the TEI Guidelines make a clear distinction between the <gi>stage</gi> element (stage directions in or in between speeches) and <gi>set</gi> (<q>a description of the setting, time, locale, appearance, etc., of the action of a play, typically found in the front matter of a printed performance text (<emph>not a stage direction</emph>)</q>) elements. Because it is wrapped inside a <gi>div</gi> structure, this is valid TEI, but the encoding could probably be improved to:</p>
        <egXML xmlns="http://www.tei-c.org/ns/Examples">
          <front>
            <set>
              <head>THE SCENES OF THE PLAY:</head>
              <list type="simple">
                <item>Act I. Algernon Moncrieff's Flat in Half-Moon Street, W.</item>
                <item>Act II. The Garden at the Manor House, Woolton.</item>
                <item>Act III. Drawing-room at the Manor House, Woolton.</item>
              </list>                
            </set>
            <set>TIME: <emph>The Present</emph>
                        </set>
          </front>
        </egXML>
        <p>The play itself is encoded as a <gi>div1</gi> level text division, in which each act is wrapped in a <gi>div2</gi> element. Inside the speeches (<gi>sp</gi>), the speakers are transcribed as <gi>speaker</gi>, and the speech as prose paragraphs (<gi>p</gi>). Stage directions (<gi>stage</gi>) occur between and in the speeches. Notice how at the beginning of the act, the <gi>view</gi> element is used inside a stage direction, to describe the visual aspects of the setting. This is probably a liberal interpretation of the semantics of this element, which is more geared to <q>the visual context of some part of a screen play</q>, viz. the description of what’s on a screen. The <gi>view</gi> element doesn’t seem strictly necessary here: a <tag>stage type="setting"</tag> would probably convey the same information.</p>
      </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: 2020-07-08 02:33:20 +0200 (Wed, 08 Jul 2020) $
        $Id: TBED05v00.xml 425 2020-07-08 00:33:20Z ron.vandenbranden $  -->
</TEI>