Skip to content

Instantly share code, notes, and snippets.

@dhscratch
Last active January 10, 2023 09:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhscratch/378e31e8e69dbb54d82b6be2634f4e7f to your computer and use it in GitHub Desktop.
Save dhscratch/378e31e8e69dbb54d82b6be2634f4e7f to your computer and use it in GitHub Desktop.
A Template of a Letter in the TEI (with annotations)
<?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 Letter 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>
<profileDesc>
<particDesc>
<!-- learn more about internal
and external ography data
http://tapasproject.org/tapas-learn/ographies -->
<!-- orgography may
be stashed here -->
<listOrg>
<org><!-- --></org>
</listOrg>
<!-- personography may
be stashed here -->
<listPerson>
<person>
<persName><!-- --></persName>
</person>
</listPerson>
</particDesc>
</profileDesc>
</teiHeader>
<text>
<body>
<opener>
<!-- groups dateline,
byline, salutation -->
<dateline>
<placeName>Boston, MA. USA</placeName>
<date when="2016-08-05">January 01, 2017</date>
</dateline>
<salute>Dear <persName ref="tapas-personography.xml#JF">TAPAS User</persName>,</salute>
</opener>
<p>This is a letter to you, which we hope will be of some benefit should you be in search of a sample letter encoded in the TEI. We have based this letter off of the <orgName ref="#org_teic">Text Encoding Initiative Consortium</orgName> Guidelines. The Guidelines can be found <ref target="http://www.tei-c.org/Guidelines/">here</ref>. A detailed overview of encoded letter components can be found via the Women Writers Project <ref target="https://www.wwp.northeastern.edu/research/publications/guide/html/letters_outline.html">encoding guides</ref>.
</p>
<closer>
<!-- groups together
salute and signed -->
<salute>
Sincerely,
</salute>
<signed>
<orgName ref="#TAPAS">the TAPAS Project</orgName>
</signed>
</closer>
<postscript>
<label>P.S.</label>
<p>Be sure to check out the TAPAS Learn guide: <ref target="http://tapasproject.org/tapas-learn/letters">"Letters"</ref> for an extended discussion of letters as an encoded document genre. If you have any questions about working with letters in the TEI not covered in our guides, <ref target="http://tapasproject.org/forums/letters">post to our forums!</ref></p>
</postscript>
</body>
<back>
<listPlace>
<!-- learn more about internal and
external ography data
http://tapasproject.org/tapas-learn/ographies -->
<place><!-- --></place>
</listPlace>
</back>
</text>
</TEI>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment