باختصار
مجلة موسيقية صغيرة تُطبع بحبرين فقط، الأسود ووردي نيون زاهٍ. تخرج الصور بالأسود والوردي، ويتوهج الوردي في العرض الثلاثي الأبعاد، ولملف الطباعة لوحان بالضبط.
ما الذي ستنضده
العدد 7 من Pink Noise، مجلة هواة موسيقية متخيلة: ثماني صفحات بقياس A5 مدبّسة من الوسط، تُطبع على آلة بأسطوانتين. تطبع إحداهما الأسود والأخرى ورديًا فسفوريًا، ولا يصل إلى الورق شيء غيرهما. يُنضَّد بالوردي عنوان الغلاف، والشريط في افتتاحية المقابلة، والأسئلة، والاقتباس البارز، والغلاف الخلفي؛ وتملأ درجته 30 % إطار مواعيد الحفلات. الصور الثلاث أصول رمادية تُطبع ثنائية اللون، الأسود في الظلال والوردي في الدرجات المتوسطة. ويضع Folio المجلة مفتوحة على طاولة داكنة، يبرز عليها الوردي من الورق.
تجيب هذه الوصفة عن
- كيف أطبع مجلة صغيرة بالأسود والوردي الفلوري فقط، والصور بلونين؟
الجواب المختصر
// The pink is a spot ink; the ink table says it is fluorescent, as the printer will be told.
// The screen paints its hex, Folio makes it stand brighter than the paper, and the PDF puts it
// on a plate of its own. The ink table also takes the name the poster files gave it.
const PINK = { name: 'PANTONE 806 C', cmyk: { c: 0, m: 77, y: 0, k: 0 } };
const pink = (hex, tint) => ({ hex, model: 'spot', spot: { ...PINK, tint } });
// The job prints these two plates and nothing else. Pictures print as duotones: each
// plate takes the grey of a pixel through its curve, [tone, ink] in percent.
const CURVES = { Black: [[0, 0], [45, 8], [100, 92]], // the shadows
'PANTONE 806 C': [[0, 0], [35, 45], [70, 80], [100, 60]] }; // the middle tones
const PRINT = { standard: 'pdfx4', outputProfile: 'fogra51',
inks: [{ name: 'PANTONE 806 C', aliases: ['Fluo pink'], finish: { kind: 'fluorescent' } }],
plates: { inks: ['Black', 'PANTONE 806 C'], images: ['Black', 'PANTONE 806 C'],
curves: CURVES } };
المكونات
- الميزات
- الأحبار الخاصةالألوان الخاصة وجدول الأحبارملفات PDF بنظام CMYK وبالتدرج الرماديعارض الكتاب ثلاثي الأبعاد (Folio)الورق والتجليد والمكتب والإضاءة (Folio)لوحة ألوان دلاليةالأغلفة وصفحات العنوان وبيانات النشرأنماط العناوينصفحات افتتاح مصمَّمةالنصوص والخطوط والمربعات في تصاميم الصفحةالصور في تصاميم الصفحةإطارات التنبيهالأشكال والجداول بوصفها مواردالتصدير إلى PDFصفحات على اللوحة (Canvas)
- تستخدم أيضًا
- أعمدة داخل الإطار أو النصسمات العنوانأشكال في هذا الموضع بالضبطشريط فصل بعرض الصفحةلون الورقالخطوط المضمَّنة في PDFأنواع موارد مخصّصةترويسات لكل قسمإطارات بعرض الصفحةفصول بلا أرقام
- الخطوط
- Archivo Black, IBM Plex Sans, IBM Plex Mono (SIL OFL 1.1)
- الأصول
crowd-900.jpgguitarist-600.jpgposters-560.jpg- A crowd at a basement gig, on the cover (Generated With Diffusion Models, أصلي)
- A guitarist on a small stage (Generated With Diffusion Models, أصلي)
- An alley wall layered with posters (Generated With Diffusion Models, أصلي)
طريقة التحضير
#1 · لوحان، والوردي فسفوري
الشيفرة هي الجواب المختصر أعلاه. يسمي print.plates الألواح التي يطبعها العمل، Black وPANTONE 806 C، وفي ملف PDF هذان الفصلان ولا شيء غيرهما (الطباعة بحبرين). الوردي لون خاص؛ ويُذكر تشطيبه في جدول الأحبار، كما يُذكر في طلب الطباعة المرسل إلى المطبعة، فيجعله حبرًا فسفوريًا: له لوح خاص به، ويضيئه Folio أكثر من الورق (التشطيبات). ويضع images الصور على اللوحين كليهما، ويرسم CURVES شكل كل منهما: الأسود في الظلال وحدها، والوردي في الدرجات المتوسطة ويخفّ في الداكنة، فلا يعكّر الوردي الأسود أبدًا.
#2 · الشاشة تُظهر الصورة ثنائية اللون أيضًا
// The PDF separates the grey original through CURVES. The screen would paint it grey, so the
// picture registered for the canvas and Folio is the same grey run through the same curves:
// the black over the pink, multiplied as inks lie on paper. The PDF still gets the original.
const ink = (curve, tone) => { // a curve read at a tone, both 0–1
const i = curve.findIndex(([x]) => x / 100 >= tone);
const [[x0, y0], [x1, y1]] = [curve[Math.max(0, i - 1)], curve[Math.max(0, i)]];
return (x1 === x0 ? y1 : y0 + ((tone * 100 - x0) * (y1 - y0)) / (x1 - x0)) / 100;
};
const PINK_RGB = [0xff, 0x3e, 0xa5];
async function loadDuotone(fileId, url) {
await loadImage(fileId, url); // the grey bytes, kept for the PDF
const grey = await createImageBitmap(new Blob([imageBytes(fileId)]));
const canvas = new OffscreenCanvas(grey.width, grey.height);
const g = canvas.getContext('2d');
g.drawImage(grey, 0, 0);
const img = g.getImageData(0, 0, canvas.width, canvas.height);
for (let i = 0; i < img.data.length; i += 4) {
const tone = 1 - img.data[i] / 255;
const [k, p] = [ink(CURVES.Black, tone), ink(CURVES['PANTONE 806 C'], tone)];
for (let c = 0; c < 3; c++) {
img.data[i + c] = 255 * (1 - k) * (1 - p * (1 - PINK_RGB[c] / 255));
}
}
g.putImageData(img, 0, 0);
registerResourceImage(fileId, canvas.transferToImageBitmap());
}
ترسم اللوحة وFolio الصورة كما هو ملفها، فتبدو الصورة الرمادية رماديةً هناك، مع أنها تُطبع بالوردي والأسود. لذلك تسجّل الوصفة صورة ثانية للشاشة: الرمادي نفسه مقروءًا عبر CURVES نفسها، والأسود مضروبًا فوق الوردي كما تتراكب الأحبار على الورق. ويظل ملف PDF يتسلم الأصل الرمادي من imageBytes ويتولى فصله بنفسه.
#3 · الأسود فوق الوردي
const BAND = 134; // mm from the top of the bleed to the black band
const cover = { ...bare, id: 'cover', advancedDesign: { enabled: true, minHeight: mm(150),
slot: { elements: [
{ kind: 'image', id: 'photo', resourceId: 'crowd', fit: 'cover', focus: { x: 0.35, y: 0.5 },
placement: at('bleed', 'top-left', 0, 0, { width: 'fill', height: mm(BAND + 4) }) },
{ kind: 'box', id: 'band', style: { backgroundColor: col('black') },
placement: at('bleed', 'top-left', 0, BAND + 3, { width: 'fill', height: mm(90) }) },
text('issue', '{attr.issue}', label(8, col('pink')), at('page', 'top-left', 12, 12)),
text('title', '{titleText}', { fontFamily: DISPLAY, fontSize: pt(70), lineHeight: 0.82,
textTransform: 'uppercase', color: col('pink') },
at('page', 'top-left', 10, BAND + 9, { width: mm(130) })),
text('lines', '{attr.lines}', { fontFamily: SANS, fontWeight: 700, fontSize: pt(11),
lineHeight: 1.25, color: col('paper') }, at('page', 'top-left', 12, BAND + 55,
{ width: mm(110) })),
] } } };
الأسود هو لوح K وحده، معرّفًا لونًا من نظام CMYK مع overprint: true. وحيث تلتقي الحروف السوداء أو الشريط الأسود في الغلاف بالوردي، يُطبع الأسود فوقه بدل أن يفرّغه، فلا تُظهر الورقة التي تخرج عن التسجيل قليلًا حافةً بيضاء. أما العنوان الوردي فيفرّغ الأسود، كما ينبغي للحروف على شريط داكن.
#4 · طاولة داكنة في Folio
const folio = {
tilt: 22, yaw: -14,
paper: { type: 'uncoated', grammage: 100, shade: '#ffffff' },
binding: { type: 'saddleStitch', cover: 'pages' },
surface: { type: 'plain', color: { hex: '#2b2b30', model: 'hex' } },
lighting: { environment: 'overcast', intensity: 1.05 },
};
يحتاج الحبر الفسفوري إلى شيء من العتمة حوله ليُقرأ فسفوريًا. تبقى المجلة مفتوحة على صفحة المقابلة فوق سطح أملس داكن، تحت الضوء المسطح لسماء غائمة، فيبرز الشريط الوردي والوردي في الصورة من الورق الأبيض.
الوصفة كاملة
// ═══ Postext Cookbook · Nº 190 · A zine in black and fluorescent pink ════════════════════
// https://postext.dev/en/cookbook/fluorescent-pink-zine
// Code: MIT · Text: original (CC BY 4.0) · Photographs: diffusion models
// Fonts: Archivo Black, IBM Plex Sans, IBM Plex Mono (SIL OFL 1.1) · Needs postext ≥ 1.84.0
//
// A music zine printed on two plates, black and a fluorescent pink. The pink is a spot ink
// with a fluorescent finish; the job prints those two plates and nothing else, so the grey
// photographs print as duotones and every other colour is projected onto the two inks.
import {
buildDocumentWithFonts, renderPageToCanvas, registerResourceImage,
} from 'https://esm.sh/postext';
import { renderToPdf, decompressWoff2 } from 'https://esm.sh/postext-pdf';
import { createFolioFromDocument } from 'https://esm.sh/postext-folio';
const LANG = 'en'; // @lang: the language of the sample document ('en' | 'es')
const RECIPE = 'fluorescent-pink-zine';
// ─── 1 · Design ─────────────────────────────────────────────────────────────
// #region answer: two plates: black and a fluorescent pink that glows
// The pink is a spot ink; the ink table says it is fluorescent, as the printer will be told.
// The screen paints its hex, Folio makes it stand brighter than the paper, and the PDF puts it
// on a plate of its own. The ink table also takes the name the poster files gave it.
const PINK = { name: 'PANTONE 806 C', cmyk: { c: 0, m: 77, y: 0, k: 0 } };
const pink = (hex, tint) => ({ hex, model: 'spot', spot: { ...PINK, tint } });
// The job prints these two plates and nothing else. Pictures print as duotones: each
// plate takes the grey of a pixel through its curve, [tone, ink] in percent.
const CURVES = { Black: [[0, 0], [45, 8], [100, 92]], // the shadows
'PANTONE 806 C': [[0, 0], [35, 45], [70, 80], [100, 60]] }; // the middle tones
const PRINT = { standard: 'pdfx4', outputProfile: 'fogra51',
inks: [{ name: 'PANTONE 806 C', aliases: ['Fluo pink'], finish: { kind: 'fluorescent' } }],
plates: { inks: ['Black', 'PANTONE 806 C'], images: ['Black', 'PANTONE 806 C'],
curves: CURVES } };
// #endregion
// Black is the K plate alone, and it overprints: on the pink it prints over the ink instead of
// knocking a hole that a sheet out of register would show as a white rim.
const palette = {
black: { hex: '#1b1a1d', model: 'cmyk', cmyk: { c: 0, m: 0, y: 0, k: 100 }, overprint: true },
pink: pink('#ff3ea5'),
pink30: pink('#ffc5e4', 30),
paper: { hex: '#ffffff', model: 'hex' },
};
const col = (id) => ({ ...palette[id], paletteId: id });
const colorPalette = [...Object.entries(palette).map(([id, value]) => ({ id, name: id, value })),
{ id: 'main-color', name: 'pink (defaults)', value: palette.pink }];
const [TRIM_W, TRIM_H] = [148, 210]; // A5, an A4 sheet folded once
const MARGIN = { top: 16, bottom: 18, inner: 14, outer: 12 };
const LEAD = 12.4; // pt
يعمل ملف script.js المجمّع كما هو: الصقه في سكربت الوحدة (module) لأي صفحة، أو افتح الوصفة على CodePen. مجلد الوصفة على GitHub ↗ (يفتح في تبويب جديد)
تنويعات
#اطبع الصور بالأسود وحده
بلوح واحد للصور، تُطبع الصور بتدرجات رمادية عادية على الأسود، ويبقى الوردي للحروف والإطارات.
- plates: { inks: ['Black', 'PANTONE 806 C'], images: ['Black', 'PANTONE 806 C'],
+ plates: { inks: ['Black', 'PANTONE 806 C'], images: ['Black'],#أصفر فسفوري بدلًا منه
غيّر الحبر ولونه على الشاشة؛ وتتبع الألواحُ والتشطيبُ والمنحنياتُ الاسم.
-const PINK = { name: 'PANTONE 806 C', cmyk: { c: 0, m: 77, y: 0, k: 0 } };
+const PINK = { name: 'PANTONE 803 C', cmyk: { c: 0, m: 0, y: 92, k: 0 } };أعد تسمية PANTONE 806 C بالطريقة نفسها في CURVES وفي PRINT وفي قيم hex في لوحة الألوان.
أخطاء شائعة
- اللون الذي لا يطبعه أي من اللوحين يُسقَط على الحبرين. فالأزرق من الألوان الأساسية إذا بقي منسيًا في نمط يخرج ورديًا مسودًّا؛ اقرأ ملاحظات
offPlateColorفي الفحص التمهيدي قبل إرسال الملف. - ليس للحبر الفسفوري بديل CMYK أمين. تُظهر البروفة أو ملف PDF بنظام RGB قيمة
hex، وهي أبهت من الحبر على الورق.
الحقوق
- الوصفة
- Ignacio Ferro
- النص
- نص أصلي, CC BY 4.0
- الصور
- A crowd at a basement gig, on the cover · Generated With Diffusion Models · أصلي
- A guitarist on a small stage · Generated With Diffusion Models · أصلي
- An alley wall layered with posters · Generated With Diffusion Models · أصلي
- الخطوط
- Archivo Black (SIL OFL 1.1) · IBM Plex Sans (SIL OFL 1.1) · IBM Plex Mono (SIL OFL 1.1)
- الشيفرة
- MIT، مثل Postext
حرّر هذا الشرح ↗ (يفتح في تبويب جديد)مجلد الوصفة على GitHub ↗ (يفتح في تبويب جديد)


