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

دليل الوصفات · الفصل 6 · الإطارات والملاحظات

بطاقة وصفة: المقادير بجانب طريقة التحضير

صفحتان من كتاب طبخ ببطاقة وصفة بيضاء تحت لسان SERVES 4: المقادير والوسوم وقائمة تحقق على اليسار، والخطوات بأرقام حمراء بحجم 26 pt على اليمين.

في هذه الصفحة

ص 58–59 · 1–2 من 2

  • نموذج باللغة الإسبانية: لا توجد طبعة عربية بعد
  • مقاس القص 190 × 250 مم
  • عمود واحد
  • Figtree 9.4/12.8
  • Caveat
  • Young Serif
  • صفحتان
  • المستوى
  • Postext 1.57.1
  • أُخرجت في 53 ms
  • أسطر الشيفرة: 187

باختصار

صفحتان من كتاب طبخ منزلي، وصفة في كل صفحة. تبيّن كيف تضع المقادير وخطوات الطهو جنبًا إلى جنب على بطاقة.

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

صفحتان متقابلتان من Salt & Olive Oil، كتاب طبخ منزلي إسباني متخيَّل، بحدّ قص 190 × 250 mm، وصفة في كل صفحة. صورة فوتوغرافية، مولَّدة بنماذج الانتشار ومحمَّلة ملفَّ JPEG، تنزف عبر أعلى 104 mm من الصفحة: عجّة اقتُطعت منها شريحة على طاولة بلون الزعفران، ووعاء من الغازباتشو على طاولة بلون المريمية. فوقها سطر تمهيدي، والعنوان بخط Young Serif بحجم 42 pt، وكبسولات للوقت والصعوبة والموسم، وملحوظة بخط اليد Caveat تشير إلى الطبق. تحت المقدمة المائلة بطاقة بيضاء على زاويتها العليا اليمنى لسان أحمر بلون الطماطم لعدد الحصص. تتتابع المقادير في عمودها الأيسر بشَرطات زيتونية وشارات وسوم؛ وتحت مقادير العجّة ترأس رسومٌ خطية لوعاء ومقلاة وصحن قائمةَ تحقق. وتملأ طريقة التحضير العمود الأيمن، تتقدّم كلَّ خطوة فيها أرقامٌ عتيقة الطراز بحجم 26 pt.

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

  • كيف أضع عمودين داخل إطار (عمود نص بجانب عمود شكل)؟
  • كيف أضيف لسانًا مرقّمًا («BOX 1-1»)، أو أيقونة في الزاوية، أو أيقونة في الهامش مع خط؟
  • كيف أخصّص القوائم: نقاط لكل مستوى، وترقيم (a)/(i)، ومربعات اختيار للمهام، وتباعد يبقى على الشبكة؟
  • كيف أصنع شارات مضمّنة: مفاتيح لوحة المفاتيح، ووسوم، وبنوك كلمات للتمارين؟
  • كيف أضيف إلى صفحة الافتتاح سطر المؤلف أو مقدمة تمهيدية أو فقرة أولى بحرف استهلالي؟

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

script.js · الأسطر 26–48في الشيفرة الكاملة
// In the Markdown, :::callout{type="card" label="SERVES 4"} holds a :::columns{count=2} group
// of two nested boxes, :::callout{type="column" title="Ingredients"} and one for the method.
// The group levels its columns by cutting between blocks or lines, so loose lists would run
// the method on under the ingredients. A nested box is one block that never splits, so the
// only cut left is between the two.
const TAB = 5.6; // mm: the tab's height, and how far it rises above the card
const card = { id: 'card', background: col('card'),
  padding: { top: mm(4.5), right: mm(6), bottom: mm(5), left: mm(6) },
  // No space of its own above: the tab starts on the first grid line under the opener.
  columnGap: mm(7), marginTop: mm(0),
  // label="…" on the fence prints here: a tab on the top-right corner, a cutlery pictogram
  // beside it and a rule from the far corner that makes the tab part of the card.
  label: { fontFamily: TEXT, fontSize: pt(8), color: col('card'), // bold by default
    background: col('tomato'), height: mm(TAB), offset: mm(TAB), paddingX: mm(2.6),
    icon: { resourceId: 'cutlery', width: mm(TAB * 6 / 8), gap: mm(1.6) }, // as tall as the tab
    rule: { enabled: true, color: col('tomato'), width: pt(1.2) } } };
// The two columns: frameless boxes whose only device is a tracked title.
const NONE = { top: mm(0), right: mm(0), bottom: mm(0), left: mm(0) };
const column = { id: 'column', backgroundEnabled: false, padding: NONE,
  lists: { gap: mm(2.2), itemSpacing: pt(3.5) }, // for the steps as well as the dashes
  titleStyle: { fontFamily: TEXT, fontSize: pt(8), color: col('tomato'), // bold by default
    textTransform: 'uppercase', letterSpacing: pt(1.5), gap: mm(2.4) } };
// config() plugs them in: calloutStyles: [card, column, prep].

المكونات

الخطوط
Young Serif, Figtree, Caveat (SIL OFL 1.1)
الأصول
  • gazpacho-1520.jpg
  • tortilla-1520.jpg
  • The tortilla on its plate, a photograph (Generated With Diffusion Models, أصلي)
  • The bowl of gazpacho, a photograph (Generated With Diffusion Models, أصلي)
  • The note’s arrow and the pictograms, drawn in code in the page’s palette (Ignacio Ferro, CC BY 4.0)

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

#1 · أعطِ كل عمود إطارًا خاصًا به

مع القوائم الحرّة تنقطع مجموعة الأعمدة داخل الإطار حيث تتساوى أعمدتها على أفضل وجه، بين الكتل أو بين أسطر كتلة واحدة، فتنقسم الخطوة الأولى من الغازباتشو عبر الفاصل بين العمودين: سطرها الأول يختم عمود المقادير والباقي يفتتح عمود طريقة التحضير. أما الإطار المتداخل، كما في الجواب المختصر أعلاه، فكتلة واحدة لا تقطعها المجموعة أبدًا. والصورة الموضوعة في إطار كهذا تحتاج إلى ::resource بموضع 'here'، لأن أي موضع آخر يجعلها عنصرًا عائمًا يغادر الإطار ويوضع كأي شكل مستشهد به. يحوّل label في نمط البطاقة السمة label="SERVES 4" في سطر الفتح إلى اللسان: إزاحة offset تساوي ارتفاعه height توقفه على الحافة العليا للبطاقة، ويمتد rule من الزاوية البعيدة حتى الشوكة والسكين (أنماط الإطارات).

#2 · وسّط أرقام الخطوات على سطرين

script.js · الأسطر 66–76في الشيفرة الكاملة
// Young Serif has old-style figures: 1 and 2 stand 0.56 em, a little above its 0.50 em
// x-height, so 5.1 mm at STEP. A list number is centred 0.3 em (of the text) above the item's
// first baseline, with the canvas 'middle' baseline, which Chrome puts 0.24 em above Young
// Serif's own (gotcha: list-number-centred). DROP centres the figures on the step's first two
// lines, from the cap height of the first to the baseline of the second.
const [STEP, FIGURE, MIDDLE, CAP] = [26, 0.56, 0.24, 0.7]; // pt; em of each face
const DROP = (LEAD - CAP * BODY) / 2 + 0.3 * BODY + (FIGURE / 2 - MIDDLE) * STEP; // pt
const orderedLists = { fontFamily: DISPLAY, fontWeight: 400, // Young Serif ships 400 only
  numberFontSize: pt(STEP), color: col('tomato'),
  separatorColor: col('olive'), separatorGap: pt(0.6), // the default '.' as its own run
  numberVerticalOffset: pt(DROP) };

يُرسم رقم القائمة موسَّطًا فوق خط الأساس الأول للبند بقليل، فلو استُعمل numberFontSize وحده لجاءت الأرقام بحجم 26 pt على مستوى السطر الأول؛ ينزلها numberVerticalOffset مسافة 2.5 mm، إلى منتصف الشريط الممتد من الأحرف الكبيرة في السطر الأول إلى خط أساس السطر الثاني. لخط Young Serif أرقام عتيقة الطراز: 3 و4 و5 تنزل تحت خط الأساس الذي يقف عليه 1 و2. حين يُضبط separatorColor يُرسم الفاصل مقطعًا مستقلًا، فتُطبع النقطة الافتراضية بالزيتوني بجانب رقم أحمر (القوائم المرقَّمة).

#3 · رأّس قائمة التحقق بشريط من الرسوم

script.js · الأسطر 52–62في الشيفرة الكاملة
// :::callout{type="prep" title="Before you start"}, closed at once, is a header: a box that
// holds only its title and icon. The icon is one picture of three drawings; a width KIT times
// its size makes its box a strip, and the picture is fitted into width × size, left of the
// title. Tasks set inside the box would start after that column, 21 mm in, so the '- [ ]'
// items follow the box, where they print the default task box, '☐'.
const [STRIP, KIT] = [5, 30 / 8]; // mm: the strip's height; the drawing's width over height
const prep = { id: 'prep', backgroundEnabled: false, padding: NONE,
  marginTop: pt(LEAD), marginBottom: column.titleStyle.gap, // the tasks follow at this gap
  icon: { kind: 'resource', resourceId: 'kit', size: mm(STRIP), width: mm(STRIP * KIT),
    align: 'center' }, // the title centred on the strip
  titleStyle: { ...column.titleStyle, color: col('olive') } };

لا يحوي الإطار prep إلا عنوانه وأيقونته، فيعمل رأسًا: عرض أيقونة width يساوي 3.75 مرة حجمها size يمطّ مربع الأيقونة إلى شريط قياسه 18.75 × 5 mm، وتملؤه الرسوم الثلاثة يسار العنوان (أنماط الإطارات). تأخذ الأيقونة عمودًا خاصًا بها بجانب كل ما في إطارها، لذلك توضع المهام بعد الإطار، حيث تصطف مع شَرطات المقادير بدل أن تبدأ على بُعد 21 mm نحو الداخل. تطبع بنود - [ ] مربع المهمة الافتراضي، ويتيح unorderedLists.marginTop: 0 أن تلي الرأس على مسافة marginBottom الخاصة به، وهي الفجوة البالغة 2.4 mm التي تحافظ عليها عناوين الأعمدة (القوائم غير المرقَّمة).

#4 · اجعل الوسوم شارات

script.js · الأسطر 80–82في الشيفرة الكاملة
const chipStyles = [{ id: 'tag', fontSize: em(0.86), bold: true, background: col('tint'),
  borderWidth: pt(0), borderRadius: em(1), // no outline; a radius past half the height: a pill
  paddingX: em(0.7), paddingY: em(0.18), gap: em(0.3) }];

يضع :chip[Vegetarian]{style="tag"} كلمة في مستطيل لا ينكسر أبدًا بين سطرين. قيمة borderRadius الأكبر من نصف ارتفاع المستطيل تُقصَر على ذلك النصف، فيتحول طرفاه إلى نصفَي دائرة؛ ومع borderWidth: 0 تُرسم الكبسولة بالتعبئة الفاتحة وحدها. ارتفاع المستطيل 11.4 pt، أقل من تباعد أسطر البطاقة البالغ 12.8 pt، فلا يلامس سطر ثانٍ من الوسوم السطر الأول (أنماط الشارات).

#5 · تصميم واحد، وصورة فوتوغرافية لكل وصفة

script.js · الأسطر 86–120في الشيفرة الكاملة
const BAND = 104; // mm: the photo's foot; the pills sit 13 mm above it, the lead 6 mm below
const NOTE = { x: 18, y: 24, w: 70 }; // mm on the page: the box ends 2 mm before the arrow
const at = (x, y, size) => ({ anchor: { to: 'container', edge: 'top-left' },
  offset: { x: mm(x), y: mm(y - PAGE.top) }, size }); // y in mm from the top of the page
const text = (id, content, family, size, placement, extra) => ({ kind: 'text', id, content,
  fontFamily: family, fontSize: pt(size), color: col('ink'), align: 'left',
  overflow: 'wrap', placement, ...extra }); // a foot wraps too, where the default is '…'
const tracked = { fontWeight: 700, textTransform: 'uppercase', letterSpacing: pt(1.6) };
// Pills are text boxes chained right-of each other; each prints one heading attribute.
const pill = (id, after) => text(id, `{attr.${id}}`, TEXT, 8.4, after ? { anchor:
  { to: `#${after}`, edge: 'right-of' }, offset: { x: mm(1.8) } } : at(0, BAND - 13), {
  fontWeight: 600, box: { backgroundColor: col('card'), borderRadius: mm(3),
    padding: { top: mm(1.1), right: mm(2.8), bottom: mm(1.1), left: mm(2.8) } } });
// One heading style for every recipe; each heading names its photo: art="tortilla".
const opener = { id: 'receta', advancedDesign: { enabled: true, slot: { elements: [
    { kind: 'image', id: 'art', resourceId: '{attr.art}', // filled in per heading, like a text
      placement: { anchor: { to: 'page', edge: 'top-left' },
        size: { width: mm(PAGE.w), height: mm(BAND) } } },
    { kind: 'image', id: 'arrow', resourceId: 'arrow', // the note's arrow, over the photo
      placement: { anchor: { to: 'page', edge: 'top-left' },
        size: { width: mm(PAGE.w), height: mm(BAND) } } },
    text('note', '{attr.note}', HAND, 19, { anchor: { to: 'page', edge: 'top-left' },
      offset: { x: mm(NOTE.x), y: mm(NOTE.y) }, size: { width: mm(NOTE.w) } },
    { fontWeight: 600, align: 'right' }), // on the page, like the arrow and the photo
    pill('time'), pill('level', 'time'), pill('season', 'level'),
    text('title', '{titleText}', DISPLAY, 42, { anchor: { to: '#time', edge: 'above' },
      offset: { y: mm(-3.2) }, size: { width: mm(96) } }, // two lines: the \\ in the heading
    { lineHeight: 1 }), // set solid: 42 pt from line to line
    text('kicker', '{attr.kicker}', TEXT, 8.2, { anchor: { to: '#title', edge: 'above' },
      offset: { y: mm(-2.4) }, size: { width: mm(96) } }, tracked),
    // The lead is the design's lowest element: the opener reserves down to its last line, and
    // the card starts under it without a minHeight.
    text('lead', '{attr.lead}', TEXT, 10.5, at(0, BAND + 6, { width: mm(122) }),
      { italic: true, lineHeight: 1.45 }),
  ] } } };

يختار # Tortilla \\ de patatas {style="receta" art="tortilla" kicker="…" lead="…"} نمط العنوان ويملأ خاناته من السمات، ومنها المقدمة المائلة (سمات العناوين). قيمة resourceId في عنصر الصورة هي '{attr.art}'، وهي عنصر نائب مثل عناصر النص، فتتشارك الوصفتان نمطًا واحدًا ويحدّد كل عنوان صورته (عناصر الصور). كل كبسولة مربوطة right-of بالتي قبلها، والعنوان above الكبسولة الأولى، والسطر التمهيدي فوق العنوان، فإذا طال العنوان دفع السطر التمهيدي إلى أعلى وبقيت الكبسولات على سطرها. المقدمة أدنى عناصر التصميم، فتحجز صفحة الافتتاح حتى سطرها الأخير وتبدأ البطاقة تحتها من غير minHeight. الملحوظة مربوطة بالصفحة، مثل الصورة الفوتوغرافية والسهم، وهو عنصر صورة ثانٍ مرسوم بالشيفرة، وتنتهي قبل السهم بمقدار 2 mm في الصفحتين، مع أن الهوامش المعكوسة تزيح كتلة النص 2 mm نحو اليمين في الصفحة الفردية.

#6 · سجّل الصور موارد

script.js · الأسطر 271–293في الشيفرة الكاملة
// The opener's image elements and both icons name a resource id; the resource names the file
// the canvas paints (loadImage or loadSvg registers it). No :ref cites them, so none is numbered.
const photo = (id, altText) => ({ id, typeId: 'figure', kind: 'bitmap', createdAt: 0, updatedAt: 0,
  altText, bitmap: { fileId: `${id}-1520.jpg`, format: 'jpeg', width: 1520, height: 832 } });
const ART = { // markup, width and height in mm, and the alt text
  arrow: [arrow, PAGE.w, BAND, t({ en: 'An arrow to the dish', es: 'Una flecha al plato' })],
  cutlery: [cutlery, 6, 8, t({ en: 'Fork and knife', es: 'Tenedor y cuchillo' })],
  kit: [kit, 8 * KIT, 8, t({ en: 'A bowl with two eggs, a frying pan and a plate',
    es: 'Un bol con dos huevos, una sartén y un plato' })] };
const resources = [
  photo('tortilla', t({ en: 'A potato omelette with a slice pulled out, on a blue-rimmed plate '
    + 'and a red-checked napkin', es: 'Una tortilla de patatas con una porción separada, en un '
    + 'plato de borde azul sobre una servilleta de cuadros rojos' })),
  photo('gazpacho', t({ en: 'A bowl of gazpacho with diced vegetables and a spoon, on a '
    + 'blue-checked napkin beside a tomato', es: 'Un cuenco de gazpacho con dados de verdura '
    + 'y una cuchara, sobre una servilleta de cuadros azules junto a un tomate' })),
  ...Object.entries(ART).map(([id, [, w, h, altText]]) => ({ id, typeId: 'figure',
    kind: 'svg', createdAt: 0, updatedAt: 0, altText, svg: { fileId: `${id}.svg`, width: w * 10,
      height: h * 10 } })), // 10 px a millimetre: the sizes only set the aspect ratio here
];
const photos = resources.filter((r) => r.kind === 'bitmap').map((r) => r.bitmap.fileId);
await Promise.all([...photos.map((file) => loadImage(file, asset(file))),
  ...Object.entries(ART).map(([id, [svg]]) => loadSvg(`${id}.svg`, svg))]);

عنصرا الصورة في صفحة الافتتاح، وأيقونة اللسان، وأيقونة رأس قائمة التحقق، كلٌّ منها يحدّد موردًا، ويرسم Canvas الملف الذي سجّلته له loadImage أو loadSvg. لا يستشهد أي :ref بهذه الموارد، فلا يصبح أيٌّ منها شكلًا مرقَّمًا. ليست في الصور كلمات: الملحوظات المكتوبة بخط اليد نص تصميم منضَّد فوقها.

الوصفة كاملة

Sandbox
// ═══ Postext Cookbook · Nº 033 · Recipe card: ingredients beside the method ═══════
// https://postext.dev/en/cookbook/recipe-card
// Code: MIT · Text: original (CC BY 4.0) · Photos: diffusion models · Pictograms: CC BY 4.0
// Fonts: Young Serif, Figtree, Caveat (SIL OFL 1.1) · Needs postext ≥ 1.25.0
import {
  buildDocumentWithFonts, renderPageToCanvas, registerResourceImage,
} from 'https://esm.sh/postext';

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

// ─── 1 · Design ─────────────────────────────────────────────────────────────
const palette = { ink: '#2b2118', muted: '#76634e', // text; folios and the colophon
  paper: '#f7eddb', card: '#fffdf8', // the cream page; the white recipe card on it
  tomato: '#bf3d29', olive: '#6b7a3a', tint: '#f6e3c1' }; // numbers and tab; dashes; tags
// Each colour names its palette entry and carries its hex.
const col = (id) => ({ hex: palette[id], model: 'hex', paletteId: id });
// The engine's defaults link to 'main-color': point it at the tomato, so nothing prints blue.
const colorPalette = Object.entries({ ...palette, 'main-color': palette.tomato })
  .map(([id, hex]) => ({ id, name: id, value: { hex, model: 'hex' } }));
const [TEXT, DISPLAY, HAND] = ['Figtree', 'Young Serif', 'Caveat'];
const PAGE = { w: 190, h: 250, top: 22, inner: 18, outer: 16 }; // mm, mirrored margins
const [BODY, LEAD] = [9.4, 12.8]; // pt: the text of the cards and the notes under them

// #region answer: a white card with a servings tab, two columns inside it
// In the Markdown, :::callout{type="card" label="SERVES 4"} holds a :::columns{count=2} group
// of two nested boxes, :::callout{type="column" title="Ingredients"} and one for the method.
// The group levels its columns by cutting between blocks or lines, so loose lists would run
// the method on under the ingredients. A nested box is one block that never splits, so the
// only cut left is between the two.
const TAB = 5.6; // mm: the tab's height, and how far it rises above the card
const card = { id: 'card', background: col('card'),
  padding: { top: mm(4.5), right: mm(6), bottom: mm(5), left: mm(6) },
  // No space of its own above: the tab starts on the first grid line under the opener.
  columnGap: mm(7), marginTop: mm(0),
  // label="…" on the fence prints here: a tab on the top-right corner, a cutlery pictogram
  // beside it and a rule from the far corner that makes the tab part of the card.
  label: { fontFamily: TEXT, fontSize: pt(8), color: col('card'), // bold by default
    background: col('tomato'), height: mm(TAB), offset: mm(TAB), paddingX: mm(2.6),
    icon: { resourceId: 'cutlery', width: mm(TAB * 6 / 8), gap: mm(1.6) }, // as tall as the tab
    rule: { enabled: true, color: col('tomato'), width: pt(1.2) } } };
// The two columns: frameless boxes whose only device is a tracked title.
const NONE = { top: mm(0), right: mm(0), bottom: mm(0), left: mm(0) };
const column = { id: 'column', backgroundEnabled: false, padding: NONE,
  lists: { gap: mm(2.2), itemSpacing: pt(3.5) }, // for the steps as well as the dashes
  titleStyle: { fontFamily: TEXT, fontSize: pt(8), color: col('tomato'), // bold by default
    textTransform: 'uppercase', letterSpacing: pt(1.5), gap: mm(2.4) } };
// config() plugs them in: calloutStyles: [card, column, prep].

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

تنويعات

#عُدّ الكتل بدل وضع الأعمدة في إطارات

من دون إطارات الأعمدة، يحدّد breaks الابنَ الذي يفتتح العمود الأيمن، ويُعدّ كل بند من القائمة وسطر الوسوم ورأس قائمة التحقق ابنًا واحدًا: يحتاج الغازباتشو إلى breaks="10" (تأتي أولًا ثمانية مقادير والوسوم)، والعجّة إلى breaks="11". وتختفي معها عناوين الأعمدة والمسافة بين الخطوات التي يضعها نمط العمود.

 :::callout{type="card" label="SERVES 6"}
-:::columns{count=2}
-:::callout{type="column" title="Ingredients"}
+:::columns{count=2 breaks="10"}
 - **1.5 kg** ripe plum tomatoes
@@ seven more ingredients and a blank line @@
 :chip[Vegan]{style="tag"} :chip[No-cook]{style="tag"} :chip[Make ahead]{style="tag"}
-:::
-:::callout{type="column" title="Method"}
+
 1. Chop the tomatoes, seeded pepper, peeled cucumber and garlic.
@@ steps 2 to 5 @@
 :::
-:::
 :::

#أوقف اللسان على الزاوية اليسرى

يعكس 'top-left' التسمية: ينتقل اللسان إلى الزاوية اليسرى، والشوكة والسكين إلى يمينه، ويمتد الخط من اليمين.

     background: col('tomato'), height: mm(TAB), offset: mm(TAB), paddingX: mm(2.6),
+    position: 'top-left', // 'top-right' by default

أخطاء شائعة

خطأ شائع

رقم القائمة متمركز على سطره الأول، لا موضوع على خط الأساس

يُرسَم رقم القائمة المرقّمة بخط الأساس 'middle' في Canvas، على 0.3 em من النص فوق أول خط أساس للبند، فالرقم بخط آخر أو بقيمة numberFontSize أكبر يكبر صعودًا ونزولًا من هناك بدل أن يقف على السطر: يرتفع خط العرض، ويتدلى رقم الخطوة الكبير عبر السطر الأول. ضعه بـ orderedLists.numberVerticalOffset، وافحص النتيجة بالمقاس الكامل. أرقام جدول المحتويات تقف على خط الأساس منذ postext 1.5؛ أما أرقام القوائم فما زالت متمركزة. القوائم المرقّمة →

خطأ شائع

lists.color في الإطار يعيد تلوين أرقام قوائمه أيضًا

يلوّن lists.color في نمط الإطار نقاط الإطار وأرقام قوائمه المرقّمة على السواء، كلما ضبطه النمط: أعطِ إطارًا نقاطًا زيتونية بهذه الطريقة فتصير أرقام خطواته زيتونية أيضًا. (حتى postext 1.4 لم يكن يصل إلى الأرقام إلا إذا اختلف عن unorderedLists.color.) لتلوين نقاط الإطار وحدها، اضبط unorderedLists.color للمستند واترك lists.color خارج نمط الإطار، فتبقى الأرقام بلون orderedLists.color. إطارات التنبيه →

خطأ شائع

الشارات الأطول من خطوة السطر تلامس السطر التالي

الشارة التي يزيد ارتفاع إطارها على خطوة السطر تلامس شارات السطر التالي (التحذير chipOverlap). قلّل حشوها العمودي أو حدّها أو مقاسها، أو زِد تباعد الأسطر. الشارات داخل السطر →

  • لا تملك التسمية textTransform ولا letterSpacing، لذلك كُتبت SERVES 4 وPARA 4 بأحرف كبيرة في سطور الفتح.

الحقوق

الوصفة
Ignacio Ferro
النص
نص أصلي, CC BY 4.0
الصور
  • The tortilla on its plate, a photograph · Generated With Diffusion Models · أصلي
  • The bowl of gazpacho, a photograph · Generated With Diffusion Models · أصلي
  • The note’s arrow and the pictograms, drawn in code in the page’s palette · Ignacio Ferro · CC BY 4.0
الخطوط
Young Serif (SIL OFL 1.1) · Figtree (SIL OFL 1.1) · Caveat (SIL OFL 1.1)
الشيفرة
MIT، مثل Postext
Sandbox