Μετάβαση στο κύριο περιεχόμενο
Συνταγή αριθμός 188

Συνταγολόγιο · Κεφάλαιο 10 · Έξοδος και ενσωμάτωση

Χρυσοτυπία σε βαθύ μπλε εξώφυλλο

Χρυσό φύλλο θερμοτυπίας ως χρώμα spot με φινίρισμα φύλλου: δικός του τσίγκος στο PDF, λάμψη στο Folio, μπλε χαρτόνι και κρεμ χαρτί που δεν τυπώνουν μελάνι.

Σε αυτή τη σελίδα
Είδος
Ποίηση
Έξοδος
Canvas · PDF
Postext
Δοκιμασμένο με το Postext 1.85.1
Απαιτεί ≥ 1.85.1 · postext-pdf ≥ 1.85.1
Άδεια
Ενημέρωση: 13 Νοε 2026
Κώδικας MIT · Κείμενο CC BY 4.0
  • Δείγμα στα αγγλικά: δεν υπάρχει ακόμη ελληνική έκδοση
  • Διάσταση σελίδας 140 × 216 mm
  • 1 στήλη
  • Cormorant Garamond 12,2/14,2
  • Cinzel
  • Cormorant SC
  • 12 σελίδες
  • Επίπεδο
  • Postext 1.85.1
  • Σελιδοποίηση σε 85 ms
  • 213 γραμμές κώδικα

Με λίγα λόγια

Μικρό βιβλίο ποιημάτων με σκούρο μπλε εξώφυλλο και χρυσά γράμματα πατημένα πάνω του. Μέσα, κάθε γραμμή και πλαίσιο είναι κι αυτά χρυσά. Η 3D προβολή δείχνει το χρυσό να λάμπει, και το αρχείο εκτύπωσης το κρατά χωριστά για τον τυπογράφο.

Τι θα στοιχειοθετήσετε

Μια μικρή συλλογή με πέντε ποιήματα του Gerard Manley Hopkins, 140 × 216 mm, δεμένη ως χαρτόδετο. Το εξώφυλλο και το φύλλο πίσω του είναι βαθύ μπλε χαρτόνι με χρυσοτυπία και τίποτε άλλο: ένα διπλό πλαίσιο, ο τίτλος με κεφαλαία Cinzel, το όνομα του ποιητή και τα περιεχόμενα. Μέσα, σε κρεμ χαρτί wove, τα ποιήματα τυπώνονται σε τετραχρωμία, ένα ζωγραφισμένο νυχτερινό τοπίο βρίσκεται απέναντι από το δεύτερο ποίημα, και κάθε γραμμή της σελίδας είναι χρυσοτυπία: η διπλή γραμμή κάτω από την τρέχουσα κεφαλίδα, η κοντή γραμμή κάτω από κάθε τίτλο, η γραμμή κάτω από τον αριθμό σελίδας. Ο τίτλος είναι δανεισμένος από το πρώτο ποίημα, όπου ο κόσμος λάμπει «like shining from shook foil». Το Folio γυρίζει το κλειστό βιβλίο προς το φως, ώστε το χρυσό να διαβάζεται ως μέταλλο.

Αυτή η συνταγή απαντά

  • Πώς τυπώνω με χρυσοτυπία ένα εξώφυλλο και τις γραμμές ενός βιβλίου, και στέλνω το φύλλο χρυσοτυπίας στο τυπογραφείο σε δικό του τσίγκο;
  • Πώς κάνω προεπισκόπηση του δεσίματος, του εξωφύλλου, του χαρτιού και του φωτισμού ενός βιβλίου πριν πάει για εκτύπωση;

Η σύντομη απάντηση

script.js · γραμμές 21–46στον πλήρη κώδικα
// Gold foil: a spot ink whose finish says what it is. The canvas paints its hex, Folio lights
// it as metal, and a CMYK or PDF/X file puts it on a Separation of its own named 'Gold foil',
// the artwork the foil block is etched from.
const foil = { hex: '#c9a24a', model: 'spot', spot: { name: 'Gold foil',
  cmyk: { c: 15, m: 30, y: 75, k: 10 }, finish: { kind: 'foil', sheen: 'gloss' } } };
// The two stocks are the paper's own colours, not inks: authored in CMYK at 0 % they paint
// on screen and put nothing on any plate. The blue card is a palette value of its own, so a
// section can turn the page blue (palette: { paper: … } in its heading style).
const stock = (hex) => ({ hex, model: 'cmyk', cmyk: { c: 0, m: 0, y: 0, k: 0 } });
const palette = {
  ink: { hex: '#232530', model: 'hex' }, // the poems: a warm near-black in process
  muted: { hex: '#6c6558', model: 'hex' }, // the attributions and the colophon
  foil,
  paper: stock('#f6f0e3'), // cream wove, inside
  card: stock('#1d2a4d'), // deep-blue card, the cover and the opener leaf
};
const col = (id) => ({ ...palette[id], paletteId: id });
const colorPalette = [
  ...Object.entries(palette).map(([id, value]) => ({ id, name: id, value })),
  { id: 'main-color', name: 'foil (defaults)', value: foil },
];
// Every blue page takes this: the paper turns to the card, and the head and foot go.
const onCard = { numbered: false, toc: false, palette: { paper: palette.card.hex },
  header: { elements: [] }, footer: { elements: [] } };
// The press file: PDF/X-4, the foil on its plate, the cream and the blue on none.
const PRINT = { standard: 'pdfx4', outputProfile: 'fogra51' };

Υλικά

Λειτουργίες
Ειδικά μελάνιαPDF σε CMYK και σε τόνους του γκριΤρισδιάστατη προβολή βιβλίου (Folio)Χαρτί, βιβλιοδεσία, γραφείο και φως (Folio)Διαφορετικό χαρτί για μια σειρά σελίδωνΣημασιολογική χρωματική παλέταΣτίχοι γραμμή προς γραμμήΠίνακας περιεχομένωνΣτιλ επικεφαλίδωνΕξώφυλλα, σελίδες τίτλου και κολοφώνεςΣχεδιασμένες εναρκτήριες σελίδεςΚείμενο, γραμμές και πλαίσια στις σχεδιάσεις σελίδαςΕικόνες στις σχεδιάσεις σελίδαςΤρέχουσες κεφαλίδες και αριθμοί σελίδαςΕξαγωγή PDFΣελίδες σε καμβά
Γραμματοσειρές
Cormorant Garamond, Cinzel, Cormorant SC (SIL OFL 1.1)
Αρχεία
  • nocturne-600.jpg
  • The nocturne facing the second poem, a gouache (Generated With Diffusion Models, πρωτότυπο)

Προετοιμασία

#1 · Το φύλλο είναι χρώμα spot με φινίρισμα

Ο κώδικας είναι η σύντομη απάντηση παραπάνω. Το finish: { kind: 'foil' } κάνει το χρώμα spot ειδικό μελάνι (φινιρίσματα). Η σελιδοποίηση βλέπει ένα χρώμα και τίποτα δεν μετακινείται· ο καμβάς βάφει το hex του, το Folio το φωτίζει ως μέταλλο, και το αρχείο PDF/X-4 βάζει κάθε στοιχείο χρυσοτυπίας σε ένα Separation με το όνομα Gold foil, από το οποίο ο κλισεράς χαράζει το ορειχάλκινο καλούπι. Ένα φύλλο ανοίγει κενό σε ό,τι βρίσκεται από κάτω του, όπως κάνει η θερμοτυπία στο πιεστήριο.

#2 · Τα χαρτιά είναι χρώματα που δεν τυπώνουν μελάνι

script.js · γραμμές 190–323στον πλήρη κώδικα
// :::paper{type=cardStock grammage=300}     pages 1–4: the cover leaf and the opener leaf
// # Shook Foil {style="cover"}  # Shook Foil {style="opener"}  # Contents {style="contents"}
// :::
// # God's Grandeur  …  # Spring             pages 5–10: cream wove, the poems
// :::paper{type=cardStock grammage=300}     pages 11–12: the back cover leaf
// # Colophon {style="colophon"}  # Shook Foil {style="back"}
// :::
const markdown = String.raw`---
title: "Shook Foil"
author: "Gerard Manley Hopkins"
---

:::paper{type=cardStock grammage=300}
# Shook Foil {style="cover" kicker="Five poems" years="1877 · 1879"}

# Shook Foil {style="opener" note="Five poems written in Wales and at Oxford, first printed in 1918, after the poet’s death"}

# Contents {style="contents"}

:::toc
:::

# God’s Grandeur {sub="St Beuno’s, 1877"}

:::verse{style="verse"}
The world is charged with the grandeur of God.
  It will flame out, like shining from shook foil;
  It gathers to a greatness, like the ooze of oil
Crushed. Why do men then now not reck his rod?
Generations have trod, have trod, have trod;
  And all is seared with trade; bleared, smeared with toil;
  And wears man’s smudge and shares man’s smell: the soil
Is bare now, nor can foot feel, being shod.

And for all this, nature is never spent;
  There lives the dearest freshness deep down things;
And though the last lights off the black West went
  Oh, morning, at the brown brink eastward, springs —
Because the Holy Ghost over the bent
  World broods with warm breast and with ah! bright wings.
:::

# Nocturne {style="plate"}

# The Starlight Night {sub="St Beuno’s, 1877"}

:::verse{style="verse"}
Look at the stars! look, look up at the skies!
  O look at all the fire-folk sitting in the air!
  The bright boroughs, the circle-citadels there!
Down in dim woods the diamond delves! the elves’-eyes!
The grey lawns cold where gold, where quickgold lies!
  Wind-beat whitebeam! airy abeles set on a flare!
  Flake-doves sent floating forth at a farmyard scare! —
Ah well! it is all a purchase, all is a prize.

Buy then! bid then! — What? — Prayer, patience, alms, vows.
Look, look: a May-mess, like on orchard boughs!
  Look! March-bloom, like on mealed-with-yellow sallows!
These are indeed the barn; withindoors house
  The shocks. This piece-bright paling shuts the spouse
    Christ home, Christ and his mother and all his hallows.
:::

# Pied Beauty {sub="1877"}

:::verse{style="verse"}
Glory be to God for dappled things —
  For skies of couple-colour as a brinded cow;
    For rose-moles all in stipple upon trout that swim;
Fresh-firecoal chestnut-falls; finches’ wings;
  Landscape plotted and pieced — fold, fallow, and plough;
    And áll trádes, their gear and tackle and trim.

All things counter, original, spare, strange;
  Whatever is fickle, freckled (who knows how?)
    With swift, slow; sweet, sour; adazzle, dim;
He fathers-forth whose beauty is past change:
                    Praise him.
:::

# The Windhover {sub="To Christ our Lord"}

:::verse{style="verse"}
I caught this morning morning’s minion, king-
  dom of daylight’s dauphin, dapple-dawn-drawn Falcon, in his riding
  Of the rolling level underneath him steady air, and striding
High there, how he rung upon the rein of a wimpling wing
In his ecstasy! then off, off forth on swing,
  As a skate’s heel sweeps smooth on a bow-bend: the hurl and gliding
  Rebuffed the big wind. My heart in hiding
Stirred for a bird, — the achieve of, the mastery of the thing!

Brute beauty and valour and act, oh, air, pride, plume, here
  Buckle! AND the fire that breaks from thee then, a billion
Times told lovelier, more dangerous, O my chevalier!

  No wonder of it: shéer plód makes plough down sillion
Shine, and blue-bleak embers, ah my dear,
  Fall, gall themselves, and gash gold-vermilion.
:::

# Spring {sub="May 1877"}

:::verse{style="verse"}
Nothing is so beautiful as Spring —
  When weeds, in wheels, shoot long and lovely and lush;
  Thrush’s eggs look little low heavens, and thrush
Through the echoing timber does so rinse and wring
The ear, it strikes like lightnings to hear him sing;
  The glassy peartree leaves and blooms, they brush
  The descending blue; that blue is all in a rush
With richness; the racing lambs too have fair their fling.

What is all this juice and all this joy?
  A strain of the earth’s sweet being in the beginning
In Eden garden. — Have, get, before it cloy,
  Before it cloud, Christ, lord, and sour with sinning,
Innocent mind and Mayday in girl and boy,
  Most, O maiden’s child, thy choice and worthy the winning.
:::

:::paper{type=cardStock grammage=300}
# Colophon {style="colophon"}

:::paragraphs{style="colophon"}
The poems follow *Poems of Gerard Manley Hopkins*, edited by Robert Bridges (London, 1918), Project Gutenberg eBook #22403; they are in the public domain.

Set in Cormorant Garamond, Cinzel and Cormorant SC (SIL Open Font License). The nocturne was generated with diffusion models. Cover, opener and rules stamped in gold foil.
:::

# Shook Foil {style="back"}
:::
`; // content.<lang>.md, inlined by the Cookbook

Το μπλε χαρτόνι και το κρεμ wove είναι χρώματα της παλέτας γραμμένα σε CMYK στο 0 % σε κάθε κανάλι: η οθόνη και το Folio βάφουν το χαρτί, και κανένας τσίγκος δεν παίρνει ούτε μία κουκκίδα του, οπότε το PDF του εξωφύλλου έχει τον τσίγκο του φύλλου και τέσσερις κενούς τσίγκους τετραχρωμίας. Κάθε μπλε σελίδα παίρνει το χαρτόνι από το στιλ της επικεφαλίδας της (palette: { paper: … } στο onCard), και τα δύο μπλοκ :::paper δίνουν στο Folio το βάρος και την ακαμψία του χαρτονιού για το φύλλο του εξωφύλλου και για το φύλλο πίσω του.

#3 · Το εξώφυλλο είναι ένα πλαίσιο και τέσσερις γραμμές κειμένου

script.js · γραμμές 63–78στον πλήρη κώδικα
// Two frames, a hairline inside a heavier rule: foil holds a 0.3 pt line on smooth card.
const frame = (id, inset, thickness) => ({ kind: 'box', id, style: { borderColor: col('foil'),
  borderWidth: pt(thickness) }, placement: at('page', 'top-left', inset, inset,
  { width: mm(TRIM_W - 2 * inset), height: mm(TRIM_H - 2 * inset) }) });
const flush = { span: 'page', margins: { top: mm(0), bottom: mm(0), left: mm(0), right: mm(0) } };
const cover = { ...onCard, ...flush, id: 'cover', advancedDesign: { enabled: true,
  minHeight: mm(TRIM_H), slot: { elements: [
    frame('outer', 9, 1.6), frame('inner', 11.5, 0.4),
    text('kicker', '{attr.kicker}', caps(8.5), at('page', 'top', 0, 46)),
    text('title', '{titleText}', { ...caps(40, col('foil'), 0.06), lineHeight: 1.05 },
      at('page', 'top', 0, 62, { width: mm(100) })),
    rule('rule', 112, 22, 0.8),
    text('poet', '{author}', { fontFamily: 'Cormorant SC', fontSize: pt(15), fontWeight: 500,
      letterSpacing: pt(1.5), color: col('foil') }, at('page', 'top', 0, 120)),
    text('years', '{attr.years}', caps(8), at('page', 'top', 0, 186)),
  ] } } };

Το φύλλο κρατά μια λεπτή γραμμή, οπότε το πλαίσιο είναι μια γραμμή 1,6 pt με μια τριχοειδή γραμμή 0,4 pt 2,5 mm πιο μέσα, καθεμία ένα περίγραμμα πλαισίου στο χρώμα του φύλλου. Ό,τι υπάρχει στο εξώφυλλο είναι χρυσοτυπία: κανένα δεύτερο μελάνι δεν αγγίζει το χαρτόνι, και έτσι παραγγέλνεται ένα εξώφυλλο με θερμοτυπία από ένα βιβλιοδετείο.

#4 · Μέσα, οι γραμμές είναι φύλλο και τα ποιήματα μελάνι

script.js · γραμμές 104–127στον πλήρη κώδικα
const poem = { enabled: true, minHeight: mm(23), slot: { elements: [
  text('title', '{titleText}', { ...caps(13, col('ink'), 0.1), lineHeight: 1.2 },
    at('container', 'top', 0, 6, { width: mm(90) })),
  { ...rule('rule', 3.5, 12, 0.8, '#title', 'below') },
  text('sub', '{attr.sub}', { fontFamily: 'Cormorant Garamond', italic: true, fontSize: pt(11),
    color: col('muted') }, at('#rule', 'below', 0, 3)),
] } };
const HEAD_Y = 12; // mm from the top edge to the running heads
const headText = (id, content, parity, edge, x) => text(id, content, { ...caps(7.5,
  col('muted'), 0.18), align: edge.endsWith('left') ? 'left' : 'right', parity },
at('page', edge, x, HEAD_Y));
const header = { elements: [
  // The double rule across the text block, a thick and a thin line 1 mm apart.
  { ...rule('head-a', HEAD_Y + 5.5, TRIM_W - INNER - OUTER, 0.9, 'container', 'top'),
    placement: at('page', 'top', 0, HEAD_Y + 5, { width: mm(TRIM_W - INNER - OUTER) }) },
  { ...rule('head-b', 0, 0, 0.3), placement: at('page', 'top', 0, HEAD_Y + 6.2,
    { width: mm(TRIM_W - INNER - OUTER) }) },
  headText('verso', '{title}', 'even', 'top-left', OUTER),
  headText('recto', '{chapterTitle}', 'odd', 'top-right', -OUTER),
] };
const footer = { elements: [
  text('folio', '{pageNumber}', caps(9, col('ink'), 0.05), at('page', 'bottom', 0, -13)),
  rule('folio-l', -12, 6, 0.6, 'page', 'bottom'), // a short foil rule under the folio
] };

Η τρέχουσα κεφαλίδα κάθεται πάνω από μια διπλή γραμμή, μια γραμμή 0,9 pt και μια γραμμή 0,3 pt 1,2 mm κάτω από αυτήν, τόσο φαρδιά όσο η επιφάνεια στοιχειοθεσίας. Η σχεδίαση του τίτλου του ποιήματος προσθέτει μια γραμμή 12 mm κάτω από τον τίτλο, και το υποσέλιδο μια γραμμή 6 mm κάτω από τον αριθμό σελίδας. Το κείμενο μένει στο θερμό μαύρο μελάνι: μικρά γράμματα σε φύλλο γεμίζουν στο πιεστήριο.

#5 · Το Folio γυρίζει το εξώφυλλο προς το φως

script.js · γραμμές 152–158στον πλήρη κώδικα
const folio = {
  tilt: 24, yaw: -16,
  paper: { type: 'bookWove', grammage: 100, shade: '#ffffff' }, // the colour is the page's
  binding: { type: 'paperback', cover: 'pages' },
  surface: { type: 'walnut' },
  lighting: { environment: 'studio', intensity: 1.1 },
};

Το φύλλο φαίνεται ως φύλλο μόνο όταν αντανακλά κάτι. Το περιβάλλον studio έχει φωτεινά soft box, και μια κλίση 24° με το βιβλίο στραμμένο κατά 16° φέρνει την αντανάκλασή τους πάνω από τον τίτλο. Με τη ρύθμιση της πιο αμυδρής λάμπας, το ίδιο χρυσό διαβάζεται ως επίπεδη ώχρα.

Η πλήρης συνταγή

Sandbox
// ═══ Postext Cookbook · Nº 188 · Gold foil on a deep-blue cover ═══════════════════════
// https://postext.dev/en/cookbook/gold-foil-poetry-cover
// Code: MIT · Text: Hopkins, Bécquer (public domain) · Nocturne: diffusion models
// Fonts: Cormorant Garamond, Cinzel, Cormorant SC (SIL OFL 1.1) · Needs postext ≥ 1.85.1
//
// A poetry chapbook with a hot-foil cover. The cover, the opener and the contents are set
// in gold foil alone on deep-blue card; inside, on cream paper, the poems print in four
// colours and every rule of the page is foil. Folio lights the foil; the PDF gives it a
// plate of its own for the block-maker.
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 = 'gold-foil-poetry-cover';

// ─── 1 · Design ─────────────────────────────────────────────────────────────
// #region answer: the foil is a spot colour with a finish; the stocks print no ink at all
// Gold foil: a spot ink whose finish says what it is. The canvas paints its hex, Folio lights
// it as metal, and a CMYK or PDF/X file puts it on a Separation of its own named 'Gold foil',
// the artwork the foil block is etched from.
const foil = { hex: '#c9a24a', model: 'spot', spot: { name: 'Gold foil',
  cmyk: { c: 15, m: 30, y: 75, k: 10 }, finish: { kind: 'foil', sheen: 'gloss' } } };
// The two stocks are the paper's own colours, not inks: authored in CMYK at 0 % they paint
// on screen and put nothing on any plate. The blue card is a palette value of its own, so a
// section can turn the page blue (palette: { paper: … } in its heading style).
const stock = (hex) => ({ hex, model: 'cmyk', cmyk: { c: 0, m: 0, y: 0, k: 0 } });
const palette = {
  ink: { hex: '#232530', model: 'hex' }, // the poems: a warm near-black in process
  muted: { hex: '#6c6558', model: 'hex' }, // the attributions and the colophon
  foil,
  paper: stock('#f6f0e3'), // cream wove, inside
  card: stock('#1d2a4d'), // deep-blue card, the cover and the opener leaf
};
const col = (id) => ({ ...palette[id], paletteId: id });
const colorPalette = [
  ...Object.entries(palette).map(([id, value]) => ({ id, name: id, value })),
  { id: 'main-color', name: 'foil (defaults)', value: foil },
];
// Every blue page takes this: the paper turns to the card, and the head and foot go.
const onCard = { numbered: false, toc: false, palette: { paper: palette.card.hex },
  header: { elements: [] }, footer: { elements: [] } };
// The press file: PDF/X-4, the foil on its plate, the cream and the blue on none.
const PRINT = { standard: 'pdfx4', outputProfile: 'fogra51' };
// #endregion

Το συντεθειμένο script.js εκτελείται ως έχει: επικολλήστε το στο module script οποιασδήποτε σελίδας ή ανοίξτε τη συνταγή στο CodePen. Φάκελος της συνταγής στο GitHub ↗ (ανοίγει σε νέα καρτέλα)

Παραλλαγές

#Ασημοτυπία αντί για χρυσοτυπία

Αλλάξτε το hex και το εναλλακτικό χρώμα· το φινίρισμα και ο τσίγκος μένουν.

-const foil = { hex: '#c9a24a', model: 'spot', spot: { name: 'Gold foil',
-  cmyk: { c: 15, m: 30, y: 75, k: 10 }, finish: { kind: 'foil', sheen: 'gloss' } } };
+const foil = { hex: '#b8bcc2', model: 'spot', spot: { name: 'Silver foil',
+  cmyk: { c: 20, m: 12, y: 10, k: 25 }, finish: { kind: 'foil', sheen: 'gloss' } } };

#Τυπώστε το χρυσό ως μεταλλικό μελάνι

Ένα μεταλλικό μελάνι κοστίζει λιγότερο από ένα κλισέ θερμοτυπίας και τυπώνεται μαζί με τα άλλα μελάνια· το Folio το δείχνει με σατινέ λάμψη.

-  cmyk: { c: 15, m: 30, y: 75, k: 10 }, finish: { kind: 'foil', sheen: 'gloss' } } };
+  cmyk: { c: 15, m: 30, y: 75, k: 10 }, finish: { kind: 'metallic' } } };

Συνήθη λάθη

  • Ένα χρωματιστό χαρτί ορισμένο ως page.backgroundColor με ένα συνηθισμένο hex τυπώνεται ως πλημμύρα τετραχρωμίας σε όλη τη σελίδα. Γράψτε το χαρτί σε CMYK στο 0 %, όπως εδώ, όταν το χρώμα είναι του χαρτιού.
  • Τριχοειδείς γραμμές κάτω από 0,25 pt και γράμματα κάτω από 8 pt γεμίζουν όταν τυπώνονται με θερμοτυπία. Κρατήστε το φύλλο για γραμμές και γράμματα προβολής.

Ευχαριστίες

Συνταγή
Ignacio Ferro
Κείμενο
Εικόνες
  • The nocturne facing the second poem, a gouache · Generated With Diffusion Models · πρωτότυπο
Γραμματοσειρές
Cormorant Garamond (SIL OFL 1.1) · Cinzel (SIL OFL 1.1) · Cormorant SC (SIL OFL 1.1)
SandboxPDF