Zum Hauptinhalt springen
Rezept Nummer 70

Rezepte · Kapitel 9 · Vollständige Publikationen

Theatertext: Personenverzeichnis, Sprecher, Regieanweisungen

Wildes Stück als Bühnenfassung: Namen fett in Pflaumenrot, Regieanweisungen grau kursiv, ein Personenverzeichnis mit Punktlinie zu jedem Darsteller am Tabstopp.

Auf dieser Seite

S. 2–3 von 5

  • Englisches Beispiel: noch keine deutsche Ausgabe
  • Endformat 140 × 216 mm
  • 1 Spalte
  • Libre Baskerville 9,4/13,6
  • Abril Fatface
  • Playfair Display SC
  • 5 Seiten
  • Stufe
  • Postext 1.57.1
  • In 85 ms gesetzt
  • 160 Zeilen Code

Kurz gesagt

Der Anfang einer berühmten Komödie von Oscar Wilde, für Schauspieler gedruckt. Die Namen der Sprecher stechen in fetter Farbe hervor, und die Regieanweisungen sind grau, damit man sie leicht überspringen kann.

Was Sie setzen

Der Anfang von Oscar Wildes The Importance of Being Earnest, gesetzt als fünfseitige Bühnenfassung in 140 × 216 mm. Die Titelseite ist ein pflaumenroter Theaterzettel in einem doppelten goldenen Rahmen, mit Importance und Earnest in fetten Versalien einer Fat Face und einer goldenen Nelke unter dem Titel. Gegenüber dem ersten Akt nennt das Personenverzeichnis den Darsteller, der jede Rolle 1895 am St James’s Theatre schuf. Jede Replik beginnt mit dem Namen des Sprechers in fettem Pflaumenrot und zieht ihre Folgezeilen 5 mm hängend ein, sodass ein Schauspieler das nächste Stichwort auf einen Blick findet. Regieanweisungen, innerhalb einer Replik oder zwischen zweien, stehen grau kursiv, und das Auge kann sie beim Textlernen überspringen. Die spanische Ausgabe ist eine neue Übersetzung, die der spanischen Bühnenpraxis folgt, mit einem Gedankenstrich nach jedem Namen und den Regieanweisungen in Klammern.

Dieses Rezept beantwortet

  • Wie setze ich ein Drehbuch oder ein Theaterstück: Szenenüberschriften, Figurennamen und beidseitig eingerückte Dialoge?
  • Wie färbe ich Schlüsselbegriffe (fett oder kursiv) im Text oder in Kästen ein?
  • Wie setze ich nicht nummerierte Grafiken: Ornamente, Vignetten, Logos?

Die kurze Antwort

script.js · Zeilen 34–54im vollständigen Code
// Speeches are plain paragraphs, the speaker's name in bold and each stage direction in
// italic; a direction between two speeches is a paragraph of its own, in a container:
//   **LANE.** Yes, sir. *[Hands them on a salver.]*
//   :::paragraphs{style="direction"}
//   *[Enter Lane.]*
//   :::
// The body's two emphasis colours then mark who speaks (plum) and what is done (grey).
const dialogue = {
  fontFamily: TEXT, fontSize: pt(BODY), lineHeight: pt(LEAD), color: col('ink'),
  boldColor: col('plum'), // **ALGERNON.**
  italicColor: col('muted'), // *[Languidly.]*, in a speech or a paragraph of its own
  minWordSpacing: 0.65, maxWordSpacing: 1.8, // justified (the default); limits inside 0.6–2
  // A runt fix tracks by 5/1000 em at most (default 10). At 10, “that?” went up beside “as”
  // and the speech stood darker than the ones around it; at 5 the word turns over.
  maxRuntTracking: 5,
  firstLineIndent: mm(5), hangingIndent: true, // the name at the margin, the turnovers hung
};
// Directions: smaller and centred, on the same grid. They are written *…* like the ones
// inside a speech, so both take the body's italic grey.
const direction = { id: 'direction', fontSize: pt(8.6),
  textAlign: 'center', firstLineIndent: pt(0) };

Zutaten

Schrift
Libre Baskerville, Abril Fatface, Playfair Display SC (SIL OFL 1.1)
Dateien
  • The title page’s frame and the carnation fleuron, drawn in code in the page’s palette (Ignacio Ferro, MIT)

Zubereitung

#1 · Ein Akt ist eine schlichte Überschrift

script.js · Zeilen 58–69im vollständigen Code
const headings = {
  fontFamily: LABEL, fontWeight: 400, color: col('ink'),
  textAlign: 'center', // every level: the act, the cast list's heads, the scene
  lineHeight: pt(LEAD), marginTop: pt(LEAD), marginBottom: pt(0), // whole lines of the grid
  levels: [
    { level: 1, fontFamily: DISPLAY, fontSize: pt(24), lineHeight: pt(3 * LEAD),
      color: col('plum'), textTransform: 'uppercase',
      breakBefore: { enabled: true, parity: 'odd' } }, // a recto, facing the cast list
    { level: 2, fontSize: pt(13), lineHeight: pt(2 * LEAD) },
    { level: 3, fontSize: pt(9.5), color: col('plum') },
  ],
};

Der Akttitel ist eine Überschrift der Ebene 1 in der Abril Fatface in 24 pt, ohne Gestaltungsfeld. textTransform setzt ihn in Versalien, und seine drei Rasterzeilen zu 13,6 pt stellen die Versalien 5,5 mm unter die Oberkante des Satzspiegels (Überschriften). textAlign: 'center' lässt sich nicht pro Ebene setzen, deshalb zentriert es auch die Überschriften des Personenverzeichnisses und die Bezeichnung Scene. breakBefore mit der Parität 'odd' beginnt den Akt auf einer rechten Seite, gegenüber dem Personenverzeichnis. Der Standardwert 'always-odd' würde zwei Vakatseiten zwischen sie setzen (Umbruch davor).

#2 · Das Personenverzeichnis ist eine Punktlinie zu jedem Darsteller

script.js · Zeilen 73–85im vollständigen Code
// A tab sends the actor to a stop at the end of the measure that ends the text there; the stop's
// leader fills the room before it with dots, from half an em after the person to half an em
// before the actor. The bill's head is a centred line in the face's own small capitals.
const person = { id: 'person', fontSize: pt(8.8), firstLineIndent: pt(0), textAlign: 'left',
  tabStops: [{ position: 'end', align: 'end', leader: '.' }],
  spaceBetween: pt(LEAD / 2) }; // a person every line and a half
const billHead = { id: 'bill-head', fontFamily: LABEL, fontSize: pt(8.5), color: col('plum'),
  textAlign: 'center', firstLineIndent: pt(0), marginTop: pt(LEAD / 2),
  marginBottom: pt(LEAD / 2) };
// The scenes: two stops, so `:tab Act I :tab Algernon’s flat` ends the act on the first
// (15 mm in) and starts the place on the second, 2 mm after it, as a two-column list would.
const scene = { id: 'scene', textAlign: 'left', firstLineIndent: pt(0), marginTop: pt(LEAD / 2),
  tabStops: [{ position: mm(15), align: 'end' }, { position: mm(17) }] };

Jede Person ist ein Absatz im Stil person, der Darsteller nach :tab (Tabulatoren und Tabstopps). Der Stil hat einen Tabstopp bei 'end', dem Ende der Satzbreite, und mit align: 'end' endet der Name des Darstellers dort. Sein leader: '.' füllt den Raum vor dem Tabstopp mit Punkten, ein halbes Geviert von Person und Darsteller entfernt, und spaceBetween setzt eine Person auf jede anderthalbte Zeile. Die Namen der Personen sind fett und erscheinen deshalb in Pflaumenrot, wie die Namen der Sprecher im Dialog. Originalbesetzung, Theater und Datum stehen im Stil bill-head über der Liste, zentriert in der Playfair Display SC, deren Kleinbuchstaben Kapitälchen sind. Die Schauplätze nehmen zwei Tabstopps: :tab Act I :tab … lässt Act I am ersten enden, 15 mm eingerückt, mit align: 'end', sodass die drei Akte rechtsbündig auf einer Spalte stehen, und beginnt den Ort am zweiten, 2 mm danach. Die Zeit der Handlung ist eine zentrierte Zeile im Stil der Regieanweisungen.

#3 · Ornamente ohne Nummer und ohne Legende

script.js · Zeilen 89–94im vollständigen Code
// ::resource{id="fleuron"} sets it where it stands (gotcha: resource-double-quotes).
const unnumbered = (id, name, defaultPlacement) => ({ id, name, shortLabel: '', captionPrefix: '',
  numberingTemplate: '{n}', resetOn: 'never', counterFormat: 'decimal', defaultPlacement });
const resourceTypes = [
  unnumbered('ornament', 'Ornament', { position: 'here', width: 0.24, align: 'center' }),
];

Ein Ressourcentyp mit leerem captionPrefix und leerem shortLabel gibt seine Bilder ohne Nummer und Legende aus (Ressourcentypen). Sein defaultPlacement setzt die Nelke dorthin, wo ::resource{id="fleuron"} steht, zentriert und 0,24 der 107 mm breiten Satzbreite breit, etwa 26 mm.

#4 · Die Titelseite ist ein Überschriftenstil

script.js · Zeilen 98–120im vollständigen Code
// # The Importance of Being Earnest {style="playbill" small="The" big="Importance" …}
// Each attribute is a playbill line in its own face and size. The ground is an image that
// fills the sheet: the heading reserves down to its foot, so the cast list starts on page 2.
const line = (id, content, font, size, y, color, extra = {}) => ({ kind: 'text', id, content,
  fontFamily: font, fontSize: pt(size), lineHeight: 1, color: col(color), align: 'center',
  placement: { anchor: { to: 'page', edge: 'top' }, offset: { y: mm(y) } }, ...extra });
const tracked = (track) => ({ textTransform: 'uppercase', letterSpacing: pt(track) });
const playbill = {
  id: 'playbill', span: 'page', // kept in the column, its foot would cut the ground
  header: { elements: [] }, footer: { elements: [] }, // no heads on p. 2, no folio on p. 1
  advancedDesign: { enabled: true, slot: { elements: [
    { kind: 'image', id: 'ground', resourceId: 'playbill',
      placement: { anchor: { to: 'bleed', edge: 'top-left' }, size: { width: 'fill' } } },
    line('kicker', '{subtitle}', LABEL, 8.5, 36, 'gilt', tracked(1.7)),
    line('small', '{attr.small}', TEXT, 17, 51, 'paper', { italic: true }),
    line('big', '{attr.big}', DISPLAY, 40, 60, 'paper', { textTransform: 'uppercase' }),
    line('link', '{attr.link}', TEXT, 17, 78, 'gilt', { italic: true }),
    line('name', '{attr.name}', DISPLAY, 60, 87, 'paper', { textTransform: 'uppercase' }),
    line('author', '{author}', LABEL, 13, 133, 'paper', tracked(3)),
    line('theatre', '{attr.theatre}', LABEL, 8, 170, 'gilt', tracked(1.6)),
    line('premiere', '{attr.premiere}', TEXT, 8.5, 176, 'paper', { italic: true }),
  ] } },
};

# The Importance of Being Earnest {style="playbill" …} enthält den Titel in vier Attributen, die die Gestaltung in zwei Schriften setzt: Abril Fatface in 40 und 60 pt für die Substantive, Libre Baskerville kursiv in 17 pt für The und of Being (Attribute von Überschriften). Der pflaumenrote Grund, der Rahmen und die Nelke sind ein einziges, in Code gezeichnetes SVG, am Anschnitt verankert (Bildelemente). Der Stil setzt span: 'page', obwohl das Buch einspaltig ist. Bliebe die Gestaltung in der Spalte, würde sie am Fuß des Satzspiegels abgeschnitten, 23,3 mm über dem Fuß des Blatts. Der leere header des Stils hält die Kolumnentitel vom Personenverzeichnis fern, das zum selben Abschnitt gehört, und sein leerer footer hält die Seitenzahl am Fuß von der Titelseite fern, wo sie pflaumenrot auf Pflaumenrot stünde (Überschriftenstile).

Der Grund ist ein Bildelement, und ein Auftakt reserviert Platz bis zum Fuß seiner Bilder, sodass die Überschrift das ganze Blatt einnimmt: The Persons of the Play beginnt auf Seite 2 ohne :::pagebreak nach dem Titel, wo auch immer die Zeilen der Titelseite stehen. Auch eine zentrierte Zeile mit letterSpacing braucht keine Korrektur. Die Sperrung nach ihrem letzten Buchstaben bleibt beim Zentrieren außen vor, und OSCAR WILDE steht auf der Mitte der Seite.

#5 · Kolumnentitel, die die erste Seite des Akts auslassen

script.js · Zeilen 124–140im vollständigen Code
const head = (id, content, parity, edge, x, style) => ({
  kind: 'text', id, content, parity, pages: 'body', // never on openers or blank pages
  fontFamily: LABEL, fontSize: pt(8.5), letterSpacing: pt(0.8), color: col('muted'),
  textTransform: 'uppercase', ...style,
  placement: { anchor: { to: 'page', edge }, offset: { x: mm(x), y: mm(11) } },
});
const folio = { fontFamily: TEXT, letterSpacing: pt(0), color: col('plum') };
const header = { elements: [
  head('verso-folio', '{pageNumber}', 'even', 'top-left', OUTER, folio),
  head('verso-title', '{title}', 'even', 'top-left', OUTER + 8),
  head('recto-act', '{chapterTitle}', 'odd', 'top-right', -(OUTER + 8)),
  head('recto-folio', '{pageNumber}', 'odd', 'top-right', -OUTER, folio),
] };
// The act's first page carries a drop folio instead, centred under the text block.
const footer = { elements: [{ ...head('drop-folio', '{pageNumber}', 'all', 'top', 0, folio),
  pages: 'opener', align: 'center',
  placement: { anchor: { to: 'container', edge: 'top' }, offset: { y: mm(8) } } }] };

Auf der linken Seite steht der Titel des Stücks aus dem Frontmatter, auf der rechten der Akt aus {chapterTitle}, beide in Versalien der Playfair Display SC, mit der Seitenzahl in Pflaumenrot am Außenrand (Textelemente). Die erste Seite des Akts gilt als Auftaktseite, weil ihr erster Block eine Überschrift ist, die die Seite umbricht; deshalb hält pages: 'body' die Kolumnentitel von ihr fern, und die Fußzeile gibt ihr stattdessen eine Seitenzahl am Fuß.

Das ganze Rezept

Sandbox
// ═══ Postext Cookbook · Nº 070 · Play script: cast list, speakers and stage directions ═══
// https://postext.dev/en/cookbook/stage-play
// Code: MIT · Text: Oscar Wilde, 1895 (PD, Gutenberg #844), Spanish: the Cookbook · Art: in code
// Fonts: Libre Baskerville, Abril Fatface, Playfair Display SC (OFL 1.1) · Needs postext ≥ 1.25.0
import {
  buildDocumentWithFonts, renderPageToCanvas, registerResourceImage,
} from 'https://esm.sh/postext';

const LANG = 'en'; // @lang: the language of the sample document ('en' | 'es')
const RECIPE = 'stage-play';

// ─── 1 · Design ─────────────────────────────────────────────────────────────
const palette = { // every colour in the config links to one of these
  ink: '#221b1f', // the dialogue: a near-black with a little plum in it
  plum: '#5b2349', // the one accent: speakers' names, act titles, the title page's ground
  gold: '#b48a45', // rules and ornaments
  gilt: '#c9aa77', // gold lightened for small type on the plum ground (5.3:1)
  muted: '#6c6168', // stage directions and running heads (5.5:1 on the paper)
  paper: '#fbf6ec', // a cream stock
};
// A colour is its hex and the palette entry it follows.
const col = (id) => ({ hex: palette[id], model: 'hex', paletteId: id });
const colorPalette = [
  ...Object.entries(palette).map(([id, hex]) => ({ id, name: id, value: { hex, model: 'hex' } })),
  // The engine's defaults link to 'main-color': point it at the accent, so nothing prints blue.
  { id: 'main-color', name: 'plum (defaults)', value: { hex: palette.plum, model: 'hex' } },
];
const [TEXT, DISPLAY, LABEL] = ['Libre Baskerville', 'Abril Fatface', 'Playfair Display SC'];
const [BODY, LEAD] = [9.4, 13.6]; // pt: the dialogue and its leading, the pitch of the grid
const TRIM = { width: 140, height: 216 }; // mm: 5½ × 8½ in, the acting-edition size
const [TOP, INNER, OUTER, LINES] = [20, 18, 15, 36]; // mm, and 36 lines to a full page

// #region answer: a speech is a paragraph: the name in bold, the directions in italic
// Speeches are plain paragraphs, the speaker's name in bold and each stage direction in
// italic; a direction between two speeches is a paragraph of its own, in a container:
//   **LANE.** Yes, sir. *[Hands them on a salver.]*
//   :::paragraphs{style="direction"}
//   *[Enter Lane.]*
//   :::
// The body's two emphasis colours then mark who speaks (plum) and what is done (grey).
const dialogue = {
  fontFamily: TEXT, fontSize: pt(BODY), lineHeight: pt(LEAD), color: col('ink'),
  boldColor: col('plum'), // **ALGERNON.**
  italicColor: col('muted'), // *[Languidly.]*, in a speech or a paragraph of its own
  minWordSpacing: 0.65, maxWordSpacing: 1.8, // justified (the default); limits inside 0.6–2
  // A runt fix tracks by 5/1000 em at most (default 10). At 10, “that?” went up beside “as”
  // and the speech stood darker than the ones around it; at 5 the word turns over.
  maxRuntTracking: 5,

Das zusammengesetzte script.js läuft unverändert: Fügen Sie es in das Modulskript einer beliebigen Seite ein, oder öffnen Sie das Rezept auf CodePen. Ordner des Rezepts auf GitHub ↗ (öffnet sich in einem neuen Tab)

Varianten

#Die Regieanweisungen an den Folgezeilen ausrichten

Linksbündig mit 5 mm Erstzeileneinzug beginnt eine einzeilige Regieanweisung dort, wo die Folgezeilen der Repliken beginnen, und die Szenerie wird zu zwei eingezogenen Absätzen unter ihrer zentrierten Bezeichnung.

 const direction = { id: 'direction', fontSize: pt(8.6),
-  textAlign: 'center', firstLineIndent: pt(0) };
+  textAlign: 'left', firstLineIndent: mm(5) };

#Eine Zeile zwischen den Repliken lassen

paragraphSpacing: true fügt nach jeder Replik eine leere Rasterzeile ein. Der englische Akt läuft dann auf fünf statt drei Seiten, der spanische auf vier.

   firstLineIndent: mm(5), hangingIndent: true, // the name at the margin, the turnovers hung
+  paragraphSpacing: true,
 };

Häufige Fehler

Häufiger Fehler

::resource{id="…"} nimmt nur doppelte Anführungszeichen

Eine Block-Einbettung wird nur als ::resource{id="…"} mit doppelten Anführungszeichen erkannt; jede andere Form bleibt als sichtbare Zeile im Text. Abbildungen genau hier →

  • Jeder kursive Lauf im Dialog nimmt italicColor an, Hervorhebungen eingeschlossen, sodass Lanes betontes is im Grau der Regieanweisungen erscheint. Das Grau sitzt an bodyText, weil die meisten Regieanweisungen innerhalb einer Replik stehen, im selben Absatz wie die Hervorhebung; nur aufrechte Schrift hielte das is in Textfarbe.
  • Drei von Wildes Repliken enden mit einem einzelnen Wort: information., you. und that? Die Korrektur zu kurzer Ausgangszeilen kann das dritte in die Zeile davor ziehen, aber nur mit 1 % negativer Laufweite, so viel, wie bodyText.maxRuntTracking standardmäßig erlaubt, und die Replik wirkt dann dunkler als die umgebenden. maxRuntTracking: 5 halbiert diese Grenze: that? bricht um, und die Zeile darüber öffnet sich auf das 1,78-Fache des normalen Wortabstands, innerhalb der Grenze von 1,8. Die englischen Seiten behalten die drei kurzen Ausgangszeilen, statt Wildes Worte zu ändern. Die spanische Übersetzung wurde überall umformuliert, wo eine Zeile auf einem Wort aus einem Buchstaben endete oder eine Silbe allein stand.
  • Namen werden getrennt wie jedes andere Wort: Au-gusta und Gwen-dolen brechen auf Seite 5 über Zeilen um. Ein Wortverbinder (U+2060) in Augusta hält es ganz, dehnt aber die Zeile darüber auf das 1,71-Fache des normalen Wortabstands, deshalb behält der englische Text die Trennstriche.
  • Playfair Display SC zeichnet fi auf dem Canvas als Kleinbuchstaben-Ligatur, sodass in first ein kleines fi zwischen Kapitälchen stünde. Deshalb lautet der Kopf des Personenverzeichnisses The original cast.

Nachweise

Text
  • The Importance of Being Earnest (1895): the persons and scenes of the play, the first cast and the opening of the first act · Oscar Wilde · gemeinfrei
  • The Spanish translation of the extract, the cast list and the scenes · Postext Cookbook · eigener Text
Bilder
  • The title page’s frame and the carnation fleuron, drawn in code in the page’s palette · Ignacio Ferro · MIT
Schriften
Libre Baskerville (SIL OFL 1.1) · Abril Fatface (SIL OFL 1.1) · Playfair Display SC (SIL OFL 1.1)
Sandbox