Exercise 5: Encoding rendition

"Rendition" is the appearance of the printed page in the source document, and all renditional information in TEI is recorded using the @rend attribute. For instance:

<head rend="align(center)slant(italic)">Chapter 1</head>

For complete documentation of how rendition is encoded, see the documentation and the rendition crib sheet.

To practice, choose one of your practice texts and add renditional information to the elements that need it. Some of the specific keywords and values you may need for these texts:

  • indent(1): to indent a paragraph or a line of poetry. (You can increase the indent level using higher numbers.)
  • align(center): to indicate that an element is aligned to the center of the page. Other alignment options are align(right) and align(left); if no alignment is given, we assume the element is aligned left.
  • slant(italic): to indicate that an element is in italics. The alternative is slant(upright).
  • break(yes): to indicate that the element begins on a new line; this is useful for <mw>. Note that some elements always begin on a new line (like <p> and <head>) so there is no need to specify "break(yes)" for these cases. For a full list of elements and how they break, see the documentation.
  • case(allcaps): to indicate that the element is in all capital letters. Other values include "case(smallcaps)", "case(lower)", and "case(mixed)". For detailed information on how to use these values, see the documentation.