<TEI xmlns="http://www.tei-c.org/ns/1.0">
  <teiHeader>
    <fileDesc>
      <titleStmt>
        <title type="main">TEI by Example</title>
        <title type="sub">Module 6: Primary Sources</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="TBED06v00" type="examples">
    <body>
            <div type="example" xml:id="whitman">
        <head>Walt Whitman: <title level="u">After the Argument</title>
                </head>
        <p>This manuscript, featuring an early version of the poem <title level="a">After the Argument</title>, was likely written in 1890 or early 1891, shortly before the poem’s publication.</p>
        <figure xml:id="whitman-fac">
          <graphic url="../../../images/examples/TBED06v00/loc.00001.001.jpg"/>
          <head type="legend">A facsimile of the manuscript for <title level="a">After the Argument</title>.</head>
        </figure>
        <p>This example clearly illustrates how the TEI <ident type="module">transcr</ident> module can be applied to verse texts as well. The entire poem is encoded inside <tag>lg type="poem"</tag>, containing a heading (<gi>head</gi>) and two verse lines (<gi>l</gi>), in which physical line breaks have been maked with <gi>lb</gi> elements. As will be clear from the facsimile, this short manuscript features some complex editorial traces. Sequential deletions (<gi>del</gi>) and additions (<gi>add</gi>) are grouped into substitutions (<gi>subst</gi>).  Moreover, inside the substitutions, the exact order of the editing interventions is specified by means of a sequence number in a <att>seq</att> attribute, making explicit that the deletions occurred before the additions.<note>The <att>seq</att> attribute is a more advanced concept documented in chapter <ref target="https://tei-c.org/release/doc/tei-p5-doc/en/html/PH.html">11 Representation of Primary Sources</ref> of the TEI Guidelines. Notice how this explicit sequence number is not strictly needed here, as deletions logically precede additions, and only one deletion is involved.</note>
                </p>
        <p>This example illustrates nicely how additions and deletions can nest. In both cases in the example, an addition contains further deletions. The <att>rend</att> attribute is used on <gi>del</gi> and <gi>add</gi> in order to encode the way in which deletions (<val>overstrike</val> or <val>overwrite</val>) and additions (<val>insertion</val>, <val>overwrite</val>, <val>unmarked</val>) have been realised on the manuscript. An additional <att>place</att> attribute on <gi>add</gi> indicates if the additions are located <val>supralinear</val>, <val>over</val> existing text, or <val>inline</val>.</p>
        <p>Page breaks are indicated with <gi>pb</gi> elements, indicating the type of the manuscript page (<val>recto</val> or <val>verso</val>) with the <att>type</att> attribute. The <att>facs</att> attribute points to a digital facsimile of the page indicated with the <gi>pb</gi> element.</p>
        <figure xml:id="whitman-example">
          <egXML xmlns="http://www.tei-c.org/ns/Examples">
            <body>
              <pb facs="loc.00001.001.jpg" xml:id="leaf001r" type="recto"/>
              <lg type="poem">
                <head rend="underline" type="main-authorial">After <subst>
                  
                  <del rend="overstrike" seq="1">an</del>
                  
                  <add place="supralinear" rend="insertion" seq="2">the <del rend="overstrike">unsolv'd</del>
                  </add>
                </subst> argument</head>
                <l>
                  
                  <del rend="overstrike">The</del>
                  <add place="supralinear" rend="insertion">
                    <del rend="overstrike">Coming in,</del>
                    <subst>
                      
                      <del rend="overwrite" seq="1">a</del>
                                            <add place="over" rend="overwrite" seq="2">A</add>
                    </subst> group of </add> little children, and their
                  <lb/>ways and chatter, flow <add place="inline" rend="unmarked">in, </add>
                  <del rend="overstrike">
                    <add place="supralinear" rend="unmarked">upon me</add>
                  </del>
                  
                </l>
                <l>Like <add place="supralinear" rend="insertion">welcome </add> rippling
                  water o'er my 
                  <lb/>heated <add place="supralinear" rend="insertion">nerves and </add>
                  flesh.
                </l>
                <closer>
                  <signed>Walt Whitman</signed>
                </closer>
              </lg>
              <pb facs="loc.00001.002.jpg" xml:id="leaf001v" type="verso"/>
            </body>
          </egXML>
          <head type="legend">Encoding of manuscript <idno>loc.00001</idno> of the Walt Whitman Archive (<ref type="bibl" target="#whitman1890">Whitman 1890</ref>). TEI XML source available from <ptr target="https://whitmanarchive.org/manuscripts/tei/loc.00001.xml"/>.</head>
        </figure>
      </div>
        </body>
    <back>
      <div type="bibliography">
        <listBibl>
          <bibl xml:id="bentham1802">
                        <author>Bentham, Jeremy</author>. <date>1802</date>. <title level="u">Manuscript JB/116/010/001</title>. Manuscript encoded and made available by the Transcribe Bentham project at <ptr target="http://transcribe-bentham.ucl.ac.uk/td/JB/116/010/001"/>.</bibl>
          <bibl xml:id="whitman1890">
                        <author>Whitman, Walt</author> <date>1890</date>. <title level="u">After the Argument</title>. Manuscript encoded and made available by the Walt Whitman Archive at <ptr target="http://www.whitmanarchive.org/manuscripts/transcriptions/loc.00001.html"/>.</bibl>
        </listBibl>
      </div>
    </back>
  </text>
  <!-- 
        $Date$
        $Id$  -->
</TEI>