Drama

<div type="scene">
  <head>Scene 1</head>
  <stage type="entrance">Enter Fay</stage> 
  <sp who="#spFay">
    <speaker>Fay</speaker>
    <p>I say, Dinah, has anyone seen my gloves?</p>
  </sp>
  <stage type="entrance">Enter Dinah</stage>
  <sp who="#spDin">
    <speaker>Dinah</speaker>
    <p>No, miss, perhaps the parakeet has got them again?</p>
  </sp>
  <stage type="exit">Exit Fay and Dinah</stage>
</div>

One of the benefits of the TEI is that it allows you to group elements together on the basis of semantics, rather than rendition. This comes in handy when you want to encode drama. Although there are no physical cues in the manuscript indicating that you should group a speaker tag and the speech together, you still will want to explicitly associate these two things. This is something that HTML does not allow us to do, as we saw previously.

The TEI <sp> tag allows us to say, all of the content of this element is a part of one dramatic speech. The <speaker> tag contains the speaker label, and we use either <p> or <lg> to encode the content of the speech (depending upon whether the speech is in prose or verse).

Additionally, the @who attribute allows us to refer specifically to one character. As you have probably seen, speaker labels in manuscripts are sometimes misspelled, have variant spellings, or are just plain inaccurate. The @who attribute points to one stable person in the castList, so that you have a regularized way of saying who is speaking, rather than relying on the sometimes-inaccurate speaker labels.

So, for example, if Dinah in the example were sometimes spelled Dina or accidentally called Donna, you would still be able to refer to the static entry of #spDin in the cast list.

Basic Tagging slide 08 of 14
© 2007 Syd Bauman, Julia Flanders, and the Women Writers Project This TEI-encoded XML file is available under the terms of the Creative Commons Attribution-ShareAlike 3.0 (Unported) license.