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

دليل الوصفات · الفصل 4 · الترويسات وأرقام الصفحات

ترويسات بحسب زوجية الصفحة في كتاب مقالات

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

في هذه الصفحة
المُخرَج
Canvas
المستوى
متوسط
Postext
اختُبرت مع Postext 1.65.0
تتطلب ≥ 1.57.0
الترخيص
حُدّثت في 22 أكتوبر 2026
الشيفرة MIT · النص MIT

ص 30–31 · 2–3 من 5

  • نموذج باللغة الإنجليزية: لا توجد طبعة عربية بعد
  • مقاس القص 132 × 198 مم
  • عمود واحد
  • Baskervville 10.2/14
  • Alegreya SC
  • Libre Caslon Display
  • 5 صفحات
  • المستوى
  • Postext 1.57.1
  • أُخرجت في 63 ms
  • أسطر الشيفرة: 174

باختصار

خمس صفحات من كتاب مقالات صغير. تبيّن كيف تطبع عنوان الكتاب أعلى الصفحات اليسرى وعنوان المقالة أعلى الصفحات اليمنى.

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

الصفحات من 29 إلى 33 من طبعة جيب من Essays لمونتيني بترجمة تشارلز كوتون الإنجليزية: الفصل IV كاملًا ومطلع الفصل V. على الصفحات الزوجية عنوان الكتاب بحروف كبيرة متباعدة. وعلى الفردية عنوان المقالة بالمائل، مختصرًا بنقاط حذف، لأن عنوان الفصل IV يبلغ 81 حرفًا. يقع كل رقم صفحة في لسان بني داكن في الهامش الخارجي، على بعد 3 mm من خط بسماكة 0.5 pt عند حافة كتلة النص. وليس في صفحة الافتتاح ترويسة، بل رقم صفحة في الأسفل فقط. النص بخط Baskervville على صفحة بيضاء مائلة إلى الدفء، والعناوين بخط Libre Caslon Display، وأرقام الصفحات وعنوان الكتاب بخط Alegreya SC. كل ترويسة معرّفة في الإعدادات، فلا تُطبع أبدًا الترويسة المدمجة في المحرّك، Open Sans أزرق بحجم 8 pt.

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

  • كيف أضبط الترويسات: عنوان الكتاب في الصفحة اليسرى، وعنوان الفصل في اليمنى، ورقم الصفحة في الجانب الخارجي؟
  • كيف أخفي الترويسات في صفحات الافتتاح والصفحات الفارغة، أو ألوّن صفحة زوجية فارغة بلون الجزء؟
  • كيف أمنع العناوين والكلمات العريضة والنقاط من الظهور باللون الأزرق؟

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

script.js · الأسطر 67–95في الشيفرة الكاملة
const GAP = 3; // mm from the tab to the divider, which lands on the text block's edge
const HEAD = 12; // mm from the top edge of the page to the top of the tab
const CAP = t({ en: 60.5, es: 66.8 }); // mm: the head's widest line, set per edition so
// essay IV's is cut after 'false' and 'objetos'; a short running title suits any title
const page = (edge) => ({ to: 'page', edge }); // the trim box (gotcha: negative-offsets)
const header = { elements: [
  // Verso (even): tab | divider | THE BOOK'S TITLE from the frontmatter
  folio({ id: 'folio-even', parity: 'even', pages: 'body', anchor: page('top-left'),
    x: OUTER - GAP - TAB, y: HEAD }),
  divider({ id: 'rule-even', parity: 'even', from: 'folio-even', edge: 'right-of', x: GAP }),
  { kind: 'text', id: 'book', content: '{title}', parity: 'even', pages: 'body',
    fontFamily: 'Alegreya SC', fontSize: pt(FOLIO_PT), lineHeight: LINE / FOLIO_PT,
    color: col('muted'), textTransform: 'uppercase', letterSpacing: pt(1.3),
    placement: { anchor: { to: '#rule-even', edge: 'right-of' }, // top: the tab's top
      offset: { x: mm(2.5), y: pt(PAD.top) } } }, // PAD.top down: on the folio's baseline
  // Recto (odd): the essay's title, cut short with an ellipsis | divider | tab.
  folio({ id: 'folio-odd', parity: 'odd', pages: 'body', anchor: page('top-right'),
    x: -(OUTER - GAP - TAB), y: HEAD }), // from the right edge, a negative x runs inwards
  divider({ id: 'rule-odd', parity: 'odd', from: 'folio-odd', edge: 'left-of', x: -GAP }),
  { kind: 'text', id: 'essay', content: '{chapterTitle}', parity: 'odd', pages: 'body',
    fontFamily: 'Baskervville', italic: true, fontSize: pt(TITLE_PT),
    lineHeight: LINE / TITLE_PT, color: col('muted'),
    overflow: 'ellipsis-end', // stated, though a running head's default
    placement: { anchor: { to: '#rule-odd', edge: 'left-of' },
      offset: { x: mm(-2.5), y: pt(PAD.top) }, size: { maxWidth: mm(CAP) } } },
] };
// Openers: no head, only a drop folio HEAD above the page's foot, centred under the text block.
const footer = { elements: [folio({ id: 'drop-folio', parity: 'all', pages: 'opener',
  anchor: { to: 'container', edge: 'bottom' }, y: -HEAD })] };

المكونات

الخطوط
Baskervville, Libre Caslon Display, Alegreya SC (SIL OFL 1.1)
الأصول
لا شيء: كل صورة مرسومة بالشيفرة

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

#1 · استبدل الترويسة الزرقاء المدمجة

script.js · الأسطر 14–26في الشيفرة الكاملة
const palette = {
  ink: '#1f1b16', // text: a warm near-black, never #000
  sepia: '#8a5a2b', // the one accent: folio tabs, dividers, opener plates (5.3:1 on paper)
  muted: '#6f6558', // running heads, verse glosses, the colophon (5.2:1 on paper)
  paper: '#f8f4ec', // a warm off-white page; also the type reversed out of the sepia
};
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' } })),
  // Text-style defaults (headings, bold, italic, lists, boxes) link to 'main-color':
  // pointed at the sepia, none of them prints in the engine's blue.
  { id: 'main-color', name: 'sepia (defaults)', value: { hex: palette.sepia, model: 'hex' } },
];

كل لون في الإعدادات مرتبط بأحد هذه المداخل. إن تركت header بلا تعريف رسم المحرّك ترويسته المدمجة: {title} على الصفحات الفردية و{chapterTitle} على الزوجية فوق خط بسماكة 1 pt، بخط Open Sans 600 بحجم 8 pt وبالأزرق #295AA3 (الترويسات والتذييلات). وتوجيه main-color إلى البني الداكن يعيد تلوين قيم النص الافتراضية وتلك الترويسة معها، لكن خط حروفها والخط المرسوم تحتها والجهة التي يُطبع عليها كل عنوان تبقى كما وضعها المحرّك. لذلك تُكتب كل ترويسة هنا كاملة، وكل لون فيها مرتبط بمدخل في لوحة الألوان. والعريض والمائل والإحالات تأخذ افتراضيًا main-color أيضًا، فيعيدها bodyText إلى لون الحبر.

#2 · ابنِ كل ترويسة من لسان واحد

script.js · الأسطر 31–48في الشيفرة الكاملة
const FOLIO_PT = 7.5; // pt: the folio, and the book's title in capitals beside it
const TITLE_PT = 8.8; // pt: the essay's title, whose italic lowercase reads small at 7.5
const LINE = FOLIO_PT * 1.2; // pt: the folio and both titles share this line box and baseline
const PAD = { top: 1, bottom: 1.4 }; // pt: 0.4 pt more below for the descending 3, 5, 7, 9
const TAB = 7.5; // mm: the tab's width
const TAB_H = LINE + PAD.top + PAD.bottom; // pt: the tab's height, which the divider matches
const folio = ({ id, parity, pages, anchor, x = 0, y }) => ({
  kind: 'text', id, content: '{pageNumber}', parity, pages, fontFamily: 'Alegreya SC',
  fontSize: pt(FOLIO_PT), fontWeight: 700, lineHeight: LINE / FOLIO_PT, color: col('paper'),
  box: { backgroundColor: col('sepia'), borderRadius: mm(2), // a pill; the number is centred
    padding: { top: pt(PAD.top), bottom: pt(PAD.bottom) } }, // by default in both directions
  placement: { anchor, offset: { x: mm(x), y: mm(y) }, size: { width: mm(TAB) } },
});
const divider = ({ id, parity, from, edge, x }) => ({
  kind: 'rule', id, parity, pages: 'body', direction: 'vertical', thickness: pt(0.5),
  color: col('sepia'), placement: { anchor: { to: `#${from}`, edge }, offset: { x: mm(x) },
    size: { height: pt(TAB_H) } },
});

يربط الجواب المختصر لسان كل ترويسة بـ'page'، فتُقاس إزاحاته من حدّ القص. ومن الزاوية top-right تمتد قيمة x الموجبة إلى خارج الصفحة، ولهذا يأخذ لسان الصفحة الفردية قيمة سالبة. يُربط الفاصل باللسان، والعنوان بالفاصل (موضع العناصر). أحجام اللسان ثوابت مسمّاة لأن القطع الأخرى تُقاس منها. ارتفاع الفاصل TAB_H. ويتشارك رقم الصفحة والعنوانان مستطيل سطر واحدًا بحجم 9 pt، ويقع خط الأساس لنص التصميم عند 80% من ارتفاع مستطيل سطره، فتقف الثلاثة على خط أساس واحد بأي حجم حرف.

الصفحة 30، وهي زوجية: اللسان والفاصل وعنوان الكتاب، تُقرأ نحو الداخل من الهامش الخارجي.
الصفحة 31، وهي فردية: عنوان المقالة مقطوعًا قبل الفاصل، واللسان في الهامش الخارجي.

#3 · اعكس الهوامش واحسب أسطرًا كاملة

script.js · الأسطر 52–63في الشيفرة الكاملة
const TRIM = { width: 132, height: 198 }; // mm
const TOP = 22; // mm: the top margin, which holds the heads (gotcha: header-paints-over-text)
const INNER = 15; // mm
const OUTER = 21; // mm: the outer margin, where the folio tabs hang
const LINES = 31; // whole lines of LEAD in the text block, so full pages end level
const MEASURE = TRIM.width - INNER - OUTER; // the text block's width: 96 mm
const geometry = { // left is the inner margin on a recto; mirror swaps it on the versos
  width: mm(TRIM.width), height: mm(TRIM.height), dpi: 150, // 150 dpi is for the screen
  backgroundColor: col('paper'),
  margins: { top: mm(TOP), bottom: mm(TRIM.height - TOP - (LINES * LEAD * 25.4) / 72),
    left: mm(INNER), right: mm(OUTER), mirror: true },
};

مع mirror: true يكون الهامش right هو الخارجي في الصفحة الفردية وينتقل إلى اليسار في الزوجية، فيكون OUTER دائمًا هامش الحافة الأمامية، حيث تتعلّق الألسنة. يُشتق الهامش السفلي من قياس القص والهامش العلوي وLINES، فتبقى كتلة النص LINES سطرًا بالضبط من LEAD (31 × 14 pt هنا) مهما كان قياس القص أو الهامش العلوي الذي تضبطه. تنتهي كل صفحة ممتلئة على السطر الحادي والثلاثين، فتنتهي الصفحتان المتقابلتان مثل 30 و31 على مستوى واحد.

#4 · دع صفحة الافتتاح تُظهر العنوان كاملًا

script.js · الأسطر 99–121في الشيفرة الكاملة
const PLATE = 26; // mm: a square plate at the head of the text block
const opener = {
  enabled: true,
  minHeight: mm(58), // the text of every essay starts on the same line
  slot: { elements: [
    { kind: 'box', id: 'plate', style: { backgroundColor: col('sepia') },
      placement: { anchor: { to: 'container', edge: 'top-left' },
        size: { width: mm(PLATE), height: mm(PLATE) } } },
    { kind: 'text', id: 'numeral', content: '{attr.num}', fontFamily: 'Libre Caslon Display',
      fontSize: pt(48), lineHeight: 1, color: col('paper'),
      placement: { anchor: { to: '#plate', edge: 'align-top' }, // the plate's own box, where
        size: { width: mm(PLATE), height: mm(PLATE) } } }, // the text centres by default
    { kind: 'text', id: 'book', content: '{subtitle}', fontFamily: 'Alegreya SC',
      fontSize: pt(8.5), letterSpacing: pt(1.4), color: col('sepia'), align: 'left',
      placement: { anchor: { to: 'container', edge: 'top-left' },
        offset: { x: mm(PLATE + 4.5), y: mm(PLATE - 2.9) } } }, // its baseline on the plate's foot
    { kind: 'text', id: 'title', content: '{titleText}', fontFamily: 'Libre Caslon Display',
      fontSize: pt(20), lineHeight: 1.12, color: col('ink'), align: 'left',
      overflow: 'wrap', // an opener shows the whole title; the running head cuts it
      placement: { anchor: { to: '#plate', edge: 'below' }, offset: { y: mm(6) },
        size: { width: mm(MEASURE) } } },
  ] },
};

تنضّد صفحة الافتتاح العنوان كاملًا مع overflow: 'wrap' وتقطعه عند كل \\ في سطر العنوان. ولا يلتزم بهذه القطوع إلا افتتاح يمتد على عرض الصفحة، لذلك يأخذ المستوى span: 'page' (قطع الأسطر في العناوين). وفي الترويسة يطبع {chapterTitle} العنوان دائمًا على سطر واحد، وتقطع نقاط الحذف ذلك السطر. يأتي الرقم من السمة {num="IV"} في العنوان، والحروف الكبيرة المصغّرة بجانب المربع من subtitle في البيانات التمهيدية.

#5 · افتتح كل مقالة على صفحة فردية

script.js · الأسطر 139–147في الشيفرة الكاملة
  headings: { // 400, the face's only weight: the default 700 would ask for one that is missing
    fontFamily: 'Libre Caslon Display', fontWeight: 400, color: col('ink'),
    levels: [
      // 'odd' puts every opener on a recto, adding a blank verso when one is needed;
      // span: 'page' makes the design an opener, where a \\ in the title breaks the line.
      { level: 1, span: 'page', breakBefore: { enabled: true, parity: 'odd' },
        marginTop: pt(0), marginBottom: pt(0), advancedDesign: opener },
    ],
  },

مع 'odd' تتبع المقالةَ التي تنتهي على صفحة فردية صفحةٌ زوجية فارغة. وفي الطبعة الإسبانية صفحة كهذه، لأن فصلها IV ينتهي في الصفحة 31؛ أما هنا فينتهي الفصل IV في الصفحة 32، وهي زوجية، ويبدأ الفصل V في الصفحة 33. ويُبعد pages: 'body' في الترويسات إياها عن الصفحات الفارغة وعن صفحات الافتتاح (الصفحات التي تكون أول كتلة فيها هذا العنوان). ويطبع pages: 'opener' في التذييل الرقم السفلي في صفحات الافتتاح وحدها (العناصر النصية).

#6 · ابدأ أرقام الصفحات من 29

script.js · الأسطر 251–255في الشيفرة الكاملة
// 28 pages come before this one, so recto and verso, the mirrored margins and the odd/even
// heads follow the book page (gotcha: parity-page1-recto); the folios start at 29.
const continuation = { pageIndexOffset: 28, pageNumbering: { startAt: 29 } };
const doc = await buildDocumentWithFonts({ markdown, continuation }, config(), kitFonts(FONTS));
showPages(doc, { title: t({ en: 'Running heads by parity', es: 'Cabeceras según la paridad' }) });

يعتمد parity على موقع الصفحة في الكتاب ويتجاهل رقمها المطبوع. يضيف pageIndexOffset: 28 العدد 28 إلى ترتيب كل صفحة، فتتبع الصفحةُ الفردية والزوجية والهوامشُ المعكوسة والترويساتُ الفردية والزوجية صفحةَ الكتاب. ثم يرقّم pageNumbering.startAt هذه الصفحات من 29 إلى 33. ومن دون الإزاحة تكون الصفحة الأولى من البناء فردية أيًّا كان الرقم الذي تطبعه. وهذا يناسب الصفحة 29 مصادفةً، لكن مع startAt: 30 كان عنوان الكتاب سيقع في الصفحة 31 وعنوان المقالة في الصفحة 32، كل منهما على الجانب الخطأ من الصفحتين المتقابلتين.

الوصفة كاملة

Sandbox
// ═══ Postext Cookbook · Nº 005 · Running heads by parity ═══════════════════════════════
// https://postext.dev/en/cookbook/running-heads-by-parity
// Code: MIT · Text: Montaigne, tr. Cotton (PD, Gutenberg #3600); es: new translation (MIT)
// Fonts: Baskervville, Libre Caslon Display, Alegreya SC (SIL OFL 1.1) · Needs postext ≥ 1.57.0
// Pages 29 to 33 of a pocket Montaigne. Versos carry the book's title and rectos the essay's,
// the folios sit in tabs in the outer margin, and an opener prints only a folio at the foot.
import { buildDocumentWithFonts, renderPageToCanvas } from 'https://esm.sh/postext';

const LANG = 'en'; // @lang: the language of the sample document ('en' | 'es')
const RECIPE = 'running-heads-by-parity';

// ─── 1 · Design ─────────────────────────────────────────────────────────────
// #region palette: four colours with semantic ids; main-color points at the sepia
const palette = {
  ink: '#1f1b16', // text: a warm near-black, never #000
  sepia: '#8a5a2b', // the one accent: folio tabs, dividers, opener plates (5.3:1 on paper)
  muted: '#6f6558', // running heads, verse glosses, the colophon (5.2:1 on paper)
  paper: '#f8f4ec', // a warm off-white page; also the type reversed out of the sepia
};
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' } })),
  // Text-style defaults (headings, bold, italic, lists, boxes) link to 'main-color':
  // pointed at the sepia, none of them prints in the engine's blue.
  { id: 'main-color', name: 'sepia (defaults)', value: { hex: palette.sepia, model: 'hex' } },
];
// #endregion
const LEAD = 14; // pt: the body leading, the pitch of the baseline grid

// #region tab: the folio tab and its divider, the two pieces every head is built from
const FOLIO_PT = 7.5; // pt: the folio, and the book's title in capitals beside it
const TITLE_PT = 8.8; // pt: the essay's title, whose italic lowercase reads small at 7.5
const LINE = FOLIO_PT * 1.2; // pt: the folio and both titles share this line box and baseline
const PAD = { top: 1, bottom: 1.4 }; // pt: 0.4 pt more below for the descending 3, 5, 7, 9
const TAB = 7.5; // mm: the tab's width
const TAB_H = LINE + PAD.top + PAD.bottom; // pt: the tab's height, which the divider matches
const folio = ({ id, parity, pages, anchor, x = 0, y }) => ({
  kind: 'text', id, content: '{pageNumber}', parity, pages, fontFamily: 'Alegreya SC',
  fontSize: pt(FOLIO_PT), fontWeight: 700, lineHeight: LINE / FOLIO_PT, color: col('paper'),
  box: { backgroundColor: col('sepia'), borderRadius: mm(2), // a pill; the number is centred
    padding: { top: pt(PAD.top), bottom: pt(PAD.bottom) } }, // by default in both directions
  placement: { anchor, offset: { x: mm(x), y: mm(y) }, size: { width: mm(TAB) } },
});
const divider = ({ id, parity, from, edge, x }) => ({
  kind: 'rule', id, parity, pages: 'body', direction: 'vertical', thickness: pt(0.5),
  color: col('sepia'), placement: { anchor: { to: `#${from}`, edge }, offset: { x: mm(x) },
    size: { height: pt(TAB_H) } },
});

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

تنويعات

#أعطِ العناوين الطويلة عنوانًا جاريًا قصيرًا

اكتب العنوان الجاري في سطر العنوان، {num="IV" short="Of false objects"}، واطبع السمة بدل العنوان الكامل؛ والفصل الذي ليس فيه short لا يطبع شيئًا هناك.

-  { kind: 'text', id: 'essay', content: '{chapterTitle}', parity: 'odd', pages: 'body',
+  { kind: 'text', id: 'essay', content: '{attr.short}', parity: 'odd', pages: 'body',

#دع المقالات تبدأ على أي جانب

مع 'any' تبدأ المقالة في الصفحة التالية، فردية أو زوجية، ولا تُضاف صفحة فارغة أبدًا. يتعلّق المربع بالزاوية العليا اليسرى لكتلة النص، والرقم السفلي موسّط تحته، فيقع كلاهما بالطريقة نفسها في الصفحة الزوجية كما في الفردية.

-      { level: 1, span: 'page', breakBefore: { enabled: true, parity: 'odd' },
+      { level: 1, span: 'page', breakBefore: { enabled: true, parity: 'any' },

#اطلِ الصفحة الزوجية الفارغة بلون التمييز

الصندوق الذي له pages: 'blank' لا يُطبع إلا في الصفحات التي يضيفها الفاصل إلى الصفحة الفردية: في الطبعة الإسبانية يملأ الصفحة 32 بالبني الداكن، ولا تتغيّر الطبعة الإنجليزية، التي لا صفحة فارغة فيها.

 const footer = { elements: [folio({ id: 'drop-folio', parity: 'all', pages: 'opener',
-  anchor: { to: 'container', edge: 'bottom' }, y: -HEAD })] };
+  anchor: { to: 'container', edge: 'bottom' }, y: -HEAD }),
+  { kind: 'box', id: 'blank-leaf', pages: 'blank', style: { backgroundColor: col('sepia') },
+    placement: { anchor: page('top-left'),
+      size: { width: mm(TRIM.width), height: mm(TRIM.height) } } }] };

أخطاء شائعة

خطأ شائع

الإزاحات السالبة نسبةً إلى الحاوية لا ترسم شيئًا

يُقيَّد نص التصميم ذو العرض التلقائي بحاويته، فالإزاحة السالبة عن الحاوية تدفعه خارجها فلا يُرسَم شيء. ثبّت هذه العناصر على الصفحة أو على النزف بإزاحات صريحة بالمليمتر، أو أعطها عرضًا ثابتًا. تثبيت عناصر التصميم →

خطأ شائع

عناصر الترويسة والتذييل تُرسَم فوق النص

تُرسَم عناصر الترويسة والتذييل فوق الصفحة، ولا تُفسح منطقة النص لها مكانًا. أبقِها داخل الهوامش، فالهوامش هي التي تحجز مساحتها. الترويسات وأرقام الصفحات →

خطأ شائع

الصفحة 1 فردية: خطّط الصفحات بأرقامها الفعلية

الصفحة 1 صفحة يمنى والصفحة 2 أول صفحة زوجية، فخطّط الصفحتين المتقابلتين بأرقام الصفحات الفعلية: الافتتاحية في صفحة زوجية تقابل الصفحة الفردية التي تليها. فواصل الصفحات والأعمدة →

تحذير الإخراج · designTextTruncated

نص تصميم مقتطع

السبب. كان عنصر نص في تصميم (ترويسة، رقم صفحة، صفحة افتتاح فصل، صفحة جزء، سطر جزء في جدول المحتويات) أعرض من حيّزه ففقد جزءًا من سطر: اقتُطع بعلامة حذف كما يطلب overflow الخاص به، أو قُصّ حبره خارج مستطيله مع overflow: 'clip'. تنتهي الترويسات وأرقام الصفحات وأسطر الأجزاء في جدول المحتويات بعلامة حذف افتراضيًا؛ وتلتف تصاميم العناوين والأجزاء ما لم يحدّد العنصر غير ذلك. والترويسة المقتطعة في كل صفحات الفصل يظهر عنها التحذير مرة واحدة.

الحل. اضبط overflow: 'wrap' على العنصر ليتوزع النص على أسطر أكثر، أو امنحه حيّزًا أكبر (size.width أو maxWidth أوسع، fontSize أصغر، letterSpacing أضيق)، أو اختصر النص. أبقِ علامة الحذف حيث يكون التصميم سطرًا واحدًا، كما في الترويسة؛ فالتحذير حينئذ يؤكد ما اقتُطع فحسب. التوثيق →

فحص Sandbox · headerFooterUnknownPlaceholder

عنصر نائب غير معروف

السبب. نص في التصميم يستعمل عنصرًا نائبًا {name} غير موجود، فيُطبع حرفيًّا.

الحل. استعمل عنصرًا نائبًا مدعومًا ({pageNumber}، {chapterTitle}، {title}، {attr.x}…)، أو اكتب {{ و }} لأقواس معقوصة حرفية. التوثيق →

فحص Sandbox · headerFooterMetadataMissing

بيانات وصفية مفقودة للعنصر النائب

السبب. عنصر نائب مثل {author} أو {title} ليس له قيمة في البيانات الوصفية للمستند، فيُطبع فارغًا.

الحل. أضف القيمة إلى البيانات التمهيدية (frontmatter) بين علامتي اقتباس، أو أزل العنصر النائب. التوثيق →

  • ضُبط CAP في كل طبعة على عنوان المقالة IV، وهو العنوان الوحيد الذي تُظهره ترويسة هنا. تأتي علامة الحذف بعد آخر كلمة كاملة يتسع لها السطر، وقد تكون تلك الكلمة حرف جر: عند 64 mm تنتهي ترويسة الطبعة الإسبانية بـ«…sus pasiones sobre…». لذلك يحتاج كتاب ذو عناوين طويلة إلى العنوان الجاري القصير من التنويعات.
  • في الطبعة الإنجليزية، رفع minWordSpacing من 0.7 إلى 0.75 يترك السطر الأول من المقالة V («Quintus Marcius, the Roman legate…») بلا نقطة قطع داخل النطاق، فتتمدّد الفراغات بين كلماته إلى 2.4 ضعف عرضها العادي. ولا سطر كهذا في الطبعة الإسبانية. بعد أي تغيير، افحص أكثر الأسطر تباعدًا التي يسردها الالتقاط.

الحقوق

الوصفة
Ignacio Ferro
النص
الخطوط
Baskervville (SIL OFL 1.1) · Libre Caslon Display (SIL OFL 1.1) · Alegreya SC (SIL OFL 1.1)
الشيفرة
MIT، مثل Postext
Sandbox