Jeffrey C. Witt (Loyola University Maryland) | @jeffreycwitt
2017 Universidad de Los Andes, Bogotá, Columbia, August 28th-30th, 2017
Slide Deck: http://lombardpress.org/slides/2017-08-28-los-andes-workshop | http://bit.ly/2wbCaJ9
XML semantically identifies pieces of data using opening and closing tags which are enclosed with angle brackets.
wrong
correct
Tags must be either siblings of another set of tags or children of a set of tags.
In addition to containing text and other elements, elements can take on "attributes".
The result of following these rules is a document whose content is nicely organized into a tree structure.
Use Oxygen to begin encoding our sample texts
To start a new file, open oxygen, select file->new, select "xml document"
Then start encoding. Remember you can create your own tags to describe your data. Just follow these basic rules: https://www.w3schools.com/xml/xml_syntax.asp
<?xml-stylesheet type="text/css" href="mystyles.css"?>
This means that XML actually does not specify any set of tags or element names. Anyone can make up their own set of elements and use them however they like.
It allows different industries and fields to create tags that meet their needs and their data.
If everyone can just make up their own tags, we can create confusion about what different tags mean and the datatypes they are encoding.
Someone might choose to tag something as <paragraph> and another person might choose to tag something as <para> and a third person might choose <p>.
How do we avoid this confusion?
Enter TEI
Explore the TEI Guidelines http://www.tei-c.org/release/doc/tei-p5-doc/en/html/index.html
Tutorials: http://teibyexample.org/
Question: What element should I use to encode a line in a poem?
Question: What element should I use to encode a new page and or a new column in a manuscript?
Question: What element (or elements) should I use to add an image?
See: http://teibyexample.org/modules/TBED01v00.htm?target=generalstructure#generalstructure
See: http://teibyexample.org/modules/TBED02v00.htm
See: http://teibyexample.org/modules/TBED03v00.htm?target=structure#structure
In Oxygen: select new->Framework Templates->TEI P5->All