انتقل إلى المحتوى الرئيسي
الوصفة رقم 206

دليل الوصفات · الفصل 2 · الحروف والنص

شعر ماياكوفسكي المدرّج، كتابةً وتنضيدًا

قصيدة كاملة لماياكوفسكي من عام 1929 في أربع صفحات بالأحمر والأسود: تُكتب كل درجة بعلامة زائد، وتُرقَّم كل عشر درجات، والجملة الأخيرة في حقل أحمر.

في هذه الصفحة
النوع
الشعر
المُخرَج
Canvas · PDF
المستوى
متوسط
Postext
اختُبرت مع Postext 1.100.0
تتطلب ≥ 1.100.0 · postext-pdf ≥ 1.100.0
الترخيص
حُدّثت في 2 ديسمبر 2026
الشيفرة MIT · النص MIT
  • نموذج باللغة الإنجليزية: لا توجد طبعة عربية بعد
  • مقاس القص 170 × 260 مم
  • عمود واحد
  • Golos Text 12.5/14.6
  • Sofia Sans Extra Condensed
  • 4 صفحات
  • المستوى
  • Postext 1.100.0
  • أُخرجت في 50 ms
  • أسطر الشيفرة: 136

باختصار

قصيدة سوفيتية مشهورة تنزل أبياتها على الصفحة كالدرج. تبدأ كل درجة حيث تنتهي التي فوقها، والصفحات بالأحمر والأسود كملصقات زمنها.

ما الذي ستنضده

قصيدة Стихи о советском паспорте («أبيات عن جواز السفر السوفيتي»، 1929) كاملةً في أربع صفحات مقاسها 170 × 260 مم. كان ماياكوفسكي يقطّع أبياته درجاتٍ تبدأ كل واحدة حيث توقفت سابقتها، والأعمال الكاملة تعدّ كل درجة سطرًا. تقع القصيدة في 43 و43 و29 درجة في الصفحة بخط Golos Text بحجم 12.5 على 14.6 نقطة، والعبارات التي تسمّي الجواز بأحمر سميك. والجملة الأخيرة في حقل أحمر أسفل الصفحة 4. الغلاف وألسنة الأرقام والحقل أشكال مسطّحة بالأسود والأحمر ولون الورق الخام، على نهج صفحات إل ليسيتسكي لماياكوفسكي.

تجيب هذه الوصفة عن

  • كيف أنضّد الشعر المدرّج (ليسينكا ماياكوفسكي) بحيث تبدأ كل درجة حيث تنتهي التي فوقها؟
  • كيف أنضد الشعر: سطر لكل بيت، وفراغ بين المقاطع، ومسافة بادئة معلّقة للأسطر الملتفّة، وبلا تقسيم كلمات؟

الجواب المختصر

script.js · الأسطر 46–66في الشيفرة الكاملة
// 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 } },
];

المكونات

الخطوط
Golos Text, Sofia Sans Extra Condensed (SIL OFL 1.1)
الأصول
لا شيء: كل صورة مرسومة بالشيفرة

طريقة التحضير

#1 · اكتب كل درجة بعلامة زائد

الشيفرة هي الجواب المختصر أعلاه. داخل سياج :::verse تُكتب الدرجة الأولى من البيت كما هي، وتبدأ كل درجة بعدها بـ + . يضعها المحرّك على بُعد مسافة كلمة من نهاية الدرجة التي فوقها. لا مسافات تُعدّ ولا علامات جدولة، فإذا تغيّر الخط أو الحجم انتقل الدرج كله معه. والدرجة التي تتجاوز عرض السطر ترجع إلى أن تتسع؛ ولا تُكمَل على سطر ثانٍ إلا درجة أعرض من السطر نفسه، معلّقةً تحت بدايتها.

#2 · ارفع الصوت بالأحمر

script.js · السطر 70في الشيفرة الكاملة
const characterStyles = [{ id: 'loud', name: 'Loud', fontWeight: 900, color: col('red') }];

الكتب التي صمّمها ليسيتسكي لماياكوفسكي تصرخ بالسماكة واللون. يتولى ذلك هنا نمط محارف: :span[Но эту…]{style="loud"} يأخذ Golos Text 900 واللون الأحمر، ولأن الدرجة التالية تُقاس من نهايته يبقى الدرج دقيقًا.

#3 · رقّم كل عاشر درجة

script.js · الأسطر 74–76في الشيفرة الكاملة
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 أسطر القصيدة، والدرجة سطر. كُتبت القصيدة بسياج لكل صفحة، فيتابع lineStart=44 وlineStart=87 العدّ. يبدأ العمود عند حافة القص ليخرج الحقل الأحمر إلى خارج الصفحة؛ ونمط الفقرة يزيح الأبيات 38 مم، وgap سالب يُدخل الأرقام.

#4 · ارسم الغلاف بالمسارات

script.js · الأسطر 80–99في الشيفرة الكاملة
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),
];

تأخذ عناصر المسار نقاطًا بالملّيمتر حين يكون viewBox بحجم الصفحة. والمسارات لا تُدار، لذلك يحسب bar زواياه الأربع على ميل 17 درجة. الأشكال في خانة الرأس مع pages: 'opener'، لأن تصميم العنوان يُقصّ عند أسفل مساحة النص. والعنوان نفسه ينزل درجًا: о советском مثبّت إلى يمين Стихи.

#5 · رقم الصفحة في لسان

script.js · الأسطر 103–113في الشيفرة الكاملة
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) };

صندوق أسود عند الحافة الأمامية يحمل رقم الصفحة، إلى اليسار في الصفحات الزوجية وإلى اليمين في الفردية، تذكيرًا بالفهرس المقصوص في من أجل الصوت. وpages: 'body' يبعده عن الغلاف.

#6 · اختم في حقل أحمر

script.js · الأسطر 117–121في الشيفرة الكاملة
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)];

الدرجات الخمس الأخيرة :::callout مستقل، مثبّت أسفل الصفحة وبعرضها. والسياج داخله يأخذ النمط shout: ‏Sofia Sans Extra Condensed 900 بحجم 29 نقطة. وبيانات الطباعة صندوق ثانٍ تحته، وشريط الورق بينهما هو الخط الأبيض في الملصق.

الوصفة كاملة

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 +:
//   К любым
//   + чертям с матерями

يعمل ملف script.js المجمّع كما هو: الصقه في سكربت الوحدة (module) لأي صفحة، أو افتح الوصفة على CodePen. مجلد الوصفة على GitHub ↗ (يفتح في تبويب جديد)

أخطاء شائعة

  • البيت الذي يبدأ فعلًا بعلامة زائد يُكتب \+.
  • في حجم أكبر لا تتسع درجات البيت الطويل فترجع الأخيرة، ويبدو ذلك خطأً. تحتاج جملة الحقل الأحمر إلى 123 مم بحجم 29 نقطة؛ افحص أطول بيت قبل التكبير.

الحقوق

الوصفة
Ignacio Ferro
النص
  • Стихи о советском паспорте, 1929, complete, after the Complete Works in thirteen volumes (vol. 10, 1958) in the transcription of ru.wikisource · Vladimir Mayakovsky · ملك عام
  • The colophon · Postext Cookbook · أصلي
الخطوط
Golos Text (SIL OFL 1.1) · Sofia Sans Extra Condensed (SIL OFL 1.1)
الشيفرة
MIT، مثل Postext
Sandbox