<TEI xmlns="http://www.tei-c.org/ns/1.0" xml:lang="en-GB">
  <teiHeader>
    <fileDesc>
      <titleStmt>
        <title type="main">TEI by Example</title>
        <title type="sub">Module 0: Introduction to Text Encoding and the TEI</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="TBED00v00" type="examples">
    <body>
            <div xml:id="ex04_p3" type="example">
        <head>TEI P3 (SGML)</head>
        <p>The sample text could be encoded in TEI P3 as well. Being TEI, this is a descriptive encoding scheme that allows the encoder to explicate the structure and semantics of the textual features s/he wants to analyse. In our sample, we see the typical features of TEI documents (although some of the names have evolved since version P3): a document is encoded in a <gi scheme="TEI_P4">TEI.2</gi> element, containing both a <gi>teiHeader</gi> section for the meta-information, and a <gi>text</gi> part for the actual text contents. The header must contain a minimal amount of meta-information, while the text content itself is encoded in <gi>body</gi>. Inside the text, the structural elements (heading — <gi>head</gi>, paragraph — <gi>p</gi>, footnote — <tag>note @place=foot</tag>), as well as semantic features (title — <gi>title</gi>, emphasis — <gi>emph</gi>, term — <gi>term</gi>) can be fully expressed with comprehensible tag names.</p>
        <p>Notice, however, that this is SGML, not XML: some elements can occur without end tags (<gi>title</gi>, <gi>body</gi>, <gi>p</gi>, <gi>head</gi>), and attribute values can occur without surrounding quotes (<q>type=foot</q>).</p>
        <figure xml:id="p3-example">
          <eg>
            &lt;TEI.2&gt;
              &lt;teiHeader&gt;
                &lt;fileDesc&gt;
                  &lt;titleStmt&gt;
                    &lt;title&gt;Review: an electronic transcription
                  &lt;/titleStmt&gt;
                  &lt;publicationStmt&gt;
                    &lt;p&gt;Published as an example for the Introduction module of TBE.
                  &lt;/publicationStmt&gt;
                  &lt;sourceDesc&gt;
                    &lt;p&gt;No source: born digital.
                  &lt;/sourceDesc&gt;
                &lt;/fileDesc&gt;
              &lt;/teiHeader&gt;
              &lt;text&gt;
                &lt;body&gt;
                  &lt;head&gt;Review
                  &lt;p&gt;&lt;title&gt;Die Leiden des jungen Werther &lt;note place=foot&gt;by &lt;name&gt;Goethe&lt;/name&gt; is an &lt;emph&gt;exceptionally&lt;/emph&gt; good example of a book full of &lt;term&gt;Weltschmerz&lt;/term&gt;.
              &lt;/text&gt;
            &lt;/TEI.2&gt;
            </eg>
          <head type="legend">A TEI P3 SGML example</head>
        </figure>
      </div>
        </body>
  </text>
  <!-- 
        $Date: 2020-07-08 02:33:20 +0200 (Wed, 08 Jul 2020) $
        $Id: TBED00v00.xml 425 2020-07-08 00:33:20Z ron.vandenbranden $  -->
</TEI>