<TEI xmlns="http://www.tei-c.org/ns/1.0">
  <teiHeader>
    <fileDesc>
      <titleStmt>
        <title type="main">TEI by Example</title>
        <title type="sub">Module 4: Poetry</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="TBED04v00" type="examples">
    <body>
            <div xml:id="blake" type="example">
        <head>William Blake: <title level="m">Songs of Innocence and of Experience</title>
                </head>
        <p>This example features a fragment of William Blake’s <title level="m">Songs of innocence and of experience</title>, encoded and made available by the University of Virginia Library, for their Text Collection.</p>
        <p>It forms a good example of how an anthology can be encoded. The work is considered as a single text (<gi>text</gi>) whose <gi>body</gi> contains both books. Both <title level="a">Songs of Innocence</title> and <title level="a">Songs of Experience</title> are encoded as <gi>div1</gi> numbered text divisions, with a <att>type</att> attribute with value <val>book</val>. Inside these books, all 45 poems are encoded as <tag>div2 type="poem"</tag>. All poems have a title (<gi>head</gi>) and are subdivided into stanzas (<tag>lg type="stanza"</tag>) and lines (<gi>l</gi>). Page breaks are recorded with <gi>pb</gi> elements, whose <att>n</att> attribute contain the page number.</p>
        <figure xml:id="blake-example">
          <egXML xmlns="http://www.tei-c.org/ns/Examples">
            <text xml:id="d1">
              <body xml:id="d2">
                <div1 type="book" xml:id="d3">
                  <head>Songs of Innocence</head>
                  <pb n="4"/>
                  <div2 type="poem" xml:id="d4">
                    <head>Introduction</head>
                    <lg type="stanza">
                      <l>Piping down the valleys wild, </l>
                      <l>Piping songs of pleasant glee, </l>
                      <l>On a cloud I saw a child, </l>
                      <l>And he laughing said to me: </l>
                    </lg>
                    <lg type="stanza">
                      <l>"Pipe a song about a Lamb!" </l>
                      <l>So I piped with merry chear. </l>
                      <l>"Piper, pipe that song again;" </l>
                      <l>So I piped, he wept to hear. </l>
                    </lg>
                    <lg type="stanza">
                      <l>"Drop thy pipe, thy happy pipe; </l>
                      <l>Sing thy songs of happy chear:" </l>
                      <l>So I sung the same again, </l>
                      <l>While he wept with joy to hear. </l>
                    </lg>
                    <lg type="stanza">
                      <l>"Piper, sit thee down and write </l>
                      <l>In a book, that all may read." </l>
                      <l>So he vanis'd from my sight, </l>
                      <l>And I pluck'd a hollow reed, </l>
                    </lg>
                    <lg type="stanza">
                      <l>And I made a rural pen, </l>
                      <l>And I stain'd the water clear, </l>
                      <l>And I wrote my happy songs </l>
                      <l>Every child may joy to hear. </l>
                    </lg>
                  </div2>
                  <pb n="5"/>
                  <div2 type="poem" xml:id="d5">
                    <head>The Shepherd</head>
                    <lg type="stanza">
                      <l>How sweet is the Shepherd's sweet lot! </l>
                      <l>From the morn to the evening he strays; </l>
                      <l>He shall follow his sheep all the day, </l>
                      <l>And his tongue shall be filled with praise. </l>
                    </lg>
                    <lg type="stanza">
                      <l>For he hears the lamb's innocent call, </l>
                      <l>And he hears the ewe's tender reply; </l>
                      <l>He is watchful while they are in peace, </l>
                      <l>For they know when their Shepherd is nigh. </l>
                    </lg>
                  </div2>
                  <pb n="6"/>
                  <div2 type="poem" xml:id="d6">
                    <head>The Ecchoing Green</head>
                    <lg type="stanza">
                      <l>The Sun does arise, </l>
                      <l>And make happy the skies; </l>
                      <l>The merry bells ring </l>
                      <l>To welcome the Spring; </l>
                      <l>The sky-lark and thrush, </l>
                      <l>The birds of the bush, </l>
                      <l>Sing louder around </l>
                      <l>To the bells' chearful sound, </l>
                      <l>While our sports shall be seen </l>
                      <l>On the Ecchoing Green. </l>
                    </lg>
                    <lg type="stanza">
                      <l>Old John, with white hair, </l>
                      <l>Does laugh away care, </l>
                      <l>Sitting under the oak, </l>
                      <l>Among the old folk. <pb n="7"/>
                                            </l>
                      <l>They laugh at our play, </l>
                      <l>And soon they all say: </l>
                      <l>"Such, such were the joys </l>
                      <l>When we all, girls &amp; boys, </l>
                      <l>In our youth time were seen </l>
                      <l>On the Ecchoing Green." </l>
                    </lg>
                    <lg type="stanza">
                      <l>Till the little ones, weary, </l>
                      <l>No more can be merry; </l>
                      <l>The sun does descend, </l>
                      <l>And our sports have an end. </l>
                      <l>Round the laps of their mothers </l>
                      <l>Many sisters and brothers, </l>
                      <l>Like birds in their nest, </l>
                      <l>Are ready for rest, </l>
                      <l>And sport no more seen </l>
                      <l>On the darkening Green. </l>
                    </lg>
                  </div2>
                  <pb n="8"/>
                  <div2 type="poem" xml:id="d7">
                    <head>The Lamb</head>
                    <lg type="stanza">
                      <l rend="indent">Little lamb, who made thee? </l>
                      <l rend="indent">Dost thou know who made thee? </l>
                      <l>Gave thee life &amp; bid thee feed, </l>
                      <l>By the stream &amp; o'er the mead; </l>
                      <l>Gave thee clothing of delight, </l>
                      <l>Softest clothing, wooly, bright; </l>
                      <l>Gave thee such a tender voice, </l>
                      <l>Making all the vales rejoice? </l>
                      <l rend="indent">Little Lamb, who made thee? </l>
                      <l rend="indent">Dost thou know who made thee? </l>
                    </lg>
                    <lg type="stanza">
                      <l rend="indent">Little Lamb, I'll tell thee, </l>
                      <l rend="indent">Little Lamb, I'll tell thee: </l>
                      <l>He is called by thy name, </l>
                      <l>For he calls himself a Lamb. </l>
                      <l>He is meek &amp; he is mild; </l>
                      <l>He became a little child. </l>
                      <l>I a child &amp; thou a lamb. </l>
                      <l>We are called by his name. </l>
                      <l rend="indent">Little Lamb, God bless thee! </l>
                      <l rend="indent">Little Lamb, God bless thee!</l>
                    </lg>
                  </div2>
                  <!-- ... -->
                </div1>
              </body>
            </text>
          </egXML>
          <head type="legend">Adapted from a TEI P4 encoding of William Blake’s anthology <title level="m">Songs of Innocence and of Experience</title> (<ref type="bibl" target="#blake1789">Blake 1789</ref>). TEI XML source available from <ptr target="http://xtf.lib.virginia.edu/xtf/view?docId=modern_english/uvaGenText/tei/BlaSong.xml;raw=1"/>.</head>
        </figure>
      </div>
        </body>
    <back>
      <div type="bibliography">
        <listBibl>
          <bibl xml:id="blake1789">
                        <author>Blake, William</author>. <date>1789</date>. <title level="m">Songs of Innocence and of Experience</title>. <pubPlace>London</pubPlace>: <publisher>W Blake</publisher>. Encoded and made available by the University of Virginia Library, Text Collection at <ptr target="http://etext.lib.virginia.edu/toc/modeng/public/BlaSong.html"/>.</bibl>
          <bibl xml:id="browning1842">
                        <author>Browning, Robert</author>. <date>1842</date>. <title level="m">Dramatic Lyrics</title>. <pubPlace>London</pubPlace>: <publisher>Moxon</publisher>.</bibl>
          <bibl xml:id="carroll1865">
                        <author>Carroll, Lewis</author>. <date>1865</date>. <title level="m">Alice’s Adventures in Wonderland</title>. <pubPlace>New York</pubPlace>: <publisher>D. Appleton and co.</publisher> p. <biblScope unit="page">37</biblScope>.</bibl>
          <bibl xml:id="islam2004">
                        <editor>Islam, Mubina</editor>. <date>2004</date>. <title level="u">A Selection of Sonnets: electronic edition encoded in XML with a TEI DTD</title>. Unpublished Master’s Dissertation, <pubPlace>London</pubPlace>: <publisher>University College London</publisher>.</bibl>
          <bibl xml:id="shakespeare1978">
                        <author>Shakespeare, William</author>. <date>1978</date>. <title level="m">The Complete Works of William Shakespeare</title>. Edited by <editor>Alexander, Peter</editor>. <pubPlace>London</pubPlace>: <publisher>Collins</publisher>.</bibl>
          <bibl xml:id="swinburne1924">
                        <author>Swinburne, Algernon Charles</author>. <date>1924</date>. <title level="m">Swinburne’s Collected Poetical Works</title>. <pubPlace>London</pubPlace>: <publisher>William Heinemann</publisher>. p. <biblScope unit="page">330–31</biblScope>.</bibl>
        </listBibl>
      </div>
    </back>
  </text>
    <!-- 
        $Date: 2020-07-08 02:33:20 +0200 (Wed, 08 Jul 2020) $
        $Id: TBED04v00.xml 425 2020-07-08 00:33:20Z ron.vandenbranden $  -->
</TEI>