Zum Hauptinhalt springen
Rezept Nummer 206

Rezepte · Kapitel 2 · Schrift und Text

Majakowskis Treppenvers, getippt und gesetzt

Ein ganzes Gedicht Majakowskis von 1929 auf vier Seiten in Rot und Schwarz: jede Stufe mit einem Pluszeichen getippt, der letzte Satz auf rotem Feld.

Auf dieser Seite
Gattung
Lyrik
Ausgabe
Canvas · PDF
Stufe
Mittel
Postext
Getestet mit Postext 1.100.0
Erfordert ≥ 1.100.0 · postext-pdf ≥ 1.100.0
Lizenz
Aktualisiert am 2. Dez. 2026
Code MIT · Text MIT

S. 4 von 4

  • Englisches Beispiel: noch keine deutsche Ausgabe
  • Endformat 170 × 260 mm
  • 1 Spalte
  • Golos Text 12,5/14,6
  • Sofia Sans Extra Condensed
  • 4 Seiten
  • Stufe
  • Postext 1.100.0
  • In 50 ms gesetzt
  • 136 Zeilen Code

Kurz gesagt

Ein berühmtes sowjetisches Gedicht, dessen Zeilen die Seite wie eine Treppe hinabsteigen. Jede Stufe beginnt, wo die vorige endet, und die Seiten sind rot und schwarz wie die Plakate ihrer Zeit.

Was Sie setzen

Стихи о советском паспорте (Verse vom Sowjetpass, 1929), vollständig, auf vier Seiten im Format 170 × 260 mm. Majakowski brach seine Verse in Stufen, jede vom Ende der vorigen aus, und die Gesamtausgabe zählt jede Stufe als Zeile. Das Gedicht füllt 43, 43 und 29 Stufen je Seite in Golos Text, 12,5 auf 14,6 pt; die Wendungen, die den Pass nennen, stehen fett in Rot. Der letzte Satz steht in einem roten Feld am Fuß von Seite 4. Umschlag, Reiter und Feld sind flache Formen in Schwarz, Rot und Rohpapier, nach dem Vorbild von El Lissitzkys Gestaltung für Majakowski.

Dieses Rezept beantwortet

  • Wie setze ich Treppenvers (Majakowskis Lesenka), sodass jede Stufe dort beginnt, wo die darüber endet?
  • Wie setze ich Lyrik: eine Zeile pro Vers, Abstand zwischen Strophen, hängende Einzüge für umbrochene Zeilen, keine Silbentrennung?

Die kurze Antwort

script.js · Zeilen 46–66im vollständigen Code
// A line of verse typed as the book prints it, its steps marked +:
//   К любым
//   + чертям с матерями
//   + катись
// A step starts a word space after the end of the step above, so the steps keep the rhyme's
// line whole whatever the face or the size. They are lines: nothing joins them or divides
// them, and they are not hyphenated. A step that would run past the measure moves back until
// it fits; one wider than the whole measure turns over, `hang` in from its own start.
// align=start on the fence sets the poem flush left; by default it is centred.
const LOCALE = 'ru';
const verse = { turnover: 'hang', hang: em(2), tighten: true }; // config().bodyText.verse
const paragraphStyles = [
  { id: 'step', fontFamily: TEXT, fontSize: pt(BODY), lineHeight: pt(LEAD), color: col('ink'),
    textAlign: 'left', indent: mm(38), firstLineIndent: pt(0),
    marginTop: pt(0), marginBottom: pt(0) },
  { id: 'shout', fontFamily: DISPLAY, fontWeight: 900, fontSize: pt(29), lineHeight: pt(27),
    color: col('paper'), textAlign: 'left', firstLineIndent: pt(0), marginTop: pt(0),
    marginBottom: pt(0) },
  { id: 'colophon', fontSize: pt(7.6), lineHeight: pt(10), color: col('paper'),
    textAlign: 'left', firstLineIndent: pt(0), hyphenation: { enabled: false } },
];

Zutaten

Schrift
Golos Text, Sofia Sans Extra Condensed (SIL OFL 1.1)
Dateien
Keine: Jedes Bild wird im Code gezeichnet

Zubereitung

#1 · Jede Stufe mit einem Pluszeichen tippen

Der Code steht oben in der kurzen Antwort. In einem :::verse-Block wird die erste Stufe eines Verses getippt, wie sie ist, jede weitere beginnt mit + . Das Programm setzt sie einen Wortabstand hinter das Ende der Stufe darüber. Leerzeichen oder Tabulatoren sind nicht zu zählen; eine andere Schrift oder ein anderer Grad nimmt die ganze Treppe mit. Eine Stufe, die über den Satzspiegel hinausliefe, rückt zurück, bis sie passt; nur eine Stufe, die breiter ist als die Satzbreite selbst, wird umbrochen und hängt unter ihrem eigenen Anfang.

#2 · In Rot die Stimme heben

script.js · Zeile 70im vollständigen Code
const characterStyles = [{ id: 'loud', name: 'Loud', fontWeight: 900, color: col('red') }];

Die Bücher, die Lissitzky für Majakowski gestaltete, rufen mit Fette und Farbe. Hier tut es ein Zeichenstil: :span[Но эту…]{style="loud"} nimmt Golos Text 900 und das Rot, und da die nächste Stufe von seinem Ende aus gemessen wird, bleibt die Treppe genau.

#3 · Jede zehnte Stufe nummerieren

script.js · Zeilen 74–76im vollständigen Code
const lineNumbers = { enabled: true, count: 'verse', restart: 'document', interval: 10,
  position: 'left', gap: mm(-32), // the column starts at the trim: 32 mm in from its edge
  fontFamily: DISPLAY, fontWeight: 900, fontSize: pt(13), color: col('red') };

lineNumbers zählt die Zeilen eines Gedichts, und eine Stufe ist eine Zeile. Das Gedicht ist mit einem Block je Seite geschrieben; lineStart=44 und lineStart=87 führen die Zählung fort. Die Spalte beginnt am Beschnitt, damit das rote Feld randlos läuft; der Absatzstil rückt die Verse um 38 mm ein, ein negatives gap holt die Nummern herein.

#4 · Den Umschlag aus Pfaden zeichnen

script.js · Zeilen 80–99im vollständigen Code
const P = [60, 78]; // the passport's top corner
const flat = { pages: 'opener' }; // the shapes: in the header slot, for the cover alone
const cover = { id: 'cover', numbered: false, breakBefore: { enabled: true, parity: 'odd' },
  advancedDesign: { enabled: true, slot: { elements: [
    text('year', '{attr.year}', 28, 'ink', at('page', 'top-right', -14, 15)),
    text('one', '{attr.one}', 52, 'ink', at('page', 'top-left', 14, 182)),
    text('two', '{attr.two}', 52, 'red', { ...at('#one', 'right-of', 3, 17) }),
    text('three', '{attr.three}', 118, 'ink', at('page', 'bottom-left', 14, -12)),
  ] } } };
const coverShapes = [
  poly('field', 'ink', [[0, 0], [124, 0], [0, 176]], flat),
  disc('sun', 'paper', 88, 92, 52, flat),
  bar('ray', 'ink', -6, 180, 190, 3, flat),
  bar('passport', 'red', ...P, 74, 100, flat),
  disc('seal', 'paper', ...on(...P, 37, 39), 17, flat),
  disc('eye', 'ink', ...on(...P, 37, 39), 9, flat),
  ...[48, 36, 24].map((len, i) =>
    bar(`line-${i}`, 'paper', ...on(...P, 13, 68 + 9 * i), len, 4, flat)),
  text('author', '{author}', 26, 'paper', at('page', 'top-left', 14, 15), flat),
];

Pfade nehmen Punkte in Millimetern an, wenn der viewBox so groß ist wie die Seite. Gedreht werden sie nicht, darum berechnet bar seine vier Ecken auf einer Neigung von 17 Grad. Die Formen stehen im Kopf mit pages: 'opener', denn die Gestaltung einer Überschrift endet am Fuß des Satzspiegels. Auch der Titel geht in Stufen: о советском ist rechts an Стихи verankert.

#5 · Die Seitenzahl im Reiter

script.js · Zeilen 103–113im vollständigen Code
const tab = (parity, edge, x) => [
  { kind: 'box', id: `tab-${parity}`, parity, pages: 'body', style: { backgroundColor: col('ink') },
    placement: { ...at('page', edge, 0, 22), size: { width: mm(13), height: mm(20) } } },
  text(`folio-${parity}`, '{pageNumber}', 26, 'paper', at('page', edge, x, 28),
    { parity, pages: 'body' }),
];
const header = { elements: [...coverShapes, ...tab('even', 'top-left', 4.6),
  ...tab('odd', 'top-right', -4.6)] };
const LINES = 43; // three pages of 43, 43 and 29 steps, and five in the red field
const margins = { top: mm(22), bottom: mm(H - 22 - (LINES * LEAD * 25.4) / 72 - 0.1),
  left: mm(0), right: mm(0) };

Ein schwarzes Feld am Vorderschnitt trägt die Seitenzahl, auf geraden Seiten links, auf ungeraden rechts, eine Erinnerung an das gestanzte Griffregister von Für die Stimme. pages: 'body' hält es vom Umschlag fern.

#6 · Auf rotem Feld schließen

script.js · Zeilen 117–121im vollständigen Code
const box = (id, y, top, bottom) => ({ id, placement: 'fixed', background: col('red'),
  fixed: { anchor: { to: 'page', edge: 'bottom-left' }, offset: { x: mm(0), y: mm(y) } },
  stripe: { enabled: false },
  padding: { top: mm(top), right: mm(14), bottom: mm(bottom), left: mm(14) } });
const calloutStyles = [box('finale', -20.6, 10, 5), box('colophon', 0, 2, 8)];

Die letzten fünf Stufen sind ein eigener :::callout, am Fuß der Seite befestigt und so breit wie sie. Der Block darin nimmt den Stil shout: Sofia Sans Extra Condensed 900 in 29 pt. Das Kolophon ist ein zweiter Kasten darunter; der Streifen Papier dazwischen ist die weiße Linie eines Plakats.

Das ganze Rezept

Sandbox
// ═══ Postext Cookbook · Nº 206 · Mayakovsky in steps: the lesenka as he printed it ═════
// https://postext.dev/en/cookbook/stepped-verse-lesenka
// Code: MIT · Text: V. Mayakovsky, Стихи о советском паспорте, 1929 (PD; PSS, vol. 10)
// Fonts: Sofia Sans Extra Condensed, Golos Text (SIL OFL 1.1) · Needs postext ≥ 1.100.0
import { buildDocumentWithFonts, renderPageToCanvas } from 'https://esm.sh/postext';
import { renderToPdf, decompressWoff2 } from 'https://esm.sh/postext-pdf';

const LANG = 'en'; // @lang: the language of the colophon ('en' | 'es' | 'ru')
const RECIPE = 'stepped-verse-lesenka';

// ─── 1 · Design ─────────────────────────────────────────────────────────────
// Two inks on a raw paper, as the Constructivists printed: black, vermilion, no third.
const palette = {
  ink: '#171412', // the verse, the fields
  red: '#c9281b', // the passport, the loud steps, the last page
  paper: '#f0e7d6', // an unbleached stock
};
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' } })),
  { id: 'main-color', name: 'red (defaults)', value: { hex: palette.red, model: 'hex' } },
];
const [TEXT, DISPLAY] = ['Golos Text', 'Sofia Sans Extra Condensed'];
const [BODY, LEAD] = [12.5, 14.6]; // pt
const [W, H] = [170, 260]; // mm: the sheet 70 × 108/16 of GOST 5773
const at = (to, edge, x = 0, y = 0) => ({ anchor: { to, edge }, offset: { x: mm(x), y: mm(y) } });
const text = (id, content, size, color, placement, extra = {}) => ({ kind: 'text', id, content,
  fontFamily: DISPLAY, fontWeight: 900, fontSize: pt(size), lineHeight: 0.8, color: col(color),
  textTransform: 'uppercase', placement, ...extra });
// A flat shape in millimetres of the page: a polygon from its points, a disc from its radius.
const shape = (id, color, d, extra = {}) => ({ kind: 'path', id, d, viewBox: [W, H],
  fill: col(color), ...extra, placement: { ...at('page', 'top-left'),
    size: { width: mm(W), height: mm(H) } } });
const poly = (id, color, points, extra) =>
  shape(id, color, `M${points.map((p) => p.join(' ')).join('L')}Z`, extra);
const disc = (id, color, x, y, r, extra) => shape(id, color,
  `M${x - r} ${y}A${r} ${r} 0 1 1 ${x + r} ${y}A${r} ${r} 0 1 1 ${x - r} ${y}Z`, extra);
// A bar laid along a slant: `len` from (x, y) on the passport's own axes, `wide` across it.
const [UX, UY] = [Math.cos(-0.3), Math.sin(-0.3)]; // the slant: 17 degrees
const bar = (id, color, x, y, len, wide, extra) => poly(id, color, [[x, y],
  [x + len * UX, y + len * UY], [x + len * UX - wide * UY, y + len * UY + wide * UX],
  [x - wide * UY, y + wide * UX]].map((p) => p.map((n) => Math.round(n * 100) / 100)), extra);
const on = (x, y, u, v) => [x + u * UX - v * UY, y + u * UY + v * UX]; // a point on those axes

// #region answer: each step on its own line, led by a plus sign
// A line of verse typed as the book prints it, its steps marked +:
//   К любым
//   + чертям с матерями

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)

Häufige Fehler

  • Ein Vers, der wirklich mit einem Pluszeichen beginnt, wird \+ geschrieben.
  • In größerem Grad geht langen Versen der Platz aus, und die letzten Stufen rücken zurück; das sieht nach einem Fehler aus. Der Satz im roten Feld braucht bei 29 pt 123 mm; prüfen Sie den längsten Vers, bevor Sie vergrößern.

Nachweise

Text
  • Стихи о советском паспорте, 1929, complete, after the Complete Works in thirteen volumes (vol. 10, 1958) in the transcription of ru.wikisource · Vladimir Mayakovsky · gemeinfrei
  • The colophon · Postext Cookbook · eigener Text
Schriften
Golos Text (SIL OFL 1.1) · Sofia Sans Extra Condensed (SIL OFL 1.1)
Sandbox