Sample Encoded Verse

This edition of sample encoded verse was made as part of the TAPASLearn guides.

Have questions?

Review Poetry in the TEI, a guide

Post questions in Forum on working with verse

Vertical Tabs

Reader

Toolbox

Themes:

An Minimally Encoded Example of Verse in the TEI TAPAS Project Encoded by, Benjamin J. Doyle the TEI Archiving, Publishing, and Access Service (TAPAS)
360 Huntington Avenue Northeastern University Boston, MA 02115
2017-01-17

This file is free to download, share, or repurpose for educational and project development purposes.

Born digital

Basic Example To capture one, or more lines of verse, nest 'l' in 'lg', where @type on 'lg' declares it as a 'poem' An Extended Example We can capture as well verse divided into stanza by nesting 'lg' with @type='stanza' And we can note the order of each stanza using @n attribute with numeric values @n attribute can be used as well to mark the line numbers of the poem. Sonnet 130 My Mistres eyes are nothing like the Sunne, Currall is farre more red, then her lips red If snow be white, why then her brests are dun: If haires be wiers, black wiers grown on her head: I have seene Roses damaskt, red and white, But no such Roses see I in her cheekes, And in some perfumes is there more delight, Then in the breath that from my Mistres reekes. I love to heare her speake, yet well I know, That Musicke hath a farre more pleasing sound: I graunt I never saw a goddesse goe, My Mistres when shee walkes treads on the ground. And yet by heaven I think my love as rare, As any she beli'd with false compare.
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng" type="application/xml"
	schematypens="http://purl.oclc.org/dsdl/schematron"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
   <teiHeader>
      <fileDesc>
         <titleStmt>
            <title>An Minimally Encoded Example of Verse in the TEI</title>
            <author>
               <orgName>TAPAS Project</orgName>
            </author>
            <respStmt>
               <resp>Encoded by, </resp>
               <persName>Benjamin J. Doyle</persName>
            </respStmt>
         </titleStmt>
         <publicationStmt>
            <publisher>
               <orgName>the TEI Archiving, Publishing, and Access Service (TAPAS)</orgName>
            </publisher>
            <address>
               <addrLine>360 Huntington Avenue</addrLine>
               <addrLine>Northeastern University</addrLine>
               <addrLine>Boston, MA 02115</addrLine>
            </address>
            <date>2017-01-17</date>
            <availability>
               <p>This file is free to download, share, or repurpose for educational and project development purposes.</p>
            </availability>
         </publicationStmt>
         <sourceDesc>
            <p>Born digital</p>
         </sourceDesc>     
      </fileDesc>
   </teiHeader>
   <text>
      <body>
         <lg type="poem">
            <head>Basic Example</head>
            <l>To capture one,</l>
            <l>or more lines of verse,</l>
            <l>nest 'l' in 'lg', </l>
            <l>where @type on 'lg'</l>
            <l>declares it as a 'poem'</l>
         </lg>
         <lg type="poem">
            <head>An Extended Example</head>
            <lg type="stanza" n="1">
               <l n="1">We can capture as well</l>
               <l n="2">verse divided into stanza</l>
               <l n="3">by nesting 'lg' with @type='stanza'</l>     
            </lg>
            <lg type="stanza" n="2">
               <l n="4">And we can note the order</l>
               <l n="5">of each stanza using</l>
               <l n="6">@n attribute with numeric values</l>
            </lg>
            <lg type="stanza" n="3">
               <l n="7">@n attribute can be used as well</l>
               <l n="8">to mark the line numbers</l>
               <l n="9">of the poem.</l>
            </lg>
         </lg>
         
         <lg type="poem">
            <head>Sonnet 130</head>
            <lg type="quatrain" n="1">
               <l>My Mistres eyes are nothing like the Sunne,</l>
               <l>Currall is farre more red, then her lips red</l>
               <l>If snow be white, why then her brests are dun:</l>
               <l>If haires be wiers, black wiers grown on her head:</l>
            </lg>
            <lg type="quatrain" n="2">
               <l>I have seene Roses damaskt, red and white,</l>
               <l>But no such Roses see I in her cheekes,</l>
               <l>And in some perfumes is there more delight,</l>
               <l>Then in the breath that from my Mistres reekes.</l>
            </lg>
            <lg type="quatrain" n="3">
               <l>I love to heare her speake, yet well I know,</l>
               <l>That Musicke hath a farre more pleasing sound:</l>
               <l>I graunt I never saw a goddesse goe,</l>
               <l>My Mistres when shee walkes treads on the ground.</l>
            </lg>
            <lg type="couplet" n="4">
               <l>And yet by heaven I think my love as rare,</l>
               <l>As any she beli'd with false compare.</l>
            </lg>
         </lg>
      </body>
   </text>
</TEI>
An Minimally Encoded Example of Verse in the TEI TAPAS Project Encoded by, Benjamin J. Doyle the TEI Archiving, Publishing, and Access Service (TAPAS)
360 Huntington Avenue Northeastern University Boston, MA 02115
2017-01-17

This file is free to download, share, or repurpose for educational and project development purposes.

Born digital

Basic Example To capture one, or more lines of verse, nest 'l' in 'lg', where @type on 'lg' declares it as a 'poem' 5 An Extended Example We can capture as well verse divided into stanza by nesting 'lg' with @type='stanza' And we can note the order of each stanza using 5 @n attribute with numeric values @n attribute can be used as well to mark the line numbers of the poem. Sonnet 130 My Mistres eyes are nothing like the Sunne, Currall is farre more red, then her lips red If snow be white, why then her brests are dun: If haires be wiers, black wiers grown on her head: I have seene Roses damaskt, red and white, 5 But no such Roses see I in her cheekes, And in some perfumes is there more delight, Then in the breath that from my Mistres reekes. I love to heare her speake, yet well I know, That Musicke hath a farre more pleasing sound: 10 I graunt I never saw a goddesse goe, My Mistres when shee walkes treads on the ground. And yet by heaven I think my love as rare, As any she beli'd with false compare.