1. Verse

The TEI provides more elements to talk encode verse and metrical information than you might first suspect.

1.1. Verse

<l> (a line of verse)

<lg>(a line group such as stanza or
paragraph)

<lg><l>There were eight pretty walkers who went up a hill;</l><l>They were Jessamine, Joseph and Japhet and Jill,</l><l>And Allie and Sally and Tumbledown Bill,</l><lrend="i10">And Farnaby Fullerton Rigby.</l></lg>

1.2. Divisions in Verse Texts

Many poems consist only of ungrouped lines. This short poem by
Emily Dickinson is a simple case:

<body><l>To make a prairie it takes a clover and one bee,</l><l>One clover, and a bee,</l><l>And revery.</l><l>The revery alone will do,</l><l>If bees are few.</l></body>

1.3. <lg> example

<body><head>My Alba</head><lg><l>Now that I've wasted</l><l>five years in Manhattan</l><l>life decaying</l><l>talent a blank</l></lg><lg><l>talking disconnected</l><l>patient and mental</l><l>sliderule and number</l><l>machine on a desk</l></lg></body>

1.4. Regular verse layout

<lg><l>Sire Thopas was a doghty swayn;</l><l>White was his face as payndemayn,</l><l>His lippes rede as rose;</l><l>His rode is lyk scarlet in grayn,</l><l>And I yow telle in good certayn,</l><l>He hadde a semely nose.</l></lg><lg><l>His heer, his ber was lyk saffroun,</l><l>That to his girdel raughte adoun;</l></lg>

1.5. <lg> can nest!

<lgtype="stanza"><lgtype="sestet"><l>In the first year of Freedom's second dawn</l><l>Died George the Third; although no tyrant, one</l><l>Who shielded tyrants, till each sense withdrawn</l><l>Left him nor mental nor external sun:</l><l>A better farmer ne'er brushed dew from lawn,</l><l>A worse king never left a realm undone!</l></lg><lgtype="couplet"><l>He died — but left his subjects still behind,</l><l>One half as mad — and t'other no less blind.</l></lg></lg>

1.6. Shakespearean Sonnet with nested<lg>

<lg><lgtype="quatrain"><l>My Mistres eyes are nothing like the Sunne,</l><!-- 3 more lines --></lg><lgtype="quatrain"><l><!-- 4 lines --></l></lg><lgtype="quatrain"><l><!-- 4 lines --></l></lg></lg><lgtype="couplet"><l>And yet by heaven I think my love as rare,</l><l>As any she beli'd with false compare.</l></lg>

1.8. <seg> for verse segmentation

<l><seg>In a somer seson,</seg><seg>whan softe was the sonne,</seg></l><l><seg>I shoop me into shroudes</seg><seg>as I a sheep were,</seg></l><l><seg>In habite as an heremite </seg><seg>unholy of werkes,</seg></l><l><seg>Went wide in this world </seg><seg>wondres to here.</seg></l>

1.10.
<caesura>

<l>In a somer seson, <caesura/> whan softe was the sonne, </l><l>I shoop me into shroudes <caesura/> as I a sheep were, </l><l>In habite as an heremite <caesura/> unholy of werkes, </l><l>Went wide in this world <caesura/> wondres to here. </l>

1.11. Metrical Analysis

When the module for verse is in use, the following additional
attributes are available to record information about rhyme and
metrical form:

att.metrical defines a set of attributes which certain
elements may use to represent metrical information.

real - (metrical structure, realized)
contains a user-specified encoding for the actual
realization of the conventional metrical structure
applicable to the element.

rhyme - (rhyme scheme) specifies the
rhyme scheme applicable to a group of verse
lines.

1.12. Metrical Analysis Example

<divtype="book"n="1"met="-+|-+|-+|-+|-+/"rhyme="aa"><lgn="1" type="paragraph"><l>'Tis hard to say, if greater Want of Skill</l><l>Appear in <hi>Writing</hi> or in <hi>Judging</hi> ill;</l><l>But, of the two, less dang'rous is th'Offence,</l><l>To tire our <hi>Patience</hi>, than mis-lead our <hi>Sense</hi>:</l></lg></div>

1.13. real Attribute

The real (for ‘realization’) attribute may
optionally be specified to indicate any deviation from the
pattern defined by the met attribute which the encoder wishes
to record

1.15. met and real at the same time

1.16. rhyme vs <rhyme>

The rhyme attribute is used to specify the rhyme
pattern of a verse form. It should not be confused with the
<rhyme> element, which is used to mark the actual
rhyming word or words:

<rhyme> - marks the rhyming part of a metrical
line.

1.17.
<rhyme> example

<lgtype="couplet" rhyme="aa"><l>Outside in the distance a wildcat did <rhyme>growl</rhyme></l><l>Two riders were approaching and the wind began to <rhyme>howl</rhyme></l></lg>

1.18. Another <rhyme> example

<lgtype="quatrain" rhyme="abab"><l>I wander thro' each charter'd <rhymelabel="a">street</rhyme>,</l><l>Near where the charter'd Thames does <rhymelabel="b">flow</rhyme>,</l><l>And mark in every face I <rhymelabel="a">meet</rhyme></l><l>Marks of weakness, marks of <rhymelabel="b">woe</rhyme>.</l></lg>

1.19. Internal <rhyme> example

<lgrhyme="ABCCBBA"><l>The sunlight on the <rhymelabel="A">garden</rhyme></l><l><rhymelabel="A">Harden</rhyme>s and grows <rhymelabel="B">cold</rhyme>,</l><l>We cannot cage the <rhymelabel="C">minute</rhyme></l><l>Wi<rhymelabel="C">thin it</rhyme>s nets of <rhymelabel="B">gold</rhyme></l><l>When all is <rhymelabel="B">told</rhyme></l><l>We cannot beg for <rhymelabel="A">pardon</rhyme>.</l></lg>

1.20. Metrical Notation Declaration

<metDecl> (metrical notation declaration)
documents the notation used to represent a metrical pattern

2.2. <castList>, <castItem>, <set>

<front><castList><castItem><role> ... </role><actor> ... </actor></castItem></castList><set><p>The action of the play is set in Chicago's Southside, sometime between World War II and the present.</p></set></front>

2.3. Inside <castItem>

<role> the name of a dramatic role, as given in a
cast list

<roleDesc> (role description) describes a
character's role in a drama

<actor> Name of an actor appearing within a cast
list

2.4.
<castItem> example

<castItem><role>Tom Thumb the Great</role><roleDesc>a little hero with a great soul, something violent in his temper, which is a little abated by his love for Huncamunca</roleDesc><actor>Young Verhuyk</actor></castItem>

2.9. Stage Directions

<move/> (movement) marks the actual entrance or
exit of one or more characters on stage.

type characterizes the
movement

where specifies the direction of
a stage movement

perf (performance) identifies
the performance(s) in which this movement occurred as
specified.

2.10. An example

<divn="5" type="scene"><stage>Elsinore. A room in the Castle.</stage><stagetype="setting">Enter Ophelia, distracted.</stage><sp><speaker>Ophelia</speaker><p>Where is the beauteous Majesty of Denmark?</p></sp><sp><speaker>Queen</speaker><p>How now, Ophelia?</p></sp><!-- ... --></div>

2.11. Dramatic example from Punch

<sp><speaker>Greece.</speaker><said> ISN'T IT TIME WE STARTED FIGHTING AGAIN?</said></sp><sp><speaker>Turkey.</speaker><said> YES, I DARESAY. HOW SOON COULD YOU BEGIN?</said></sp><sp><speaker>Greece.</speaker><said> OH, IN A FEW WEEKS.</said></sp><sp><speaker>Turkey.</speaker><said> NO GOOD FOR ME. SHAN'T BE READY TILL THE AUTUMN.</said></sp>

2.12. Other types of performance text

<view> describes the visual context of some part
of a screen play in terms of what the spectator sees

<camera> describes a particular camera angle or
viewpoint

<caption> contains the text of a caption or other
text displayed

<sound> describes a sound effect or musical sequence

type categorizes the sound in
some respect, e.g. as music, special effect, etc.

discrete indicates whether the
sound overlaps the surrounding speeches or interrupts
them

3. Dictionaries

The TEI defines a module for encoding human-oriented
monolingual and multilingual dictionaries, glossaries, and
similar documents. These are not just for standalone use, but
could be for a wordlist or glossary accompanying a digital
edition.

3.1. Dictionary Structures

<entry> contains a reasonably well-structured
dictionary entry

<entryFree> (unstructured entry) contains a
dictionary entry which does not necessarily conform to the
constraints imposed by the entry element

<superEntry> groups successive entries for a set
of homographs

3.2. And other structures like...

<hom> (homograph) groups information relating to
one homograph within an entry

<sense> groups together all information relating
to one word sense in a dictionary entry, for example
definitions, examples, and translation equivalents

3.3. Inside these structures

<form> groups all the information on the written
and spoken forms

<gramGrp> groups morpho-syntactic information
about a lexical item

<def>contains a definition

<cit> contains a cited quotation

<usg> contains usage information

<xr> contains a cross-reference

<etym> encloses the etymological
information

<re> contains a related entry

<note> contains a note or annotation.

3.4. <entry> example

<entry><form><orth>competitor</orth><hyph>com|peti|tor</hyph><pron>k@m"petit@(r)</pron></form><gramGrp><pos>n</pos></gramGrp><def>person who competes.</def></entry>