<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="../../../_utils/schema/yaps.rnc" type="application/relax-ng-compact-syntax"?>
<?xml-model href="../../../_utils/schema/yaps.isosch" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<?xml-stylesheet type="text/css" href="../../../_utils/stylesheets/yaps-tei.css"?>
<!-- $Id: customization_overview.xml 51709 2026-05-28 23:29:13Z syd $ -->
<TEI xmlns="http://www.wwp.northeastern.edu/ns/yaps">
  <teiHeader>
    <fileDesc>
      <titleStmt>
        <title>Overview of TEI Customization</title>
        <author xml:id="SB"><name>Syd Bauman</name></author>
        <author xml:id="JF"><name>Julia Flanders</name></author>
      </titleStmt>
      <editionStmt>
        <edition>Introduction to TEI Encoding and Schema Design, Northeastern University, 2018-04</edition>
      </editionStmt>
      <publicationStmt>
        <distributor>Women Writers Project (via website)</distributor>
        <address>
          <addrLine>url:mailto:wwp@northeastern.edu</addrLine>
        </address>
        <date when="2018-04-05"/>
        <availability status="restricted">
          <p>Copyright 2012 Syd Bauman, Julia Flanders, and the Women Writers Project</p>
          <p>This TEI-encoded XML file is available under the terms of the <ref
              target="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons
              Attribution-ShareAlike 3.0 (Unported)</ref> license.</p>
        </availability>
        <pubPlace>Boston, MA USA</pubPlace>
      </publicationStmt>
      <sourceDesc>
        <p>Based on <name type="file">customization_odd.xml</name>. This presentation is used as an
          introduction to the Taking TEI Further customization workshop, and serves as a general
          overview of customization from a conceptual perspective. It covers basic concepts of
          modeling and constraint, TEI under the hood, what you can customize, ODD processors.</p>
      </sourceDesc>
    </fileDesc>
    <revisionDesc>
      <change when="2023-07-13" who="#SB">Updated ODD processor page
        to reflect current reality. (E.g., Romaβ is now just Roma.)</change>
      <change when="2015-10-12" who="personography.xml#sstanley.fxj">Began adding tutorials</change>
      <change when="2015-01-24" who="#SB">added <name type="cmd">transformtei</name> to list of
        processors</change>
      <change when="2014-05-13T17:29:59" who="#SB">changed header info to reflect move to
        NEU</change>
      <change when="2014-05-13T17:00:46" who="#JF">significant updates</change>
      <change when="2012-06-25" who="#SB">Tweaked description of urbe as per
        customization_odd</change>
      <change when="2012-06-23" who="#JF">created file from customization_odd.xml</change>
    </revisionDesc>
  </teiHeader>
  <text>

    <presentation>
      <abstract>
        <p>This tutorial covers the basics of ODD editing and schema customization. It discusses why
          one may want or need to customize a new TEI schema, and how the TEI is structured, which
          will help in customizing documents. In particular, this tutorial covers modules and
          classes (the TEI’s mechanisms for grouping elements).</p>
      </abstract>
      <section>
        <head>Why Customization? TEI and the Universe of Document Genre</head>
        <slide>
          <figure>
            <graphic height="400px" url="../../../_utils/gfx/tei_areas.jpg"/>
          </figure>
        </slide>
        <lectureNote>
          <p>This workshop is about TEI customization: the process of creating a TEI schema that
            matches some particular goal.</p>
          <p>Lots of encoding languages are not customizable: why should the TEI be
            customizable?</p>
          <p>Customization of the TEI is motivated by two really important and distinctive things: <list>
              <item>The diverse disciplinary needs and concerns of the TEI community</item>
              <item>The goal of reconciling the need for a common encoding language with the need
                for expressiveness: the tension between egoism and altruism</item>
            </list> The TEI can't prescribe exactly what constraints its users will need, but it can
            provide a more general framework of options for us to work with. The customization
            process is the process of choosing among these options, selecting the pieces of the TEI
            that we need and eliminating the rest. </p>
        </lectureNote>
        <tutorial>
          <p>This tutorial is about TEI customization, which is the process of creating a TEI schema
            that matches our particular goals. Many encoding languages are not customizable, so why
            should the TEI have this feature?</p>
          <p>Customization of the TEI is motivated by two really important things: <list>
              <item>the diverse disciplinary needs and concerns of the TEI community</item>
              <item>The goal of reconciling the need for a common encoding language with the need
                for expressiveness</item>
            </list>
          </p>
          <p>The TEI can't prescribe exactly what constraints its users will need, but it can
            provide the general framework of options for us to work with. Customization is the
            process of choosing among these options, selecting which pieces of the TEI we need, and
            eliminating the rest. </p>
        </tutorial>
      </section>

      <section>
        <head>Constraint?</head>
        <slide>
          <table>

            <row>
              <cell>
                <figure>
                  <head>Go / no-go gauge</head>
                  <figDesc>An image of a <name>gap style go nogo gauge</name>, for external
                    measurements (such as the diameter of a shaft being produced by a lathe). It
                    looks sort of like a small C-clamp with two <soCalled>jaws</soCalled> (instead
                    of just one).</figDesc>
                  <graphic url="../../../_utils/gfx/snap_go_no-go_gauge.jpg" height="200px"/>
                  <!-- graphic url="http://upload.wikimedia.org/wikipedia/commons/b/b0/GaugeGapPlainGoNoGo.jpg"/ -->
                </figure>
              </cell>
              <cell>
                <figure>
                  <graphic url="../../../_utils/gfx/tailoring.jpg" height="200px"/>
                </figure>
              </cell>
              <cell>
                <figure>
                  <graphic url="../../../_utils/gfx/corset.jpg" height="200px"/>
                </figure>
              </cell>
              <cell>
                <figure>
                  <graphic url="../../../_utils/gfx/american-cuts-of-beef.jpg" height="200px"/>
                </figure>
              </cell>
            </row>
          </table>
        </slide>
        <lectureNote>
          <p>There are many different ways we can think about what customization is doing for us,
            and all of them have something to do with constraint.</p>
          <p>Constraint is another way of talking about modeling our data: describing it,
            prescribing how it should be structured, making sure that the parts we need are there,
            avoiding unnecessary cruft.</p>
          <p>The idea of using a <term>constraint</term>, that is <gloss>something that keeps things
              within close bounds, confines</gloss>, in a manufacturing workflow is not new. And
            face it, that's what we're doing — manufacturing texts. In the mid-19th century American
            manufacturers combined the concepts of division of labor with the idea of
            interchangeable parts — which require constraint and validation.</p>
          <p>On the left here is an example of a constraint validator for use in manufacturing ߞ
            metalwork in this case. This is a <name>gap style go nogo gauge</name>, used to
            determine that a part is the proper size. Notice that it has two aperatures. So, e.g., to
            check that the barrel of the gun is of the right diameter, the assembly line worker
            tries to slide the barrel into the gap. If it doesn't fit the first aperature, he says
              <said>my barrel is too wide</said>; if it slides past the second aperature, he says
              <said>my barrel is too narrow</said>; if it slides past the first but not the second,
            he says <said>my barrel is just right</said>.</p>
          <p>We do the same thing with a schema: our document is the barrel, the schema is the
              <name>go / no-go gauge</name>; if our document doesn't get past the first aperature,
            it has some unrecognized elements or structures; if it goes past the second aperature it
            is missing some required elements.</p>
          <p>That analogy really describes schemas in a general way: even an uncustomized schema can
            serve as a gauge in this way. You can also think of customization as a way of taking
            something that is quite generic and tailoring it more closely to your own needs. The TEI
            in its raw state isn't intended to be the right size and shape for anyone; it's through
            the customization process that we create a <soCalled>good fit</soCalled>, sort of like
            taking an off-the-rack suit of clothes and tailoring it to our own measurements.</p>
          <p>As the next image suggests, this is also a process that can be misapplied: the
            customization process gives us a mechanism for producing very ill-fitting schemas, as
            well as very well-fitting ones, and in these cases our schemas end up shaping us rather
            than fitting us, somewhat like a corset. (And in some cases this may be what we
            want.)</p>
          <p>Another way of thinking about customization is as a specification for how to cut up our
            data: what are the chunks we're going to represent, and how fine-grained or
            coarse-grained our representations will be. The analogy here is to a cut sheet that you
            use in specifying the butchering of an animal to turn its anatomy into food. In its raw
            form, a cow doesn't consist of steaks and roasts any more than a document consists of
            stanzas or sentences. When we butcher the cow, we turn it into parts that match our
            culinary needs, and in the same way when we encode a text, we turn it into parts that
            match our analytical needs. The customization is the mechanism by which we express what
            those parts are.</p>
        </lectureNote>
        <tutorial>
          <p>There are many different ways we can think about what customization affords us, and all
            of them have something to do with constraint. Constraint is another way of talking about
            modeling our data: describing it, prescribing how it should be structured, making sure
            the parts we need are there, and avoiding unnecessary and excess materials.</p>
          <p>The idea of using a <emph>constraint</emph>, that is something that keeps things within
            close bounds, confines, in a manufacturing workflow is not new. And face it, that's what
            we're doing — manufacturing texts. In the mid-19th century American manufacturers
            combined the concepts of division of labor with the idea of interchangeable parts —
            which require constraint and validation.</p>
          <p>On the left here is an example of a constraint validator for use in manufacturing
            metalwork. This is a gap style go/no-go gauge, used to determine whether a part is the
            proper size. Notice that it has two pieces meant to test the size. To check that the
            barrel of the gun is of the right diameter, the assembly line worker tries to slide the
            barrel into the gap. If it doesn't fit the first metal block, he says my barrel is too
            wide; if it slides past the second block, he says my barrel is too narrow; if it slides
            past the first but not the second, he says my barrel is just right.</p>
          <p>We do the same thing with a schema. If our document is the barrel, the schema is the go
            / no-go gauge. When our document doesn't get past the first piece, it has some
            unrecognized elements or structures; if it goes past the second piece it is missing some
            required elements.</p>
          <p>That analogy really describes schemas in a general way: even an uncustomized schema can
            serve as a gauge in this way. You can also think of customization as a way of taking
            something that is quite generic and tailoring it more closely to your own needs. The TEI
            in its raw state isn't intended to be the right size and shape for anyone; it's through
            the customization process that we create a good fit, sort of like taking an off-the-rack
            suit of clothes and tailoring it to our own measurements.</p>
          <p>As the third image suggests, this is also a process that can be misapplied: the
            customization process gives us a mechanism for producing very ill-fitting schemas, as
            well as very well-fitting ones, and in these cases our schemas end up shaping us rather
            than fitting us, somewhat like a corset. (And in some cases this may be what we
            want.)</p>
          <p>Another way of thinking about customization is as a specification for how to cut up our
            data: what are the chunks we're going to represent, and how fine-grained or
            coarse-grained our representations will be. The analogy here is to a cut sheet that you
            use in specifying the butchering of an animal to turn its anatomy into food. In its raw
            form, a cow doesn't consist of steaks and roasts any more than a document consists of
            stanzas or sentences. When we butcher the cow, we turn it into parts that match our
            culinary needs, and in the same way when we encode a text, we turn it into parts that
            match our analytical needs. The customization is the mechanism by which we express what
            those parts are.</p>
        </tutorial>
      </section>

      <section>
        <head>Constraint in XML</head>
        <slide>
          <p>A schema: <list>
              <item>defines a vocabulary and a grammar</item>
              <item>provides formal enforcement of constraints</item>
            </list>
          </p>
        </slide>
        <lectureNote>
          <p>How does constraint actually work in the context of XML? We use a thing called a
            schema:</p>
          <list>
            <item>defines a vocabulary and a grammar for our encoding language</item>
            <item>provides formal enforcement of our constraints</item>
            <item>metaphorically, we could think of the schema as a gauge, a corset, a
              specification, a cut sheet</item>
          </list>
          <p>We can approach constraint either predictively, trying to prescribe the exact
            structures we want in our data, or preventively, by trying to prohibit specific kinds of
            errors. </p>

        </lectureNote>
        <tutorial>
          <p>So how does constraint actually work in the context of XML, practically? We use a
            schema, which defines a vocabulary and a grammar for our encoding language and provides
            formal enforcement of our constraints. Metaphorically, we could think of the schema as
            the gauge, corset, or cut sheet of the previous slide.</p>
          <p>We can approach constraint either predictively (trying to prescribe the exact
            structures we want in our data) or preventively (trying to prohibit specific kinds of
            errors).</p>
        </tutorial>
      </section>

      <section>
        <head>The TEI Guidelines</head>
        <slide>
          <p>Let's take a look at the <ref
              target="http://www.tei-c.org/release/doc/tei-p5-doc/en/html/REF-ELEMENTS.html">TEI
              Guidelines</ref> &#x2026;</p>
        </slide>
        <lectureNote>
          <p>The TEI Guidelines is a constraint system: a grammar and a vocabulary for an encoding
            language</p>
          <p>When we encounter the Guidelines as encoders, this is what we see: a big huge list of
            elements (vocabulary we can use in describing documents) with definitions of these
            elements that tell us how they should be used</p>
          <p>However, if we look closely, we can see that there's some additional information in
            here as well (module information, class information)</p>
          <p>What's the function of this information? Why would it matter that a given element
            belongs to a class of similar elements?</p>
        </lectureNote>
        <tutorial>
          <p>The TEI Guidelines is its own constraint system—a grammar and vocabulary for an
            encoding language. If you click on the link, you can see what the Guidelines look like.
            When we encounter the Guidelines as encoders, this is what we see: a big list of
            elements (vocabulary we can use in describing documents) with definitions of these
            elements that tell us how they should be used.</p>
          <p>However, if we look closely, we can see that there is some additional information here
            as well. This information (like the module and class information) is useful for
            customization, and it's what we will elucidate in the following slides.</p>
        </tutorial>
      </section>

      <section>
        <head>A Designer's View of the TEI</head>
        <slide>
          <figure>
            <graphic width="100%" url="../../../_utils/gfx/floorplans.png"/>
            <!-- http://www.klaustueshaus.com/travel/usa2008/day02/02_asm_map_2.jpg -->
          </figure>
        </slide>
        <lectureNote>
          <p>Think of how we experience a building when we're just walking around in it: we can go
            into rooms, adjust the lighting and temperature, etc.</p>
          <p>Think of how we experience a building when we are the architect or the building
            manager: we see it from a much more structural perspective: we understand things like
            why all of the bathrooms are next to the elevator, stacked on top of one another, or
            what electrical circuits control the lights versus the computers</p>
          <p>That structural perspective is the one we need to take as we move from being just
              <emph>encoders</emph> to being <emph>designers of encoding systems</emph>. So what
            kinds of knowledge do we need in order to get that perspective?</p>
        </lectureNote>
        <tutorial>
          <p>Think about how we experience a building when we're just walking around it. We can go
            into rooms, adjust the lighting and temperature, etc.</p>
          <p>Now think about how we would experience the building if we were an architect or the
            building manager. Instead, we would see it from a much more structural perspective. We
            would understand things like why all the bathrooms in a large building were stacked on
            top of one another (for plumbing purposes) or which electrical circuits control the
            lights or the computers.</p>
          <p>That structural perspective is the one we need to take us as we move from being just
              <emph>encoders</emph> to being designers of <emph>encoding systems</emph>. The
            following will teach us about the organizational systems that will give us that
            perspective.</p>
        </tutorial>
      </section>

      <section>
        <head>TEI Organization — elements</head>
        <slide>
          <figure>
            <graphic width="100%" url="../../../_utils/gfx/tei_as_lego.png"/>
          </figure>
        </slide>
        <lectureNote>
          <p>That process we illustrated in the previous slide can seem very detailed, and it is: in
            creating a good, tight customization that really reflects our data accurately, we may
            potentially be making changes that affect hundreds of elements and attributes. However,
            there are some mechanisms that make it easier; in fact, the TEI is designed precisely to
            make this process more efficient. </p>
          <p>So in order to understand the customization process, it's helpful to have some
            understanding of how the TEI is organized internally. We'll go over the specifics in a
            bit more detail as we go along, but at this early stage we'd like to give you a
            conceptual look at how the TEI works, and establish some basic terminology. </p>
          <p>TEI is a huge language made up of lots of stuff … like a natural language one of the
            most important building blocks are the things being dealt with, the nouns, in our case
            the elements.</p>
          <p>TEI has some 585 elements and a very large number of attributes. In order for humans to
            get a handle on these and be able to think of them without suffering from brain
            overload, it is very helpful to divide them up into sets or groupings. TEI does this in
            two ways … <list>
              <item>it groups them into <term>modules</term> that represent the kinds of texts or
                features being represented: for instance, poetry, or manuscripts, or dictionaries, </item>
              <item>and it groups them into <term>classes</term> that divide them by their
                functions, by the kinds of things the elements can do: for instance, elements that
                are parts of bibliographic items, or attributes that are needed on pointing
                elements.</item>
            </list> We're going to talk a bit more about TEI classes tomorrow, and also at the end
            of the workshop if we have time.</p>
        </lectureNote>
        <tutorial>
          <p>The process we illustrated in the previous slide can seem very detailed, and it is. In
            creating a good, tight customization that really reflects our data accurately, we may
            potentially be making changes that affect hundreds of elements and attributes. However,
            there are some mechanisms that make it easier; in fact, the TEI is designed precisely to
            make this process more efficient.</p>
          <p>So in order to understand the customization process, it's helpful to have some
            understanding of how the TEI is organized internally. We'll go over the specifics in a
            bit more detail as we go along, but at this early stage we'd like to give you a
            conceptual look at how the TEI works, and establish some basic terminology.</p>
          <p>TEI is a huge language made up of lots of stuff. Like a natural language, one of the
            most important building blocks are the things being dealt with, the nouns, in our case
            the elements.</p>
          <p>TEI has some 547 elements and a very large number of attributes. In order for humans to
            get a handle on these and be able to think of them without suffering from brain
            overload, it is very helpful to divide them up into sets or groupings. TEI does this in
            two ways:</p>
          <p>First, it groups them into <term>modules</term> that represent the kinds of texts or
            features being represented: for instance, poetry, or manuscripts, or dictionaries.</p>
          <p>Second, it groups them into <term>classes</term> that divide them by their functions,
            by the kinds of things the elements can do: for instance, elements that are parts of
            bibliographic items, or attributes that are needed on pointing elements.</p>
        </tutorial>
      </section>

      <section>
        <head>TEI Organization — modules</head>
        <slide>
          <figure>
            <graphic width="100%" url="../../../_utils/gfx/TEI_modules_simple.png"/>
          </figure>
        </slide>
        <lectureNote>
          <p>You can think of modules as being something like Lego kits for making specific kinds of
            things (like helicopters or castles). When you buy Lego, you can get a starter set with
            all the basic stuff: this is like the TEI's basic modules (the ones you absolutely have
            to have: the core, the header, the text structure, and the TEI module itself). With the
            basic module/starter kit you can make all sorts of basic things, but if you want to
            build a helicopter you need the rotor and the landing gear and so on, and you get these
            by getting the helicopter kit. Similarly, in TEI if you want to encode drama you need
            the drama module (which gives you castlists and other drama-specific things). </p>
          <p>You could also think of modules as being like a way of shopping at the grocery store:
            when you want to make some particular thing like Thai curry that requires specialized
            ingredients, a modules is like a handy shopping bag that contains all the things you
            need, pre-packaged.</p>
          <p>Each module corresponds to a TEI chapter, and each element belongs to one and only one
            module.</p>
          <p>In TEI customization, we start by choosing the modules that we need for the kinds of
            texts we're going to encode. </p>
        </lectureNote>
        <tutorial>
          <p>You can think of modules as being something like Lego kits for making specific kinds of
            things (like helicopters or castles). When you buy Lego, you can get a starter set with
            all the basic stuff: this is like the TEI's basic modules (the ones you absolutely have
            to have: the core, the header, the text structure, and the TEI module itself). With the
            basic module/starter kit you can make all sorts of basic things, but if you want to
            build a helicopter you need the rotor and the landing gear and so on, and you get these
            by getting the helicopter kit. Similarly, in TEI if you want to encode drama you need
            the drama module (which gives you cast lists and other drama-specific things).</p>
          <p>Each module corresponds to a chapter in the TEI guidelines, and each element belongs to
            one and only one module. In TEI customization, we start by choosing the modules that we
            need for the kinds of texts we're going to encode.</p>
        </tutorial>
      </section>

      <section>
        <head>TEI architecture: the class system</head>
        <slide>
          <figure>
            <graphic url="../../../_utils/gfx/lego_misc2.jpg"/>
          </figure>
        </slide>
        <lectureNote>
          <p>So let's do a thought experiment. Imagine a huge heap of Lego. If we wanted to organize
            it somehow, what are the qualities we might use? What are the groupings that might be
            useful to us as users of Lego in building things, so that we could lay our hands on the
            pieces we need at any time?</p>
          <p>Now let's do the same thing for the TEI elements. What are the groupings that would be
            helpful to us? Think architecturally: if we're trying to model a document in the way
            that we model a building, what are the kinds of elements that might need to be grouped
            together?</p>
          <p>We can think of the TEI class system as a way of grouping together elements that behave
            in the same way: that tend to go in the same place (like water fountains and bathrooms,
            or like all the overhead lights in a room of your house being on the same circuit). </p>
          <p>Attribute classes are very similar: they are groupings of attributes that are related
            (so that when you want one of them, you typically want most of them).</p>
        </lectureNote>
        <tutorial>
          <p>So let's do a thought experiment. Imagine a huge heap of Lego. If we wanted to organize
            it somehow, what are the qualities we might use? What are the groupings that might be
            useful to us as users of Lego in building things, so that we could lay our hands on the
            pieces we need at any time? Perhaps we would group them by function so that all of the
            wide Legos which could be used as a base were in one pile, and all of the various types
            of attachments that went up top were in another.</p>
          <p>Now let's do the same thing for the TEI elements. What are the groupings that would be
            helpful to us? Think architecturally: if we're trying to model a document in the way
            that we model a building, what are the kinds of elements that might need to be grouped
            together?</p>
          <p>We can think of the TEI class system as a way of grouping together elements that behave
            in the same way: that tend to go in the same place (like water fountains and bathrooms,
            or like all the overhead lights in a room of your house being on the same circuit).</p>
          <p>Attribute classes are very similar: they are groupings of attributes that are related
            (so that when you want one of them, you typically want most of them).</p>
        </tutorial>
      </section>
      <section>
        <head>Examples</head>
        <slide>
	  <p>Mix-and-match exercise: match the class name in the left
	  column with the lists in the right column.</p>
          <table style="empty-cells: show;border-collapse: collapse; border: 2px solid;">
            <row>
              <cell style="border-collapse: collapse; border: 2px solid black; padding: 0.5ex;"
                >att.typed</cell>
              <cell style="border-collapse: collapse; border: 2px solid black; padding: 0.5ex;"
                  ><gi>closer</gi>, <gi>postscript</gi>, <gi>signed</gi>, <gi>trailer</gi></cell>
            </row>
            <row>
              <cell style="border-collapse: collapse; border: 2px solid black; padding: 0.5ex;"
                >model.divBottomPart</cell>
              <cell style="border-collapse: collapse; border: 2px solid black; padding: 0.5ex;"
                  ><gi>abbr</gi>, <gi>am</gi>, <gi>corr</gi>, <gi>ex</gi>, <gi>expan</gi>,
                  <gi>orig</gi>, <gi>reg</gi>, <gi>seg</gi>, <gi>sic</gi>, <gi>unclear</gi></cell>
            </row>
            <row>
              <cell style="border-collapse: collapse; border: 2px solid black; padding: 0.5ex;"
                >att.measurement</cell>
              <cell style="border-collapse: collapse; border: 2px solid black; padding: 0.5ex;"
                  ><gi>bibl</gi>, <gi>biblFull</gi>, <gi>biblStruct</gi>, <gi>listBibl</gi>,
                  <gi>msDesc</gi></cell>
            </row>
            <row>
              <cell style="border-collapse: collapse; border: 2px solid black; padding: 0.5ex;"
                >model.choicePart</cell>
              <cell style="border-collapse: collapse; border: 2px solid black; padding: 0.5ex;"
                >@type, @subtype</cell>
            </row>
            <row>
              <cell style="border-collapse: collapse; border: 2px solid black; padding: 0.5ex;"
                >att.global</cell>
              <cell style="border-collapse: collapse; border: 2px solid black; padding: 0.5ex;"
                  ><gi>addSpan</gi>, <gi>damageSpan</gi>, <gi>delSpan</gi>, <gi>gap</gi>,
                  <gi>space</gi>, <gi>alt</gi>, <gi>altGrp</gi>, <gi>certainty</gi>, <gi>fLib</gi>,
                  <gi>fs</gi>, <gi>fvLib</gi>, <gi>index</gi>, <gi>interp</gi>, <gi>interpGrp</gi>,
                  <gi>join</gi>, <gi>joinGrp</gi>, <gi>link</gi>, <gi>linkGrp</gi>,
                  <gi>listTranspose</gi>, <gi>precision</gi>, <gi>respons</gi>, <gi>span</gi>,
                  <gi>spanGrp</gi>, <gi>substJoin</gi>, <gi>timeline</gi>, <gi>incident</gi>,
                  <gi>kinesic</gi>, <gi>pause</gi>, <gi>shift</gi>, <gi>vocal</gi>,
                <gi>writing</gi>, <gi>anchor</gi>, <gi>cb</gi>, <gi>fw</gi>, <gi>gb</gi>,
                  <gi>lb</gi>, <gi>milestone</gi>, <gi>pb</gi>, <gi>note</gi>, <gi>witDetail</gi>,
                  <gi>figure</gi>, <gi>metamark</gi>, <gi>notatedMusic</gi></cell>
            </row>
            <row>
              <cell style="border-collapse: collapse; border: 2px solid black; padding: 0.5ex;"
                >model.biblLike</cell>
              <cell style="border-collapse: collapse; border: 2px solid black; padding: 0.5ex;"
                >@unit, @quantity, @commodity</cell>
            </row>
            <row>
              <cell style="border-collapse: collapse; border: 2px solid black; padding: 0.5ex;"
                >model.milestoneLike</cell>
              <cell style="border-collapse: collapse; border: 2px solid black; padding: 0.5ex;"
                >@xml:id, @n, @xml:lang, @rend, @style, @rendition, @xml:base, @xml:space, @corresp,
                @synch, @sameAs, @copyOf, @next, @prev, @exclude, @select, @ana, @facs,
                @change</cell>
            </row>
            <row>
              <cell style="border-collapse: collapse; border: 2px solid black; padding: 0.5ex;"
                >model.global</cell>
              <cell style="border-collapse: collapse; border: 2px solid black; padding: 0.5ex;"
                  ><gi>anchor</gi>, <gi>cb</gi>, <gi>fw</gi>, <gi>gb</gi>, <gi>lb</gi>,
                  <gi>milestone</gi>, <gi>pb</gi></cell>
            </row>
          </table>
        </slide>
        <lectureNote>
          <p>Let's look at some examples (table to match names and descriptions): <list>
              <item>authorLike</item>
              <item>biblPart</item>
              <item>divTopPart and divBottomPart</item>
              <item>global</item>
              <item>milestoneLike</item>
              <item>att.typed</item>
            </list>
          </p>
        </lectureNote>
        <tutorial>
          <p>TEI element and attribute classes are relatively intuitive. Take a minute to match up
            the classes on the left with the groups of elements and attributes on the right.</p>
          <list>
            <head>Answers:</head>
            <item>att.typed matches to <att>type</att> and <att>subtype</att>. This is an attribute
              class that contains type-like classifications</item>
            <item>model.divBottomPart matches to <gi>closer</gi>, <gi>postscript</gi>,
                <gi>signed</gi>, and <gi>trailer</gi>. This model class groups elements that are
              found at the bottoms or ends of <gi>div</gi>s.</item>
            <item>att.measurement contains <att>unit</att>, <att>quantity</att> and
                <att>commodity</att>, all of which are attributes provide information about
              measurements.</item>
            <item>model.choicePart matches to <gi>abbr</gi>, <gi>am</gi>, <gi>corr</gi>,
              <gi>ex</gi>, etc. since these are all elements that are found inside of
                <gi>choice</gi></item>
            <item>att.global matches to <att>xml:id</att>, <att>n</att>, <att>xml:lang</att>, etc.
              These are global attributes since they can apply to any TEI element</item>
            <item>model.biblLike matches to <gi>bibl</gi>, <gi>biblFull</gi>, <gi>biblStruct</gi>,
                <gi>listBibl</gi>, and <gi>msDesc</gi>. These all resemble bibliographic citations,
              so they belong in the model class related to <gi>bibl</gi></item>
            <item>model.milestoneLike contains <gi>anchor</gi>, <gi>cb</gi>, <gi>fw</gi>,
                <gi>gb</gi>, <gi>lb</gi>, <gi>milestone</gi>, and <gi>pb</gi>. All of these act like
              milestones, which mark repeated boundary points in the text.</item>
            <item>model.global is the final option left (the very long list of elements). These are
              elements that can occur anywhere within a document, and are <q>global</q>
              elements</item>
          </list>
        </tutorial>
      </section>

      <section>
        <head>Customization options</head>
        <slide>
          <!--<figure>
            <graphic height="400px" url="../../../_utils/gfx/customizing_the_tree.png"/>
          </figure>-->
          <p>Options for customization: <list>
              <item>Select modules</item>
              <item>Delete unnecessary elements</item>
              <item>Add new elements or attributes</item>
              <item>Change element or attribute names</item>
              <item>Constrain attribute values</item>
              <item>Constrain structure</item>
              <item>Manipulate functional groupings of elements</item>
              <item>Produce an internationalized version of the TEI</item>
            </list>
          </p>
        </slide>
        <lectureNote>
          <p>There are a number of very useful things you can do by customizing the TEI, and a
            number of you have probably already discovered in your own projects: <list>
              <item>Select modules</item>
              <item>Delete unnecessary elements</item>
              <item>Add new elements or attributes</item>
              <item>Change element or attribute names</item>
              <item>Constrain attribute values</item>
              <item>Constrain structure</item>
              <item>Manipulate functional groupings of elements</item>
              <item>Produce an internationalized version of the TEI</item>
            </list>
          </p>
          <p>Customization doesn't just accomplish these changes to the schema: it does so in a way
            that documents and formalizes the changes (even multilingually, if desired). Besides
            being essential for comprehension and consistent local application, this means the
            changes can be communicated to other people, other projects</p>
          <p>Groups of projects can develop common customizations that are shared and published</p>
          <p>Projects can customize other projects' customizations</p>
          <p>Customizations can be developed for specific disciplines</p>
        </lectureNote>
        <tutorial>
          <p>There are a number of very useful things you can do by customizing the TEI. For
            example, you can</p>
          <list>
            <item><label>Select modules</label> (and delete complete modules you don't need). If you
              are doing a project on drama, you probably won't need the module for encoding
              dictionaries, so you can delete the dictionaries module entirely.</item>
            <item><label>Delete unnecessary elements</label>. This is a slightly more refined method
              than hacking off complete modules. So perhaps you are working with drama, but only
              with Restoration drama. In this case, you probably wouldn't need the elements meant
              for encoding screenplays (such as camera or caption), and you can delete these
              elements.</item>
            <item><label>Add new elements or attributes</label>. Perhaps you are interested in
              encoding references to the names of ships in your text. You could then add a
                <gi>shipName</gi> element instead of constantly typing out <tag>name
                type="ship"</tag>. You could also add the attribute <att>pirate</att> with the
              possible values of <val>yes</val> or <val>no</val> to record whether the vessel was a
              pirate ship.</item>
            <item><label>Change element or attribute names</label>. You can also take elements the
              TEI provides and change their names to better suit your definition of them. For
              example, the WWP uses the element <gi>docRole</gi> instead of <gi>docAuthor</gi>
              because the project wanted to record the many ways that people could contribute to the
              creation of a document, not just through authorship.</item>
            <item><label>Constrain attribute values</label>. You can create a controlled list of
              values for your attributes, so that your documents remain consistent (also control for
              spelling variation or typos)</item>
            <item><label>Constrain structure</label>. This allows you to limit where certain
              elements can go. So, for example, if you were to create an ODD customization for
              recipes, you could make sure that the ingredients list always came before the method
              section.</item>
            <item><label>Manipulate functional groupings of elements</label>. This means that you
              can change which elements behave in similar ways. For example, the TEI defines notated
              music as a global element (meaning it can go anywhere in your document), but perhaps
              your music only comes at the ends of chapters. You can change the class subscription
                <gi>notatedMusic</gi> so that it is a part of model.divBottomPart, which means that
              it can only come at the end of divisions.</item>
            <item><label>Produce an internationalized version of the TEI</label>. Make a version of
              the TEI that isn't heavily English-language!</item>
          </list>
          <p>Customization doesn't just accomplish these changes to the schema: it does so in a way
            that documents and formalizes the changes (even multilingually, if desired). Besides
            being essential for comprehension and consistent local application, this means the
            changes can be communicated to other people and other projects</p>
          <p>Groups of projects can develop common customizations that are shared and published.
            Projects can customize other projects' customizations. Customizations can be developed
            for specific disciplines.</p>
        </tutorial>
      </section>

      <section>
        <head>TEI under the hood (in a nutshell)</head>
        <slide>
          <figure>
            <graphic height="400px" url="../../../_utils/gfx/tei_odd_detail.png"/>
          </figure>
        </slide>
        <lectureNote>
          <p>With all this in mind, let's now step back and look at how the customization mechanism
            works. It's important to understand that the TEI as we know it is different from many
            other XML languages, in that its schema does not exist as a single, simple, monolithic
            file that you can just download and use. Instead: <list>
              <item>the TEI exists as a universe of possible schemas</item>
              <item>and the actual schema (the "file") consists of a large number of little pieces
                representing the definitions of individual elements, attributes, classes, and so
                forth.</item>
              <item>almost as if cars weren't built until you wanted one, and all cars existed as a
                huge warehouse of car parts representing different options (different possible
                colors, different engine types, different fin styles); when you want to buy a car,
                you would go to a web site and specify which options you want, and then click
                "generate", and your car is delivered to you (along with the appropriate user
                manual, only telling you about features your car actually has).</item>
            </list>
          </p>
          <p>This <soCalled>TEI universe of possible schemas</soCalled> is written using a
            specialized part of the TEI language: a special set of elements and attributes that are
            designed for describing and documenting the parts of a schema. The importance of this
            will become clear in a moment...</p>
        </lectureNote>
        <tutorial>
          <p>With all this in mind, let's now step back and look at how the customization mechanism
            works. It's important to understand that the TEI as we know it is different from many
            other XML languages, in that its schema does not exist as a single, simple, monolithic
            file that you can just download and use. Instead, the TEI exists as a universe of
            possible schemas, and the actual schema (the "file") consists of a large number of
            little pieces representing the definitions of individual elements, attributes, classes,
            and so forth.</p>
          <p>Think of this as a custom-made-car dealership, and as if cars weren't built until you
            wanted one. In this hypothetical situation, all cars existed as a huge warehouse of car
            parts representing different options (different possible colors, different engine types,
            different fin styles). When you want to buy a car, you would go to a web site and
            specify which options you want, and then click "generate", and your car is delivered to
            you (along with the appropriate user manual, that only tells you about features your car
            actually has).</p>
          <p>This TEI universe of possible schemas is written using a specialized part of the TEI
            language: a special set of elements and attributes that are designed for describing and
            documenting the parts of a schema. The importance of this will become clear in a
            moment...</p>
        </tutorial>
      </section>

      <section>
        <head>TEI customization under the hood (in a nutshell)</head>
        <slide>
          <figure>
            <graphic height="400px"
              url="../../../_utils/gfx/tei_odd_customization_detail_iconed.png"/>
          </figure>
        </slide>
        <lectureNote>
          <p>When we want to use the TEI guidelines (i.e. validate a document using a TEI schema),
            we actually need to generate a schema from all of that potential: <list>
              <item>we express the specific choices we want to make</item>
              <item>we hand those preferences to the roma process, and it uses them to select the
                particular pieces of the TEI we want, and it assembles them into a schema (and also
                generates custom documentation to accompany it).</item>
            </list>
          </p>
          <p>Remember that I said the TEI itself is written in TEI, using a special module of
            elements for schema-writing? Now we get to the punchline: The customization file that we
            provide, that expresses our specific choices, is also written in this special kind of
            TEI. So when we write a customization, we are writing another TEI file. Most of it won't
            look very much like any TEI you've ever seen, but it's TEI nonetheless. We'll take a
            look at one in the next session.</p>
        </lectureNote>
        <tutorial>
          <p>When we want to use the TEI guidelines (i.e. validate a document using a TEI schema),
            we actually need to generate a schema from all of that potential: <list>
              <item>we express the specific choices we want to make</item>
              <item>we hand those preferences to the roma process, and it uses them to select the
                <!-- should this be roma processor? --> particular pieces of the TEI we want, and it
                assembles them into a schema (and also generates custom documentation to accompany
                it).</item>
            </list>
          </p>
          <p>Remember that we said the TEI itself is written in TEI, using a special module of
            elements for schema-writing? Now we get to the punchline: The customization file that we
            provide, that expresses our specific choices, is also written in this special kind of
            TEI. So when we write a customization, we are writing another TEI file. Most of it won't
            look very much like any TEI you've ever seen, but it's TEI nonetheless.</p>
        </tutorial>
      </section>

      <section>
        <head>ODD Processors?</head>
        <slide>
          <p>To process your customization file and get a TEI schema: <list>
              <item>Roma: a web interface (available at the <ref target="http://www.tei-c.org/Roma/"
                  >TEI site</ref>)</item>
 	      <item><soCalled>Roma Antique</soCalled>: the old version of Roma is
	        <ref target="https://romaantiqua.tei-c.org/">still available</ref>,
	        but is not being maintained anymore.</item>
              <item>oXygen's built-in stylesheets (<ref
                  target="../../handouts/odd_processing_oxygen_v14.xhtml">instructions</ref>)</item>
              <item>TEI’s multi-transformer called <ref
                  target="http://oxgarage.oucs.ox.ac.uk:8080/ege-webclient/">TEIGarage</ref></item>
              <item>Byzantium (not quite ready for prime time; no longer being updated; <ref
                  target="http://tei.oucs.ox.ac.uk/Byzantium/">test site</ref>)</item>
              <item>transformtei: a command-line tool that does a given single conversion at a
                time</item>
              <item>roma: a command-line tool (<ref target="../../handouts/roma_CLI_MacOS_X.html"
                  >installation instructions</ref>) that does all the conversions (RELAX NG, HTML,
                PDF, DTD, XML Schema, Schematron) at once</item>
            </list>
          </p>
        </slide>
        <tutorial>
          <p>There are a few different options for ODD processors. Roma is relatively easy to use,
            and allows you to edit the ODD file outside of Oxygen. We will mostly be learning how to
            write ODD files by hand in Oxygen for the rest of this tutorial. Hand-writing ODDs gives
            you more flexibility and options for things like adding elements, changing class
            subscriptions, etc. Roma is good for deleting modules, classes, elements and attributes.
            But it doesn't give you the breadth of options that writing ODDs in an XML editor does.
            Additionally, handwriting ODDs gives you more practice with figuring out how the TEI is
            organized, since it will force you to spend more time looking through the different
            chapters and class lists.</p>
          <p>In the next tutorial, we will be learning the elements you need to know to customize
            your ODD file. We will provide an overview of how to delete modules, classes, and
            individual elements and attributes. We will also provide an example of an added element.
            There will also be ample discussion of the modification of existing TEI elements. </p>
          <list>
            <head>This tutorial is complete, please see links below to continue:</head>
            <item><ref target="../basic_odd/basic_odd_simple_tutorial_00.xhtml">Proceed to next
                tutorial in TEI Customization Primer</ref></item>
            <item><ref target="../../../../resources/customization.html">Return to TEI Customization
                Primer</ref></item>
            <item><ref target="../../../../resources/tutorial_main.html">Return to main tutorial
                page</ref></item>
          </list>
        </tutorial>
      </section>

    </presentation>
  </text>
</TEI>
