Module 4: Poetry
6. Advanced Encoding #
6.1. Components of the Verse Line #
It is often convenient for various kinds of analysis to encode further subdivisions of verse lines. This can be done using the <seg> element which contains any arbitrary phrase-level unit of text (including other <seg> elements).
The third and the fourth stanzas of our poem, for instance, contain lines which include two items each, except for line 13. The appropriate encoding could be the following:
6.2. Dedications #
If the poem is encoded as an <lg>, the TEI doesn’t have an “out of the box” solution to deal with dedications which appear under the title of the poem. In the case a dedication needs to be encoded, there are two viable options. The first one is to consider the dedication as a <head> and use its @type attribute for specifying its function as a "dedication":
The second option is to encode the poem as a <div type="poem"> instead of an <lg type="poem">, and consider the title as an anonymous block <ab> with a value of "dedication" for its @type attribute.
6.3. Acrostics #
One example of the use of the <seg> element for further advanced analysis is the following proposal to signal the presence of an acrostic in a poem. In this poem by Edgar Allan Poe, entitled “An Acrostic,” the first letters of each line of verse together form the first word of the first line: “Elizabeth.”