باختصار
مجلة صغيرة عن الحروف، منضّدة في أعمدة ضيقة بحافتي نص مستويتين. تبيّن كيف تبقى الفجوات بين الكلمات متساوية، بجوار نسخة عُلّمت أسطرها غير المتساوية بالأصفر.
ما الذي ستنضده
العدد 12 من Galley، مجلة مختبر حروف، منضّدًا على مقاس A5 في عمودين من نحو أربعين حرفًا، حيث لا يملك السطر المضبوط إلا خمس مسافات أو ستًّا بين الكلمات لتمتص الفائض. ترسم صفحة الافتتاح نموذج Knuth–Plass على شريط رمادي غرافيتي: سطر من مربعات الكلمات تتمدد نوابضه الصفراء من «الغراء» لتملأ عرض السطر. وتشرح المقالة لماذا ترتخي الأعمدة الضيقة، وتطبع الإعدادات التي وراء كل قاعدة بخط أحادي المسافة بين فقراتها. وفي أسفل الصفحة 3 ينضّد اختبار مقارنة فقرة واحدة بحافة حرّة، ومضبوطة بلا واصلات، ومضبوطة بها. وينضّد المثال العدد أيضًا بالتقسيم بأول ملاءمة مع إيقاف حماية الأسطر الأرامل واليتيمة، ويعرض الصفحتين الثانيتين متجاورتين فوق الصفحات، كما في بطاقة هذه الوصفة، والأسطر المتخلخلة مغسولة بأصفر قلم التظليل، والأسطر المعزولة والكلمات المعزولة موسومة في الهامش.
تجيب هذه الوصفة عن
- كيف أحصل على ضبط أسطر وتقسيم كلمات جيدين لنص إسباني أو فرنسي أو ألماني؟
- كيف أتجنب الأسطر الأرامل والأسطر اليتيمة والأسطر الأخيرة ذات الكلمة الواحدة، وأبقي العنوان مع نصه؟
- لماذا يُنضَّد سطر واحد غير مضبوط أو متمددًا أكثر من اللازم (عناوين URL، كلمات مركّبة طويلة، كلمات طويلة في الخلايا)؟
- كيف أعرف ما الخطأ في مستندي (تحذيرات، فيض، إخراج لا يستقر)؟
الجواب المختصر
// Knuth–Plass breaking, hyphenation and the widow, orphan and runt penalties are all on by
// default. A narrow column also needs a tighter fence round the glue, in multiples of a
// normal word space (defaults 0.6 and 2): lines past the upper fence cost more than any
// hyphen, so the breaker hyphenates or re-breaks the paragraph before it stretches that far.
const FENCES = { minWordSpacing: 0.8, maxWordSpacing: 1.6 };
const bodyText = { // config().bodyText
fontFamily: TEXT, fontSize: pt(BODY), lineHeight: pt(LEAD), color: col('ink'),
boldColor: col('ink'), italicColor: col('ink'), referenceColor: col('ink'),
firstLineIndent: mm(4), indentAfterHeading: false, // justified and hyphenated by default
...FENCES,
};
// Hyphenation follows the document's locale:
const locale = t({ en: 'en-us', es: 'es' }); // config().locale: each edition's patterns
// The control: first-fit breaking, which sets each line once and moves on, with the widow and
// orphan guards off (runts are priced inside Knuth–Plass only). Same text, fonts and measure.
const GREEDY = { optimalLineBreaking: false, avoidWidows: false, avoidOrphans: false };
const control = () => ({ ...config(), bodyText: { ...bodyText, ...GREEDY } });
المكونات
- الميزات
- التقسيم الأمثل للأسطر (Knuth–Plass)الأسطر الأرامل والأسطر اليتيمة والكلمات المعزولةالتحذيرات والتشخيصتقسيم الكلمات ولغة المستندالمسافات البادئة والمحاذاة والتباعد بين الفقراتأعمدة داخل الإطار أو النصإطارات متداخلةإطارات التنبيهصفحات افتتاح مصمَّمةالصور في تصاميم الصفحةسمات العنوانأنماط الفقراتصفحات على اللوحة (Canvas)الأشكال والجداول بوصفها مواردلوحة ألوان دلاليةالترويسات وأرقام الصفحاتالترويسات بحسب دور الصفحة
- تستخدم أيضًا
- شريط فصل بعرض الصفحة
- الخطوط
- Petrona, Bricolage Grotesque, Source Code Pro (SIL OFL 1.1)
- الأصول
- لا شيء: كل صورة مرسومة بالشيفرة
طريقة التحضير
#1 · ضيّق الحدود، وأبقِ الحماية
شيفرة هذه الخطوة هي الجواب المختصر أعلاه. Knuth–Plass، وتقسيم الكلمات بالواصلة، وجزاءات السطر الأرمل والسطر اليتيم والكلمة المعزولة، وإبقاء العناوين مع ما يليها، كلها مفعّلة افتراضيًا، فلا تفعل الطبعة المنشورة سوى تضييق حدود المسافات بين الكلمات إلى 0.8 و1.6 من المسافة العادية (القيمتان الافتراضيتان 0.6 و2). السطر الذي يتجاوز الحد الأعلى يكلّف أكثر من أي واصلة أو كلمة معزولة، فيجرّب المقسِّم مواضع كسر أخرى أولًا؛ احذف الحدين فتنضّد هذه المقالة سطرين يتجاوزان 1.6. ويتبع تقسيم الكلمات locale: 'es' و'fr' و'de' تأخذ أنماط TeX الخاصة بها، والوسم الإقليمي مثل 'es-ES' يأخذ أنماط لغته، أما اللغة التي لا أنماط لها فتُقسَّم كالإنجليزية الأمريكية مع تحذير في وحدة التحكم.
#2 · علّم الأسطر المتخلخلة من شجرة الإخراج
// findLooseLines gives the justified lines whose word spaces stretch past a threshold, here the
// upper fence. The rest is read from the VDT: a line past 3× is set ragged (line.ragged), and a
// paragraph cut by a column is two blocks.
function marks(doc, page) {
const body = doc.pages.flatMap((p) => p.columns.flatMap((c) => c.blocks)).filter((b) =>
b.type === 'paragraph' && b.containerId === undefined && b.textAlign === 'justify');
const loose = findLooseLines(doc, { threshold: FENCES.maxWordSpacing, pageIndex: page.index });
const out = loose.map(({ x, y, width: w, height: h }) => ({ x, y, w, h, kind: 'loose' }));
for (const column of page.columns) {
for (const b of column.blocks.filter((x) => body.includes(x))) {
const parts = body.filter((o) => o.contentIndex === b.contentIndex);
b.lines.forEach((line) => {
const at = { x: b.bbox.x, y: line.bbox.y, w: b.bbox.width, h: line.bbox.height, column };
if (line.ragged) out.push({ ...at, kind: 'loose' }); // past 3×: no ratio, set ragged
if (b.lines.length === 1 && parts.length > 1) { // Postext's names (see the essay):
out.push({ ...at, kind: b === parts[0] ? 'widow' : 'orphan' }); // foot : head
} else if (line.isLastLine && !/\s/.test(line.text.trim())) {
out.push({ ...at, kind: 'runt' }); // one word alone on a paragraph's last line
}
});
}
}
return out;
}
const TAGS = t({ en: { widow: 'widow', orphan: 'orphan', runt: 'runt' },
es: { widow: 'viuda', orphan: 'huérfana', runt: 'corta' } });
function paintMarks(canvas, list, scale) {
const ctx = canvas.getContext('2d');
ctx.setTransform(scale, 0, 0, scale, 0, 0); // page px from here on
for (const m of list) { // loose lines: a wash; lone lines and runts: a tag in the margin
const loose = m.kind === 'loose';
ctx.globalCompositeOperation = loose ? 'multiply' : 'source-over'; // the ink shows through
ctx.fillStyle = loose ? palette.marker : palette.graphite;
if (loose) { ctx.fillRect(m.x - 2, m.y + 1, m.w + 4, m.h - 1); continue; }
ctx.font = `600 ${m.h * 0.48}px "${MONO}"`;
const w = ctx.measureText(TAGS[m.kind]).width + m.h * 0.5;
const x = m.column.index === 0 ? m.x - w - m.h * 0.35 : m.x + m.w + m.h * 0.35;
ctx.fillRect(x, m.y + m.h * 0.12, w, m.h * 0.8);
ctx.fillStyle = palette.marker;
ctx.fillText(TAGS[m.kind], x + m.h * 0.25, m.y + m.h * 0.7);
}
ctx.setTransform(1, 0, 0, 1, 0, 0);
}
تعيد findLooseLines الأسطر المضبوطة التي تتمدد مسافاتها فوق عتبة معيّنة، وهي هنا الحد الأعلى، ومع كل سطر الشريط الذي يغطيه التظليل (الأسطر المتخلخلة في Canvas خاص بك). ويضيف marks() ما لا تضمّه تلك القائمة، مقروءًا من الـVDT: السطر الذي يتجاوز 3 أضعاف لا نسبة له، لأن المحرّك ينضّده بحافة حرّة ويوسمه بـline.ragged بدلًا من ذلك، والفقرة المنقسمة بين عمودين تعود كتلةً لكل جزء، ومن هنا تُعرف الأسطر المنفردة. عند أربعين حرفًا لا تكفي الحدود وحدها لإبقاء كل سطر تحت 1.6؛ وفي أثناء ضبط نص المقالة على الصفحات، أظهرت العلامات أي الجمل ينبغي إعادة صياغتها.
#3 · ضع النسخة الضابطة بجوار الصفحة المنشورة
function compare(pairs) {
document.head.insertAdjacentHTML('beforeend', `<style>
#compare { background: ${palette.graphite}; color: ${palette.haze}; padding: 36px 24px 44px;
font: 500 12px/1.4 "${MONO}", monospace; } #compare > * { max-width: 860px; margin: 0 auto; }
#compare h2 { font: 800 clamp(30px, 6vw, 72px)/0.95 "${DISPLAY}", sans-serif; color: #fff;
margin: 6px auto 26px; letter-spacing: -0.01em; } #compare figure { margin: 0; }
#compare .kicker { color: ${palette.marker}; letter-spacing: .16em; text-transform: uppercase; }
#compare .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
#compare canvas { width: 100%; display: block; }
#compare figcaption { margin-bottom: 12px; text-transform: uppercase; letter-spacing: .12em; }
#compare figcaption b { display: block; margin-bottom: 6px; color: #fff; letter-spacing: 0;
font: 800 clamp(18px, 2.4vw, 26px)/1 "${DISPLAY}"; text-transform: none; }
@media (max-width: 640px) { #compare .pair { grid-template-columns: 1fr; } }</style>`);
const section = Object.assign(document.createElement('section'), { id: 'compare' });
section.innerHTML = `<p class="kicker">${t({ en: 'Same text · same design · page 2',
es: 'El mismo texto · el mismo diseño · página 2' })}</p><h2>${t({
en: 'Two line breakers', es: 'Dos formas de cortar' })}</h2><div class="pair"></div>`;
for (const [name, doc] of pairs) {
const page = doc.pages[1];
const list = marks(doc, page); // one walk per edition: the counts and the paint share it
const n = (...kinds) => list.filter((m) => kinds.includes(m.kind)).length;
const counts = `${t({ en: 'loose', es: 'flojas' })} ${n('loose')} · `
+ `${t({ en: 'lone', es: 'solas' })} ${n('widow', 'orphan')} · `
+ `${t({ en: 'runts', es: 'cortas' })} ${n('runt')}`;
const figure = document.createElement('figure');
figure.innerHTML = `<figcaption><b>${name}</b><span>${counts}</span></figcaption>`;
const canvas = figure.appendChild(document.createElement('canvas'));
canvas.setAttribute('role', 'img');
canvas.setAttribute('aria-label', `${name}, ${t({ en: 'page', es: 'página' })} 2: ${counts}`);
renderPageToCanvas(page, doc, canvas, { scale: 1000 / page.width });
paintMarks(canvas, list, 1000 / page.width);
section.querySelector('.pair').append(figure);
}
document.getElementById('pages').before(section); // #pages: the desk showPages() builds
}
الطبعتان تتقاسمان تصميمًا واحدًا، فكل فرق بين الصفحتين الثانيتين يأتي من مقسِّم الأسطر وحمايته. بالإنجليزية تترك النسخة الجشعة الضابطة 47 من أسطرها المضبوطة البالغة 110 فوق 1.6 و30 فوق 2، ثلاثة منها فوق 3 أضعاف ينضّدها المحرّك بحافة حرّة، بينما تُبقي طبعة Knuth–Plass أسطرها البالغة 105 كلها بين 0.80 و1.60. وفي الصفحة 2 تنقل النسخة الضابطة أيضًا السطر الأخير من فقرة وحده إلى رأس عمود، وهو ما يسمح به avoidOrphans: false، وتنهي فقرة أخرى بكلمة معزولة.
#4 · أعطِ كل إعداد إطارًا خاصًا به
// A box sets all its :::columns in one body style, so each setting is a nested box; breaks="3"
// counts a nested box as one block. The bench floats to a page foot.
const [SLIP_GAP, FRAME] = [3, 4]; // mm: between slips; the bench's frame round them
const slip = (id, body) => ({ id, background: col('paper'), marginBottom: mm(SLIP_GAP),
padding: { top: mm(2.2), right: mm(2.6), bottom: mm(2.4), left: mm(2.6) },
titleStyle: { fontFamily: MONO, fontSize: pt(6.6), fontWeight: 600, color: col('muted'),
gap: mm(1.6) }, // code keeps its case: textAlign, not TEXTALIGN
body: { fontSize: pt(8.6), lineHeight: pt(11.6), firstLineIndent: pt(0), ...body } });
const calloutStyles = [
{ id: 'bench', span: 'page', placement: 'bottom', background: col('graphite'),
columnGap: mm(FRAME), // the foot needs a FRAME too: the last slip's marginBottom is dropped
padding: { top: mm(3.4), right: mm(FRAME), bottom: mm(FRAME), left: mm(FRAME) },
titleStyle: { ...caps(7.5, 600), color: col('marker'), gap: mm(2.4) },
body: { fontSize: pt(8.6), lineHeight: pt(11.6), color: col('paper'), textAlign: 'left',
firstLineIndent: pt(0) } },
slip('ragged', { textAlign: 'left' }), // ragged text keeps its words whole by default
slip('unhyphenated', { hyphenation: false }), // justified, like the body text
slip('justified', {}), // justified and hyphenated: the body text's own settings
{ id: 'settings', backgroundEnabled: false, marginTop: pt(3), marginBottom: pt(3), // config
stripe: { enabled: true, side: 'left', width: pt(2), color: col('graphite') },
padding: { top: pt(1), right: pt(0), bottom: pt(1), left: mm(3) },
body: { fontFamily: MONO, fontSize: pt(7), lineHeight: pt(9.5), color: col('graphite'),
firstLineIndent: pt(0) } },
];
ينضّد الإطار كل أعمدة مجموعة :::columns بنمط متن واحد، لذا كل قصاصة إطار متداخل له body خاص به، ويرصّ breaks="3" القصاصة ذات الحافة الحرّة والقصاصة غير المقسّمة بالواصلة في العمود الأول. ولا تحتاج القصاصة ذات الحافة الحرّة إلى hyphenation: false: فالنص ذو الحافة الحرّة لا يُقسَّم بالواصلة ما لم يُفعَّل bodyText.hyphenation.ragged. ويطفو اختبار المقارنة إلى أسفل الصفحة 3 بـplacement: 'bottom'، ويكرر حشوه السفلي الإطار البالغ 4 مم لأن marginBottom للقصاصة الأخيرة يُسقَط في نهاية الإطار.
#5 · ارسم النموذج في صفحة الافتتاح
const BAND = 104; // mm from the trim's top edge to the band's foot
const DIAGRAM = { y: 64, w: MEASURE + 8, h: 34 }; // mm: its top on the page, width, height
const LABEL = 7; // pt: the diagram's labels, tracked less than caps() so the legend fits
const text = (id, content, family, size, color, x, y, extra) => ({ kind: 'text', id, content,
fontFamily: family, fontSize: pt(size), color: col(color), align: 'left', overflow: 'wrap',
placement: { anchor: { to: 'page', edge: 'top-left' }, offset: { x: mm(x), y: mm(y) },
size: { width: mm(MEASURE) } }, ...extra });
const opener = () => ({ // a function: the diagram's constants are defined further down
enabled: true,
slot: { elements: [
// The band reaches below the diagram, so it sets the height the opener reserves; the H1's
// default marginBottom adds a line of white, and the body starts on the second grid line
// under the band.
{ kind: 'box', id: 'band', style: { backgroundColor: col('graphite') },
placement: { anchor: { to: 'bleed', edge: 'top-left' },
size: { width: 'fill', height: mm(BAND) } } },
text('kicker', '{attr.kicker}', MONO, 7.5, 'marker', INNER, TOP, caps(7.5, 600)),
text('title', '{titleText}', DISPLAY, 29, 'paper', INNER, TOP + 5, // one line in both
{ fontWeight: 800, lineHeight: 1.02 }),
text('standfirst', '{attr.standfirst}', TEXT, 10.5, 'haze', INNER, TOP + 19,
{ italic: true, lineHeight: 1.3 }),
{ kind: 'image', id: 'diagram', resourceId: 'diagram', placement: { anchor: { to: 'page',
edge: 'top-left' }, offset: { x: mm(INNER), y: mm(DIAGRAM.y) },
size: { width: mm(DIAGRAM.w), height: mm(DIAGRAM.h) } } },
// The diagram's labels are design text: set and tracked like the opener's other labels.
...diagramLabels().map(([id, words, x, y]) => text(id, words, MONO, LABEL, 'haze',
INNER + x, DIAGRAM.y + y, { ...caps(LABEL), letterSpacing: pt(0.5) })),
] },
});
الرسم البياني عنصر صورة في تصميم عنوان H1. لو كان شكلًا لكان عنصرًا عائمًا top بعرض الصفحة، والعنصر العائم top المستشهَد به في الصفحة 1 يفتتح الصفحة 2. والشريط يمتد إلى ما تحت الرسم، وصفحة الافتتاح تحجز الارتفاع حتى أدنى عناصرها، فيبدأ النص تحت الشريط بلا minHeight، أدنى بسطر بسبب marginBottom الافتراضي لعنوان H1. والتسميات نص تصميم موضوع على إحداثيات الرسم نفسه، منضَّد ومتباعد الحروف مثل بقية تسميات صفحة الافتتاح.
الوصفة كاملة
// ═══ Postext Cookbook · Nº 014 · Justification lab ════════════════════════════════
// https://postext.dev/en/cookbook/justification-lab
// Code: MIT · Text: original (CC BY 4.0) · Diagram: generated in code (CC BY 4.0)
// Fonts: Petrona, Bricolage Grotesque, Source Code Pro (SIL OFL 1.1) · Needs postext ≥ 1.34.0
// A type journal's essay set twice from one design, Knuth–Plass and greedy: the two page 2s
// side by side with their loose lines marked from the layout tree, then the published pages.
import {
buildDocumentWithFonts, renderPageToCanvas, registerResourceImage, parseMarkdownWithIssues,
findLooseLines,
} from 'https://esm.sh/postext';
const LANG = 'en'; // @lang: the language of the sample document ('en' | 'es')
const RECIPE = 'justification-lab';
// ─── 1 · Design ─────────────────────────────────────────────────────────────
// Graphite, paper and one highlighter yellow; col() links each colour to its palette entry.
const palette = {
ink: '#1f2124', // text: a graphite near-black
graphite: '#2e3136', // the accent: the opener band, the bench box, folios
marker: '#ffe14d', // highlighter yellow: glue and loose lines, never type on white
haze: '#c3c7cc', // type on graphite: the standfirst, the diagram's labels
muted: '#66686c', // running heads, settings lines, the colophon
paper: '#ffffff',
};
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: 'defaults', value: { hex: palette.graphite, model: 'hex' } }, // no blue
];
const [TEXT, DISPLAY, MONO] = ['Petrona', 'Bricolage Grotesque', 'Source Code Pro'];
const [BODY, LEAD] = [9.5, 13]; // pt: body size and leading, the grid both columns share
// mm: an A5 trim, mirrored margins and a narrow gutter: two columns of about 40 characters
const [TRIM_W, TRIM_H, TOP, BOTTOM, INNER, OUTER, GUTTER] = [148, 210, 20, 20, 16, 13, 5];
const MEASURE = TRIM_W - INNER - OUTER; // mm: 119, the text width the opener aligns to
const caps = (size, weight = 500) => ({ fontFamily: MONO, fontSize: pt(size), fontWeight: weight,
letterSpacing: pt(size * 0.16), textTransform: 'uppercase' }); // tracked mono labels
// #region answer: one design, two line breakers: Knuth–Plass inside fences, greedy without
// Knuth–Plass breaking, hyphenation and the widow, orphan and runt penalties are all on by
// default. A narrow column also needs a tighter fence round the glue, in multiples of a
// normal word space (defaults 0.6 and 2): lines past the upper fence cost more than any
// hyphen, so the breaker hyphenates or re-breaks the paragraph before it stretches that far.
const FENCES = { minWordSpacing: 0.8, maxWordSpacing: 1.6 };
const bodyText = { // config().bodyText
fontFamily: TEXT, fontSize: pt(BODY), lineHeight: pt(LEAD), color: col('ink'),
boldColor: col('ink'), italicColor: col('ink'), referenceColor: col('ink'),
firstLineIndent: mm(4), indentAfterHeading: false, // justified and hyphenated by default
...FENCES,
يعمل ملف script.js المجمّع كما هو: الصقه في سكربت الوحدة (module) لأي صفحة، أو افتح الوصفة على CodePen. مجلد الوصفة على GitHub ↗ (يفتح في تبويب جديد)
تنويعات
#قسّم نصًّا ألمانيًّا بالواصلة
يختار locale الأنماط، فيأخذ النص الألماني 'de'، أو وسمًا إقليميًا مثل 'de-AT'.
-const locale = t({ en: 'en-us', es: 'es' }); // config().locale: each edition's patterns
+const locale = 'de'; // German patterns; 'de-AT' picks them too#علّم أسوأ الأسطر فقط
ارفع العتبة من 1.6 إلى 2 فلا يعلّم قلم التظليل إلا الأسطر التي تضاعفت مسافاتها أكثر من مرتين.
- const loose = findLooseLines(doc, { threshold: FENCES.maxWordSpacing, pageIndex: page.index });
+ const loose = findLooseLines(doc, { threshold: 2, pageIndex: page.index });أخطاء شائعة
خطأ شائع
avoidWidows يحرس أسفل العمود، وavoidOrphans أعلاه
يسمّي Postext السطرين المنفردين على طريقته: avoidWidows (widowMinLines وwidowPenalty) يمنع السطر الأول من الفقرة من أن يقف وحده في أسفل العمود، وavoidOrphans (orphanMinLines وorphanPenalty) يمنع سطرها الأخير من أن يقف وحده في أعلى العمود التالي. كثير من أدلة الأسلوب تعطي الاسمين بالعكس، فاختر الإعداد بحسب الموضع الذي يعمل فيه. كلاهما مفعَّل افتراضيًا، إلا على شبكة المحارف (cjk.grid): فهناك يكون avoidWidows معطَّلًا، وكذلك avoidOrphans في منطقة اليابان، كي تحمل الصفحة الأسطر التي تعدّها شبكتها (منذ postext 1.28). ويعمل كلٌّ منهما عقوبةً: يوازن الإخراج كلًّا منهما بالأسطر الفارغة التي يتركها الالتزام به. الأسطر الأرامل والأسطر اليتيمة والكلمات المعزولة →
خطأ شائع
العنصر العائم 'top' يذهب إلى الصفحة التالية لإحالته ما لم يُسمح له بتصدر صفحة الإحالة
افتراضيًا لا يصعد العنصر العائم أبدًا فوق الإحالة إليه، فالعنصر العائم 'top' الممتد بعرض الصفحة والمُحال إليه في الصفحة N يفتتح الصفحة N+1. اضبط placement.citingPage: true على المورد أو على defaultPlacement لنوعه (أو layout.floatsAtCitingPage للكتاب كله، منذ postext 1.25) فيتصدر الصفحة N بدلًا من ذلك، وينزل النص الذي فوق الإحالة تحته، إذا اتسع له المكان في حدود layout.maxTopFraction وبقي سطر الإحالة في تلك الصفحة. ولا يتصدر أبدًا الصفحة الأولى من فصل ولا صفحة بعد فاصل قسري: فهناك يظل يفتتح الصفحة التالية، ويمكن للموضع 'auto' أو 'bottom' أن يشغل أسفل صفحة الإحالة. موضع الأشكال →
فحص Sandbox · looseLine
سطر متخلخل
السبب. سطر مضبوط تتمدد مسافاته فوق الحد المسموح، وسبب ذلك عادةً كلمة طويلة أو عنوان URL أو سطر ضيق.
الحل. فعّل تقسيم الكلمات بالواصلة باللغة الصحيحة، أو وسّع عرض السطر، أو أعد صياغة الجملة، أو اجعل المقطع غير مضبوط. التوثيق →
- الإطار المتروك في نهاية عمود ينزل إلى أسفل العمود حين تُوازَن الأعمدة، بعيدًا عن الفقرة التي ينتمي إليها. اضبط النص حتى يمتلئ العمود، كما احتاج إطار الإعدادات تحت «Fences for the glue»، أو اجعل
headings.balancing.closingBoxبالقيمة'off'، فلا يُحرَّك الإطار أبدًا. - لا تُظهر القصاصة غير المقسّمة بالواصلة أوسع الفجوات التي كانت ستحتاجها. فالسطر المضبوط الذي كانت مسافاته ستتمدّد إلى أكثر من ثلاثة أضعاف المسافة العادية يُنضَّد بحافة حرّة بتباعده الطبيعي، داخل الإطار كما في نص المتن، ولذلك ينتهي السطران الأولان من القصاصة قبل نهاية عرض السطر. أما الأسطر التي لا تبلغ هذا الحد فتبقى مضبوطة، ومنها تأتي الفجوات الواسعة التي تُظهرها القصاصة.
الحقوق
- الوصفة
- Ignacio Ferro
- النص
- The essay “The river problem” and its Spanish version “El problema de los ríos”, the bench test and the diagram, written and drawn for this recipe · Postext Cookbook · CC BY 4.0
- الخطوط
- Petrona (SIL OFL 1.1) · Bricolage Grotesque (SIL OFL 1.1) · Source Code Pro (SIL OFL 1.1)
- الشيفرة
- MIT، مثل Postext
حرّر هذا الشرح ↗ (يفتح في تبويب جديد)مجلد الوصفة على GitHub ↗ (يفتح في تبويب جديد)


