The se split-file tool defaults to a chapter template. To add the correct file semantics, we need to create the template file /src/epub/text/drama-template.xhtml. If you wish to split the work into acts or scenes, you can copy and paste the following code to your new file:
+
The se split-file tool defaults to a chapter template. To add the correct file semantics, we need to create the template file /src/epub/text/drama-template.xhtml. If you wish to split the work into acts, you can copy and paste the following code to your new file:
Plays can come in all shapes and sizes, and no two plays look alike. Figuring out where to place play semantics can be very confusing! Here are some basic play structures to show where play semantics go.
+
Play without acts
+
Some plays are not divided into acts. These plays are placed in a single file named after the play. z3998:drama and z3998:scene are located in the top-level section.
Some plays are divided in to acts without scene sections. The body element contains the z3998:drama semantic; the top-level section element contains both chapter and z3998:scene semantics.
If a multi-act play has scene sections, the top-level section only has the chapter semantic, and the scene section elements are tagged with z3998:scene.
Stichomythia is a technique used in drama where two speakers engage in a rapid or intense exchange of alternating dialog. Here is an example found in William Shakespeare’s A Midsummer Night’s Dream.
This highlights moments of conflict, urgency, or intense emotion and conveys dynamic interactions between characters. Unfortunately, there is no great way to format this technique with clear, predictable structuring. The text displayed has no additional indents or margins.
+
Ancient Greek choral sections
+
Ancient Greek drama can contain choral sections where each stanza is labeled as strophe, antistrophe, or epode. The sections are numbered if a chorus sings/chants a pattern of strophic, antistrophic, and epodic units. The labels are formatted with italics, parentheses around the label, and right-alignment.
Exit or exeunt stage directions are traditionally shown right-aligned and bracketed. These are formatted like other inline stage directions and placed at the end of the preceding dialog. Compare how the following page scan source is structured in HTML.
+
Some stage direction have only an opening bracket and are right-aligned, like exit or exeunt stage directions. These are formatted like other inline stage directions and placed at the end of the preceding dialog. Compare how the following page scan source is structured in HTML.
@@ -295,8 +412,8 @@
</td></tr>
-
Songs
-
Some songs are given a title or just labeled as “Song”. Treat these as stage direction rows.
+
“Song.”
+
Some songs are given a title or just labeled as “Song.” Treat these as stage direction rows.