<TEI xmlns="http://www.tei-c.org/ns/1.0">
  <teiHeader>
    <fileDesc>
      <titleStmt>
        <title type="main">TEI by Example</title>
        <title type="sub">Module 7: Critical Editing</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-07-02" who="#RvdB">proofing corrections</change>
      <change when="2020-06-12" 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-28" who="RvdB">authoring</change>
    </revisionDesc>
  </teiHeader>
  <text xml:id="TBED07v00" type="tutorials">
    <body>
            <div xml:id="apparatus">
        <head>Encoding Textual Variants</head>
        <div xml:id="basicApp">
          <head>Basic Organisation of an Apparatus Entry</head>
          <p>Traditionally, printed critical editions have developed efficient mechanisms to represent textual variants on as little physical space as possible in what is commonly called a <term>critical apparatus</term>. Many types of apparatus exist, depending on the editorial theory, but all tend to put the different readings found in the different text witnesses on a par with one version of the text, which is commonly called the <term>base text</term>. The TEI Guidelines offer an analogous mechanism for representing textual variants in a concise way. A piece of text with corresponding variants in the different text witnesses, is encoded in an <gi>app</gi> (apparatus entry) element, which holds all different readings. Each reading must be encoded in a <gi>rdg</gi> (reading) element, which can be associated to its respective text witness by means of the <att>wit</att> attribute. Its value should point to the definition of the text witness in a <gi>listWit</gi> element elsewhere in the edition (see <ptr target="#listWit" type="crossref"/>). For example, let’s have a closer look at the chapter title in our sample:
            <table rend="border" xml:id="table3">
              <row>
                <cell role="label">
                                    <ident>[witness p2]</ident>
                                </cell>
                <cell>
                  <hi rend="highlight">Chapter 2</hi>
                                    <lb/> 
                  A <hi rend="highlight">GENTLE INTRODUCTION TO SGML</hi>
                </cell>
              </row>
              <row>
                <cell role="label">
                                    <ident>[witness p3]</ident>
                                </cell>
                <cell>
                  <hi rend="highlight">Chapter 2</hi>
                                    <lb/> 
                  A <hi rend="highlight">Gentle Introduction to SGML</hi>
                </cell>
              </row>
              <row>
                <cell role="label">
                                    <ident>[witness p4]</ident>
                                </cell>
                <cell>
                  <hi rend="highlight">2</hi> A <hi rend="highlight">Gentle Introduction to XML</hi>
                </cell>
              </row>
              <row>
                <cell role="label">
                                    <ident>[witness p5]</ident>
                                </cell>
                <cell>
                  <hi rend="highlight">v</hi>
                                    <lb/>
                  A <hi rend="highlight">Gentle Introduction to XML</hi>
                </cell>
              </row>
            </table>
          </p>
          <p>In above example, all text that differs from the corresponding fragment in any other witness is highlighted in yellow. Only the word <q>A</q> is shared between all text witnesses. In a digital edition of our sample, these stretches of variant text could be encoded in two apparatus entries:</p>
          <figure xml:id="example7">
            <egXML xmlns="http://www.tei-c.org/ns/Examples">
              <app>
                <rdg wit="#p2">Chapter 2 <lb/>
                                </rdg>
                <rdg wit="#p3">Chapter 2 <lb/>
                                </rdg>
                <rdg wit="#p4">2</rdg>
                <rdg wit="#p5">v <lb/>
                                </rdg>
              </app>
              <app>
                <rdg wit="#p2">GENTLE INTRODUCTION TO SGML</rdg>
                <rdg wit="#p3">Gentle Introduction to SGML</rdg>
                <rdg wit="#p4">Gentle Introduction to XML</rdg>
                <rdg wit="#p5">Gentle Introduction to XML</rdg>
              </app>
            </egXML>
            <head type="legend">Apparatus entries without preferred readings, encoded in <gi>rdg</gi>.</head>
          </figure>
          <p>In this example, both textual variants are encoded as two apparatus entries, with four readings each. Each <gi>rdg</gi> element points to the definition of its corresponding text witness by means of the <term>sigla</term> in its <att>wit</att> attribute. Notice how each sigil starts with a <code>#</code> sign, because it addresses the <att>xml:id</att> value of a <gi>witness</gi> element in the edition.<note>Notice, how the TEI Guidelines offer the <emph>means</emph> to encode textual variation, without imposing any theoretical assumptions on <emph>how</emph> to encode an apparatus for the variants in different texts. The treatment of variation in different text versions is an explicit theoretical act of interpretation, and it is up to the encoder to determine corresponding text fragments, and where to delimit stretches of variation. Likewise, the examples in this TBE tutorial module are fairly theory-neutral, in that they tend to use the maximal length of differing text fragments as guiding principle for the demarcation of textual variants.</note>
                    </p>
          <p>In printed critical editions, the assumption of a base text against which all other versions are compared is quite common. Therefore, besides readings, a TEI apparatus entry can also contain a <gi>lem</gi> (lemma) element, identifying the reading it contains as a <soCalled>preferred</soCalled> reading, according to the editor’s theory of the text. Notice that if a <gi>lem</gi> element is used, it must occur as the first element inside <gi>app</gi>. If version <ident>p2</ident> were considered the base text to the edition of this sample, the previous example could be encoded as follows:<note>Because in the context of electronic critical editing a <soCalled>preferred</soCalled> reading in a <gi>lem</gi> element is fairly theory-dependent, the examples in this TBE tutorial module will mostly just list all variants as equal <gi>rdg</gi> elements. You have to know, however, that each <gi>app</gi> element may always specify one of its readings as lemma (<gi>lem</gi>) as well.</note>
            <figure xml:id="example8">
              <egXML xmlns="http://www.tei-c.org/ns/Examples">
                <app>
                  <lem wit="#p2">Chapter 2 <lb/>
                                    </lem>
                  <rdg wit="#p3">Chapter 2 <lb/>
                                    </rdg>
                  <rdg wit="#p4">2</rdg>
                  <rdg wit="#p5">v <lb/>
                                    </rdg>
                </app>
                <app>
                  <lem wit="#p2">GENTLE INTRODUCTION TO SGML</lem>
                  <rdg wit="#p3">Gentle Introduction to SGML</rdg>
                  <rdg wit="#p4">Gentle Introduction to XML</rdg>
                  <rdg wit="#p5">Gentle Introduction to XML</rdg>
                </app>
              </egXML>
              <head type="legend">Apparatus entries with a preferred reading in <gi>lem</gi>.</head>
            </figure>
          </p>
          <p>In order to make this representation more efficient, identical readings can be collapsed into one single <gi>rdg</gi> element, by combining the sigla into a list separated by white spaces in the <att>wit</att> attribute:
            <figure xml:id="example9">
              <egXML xmlns="http://www.tei-c.org/ns/Examples">
                <app>
                  <rdg wit="#p2 #p3">Chapter 2 <lb/>
                                    </rdg>
                  <rdg wit="#p4">2</rdg>
                  <rdg wit="#p5">v <lb/>
                                    </rdg>
                </app>
                <app>
                  <rdg wit="#p2">GENTLE INTRODUCTION TO SGML</rdg>
                  <rdg wit="#p3">Gentle Introduction to SGML</rdg>
                  <rdg wit="#p4 #p5">Gentle Introduction to XML</rdg>
                </app>
              </egXML>
              <head type="legend">Grouping identical readings in a  single <gi>rdg</gi> element.</head>
            </figure>
          </p>
          <p>Remember how we distinguished different witness groups in the previous section of this tutorial? This allows us to rewrite the sigla of readings shared by the versions of the TEI Guidelines dealing with either SGML or XML, using the group identification code for the corresponding group of witnesses:
            <figure xml:id="example10">
              <egXML xmlns="http://www.tei-c.org/ns/Examples">
                <app>
                  <rdg wit="#teiSGML">Chapter 2 <lb/>
                                    </rdg>
                  <rdg wit="#p4">2</rdg>
                  <rdg wit="#p5">v <lb/>
                                    </rdg>
                </app>
                <app>
                  <rdg wit="#p2">GENTLE INTRODUCTION TO SGML</rdg>
                  <rdg wit="#p3">Gentle Introduction to SGML</rdg>
                  <rdg wit="#teiXML">Gentle Introduction to XML</rdg>
                </app>
              </egXML>
              <head type="legend">Referring to witness groups in <gi>rdg</gi>.</head>
            </figure>
          </p>
          <p>You should consider an <gi>app</gi> element as a cross-section of a text fragment over all of the different text witnesses. This means that all <gi>lem</gi> and <gi>rdg</gi> contents should be interpreted as mutually exclusive alternatives. Therefore, each text witness listed in the <att>wit</att> attributes inside an <gi>app</gi> element should occur only once. Ideally, this should be the minimal requirement as well, so that each apparatus entry contains one corresponding text fragment across all different text witnesses included in the edition (although this is not strictly necessary when the edition uses one base text: see <ptr target="#appConnect" type="crossref"/>).</p>
          <note type="summary">Each variant in a TEI encoded critical edition should be encoded as an apparatus entry, in an <gi>app</gi> element. An apparatus entry contains the different textual variants found in the text witnesses, encoded in different <gi>rdg</gi> (reading) elements. If the edition considers one of the text witnesses as the <term>base</term> text, the readings from that witness can be encoded as a lemma instead, in a <gi>lem</gi> element. Each <gi>lem</gi> or <gi>rdg</gi> element should indicate the text witness(es) it corresponds to in a <att>wit</att> attribute. The value of this attribute consists of a white space separated list of pointers to the <att>xml:id</att> code(s) of the <gi>witness</gi> element(s) describing the corresponding text witness(es).</note>
        </div>
        <div xml:id="appGrouping">
          <head>Grouping Readings</head>
          <p>In both variants considered so far, arguments could be made for (re)grouping the readings. In the first apparatus entry, reading <ident>p5</ident> is set apart from all others because of the diverging chapter number. In the second apparatus entry, one possible case for explicit grouping could be the <soCalled>genetic</soCalled> similarity of the variants in those versions of the TEI Guidelines dealing with SGML or XML.</p>
          <p>One way of grouping readings is provided by a <gi>rdgGrp</gi> element. It can be wrapped around <gi>rdg</gi> elements in an apparatus entry, in order to indicate their relatedness in some way. This <gi>rdgGrp</gi> really is nothing more than a wrapper for grouping related readings. For example, the readings in the previous example could be grouped as follows:
            <figure xml:id="example11">
              <egXML xmlns="http://www.tei-c.org/ns/Examples">
                <app>
                  <rdg wit="#teiSGML">Chapter 2 <lb/>
                                    </rdg>
                  <rdgGrp>
                    <rdg wit="#p4">2</rdg>
                    <rdg wit="#p5">v <lb/>
                                        </rdg>
                  </rdgGrp>
                </app>
                <app>
                  <rdgGrp>
                    <rdg wit="#p2">GENTLE INTRODUCTION TO SGML</rdg>
                    <rdg wit="#p3">Gentle Introduction to SGML</rdg>
                  </rdgGrp>
                  <rdg wit="#teiXML">Gentle Introduction to XML</rdg>
                </app>
              </egXML>
              <head type="legend">Grouping related readings in <gi>rdgGrp</gi>.</head>
            </figure>
            </p>
          <p>When you take a closer look at these variants, you’ll see that some of these readings contain common text as well. In the first variant, the number <q>2</q> is shared between both <ident>teiSGML</ident> readings, and the <ident>p4</ident> reading. In the last variant, the <ident>p2</ident> and <ident>p3</ident> readings are set apart by the common phrase <q>SGML</q>, as opposed to <q>XML</q> in the <ident>teiXML</ident> readings. Yet, both <ident>p2</ident> and <ident>p3</ident> text witnesses vary internally in their use of capitals. Such refinements can’t be expressed using the <gi>rdgGrp</gi> grouping mechanism, as a <gi>rdgGrp</gi> element can only contain <gi>rdg</gi> or <gi>lem</gi> elements. If this grouping is to be maintained, you could express them in a more fine-grained manner using another grouping mechanism: introducing nesting <gi>app</gi> elements in the <gi>rdg</gi> elements that share common text as well as variant readings:
            <figure xml:id="example12">
              <egXML xmlns="http://www.tei-c.org/ns/Examples">
                <app>
                  <rdg wit="#teiSGML #p4">
                    <app>
                      <rdg wit="#teiSGML">Chapter</rdg>
                      <rdg wit="#p4"/>
                    </app> 2 <app>
                      <rdg wit="#teiSGML">
                                                <lb/>
                                            </rdg>
                      <rdg wit="#p4"/>
                    </app>
                  </rdg>
                  <rdg wit="#p5">v <lb/>
                  </rdg>
                </app>
                <app>
                  <rdg wit="#teiSGML">
                    <app>
                      <rdg wit="#p2">GENTLE INTRODUCTION TO</rdg>
                      <rdg wit="#p3">Gentle Introduction to</rdg>
                    </app> SGML</rdg>
                  <rdg wit="#teiXML">Gentle Introduction to XML</rdg>
                </app>
              </egXML>
              <head type="legend">Grouping readings in nesting <gi>app</gi> elements.</head>
            </figure>
          </p>
          <p>In the first variant, the apparatus distinguishes between those readings whose heading refers to the second chapter (<ident>teiSGML</ident> and <ident>p4</ident>), and reading <ident>p5</ident>, which refers to chapter five. However, as the first group of readings shows internal variation, this can be expressed in further nesting <gi>app</gi> elements (see the nesting <gi>app</gi> elements for the <q>Chapter</q> sub-variant, and the line break). The common text can be encoded as plain text contents of the grouping <gi>rdg</gi> element (see the <q>2</q>, which occurs in all readings of the group: <ident>teiSGML</ident>, and <ident>p4</ident>). In the second variant, the readings corresponding to the text witnesses dealing with SGML are set apart from those dealing with XML. Since the first group of readings contains internal variation, the variant text (<q>Gentle Introduction to</q>) is wrapped in a nesting <gi>app</gi> element, while the common text (<q>SGML</q>) appears as plain text inside the grouping <gi>rdg</gi> element.</p>
          <note type="summary">When so desired, related readings can be grouped using one of two mechanisms. The first one wraps a dedicated <gi>rdgGrp</gi> element around related readings. This element can only contain <gi>lem</gi> and <gi>rdg</gi> elements. A more sophisticated way of grouping readings is provided by using nesting <gi>app</gi> structures inside a <gi>rdg</gi> element.</note>
        </div>
        <div xml:id="appType">
          <head>Classification</head>
          <p>So far, the most elaborate encoding of the chapter’s title in the different text witnesses looks as follows:
            <figure xml:id="example13">
              <egXML xmlns="http://www.tei-c.org/ns/Examples">
                <app>
                  <rdg wit="#teiSGML #p4">
                    <app>
                      <rdg wit="#teiSGML">Chapter</rdg>
                      <rdg wit="#p4"/>
                    </app> 2 <app>
                      <rdg wit="#teiSGML">
                                                <lb/>
                                            </rdg>
                      <rdg wit="#p4"/>
                    </app>
                  </rdg>
                  <rdg wit="#p5">v <lb/>
                  </rdg>
                </app>
                <app>
                  <rdg wit="#teiSGML">
                    <app>
                      <rdg wit="#p2">GENTLE INTRODUCTION TO</rdg>
                      <rdg wit="#p3">Gentle Introduction to</rdg>
                    </app> SGML</rdg>
                  <rdg wit="#teiXML">Gentle Introduction to XML</rdg>
                </app>
              </egXML>
              <head type="legend">Heterogenous grouping of readings.</head>
            </figure>
          </p>
          <p>Admittedly, this organisation is not the most intuitive one, mostly because it mixes different perspectives: 
            <list rend="bulleted">
              <item>a content-oriented one in the first apparatus entry, grouping those variants with a common reading (i.e., the chapter number referred to)</item>
              <item>a genetic-oriented one in the second apparatus entry, grouping the readings according to the groups of witnesses (i.e., those occurring in the versions of the TEI Guidelines dealing with SGML or XML)</item>
            </list>
          </p>
          <p>However, this is not necessarily the most interesting perspective, for it obscures some obvious correspondences. For example, there is no way of deducting the correspondence between the <gi>lb</gi> reading occurring in three of the four witnesses, as it is <soCalled>buried</soCalled> in two different reading groups. There is no reason, however, not to reorganise these apparatus entries in more atomic units:
          <figure xml:id="example14">
            <egXML xmlns="http://www.tei-c.org/ns/Examples">
              <app>
                <rdg wit="#p2 #p3">Chapter</rdg>
                <rdg wit="#p4 #p5"/>
              </app>
              <app>
                <rdg wit="#p2 #p3 #p4">2</rdg>
                <rdg wit="#p5">v</rdg>
              </app>
              <app>
                <rdg wit="#p2 #p3 #p5">
                  <lb/>
                </rdg>
                <rdg wit="#p4"/>
              </app>
              <app>
                <rdg wit="#p2">GENTLE INTRODUCTION TO</rdg>
                <rdg wit="#p3 #p4 #p5">Gentle Introduction to</rdg>
              </app>
              <app>
                <rdg wit="#p2 #p3">SGML</rdg>
                <rdg wit="#p4 #p5">XML</rdg>
              </app>
            </egXML>
            <head type="legend">Atomic encoding of minimal stretches of variation.</head>
          </figure>
          </p>
          <p>One could argue that on closer examination, not all of these variants have the same <soCalled>status</soCalled>: some are more substantive than others. This may be pointed out at the level of the individual readings, by means of a <att>type</att> attribute. In this way, we could for example distinguish between <val>orthographic</val> readings (differing only in their spelling or presentation) and <val>substantive</val> readings (differing in meaning):
            <figure xml:id="example15">
              <egXML xmlns="http://www.tei-c.org/ns/Examples">
                <app>
                  <rdg wit="#p2 #p3" type="substantive">Chapter</rdg>
                  <rdg wit="#p4 #p5" type="substantive"/>
                </app>
                <app>
                  <rdg wit="#p2 #p3 #p4" type="substantive">2</rdg>
                  <rdg wit="#p5" type="substantive">v</rdg>
                </app>
                <app>
                  <rdg wit="#p2 #p3 #p5" type="orthographic">
                    <lb/>
                  </rdg>
                  <rdg wit="#p4" type="orthographic"/>
                </app>
                <app>
                  <rdg wit="#p2" type="orthographic">GENTLE INTRODUCTION TO</rdg>
                  <rdg wit="#p3 #p4 #p5" type="substantive">Gentle Introduction
                    to</rdg>
                </app>
                <app>
                  <rdg wit="#p2 #p3" type="substantive">SGML</rdg>
                  <rdg wit="#p4 #p5" type="substantive">XML</rdg>
                </app>
              </egXML>
              <head type="legend">Categorising individual readings with <att>type</att> on <gi>rdg</gi>.</head>
            </figure>
          </p>
          <p>With this distinction in place, the type of reading could be adopted as guiding principle to derive larger stretches of variation: only when two subsequent variants only have orthographically different readings, they can be merged to one apparatus entry. Notice also, how in this case all readings for the different apparatus entries share the same type. This can be encoded at the higher level of the apparatus entry as well, simply by providing a <att>type</att> attribute for the <gi>app</gi> element:
            <figure xml:id="example16">
              <egXML xmlns="http://www.tei-c.org/ns/Examples">
                <app type="substantive">
                  <rdg wit="#p2 #p3 #p4">
                    <app>
                      <rdg wit="#p2 #p3">Chapter</rdg>
                      <rdg wit="#p4"/>
                    </app> 2 </rdg>
                  <rdg wit="#p5">v</rdg>
                </app>
                <app type="orthographic">
                  <rdg wit="#p2 #p3 #p5">
                    <lb/>
                  </rdg>
                  <rdg wit="#p4"/>
                </app>
                <app type="orthographic">
                  <rdg wit="#p2">GENTLE INTRODUCTION TO</rdg>
                  <rdg wit="#p3 #p4 #p5">Gentle Introduction to</rdg>
                </app>
                <app type="substantive">
                  <rdg wit="#p2 #p3">SGML</rdg>
                  <rdg wit="#p4 #p5">XML</rdg>
                </app>
              </egXML>
              <head type="legend">Categorising variants with <att>type</att> on <gi>app</gi>.</head>
            </figure>
          </p>
          <p>The <gi>rdgGrp</gi>, too, can have a <att>type</att> attribute for specifying the nature of the group of readings it holds. For example, we could revisit the earlier grouping example using <gi>rdgGrp</gi>:
            <figure xml:id="example17">
              <egXML xmlns="http://www.tei-c.org/ns/Examples">
                <app>
                  <rdg type="substantive">Chapter 2 <lb/>
                                    </rdg>
                  <rdgGrp type="substantive">
                    <rdg wit="#p4">2</rdg>
                    <rdg wit="#p5">v <lb/>
                    </rdg>
                  </rdgGrp>
                </app>
                <app>
                  <rdgGrp type="orthographic">
                    <rdg wit="#p2">GENTLE INTRODUCTION TO SGML</rdg>
                    <rdg wit="#p3">Gentle Introduction to SGML</rdg>
                  </rdgGrp>
                  <rdg wit="#teiXML" type="substantive">Gentle Introduction to
                    XML</rdg>
                </app>
              </egXML>
              <head type="legend">Categorising variants with <att>type</att> on <gi>rdgGrp</gi>.</head>
            </figure>
          </p>
          <note type="summary">The readings inside <gi>rdg</gi> and <gi>lem</gi> can be categorised with a <att>type</att> attribute, in order to indicate what type of variant they contain. When readings are grouped using <gi>rdgGrp</gi>, the <att>type</att> attribute equally can indicate what type of variants the reading group consists of. When an apparatus entry only contains variants of the same type, this may be expressed by the <att>type</att> attribute at the <gi>app</gi> level.</note>
        </div>
        <div xml:id="rdgDetails">
          <head>Reading Details</head>
          <p>Besides witness (<att>wit</att>) and type information (<att>type</att>), readings and lemmas can provide more information about the readings they hold, in dedicated attributes. One type of information that is particularly useful for critical editions of manuscript source materials, is the identification of a document hand that is responsible for a certain reading, especially when its text witness has been written by different hands. This can be expressed in a <att>hand</att> attribute, which points to the definition of that hand in the TEI header (see <ptr type="crossref" target="TBED02v00.htm#handNotes"/>). This could be applied to our example texts: although the TEI Guidelines are not manuscripts, they are written collaboratively by a team of editors who could be considered document hands. Suppose that we could determine who was responsible for what change in the different versions included in our example critical edition, this could be encoded as follows:
            <figure xml:id="example18">
              <egXML xmlns="http://www.tei-c.org/ns/Examples">
                <teiHeader>
                  <!-- ... -->
                  <profileDesc>
                    <handNotes>
                      <handNote xml:id="MSMQ">Michael Sperberg-McQueen</handNote>
                      <handNote xml:id="LB">Lou Burnard</handNote>
                      <handNote xml:id="SB">Syd Bauman</handNote>
                      <handNote xml:id="SR">Sebastian Rahtz</handNote>
                    </handNotes>
                  </profileDesc>
                  <!-- ... -->
                </teiHeader>
                <!-- ... -->
                <app>
                  <rdg wit="#p2" hand="#MSMQ">Chapter 2 <lb/>
                                    </rdg>
                  <rdg wit="#p3">Chapter 2 <lb/>
                                    </rdg>
                  <rdg wit="#p4" hand="#SB">2</rdg>
                  <rdg wit="#p5" hand="#SR">v <lb/>
                                    </rdg>
                </app>
                <app>
                  <rdg wit="#p2" hand="#LB">GENTLE INTRODUCTION TO SGML</rdg>
                  <rdg wit="#p3">Gentle Introduction to SGML</rdg>
                  <rdg wit="#p4" hand="#SB">Gentle Introduction to XML</rdg>
                  <rdg wit="#p5">Gentle Introduction to XML</rdg>
                </app>
              </egXML>
              <head type="legend">Providing information on hands for individual readings.</head>
            </figure>
          </p>
          <p>Of course this attribution is subject to a greater or lesser deal of interpretation (especially in this contrived example). Therefore, it makes sense to indicate who is responsible for this interpretation. This can be expressed in a <att>resp</att> attribute, which can point to an individual responsible for some aspects of the digital edition, as identified in the TEI header (see <ptr type="crossref" target="TBED02v00.htm#titleStmt"/>). As always, the <att>resp</att> attribute applies to all aspects of the element it is attached to, and can equally be used to indicate the responsibility for an unsure transcription of a reading. As the hand attribution in the previous example can be considered quite putative, it makes sense to provide responsibility information as well:
            <figure xml:id="example19">
              <egXML xmlns="http://www.tei-c.org/ns/Examples">
                <teiHeader>
                  <fileDesc>
                    <titleStmt>
                      <title>The TEI Guidelines, an electronic critical
                        edition</title>
                      <editor xml:id="TBEcrew">The TBE crew</editor>
                      <!-- ... -->
                    </titleStmt>
                    <!-- ... -->
                  </fileDesc>
                  <!-- ... -->
                  <profileDesc>
                    <handNotes>
                      <handNote xml:id="MSMQ">Michael Sperberg-McQueen</handNote>
                      <handNote xml:id="LB">Lou Burnard</handNote>
                      <handNote xml:id="SB">Syd Bauman</handNote>
                      <handNote xml:id="SR">Sebastian Rahtz</handNote>
                    </handNotes>
                  </profileDesc>
                  <!-- ... -->
                </teiHeader>
                <!-- ... -->
                <app>
                  <rdg wit="#p2" hand="#MSMQ" resp="#TBEcrew">Chapter 2 <lb/>
                                    </rdg>
                  <rdg wit="#p3">Chapter 2 <lb/>
                                    </rdg>
                  <rdg wit="#p4" hand="#SB" resp="#TBEcrew">2</rdg>
                  <rdg wit="#p5" hand="#SR" resp="#TBEcrew">v <lb/>
                                    </rdg>
                </app>
                <app>
                  <rdg wit="#p2" hand="#LB" resp="#TBEcrew">GENTLE INTRODUCTION TO
                    SGML</rdg>
                  <rdg wit="#p3">Gentle Introduction to SGML</rdg>
                  <rdg wit="#p4" hand="#SB" resp="#TBEcrew">Gentle Introduction to
                    XML</rdg>
                  <rdg wit="#p5">Gentle Introduction to XML</rdg>
                </app>
              </egXML>
              <head type="legend">Stating responsibility for interpretations.</head>
            </figure>
          </p>
          <p>Using attributes on <gi>rdg</gi> holds the danger of overgeneralisation, as in following example:
            <figure xml:id="example20">
              <egXML xmlns="http://www.tei-c.org/ns/Examples" valid="false">
                <app>
                  <seg rend="incorrect">
                    <rdg wit="#p2 #p3" hand="#MSMQ" resp="#TBEcrew">Chapter 2 <lb/>
                                        </rdg>
                  </seg>
                  <rdg wit="#p4" hand="#SB" resp="#TBEcrew">2</rdg>
                  <rdg wit="#p5" hand="#SR" resp="#TBEcrew">v <lb/>
                                    </rdg>
                </app>
                <app>
                  <rdg wit="#p2" hand="#LB" resp="#TBEcrew">GENTLE INTRODUCTION TO SGML</rdg>
                  <rdg wit="#p3">Gentle Introduction to SGML</rdg>
                  <seg rend="incorrect">
                    <rdg wit="#teiXML" hand="#SB" resp="#TBEcrew">Gentle Introduction to XML</rdg>
                  </seg>
                </app>
              </egXML>
              <head type="legend">Imprecise attribution of reading details on <soCalled>collapsed</soCalled> <gi>rdg</gi> elements.</head>
            </figure>
          </p>
          <p>This example is incorrect because the first reading of the first apparatus entry overgeneralises the hand information for the <ident>p3</ident> witness, and the last reading of the last entry incorrectly attributes the hand information for the <ident>p5</ident> witness. It <emph>can</emph> be done, however, using a dedicated <gi>witDetail</gi> element, which is intended to provide more information about a specific reading in an apparatus entry. It must have a <att>wit</att> attribute, identifying the specific text witness it provides more information for. In order to anchor it to a specific <gi>rdg</gi> element, a <att>target</att> attribute can be used to point to the <att>xml:id</att> of the concerned <gi>rdg</gi> element. This implies that the reading concerned must be formally identified with an <att>xml:id</att> attribute. For example, the previous example could be corrected as:
            <figure xml:id="example21">
              <egXML xmlns="http://www.tei-c.org/ns/Examples">
                <app>
                  <rdg wit="#p2 #p3" xml:id="rdg1.1">Chapter 2 <lb/>
                                    </rdg>
                  <witDetail target="#rdg1.1" wit="#p2" resp="#TBEcrew">attributed to <ref target="#MSMQ">Michael Sperberg-McQueen</ref>
                                    </witDetail>
                  <rdg wit="#p4" hand="#SB" resp="#TBEcrew">2</rdg>
                  <rdg wit="#p5" resp="#TBEcrew">v <lb/>
                                    </rdg>
                </app>
                <app>
                  <rdg wit="#p2" hand="#LB" resp="#TBEcrew">GENTLE INTRODUCTION TO SGML</rdg>
                  <rdg wit="#p3">Gentle Introduction to SGML</rdg>
                  <rdg wit="#teiXML" xml:id="rdg2.3">Gentle Introduction to XML</rdg>
                  <witDetail target="#rdg2.3" wit="#p4" resp="#TBEcrew">attributed to <ref target="#SB">Syd Bauman</ref>
                                    </witDetail>
                </app>
              </egXML>
              <head type="legend">Providing more information about specific readings with <gi>witDetail</gi>.</head>
            </figure>
          </p>
          <p>The <gi>witDetail</gi> element is a specialised type of <gi>note</gi>, which means it can occur at many places in the document: either inline at the place of the reading needing further specification, or grouped together elsewhere in the document. The TEI Guidelines recommend to place this element inside <gi>app</gi>, immediately after the <gi>lem</gi> or <gi>rdg</gi> element it provides more information for.</p>
          <note type="summary">Lemma (<gi>lem</gi>) and readings (<gi>rdg</gi>) can be further qualified by means of attributes. The <att>resp</att> attribute can be used to identify the person responsible for the encoding of the reading, while the document hand responsible for that particular reading can be referred to in a <att>hand</att> attribute. When more detailed information is to be given for a particular reading in a particular text witness, this can be done in a <gi>witDetail</gi> element, whose <att>wit</att> attribute must point to the concerned text witness, and whose <att>target</att> attribute can be used to point to the identification code of the affected reading(s).</note>
        </div>
      </div>
        </body>
    <back>
      <div type="bibliography">
        <listBibl>
          <bibl xml:id="vanhoutte2009">
                        <author>Vanhoutte, Edward</author>, and <author>Ron Van den Branden</author>. <date>2009</date>. <title level="a">Describing, Transcribing, Encoding, and Editing Modern Correspondence Material: a Textbase Approach</title>. <title level="j">Literary and Linguistic Computing</title> <biblScope unit="volume">24</biblScope> (<biblScope unit="issue">1</biblScope>): <biblScope unit="page">77–98</biblScope>. <idno type="DOI">10.1093/llc/fqn035</idno>.</bibl>
        </listBibl>
      </div>
    </back>
  </text>
  <!--
    $Date: 2020-11-16 12:48:08 +0100 (Mon, 16 Nov 2020) $
    $Id: TBED07v00.xml 462 2020-11-16 11:48:08Z ron.vandenbranden $  -->
</TEI>