# Ένα εξώφυλλο για KDP, IngramSpark και Lulu

> Η Marianela με μία σχεδίαση εξωφύλλου χτισμένη τρεις φορές, ως σκληρόδετο του KDP, χαρτόδετο της IngramSpark και casewrap της Lulu, η καθεμία με τη ράχη της.

- Έκδοση HTML: https://postext.dev/el/cookbook/one-cover-three-printers
- Συνταγή Αρ. 226 · Έξοδος και ενσωμάτωση · Επίπεδο 3 (Προχωρημένο) · Έξοδοι: Canvas, PDF
- Είδη: Πεζογραφία, θέατρο και λογοτεχνικός λόγος
- Απαιτεί postext ≥ 1.104.0, postext-pdf ≥ 1.104.0 · δοκιμασμένη με 1.104.0, postext-pdf 1.104.0 στις 2026-12-04
- Σελίδες: [1](https://postext.dev/cookbook/one-cover-three-printers/en/p01.webp?v=6d6d0928), [2](https://postext.dev/cookbook/one-cover-three-printers/en/p02.webp?v=6d6d0928), [3](https://postext.dev/cookbook/one-cover-three-printers/en/p03.webp?v=6d6d0928), [4](https://postext.dev/cookbook/one-cover-three-printers/en/p04.webp?v=6d6d0928), [5](https://postext.dev/cookbook/one-cover-three-printers/en/p05.webp?v=6d6d0928), [1](https://postext.dev/cookbook/one-cover-three-printers/en/p09.webp?v=6d6d0928), [1](https://postext.dev/cookbook/one-cover-three-printers/en/p10.webp?v=6d6d0928), [1](https://postext.dev/cookbook/one-cover-three-printers/en/p11.webp?v=6d6d0928)
- PDF: https://postext.dev/cookbook/one-cover-three-printers/en/one-cover-three-printers.pdf?v=6d6d0928
- Άνοιγμα στο Sandbox: https://postext.dev/el/sandbox#recipe=one-cover-three-printers&lang=en (.postext: https://postext.dev/cookbook/one-cover-three-printers/en/one-cover-three-printers.postext)
- Τελευταία ενημέρωση: 2026-12-04
- Άλλες γλώσσες: [en](https://postext.dev/en/cookbook/one-cover-three-printers.md), [es](https://postext.dev/es/cookbook/one-cover-three-printers.md), [ca](https://postext.dev/ca/cookbook/one-cover-three-printers.md), [de](https://postext.dev/de/cookbook/one-cover-three-printers.md), [fr](https://postext.dev/fr/cookbook/one-cover-three-printers.md), [it](https://postext.dev/it/cookbook/one-cover-three-printers.md), [pt](https://postext.dev/pt/cookbook/one-cover-three-printers.md), [ru](https://postext.dev/ru/cookbook/one-cover-three-printers.md), [zh](https://postext.dev/zh/cookbook/one-cover-three-printers.md), [ja](https://postext.dev/ja/cookbook/one-cover-three-printers.md), [ar](https://postext.dev/ar/cookbook/one-cover-three-printers.md)

## Με λίγα λόγια

Ένα ισπανικό μυθιστόρημα με εξώφυλλο που σχεδιάζεται μία φορά και ετοιμάζεται για τρεις εταιρείες εκτύπωσης κατά παραγγελία. Τα τρία εξώφυλλα στέκονται πλάι πλάι στην ίδια κλίμακα, το καθένα με τη ράχη, το μέγεθος και τους ελέγχους του.

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

Η *Marianela*, το μυθιστόρημα του Benito Pérez Galdós του 1878, ως βιβλίο 6 × 9 ιντσών, στην αγγλική μετάφραση της Clara Bell του 1883 και στα ισπανικά του Galdós. Οι σελίδες δίνουν τη σελίδα τίτλου, τα δικαιώματα και το πρώτο κεφάλαιο, όπου ένας οφθαλμίατρος χαμένος στα σιδηρωρυχεία του Socartes βγαίνει από εκεί με οδηγό έναν τυφλό νέο. Το εξώφυλλο σχεδιάζεται μία φορά: ένας πίνακας με τον Pablo και τη Nela σε όλο το εμπρόσθιο εξώφυλλο, ο τίτλος στον ουρανό του, το οπισθόφυλλο και η ράχη στο κεραμιδί του χώματος των ορυχείων. Η πένα το χτίζει τρεις φορές, για σκληρόδετο του KDP, χαρτόδετο της IngramSpark και casewrap της Lulu, και βάζει τα τρία φύλλα πλάι πλάι στην ίδια κλίμακα με τους οδηγούς τους. Έτσι μια φαρδύτερη ράχη ή το γύρισμα ενός σκληρόδετου φαίνονται ως πλάτος.

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

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

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

```js
// script.js, γραμμές 29–54
// One book, three printers. KDP's case laminate adds its boards to the pages' bulk and
// keeps a box for the barcode of the ISBN it assigns; IngramSpark publishes no spine
// formula, so its profile estimates the spine from the paper's pages per inch and says
// so; Lulu's casewrap takes its spine from Lulu's table by page count. The IngramSpark
// edition carries an ISBN of its own, printed as a barcode on its back.
const production = {
  versions: [
    { id: 'kdp', name: 'KDP hardcover', binding: 'kdp-hardcover-cream', barcodeBy: 'printer' },
    { id: 'ingram', name: 'IngramSpark paperback', binding: 'ingramspark-paperback-creme',
      isbn: '978-84-0000-226-8' },
    { id: 'lulu', name: 'Lulu casewrap', binding: 'lulu-casewrap' },
  ],
};
// The design, once for the three: the painting over the whole front, the title on its sky
// and the author at its foot (anchored to the panel, so each sheet places them anew), the
// back and the spine in the red of the earth.
const size = (width, height) => ({ x: 0, y: 0, width, height });
const cover = {
  background: col('earth'),
  image: { resourceId: 'socartes', area: 'front' },
  verticalAlign: { back: 'middle' },
  textBoxes: [
    { name: 'title', rect: size(130, 24), anchor: { to: 'front', edge: 'top', y: 12 } },
    { name: 'author', rect: size(120, 9), anchor: { to: 'front', edge: 'bottom', y: -10 } },
  ],
};
```

## Υλικά

**Διδάσκει**

- [Προφίλ εκτύπωσης κατά παραγγελία (KDP, IngramSpark, Lulu)](https://postext.dev/el/docs/print-covers.md#εκτύπωση-κατά-παραγγελία): Το δέσιμο μιας έκδοσης ονομάζει ένα ενσωματωμένο προφίλ μιας πλατφόρμας (kdp-paperback-cream, ingramspark-paperback-creme, lulu-casewrap…): το περιθώριο αιμορραγίας, τη ράχη ανάλογα με τις σελίδες, τους αριθμούς σελίδων που δέχεται, τον κανόνα για το κείμενο της ράχης και, στο KDP, το πλαίσιο που κρατά για τον γραμμωτό κώδικά του. Οι coverGuideShapes και paintGuides σχεδιάζουν την κοπή, τα διπλώματα, τις ασφαλείς ζώνες και αυτό το πλαίσιο πάνω στο φύλλο ως δοκίμιο.
- [Φύλλο εξωφύλλου για εκτύπωση](https://postext.dev/el/docs/print-covers.md#το-φύλλο-και-τα-τμήματά-του): Το buildCover σελιδοποιεί το φύλλο μιας έκδοσης εκτύπωσης: οπισθόφυλλο, ράχη και πρόσθια όψη, με αυτιά, τη θήκη και την κουβερτούρα ενός σκληρόδετου, και τις φόρζες του, με περιθώριο αιμορραγίας και σημάδια διπλώματος. Η ρύθμιση cover το σχεδιάζει και ένα έγγραφο Markdown του βιβλίου γεμίζει τα τμήματά του.
- [Εκδόσεις εκτύπωσης, ISBN και ράχη](https://postext.dev/el/docs/print-covers.md#οι-εκδόσεις-ενός-βιβλίου): Το production.versions δίνει σε κάθε βιβλιοδεσία ενός βιβλίου το προφίλ βιβλιοδεσίας και το ISBN της, που τυπώνεται ως γραμμωτός κώδικας EAN-13· η ράχη προκύπτει από τον αριθμό σελίδων και το χαρτί. Το production.collection προσθέτει το ISBN ολόκληρου του έργου και έναν κατάλογο των τίτλων του.

**Χρησιμοποιεί επίσης**

- [Εξώφυλλα, σελίδες τίτλου και κολοφώνες](https://postext.dev/el/docs/configuration-styles.md#στιλ-επικεφαλίδων)
- [Πλαίσια κειμένου εξωφύλλου](https://postext.dev/el/docs/print-covers.md#πλαίσια-κειμένου)
- [Έλεγχος καταχώρισης πώλησης (λέξεις-κλειδιά, περιγραφή)](https://postext.dev/el/docs/print-covers.md#η-καταχώριση-πώλησης-του-βιβλίου)
- [Στιλ επικεφαλίδων](https://postext.dev/el/docs/configuration-styles.md#στιλ-επικεφαλίδων)
- [Σχεδιασμένες εναρκτήριες σελίδες](https://postext.dev/el/docs/configuration-headings.md#πλάτος-και-προηγμένη-σχεδίαση)
- [Κείμενο, γραμμές και πλαίσια στις σχεδιάσεις σελίδας](https://postext.dev/el/docs/configuration-headers-footers.md#κεφαλίδες-και-υποσέλιδα)
- [Μεταδεδομένα εγγράφου](https://postext.dev/el/docs/document-format.md#μεταδεδομένα-frontmatter)
- [Στιλ παραγράφων](https://postext.dev/el/docs/configuration-styles.md#στιλ-παραγράφων)
- [Τρέχουσες κεφαλίδες και αριθμοί σελίδας](https://postext.dev/el/docs/configuration-headers-footers.md#κεφαλίδες-και-υποσέλιδα)
- [Εικόνες και πίνακες ως πόροι](https://postext.dev/el/docs/document-format-resources.md#πόροι)
- [Σημασιολογική χρωματική παλέτα](https://postext.dev/el/docs/configuration-fonts-colors-viewers.md#παλέτα-χρωμάτων)
- [Εξαγωγή PDF](https://postext.dev/el/docs/configuration-pdf-output.md#παραγωγή-pdf)
- [Σελίδες σε καμβά](https://postext.dev/el/docs/configuration-programmatic-usage.md#απόδοση-σελίδας-σε-bitmap)
- [Ιδιότητες επικεφαλίδων](https://postext.dev/el/docs/document-format.md#χαρακτηριστικά-επικεφαλίδων)
- [Χρώμα χαρτιού](https://postext.dev/el/docs/configuration-page-layout.md#σελίδα)
- [Κεφαλίδες ανά ρόλο σελίδας](https://postext.dev/el/docs/configuration-headers-footers.md#στοιχεία-κειμένου)
- [Γραμματοσειρές ενσωματωμένες στο PDF](https://postext.dev/el/docs/configuration-pdf-output.md#γιατί-πάροχος-γραμματοσειρών)
- [Τρέχουσες κεφαλίδες ανά ενότητα](https://postext.dev/el/docs/configuration-styles.md#στιλ-επικεφαλίδων)
- [Κεφάλαια χωρίς αρίθμηση](https://postext.dev/el/docs/configuration-styles.md#στιλ-επικεφαλίδων)

**Η διαμόρφωση με μια ματιά**

- [`bodyText`](https://postext.dev/el/docs/configuration-text.md#κυρίως-κείμενο), [`colorPalette`](https://postext.dev/el/docs/configuration-fonts-colors-viewers.md#παλέτα-χρωμάτων), [`cover`](https://postext.dev/el/docs/print-covers.md#η-σχεδίαση-του-εξωφύλλου), [`footer`](https://postext.dev/el/docs/configuration-headers-footers.md#κεφαλίδες-και-υποσέλιδα), [`header`](https://postext.dev/el/docs/configuration-headers-footers.md#κεφαλίδες-και-υποσέλιδα), [`headingStyles`](https://postext.dev/el/docs/configuration-styles.md#στιλ-επικεφαλίδων), [`headings`](https://postext.dev/el/docs/configuration-headings.md#επικεφαλίδες), [`layout`](https://postext.dev/el/docs/configuration-page-layout.md#διάταξη), [`locale`](https://postext.dev/el/docs/configuration-language.md#συλλαβισμός), [`page`](https://postext.dev/el/docs/configuration-page-layout.md#σελίδα), [`paragraphStyles`](https://postext.dev/el/docs/configuration-styles.md#στιλ-παραγράφων), [`production`](https://postext.dev/el/docs/print-covers.md#οι-εκδόσεις-ενός-βιβλίου)

**API**

- [`buildCover`](https://postext.dev/el/docs/print-covers.md#από-κώδικα), [`buildDocumentWithFonts`](https://postext.dev/el/docs/configuration-programmatic-usage.md#φόρτωση-γραμματοσειρών-πριν-από-τη-σελιδοποίηση), `coverGuideShapes`, [`decompressWoff2`](https://postext.dev/el/docs/configuration-pdf-output.md#πάροχος-γραμματοσειρών-για-τον-browser-fontsource--woff2), [`inlineSvgFonts`](https://postext.dev/el/docs/configuration-resources.md#γραμματοσειρές-στο-κείμενο-svg), `paintGuides`, [`registerResourceImage`](https://postext.dev/el/docs/architecture.md#η-επιφάνεια-του-api), [`renderPageToCanvas`](https://postext.dev/el/docs/configuration-programmatic-usage.md#απόδοση-σελίδας-σε-bitmap), [`renderToPdf`](https://postext.dev/el/docs/configuration-pdf-output.md#παραγωγή-pdf)

**Γραμματοσειρές**

- Source Serif 4 (OFL-1.1), Fraunces (OFL-1.1), Source Sans 3 (OFL-1.1)

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

### 1 · Τα κείμενα μία φορά για τα τρία φύλλα

```js
// script.js, γραμμές 58–75
const style = (id, fontFamily, size, lead, color, extra) => ({ id, fontFamily, fontSize: pt(size),
  lineHeight: pt(lead), color, italicColor: color, boldColor: color, firstLineIndent: mm(0),
  textAlign: 'left', hyphenation: false, ...extra });
const mid = { textAlign: 'center' };
const narrow = { indent: mm(16), endIndent: mm(16) };
const coverStyles = [
  style('cover-title', 'Fraunces', 50, 54, col('ink'), { ...mid, fontWeight: 600 }),
  style('cover-author', 'Fraunces', 16, 19, col('bone'), mid),
  style('cover-spine', 'Fraunces', 10.5, 12, col('bone'), mid),
  style('cover-blurb', 'Source Serif 4', 11.5, 16, col('bone'), { textAlign: 'justify',
    hyphenation: true, firstLineIndent: mm(4), ...narrow }),
  style('cover-blurb-first', 'Source Serif 4', 11.5, 16, col('bone'), { textAlign: 'justify',
    hyphenation: true, ...narrow }),
  style('cover-quote', 'Fraunces', 16, 21, col('bone'), { ...mid, italic: true, ...narrow,
    marginTop: pt(14), marginBottom: pt(14) }),
  style('cover-note', 'Source Serif 4', 10, 13, col('bone'), { ...mid, italic: true,
    marginTop: pt(12) }),
];
```

Η [σύντομη απάντηση](https://postext.dev/el/cookbook/one-cover-three-printers.md#η-σύντομη-απάντηση) έχει τρεις εκδόσεις, η καθεμία με ένα από τα [προφίλ εκτύπωσης κατά παραγγελία](https://postext.dev/el/docs/print-covers.md#εκτύπωση-κατά-παραγγελία), και ένα `cover` για όλες. Τα πλαίσια του τίτλου και του συγγραφέα είναι αγκυρωμένα στο πεδίο του εμπρόσθιου εξωφύλλου, όχι τοποθετημένα με συντεταγμένες, οπότε κάθε φύλλο τα βάζει στο δικό του πεδίο, που μετακινείται δεξιότερα όσο φαρδαίνει η ράχη. Το κείμενο του οπισθόφυλλου κεντράρεται στον χώρο που έχει το frame του, και στο KDP ο χώρος αυτός τελειώνει πάνω από το πλαίσιο του γραμμωτού κώδικα.

### 2 · Το σώμα του βιβλίου σε 6 × 9 ίντσες

```js
// script.js, γραμμές 79–116
const [W, H, TOP, FOOT, INNER, OUTER, LEAD] = [152.4, 228.6, 22, 22, 22, 18, 15]; // mm, pt
const at = (to, edge, x, y, box) => ({ anchor: { to, edge }, offset: { x: mm(x), y: mm(y) },
  ...(box && { size: box }) });
const text = (id, content, look, place) => ({ kind: 'text', id, content, align: 'center',
  overflow: 'wrap', placement: place, ...look });
const face = (fontFamily, size, color, x) => ({ fontFamily, fontSize: pt(size), color, ...x });
const label = (size, color = col('muted')) => face('Source Sans 3', size, color,
  { fontWeight: 600, letterSpacing: pt(size / 6), textTransform: 'uppercase' });
const none = { header: { elements: [] }, footer: { elements: [] }, numbered: false, toc: false };
const design = (minHeight, elements) => ({ enabled: true, minHeight: mm(minHeight),
  slot: { elements } });
const page = (parity) => ({ breakBefore: { enabled: true, parity } });
const rule = (id, y, to = 'container') => ({ kind: 'rule', id, direction: 'horizontal',
  thickness: pt(0.6), color: col('accent'), placement: at(to, 'top', 0, y, { width: mm(14) }) });
const wide = { width: mm(W - INNER - OUTER) };
const headingStyles = [
  { ...none, ...page('odd'), id: 'title-page', advancedDesign: design(H - TOP - FOOT, [
    text('t', '{title}', face('Fraunces', 34, col('ink'), { fontWeight: 600 }),
      at('page', 'top', 0, 56, wide)),
    text('s', '{subtitle}', face('Source Serif 4', 13, col('muted'), { italic: true }),
      at('page', 'top', 0, 76)),
    rule('r', 88, 'page'),
    text('a', '{author}', label(9, col('accent')), at('page', 'top', 0, 94)),
    text('c', '{attr.credit}', face('Source Serif 4', 10, col('muted'), { italic: true }),
      at('page', 'top', 0, 102, wide)),
    text('i', '{attr.imprint}', label(7.5), at('page', 'bottom', 0, -28)),
  ]) },
  { ...none, ...page('even'), id: 'rights', advancedDesign: design(120, [rule('r', 114)]) },
  // Each chapter on a recto, sunk 60 mm: its numeral in red, its title in Fraunces.
  { ...page('odd'), id: 'chapter', toc: false, advancedDesign: design(60, [
    text('n', '{attr.number}', face('Fraunces', 30, col('accent'), { fontWeight: 600 }),
      at('container', 'top', 0, 14)),
    text('t', '{titleText}', face('Fraunces', 18, col('ink'), { italic: true }),
      at('container', 'top', 0, 32, wide)),
    rule('r', 46)]) },
];
const head = (id, content, parity) => text(id, content, { ...label(6.8), parity, pages: 'body' },
  at('page', 'top', 0, 12));
```

Και οι τρεις πλατφόρμες τυπώνουν αυτή τη διάσταση, οπότε ένα σώμα βιβλίου αρκεί για τις τρεις εκδόσεις. Η εναρκτήρια σελίδα του κεφαλαίου παίρνει τον αριθμό και τον τίτλο της από την επικεφαλίδα και τα χαρακτηριστικά της, και η σελίδα τίτλου παίρνει το όνομα της μεταφράστριας από το `{attr.credit}`.

### 3 · Οι σελίδες ολόκληρου του μυθιστορήματος

```js
// script.js, γραμμές 287–293
// The pen sets the first chapter only. The spines need the whole book, so the count is
// worked out from the words a page of this design holds, over the novel's length, with
// four pages of front matter.
const WORDS = t({ en: 55730, es: 50000 }); // Gutenberg 48818; Wikisource, about
const body = markdown.split(/^# .*\{style="chapter"/m)[1] ?? markdown;
const perPage = body.split(/\s+/).length / (book.pages.length - 2);
const pages = 4 + 2 * Math.ceil(WORDS / perPage / 2);
```

Η πένα σελιδοποιεί οκτώ σελίδες: τα προκαταρκτικά και το πρώτο κεφάλαιο. Οι ράχες χρειάζονται ολόκληρο το βιβλίο, οπότε ο αριθμός βγαίνει από τις λέξεις που χωρά μια σελίδα κειμένου αυτής της σχεδίασης και από το μήκος όλου του κειμένου: 170 σελίδες στα αγγλικά, 174 στα ισπανικά. Είναι εκτίμηση, και κάθε ράχη παρακάτω προκύπτει από αυτήν. Δώστε το `book.pages` ολόκληρου του βιβλίου και οι ράχες ακολουθούν τον πραγματικό αριθμό.

### 4 · Ένα φύλλο για κάθε τυπογραφείο

```js
// script.js, γραμμές 297–311
const builds = production.versions.map(({ id }) => {
  const built = buildCover({ config, version: id, pages, markdown: coverText,
    metadata: book.metadata, resources });
  if (!('config' in built)) throw new Error(built.issues.map((i) => i.kind).join(', '));
  return { id, built };
});
const sheets = [];
for (const { built } of builds) {
  // The barcode's digits name OCR-B, which no font server has: the label face sets them.
  for (const [id, bytes] of Object.entries(built.files)) {
    await loadSvg(id, new TextDecoder().decode(bytes)
      .replace(/font-family="[^"]*"/g, 'font-family="Source Sans 3"'));
  }
  sheets.push(await buildDocumentWithFonts(built.content, built.config, kitFonts(FONTS)));
}
```

Το `buildCover` τρέχει μία φορά για κάθε έκδοση, με το ίδιο Markdown εξωφύλλου. Κάθε προφίλ μετρά τη ράχη με τον δικό του τρόπο. Το πλαστικοποιημένο σκληρόδετο του KDP προσθέτει τα χαρτόνια στις σελίδες: 0,614 ίντσες (15,6 mm) για την αγγλική έκδοση. Η IngramSpark δεν δημοσιεύει τύπο, οπότε το προφίλ της εκτιμά 0,383 ίντσες (9,7 mm) από τις σελίδες ανά ίντσα του κρεμ χαρτιού. Η Lulu διαβάζει τον πίνακά της ανά αριθμό σελίδων και δίνει 0,688 ίντσες (17,5 mm). Το SVG του γραμμωτού κώδικα της έκδοσης IngramSpark, της μόνης με ISBN, φορτώνεται με τα ψηφία του στη γραμματοσειρά της ετικέτας.

### 5 · Τα τρία φύλλα πλάι πλάι

```js
// script.js, γραμμές 318–351
// Every sheet is drawn at 1.4 px a mm, so a wider spine or a case's wrap shows as width.
// `coverGuideShapes` gives each sheet's trim, folds, safe areas and barcode box in mm.
const PX = 1.4;
const inch = (v) => `${(v / 25.4).toFixed(3)} in`;
const row = document.createElement('section');
row.id = 'printers';
row.style.cssText = 'display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; '
  + 'align-items: flex-start; padding: 24px 16px; color: #ece4d6; '
  + 'font: 13px/1.45 system-ui, sans-serif';
builds.forEach(({ id, built }, n) => {
  const leaf = sheets[n].pages[0];
  const [fig, canvas, cap] = ['figure', 'canvas', 'figcaption']
    .map((tag) => document.createElement(tag));
  const version = production.versions.find((v) => v.id === id);
  canvas.setAttribute('role', 'img');
  canvas.setAttribute('aria-label', `${version.name}: ${t({ en: 'the cover sheet with its guides',
    es: 'el pliego de cubierta con sus guías' })}`);
  renderPageToCanvas(leaf, sheets[n], canvas, { scale: (PX * built.sheet.width) / leaf.width });
  const ctx = canvas.getContext('2d');
  ctx.setTransform(1, 0, 0, 1, 0, 0);
  paintGuides(ctx, coverGuideShapes(built), canvas.width / built.sheet.width);
  canvas.style.cssText = `display: block; width: ${PX * built.sheet.width}px; max-width: 100%`;
  const spine = built.sheets.spine.caseSpine ?? built.sheets.spine.used;
  const checks = built.issues.filter((i) => !i.kind.startsWith('listing')).map((i) => i.kind);
  cap.textContent = `${version.name} · ${pages} ${t({ en: 'pages', es: 'páginas' })} · `
    + `${t({ en: 'spine', es: 'lomo' })} ${inch(spine)} `
    + `(${spine.toFixed(1)} mm) · ${inch(built.sheet.width)} × ${inch(built.sheet.height)} · `
    + `${checks.length ? checks.join(', ') : t({ en: 'no checks raised', es: 'sin avisos' })}`;
  fig.style.cssText = 'margin: 0; max-width: 100%';
  cap.style.cssText = `max-width: ${PX * built.sheet.width}px; margin-top: 6px`;
  fig.append(canvas, cap);
  row.append(fig);
});
document.getElementById('pages').before(row);
```

Κάθε φύλλο σχεδιάζεται σε 1,4 px ανά mm με τους οδηγούς του, και η λεζάντα του δίνει τις σελίδες, τη ράχη, όλο το φύλλο σε ίντσες και τους ελέγχους που προέκυψαν. Το σκληρόδετο του KDP κρατά ελεύθερο το πλαίσιο των 2 × 1,2 ιντσών για τον γραμμωτό κώδικα που τυπώνει το KDP, και τίποτα από τη σχεδίαση δεν μπαίνει εκεί. Το φύλλο της IngramSpark φέρει τον δικό του γραμμωτό κώδικα του βιβλίου, και η λεζάντα του γράφει `spineEstimated`: κατεβάστε το πρότυπο της IngramSpark και συγκρίνετε τη ράχη του πριν τυπώσετε. Το casewrap της Lulu δεν έχει ISBN, άρα ούτε γραμμωτό κώδικα ούτε πλαίσιο. Τα δύο σκληρόδετα έχουν ύψος περίπου 10,4 και 10,75 ίντσες, ενώ το χαρτόδετο 9,25, γιατί το γύρισμά τους τυλίγει τα χαρτόνια.

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

Ένα αρχείο, συντεθειμένο από τον φάκελο της συνταγής με το δείγμα κειμένου και το κοινό κιτ του Συνταγολογίου ενσωματωμένα· φτιάχνει τη δική του σελίδα. Για να το εκτελέσετε, βάλτε το σε ένα `<script type="module">` σε μια κενή σελίδα, ή επικολλήστε το στο πάνελ JS ενός νέου CodePen (ως module). Εισάγει το postext από το esm.sh, οπότε δεν χρειάζεται εγκατάσταση ούτε build.

- Φάκελος πηγής: https://github.com/drnachio/postext/tree/main/cookbook/one-cover-three-printers

### script.js

```js
// ═══ Postext Cookbook · Nº 226 · One cover design for three print-on-demand printers ═══
// https://postext.dev/en/cookbook/one-cover-three-printers
// Code: MIT · Text: B. Pérez Galdós, tr. C. Bell (public domain) · Art: diffusion models
// Fonts: Source Serif 4, Fraunces, Source Sans 3 (SIL OFL 1.1) · Needs postext ≥ 1.104.0
//
// Marianela, a 6 × 9 in novel, printed three ways: a KDP hardcover, an IngramSpark paperback
// and a Lulu casewrap. Each version names its platform's binding profile; the cover is
// designed once. Each sheet comes out at its printer's measures, with its own spine, wrap
// and checks, and the pen lays the three side by side at one scale.
import { buildDocumentWithFonts, renderPageToCanvas, registerResourceImage, inlineSvgFonts }
  from 'https://esm.sh/postext';
import { buildCover, coverGuideShapes, paintGuides } from 'https://esm.sh/postext/production';
import { renderToPdf, decompressWoff2 } from 'https://esm.sh/postext-pdf';

const LANG = 'en'; // @lang: the language of the sample document ('en' | 'es')
const RECIPE = 'one-cover-three-printers';

// ─── 1 · Design ─────────────────────────────────────────────────────────────
// The pages' colours, then the cover's: the red of the mine's earth, cream type, slate.
const palette = { ink: '#2b211d', accent: '#a23b1f', muted: '#6f625b', paper: '#fbf7f0',
  rule: '#cdbba8', earth: '#5a2016', bone: '#f4ead9', slate: '#2e3a3a' };
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: 'accent (defaults)', value: { hex: palette.accent, model: 'hex' } },
];

// #region answer: three versions, each naming its platform's built-in profile
// One book, three printers. KDP's case laminate adds its boards to the pages' bulk and
// keeps a box for the barcode of the ISBN it assigns; IngramSpark publishes no spine
// formula, so its profile estimates the spine from the paper's pages per inch and says
// so; Lulu's casewrap takes its spine from Lulu's table by page count. The IngramSpark
// edition carries an ISBN of its own, printed as a barcode on its back.
const production = {
  versions: [
    { id: 'kdp', name: 'KDP hardcover', binding: 'kdp-hardcover-cream', barcodeBy: 'printer' },
    { id: 'ingram', name: 'IngramSpark paperback', binding: 'ingramspark-paperback-creme',
      isbn: '978-84-0000-226-8' },
    { id: 'lulu', name: 'Lulu casewrap', binding: 'lulu-casewrap' },
  ],
};
// The design, once for the three: the painting over the whole front, the title on its sky
// and the author at its foot (anchored to the panel, so each sheet places them anew), the
// back and the spine in the red of the earth.
const size = (width, height) => ({ x: 0, y: 0, width, height });
const cover = {
  background: col('earth'),
  image: { resourceId: 'socartes', area: 'front' },
  verticalAlign: { back: 'middle' },
  textBoxes: [
    { name: 'title', rect: size(130, 24), anchor: { to: 'front', edge: 'top', y: 12 } },
    { name: 'author', rect: size(120, 9), anchor: { to: 'front', edge: 'bottom', y: -10 } },
  ],
};
// #endregion

// #region cover-type: the paragraph styles of the cover's text
const style = (id, fontFamily, size, lead, color, extra) => ({ id, fontFamily, fontSize: pt(size),
  lineHeight: pt(lead), color, italicColor: color, boldColor: color, firstLineIndent: mm(0),
  textAlign: 'left', hyphenation: false, ...extra });
const mid = { textAlign: 'center' };
const narrow = { indent: mm(16), endIndent: mm(16) };
const coverStyles = [
  style('cover-title', 'Fraunces', 50, 54, col('ink'), { ...mid, fontWeight: 600 }),
  style('cover-author', 'Fraunces', 16, 19, col('bone'), mid),
  style('cover-spine', 'Fraunces', 10.5, 12, col('bone'), mid),
  style('cover-blurb', 'Source Serif 4', 11.5, 16, col('bone'), { textAlign: 'justify',
    hyphenation: true, firstLineIndent: mm(4), ...narrow }),
  style('cover-blurb-first', 'Source Serif 4', 11.5, 16, col('bone'), { textAlign: 'justify',
    hyphenation: true, ...narrow }),
  style('cover-quote', 'Fraunces', 16, 21, col('bone'), { ...mid, italic: true, ...narrow,
    marginTop: pt(14), marginBottom: pt(14) }),
  style('cover-note', 'Source Serif 4', 10, 13, col('bone'), { ...mid, italic: true,
    marginTop: pt(12) }),
];
// #endregion

// #region pages: the book block, 6 × 9 in
const [W, H, TOP, FOOT, INNER, OUTER, LEAD] = [152.4, 228.6, 22, 22, 22, 18, 15]; // mm, pt
const at = (to, edge, x, y, box) => ({ anchor: { to, edge }, offset: { x: mm(x), y: mm(y) },
  ...(box && { size: box }) });
const text = (id, content, look, place) => ({ kind: 'text', id, content, align: 'center',
  overflow: 'wrap', placement: place, ...look });
const face = (fontFamily, size, color, x) => ({ fontFamily, fontSize: pt(size), color, ...x });
const label = (size, color = col('muted')) => face('Source Sans 3', size, color,
  { fontWeight: 600, letterSpacing: pt(size / 6), textTransform: 'uppercase' });
const none = { header: { elements: [] }, footer: { elements: [] }, numbered: false, toc: false };
const design = (minHeight, elements) => ({ enabled: true, minHeight: mm(minHeight),
  slot: { elements } });
const page = (parity) => ({ breakBefore: { enabled: true, parity } });
const rule = (id, y, to = 'container') => ({ kind: 'rule', id, direction: 'horizontal',
  thickness: pt(0.6), color: col('accent'), placement: at(to, 'top', 0, y, { width: mm(14) }) });
const wide = { width: mm(W - INNER - OUTER) };
const headingStyles = [
  { ...none, ...page('odd'), id: 'title-page', advancedDesign: design(H - TOP - FOOT, [
    text('t', '{title}', face('Fraunces', 34, col('ink'), { fontWeight: 600 }),
      at('page', 'top', 0, 56, wide)),
    text('s', '{subtitle}', face('Source Serif 4', 13, col('muted'), { italic: true }),
      at('page', 'top', 0, 76)),
    rule('r', 88, 'page'),
    text('a', '{author}', label(9, col('accent')), at('page', 'top', 0, 94)),
    text('c', '{attr.credit}', face('Source Serif 4', 10, col('muted'), { italic: true }),
      at('page', 'top', 0, 102, wide)),
    text('i', '{attr.imprint}', label(7.5), at('page', 'bottom', 0, -28)),
  ]) },
  { ...none, ...page('even'), id: 'rights', advancedDesign: design(120, [rule('r', 114)]) },
  // Each chapter on a recto, sunk 60 mm: its numeral in red, its title in Fraunces.
  { ...page('odd'), id: 'chapter', toc: false, advancedDesign: design(60, [
    text('n', '{attr.number}', face('Fraunces', 30, col('accent'), { fontWeight: 600 }),
      at('container', 'top', 0, 14)),
    text('t', '{titleText}', face('Fraunces', 18, col('ink'), { italic: true }),
      at('container', 'top', 0, 32, wide)),
    rule('r', 46)]) },
];
const head = (id, content, parity) => text(id, content, { ...label(6.8), parity, pages: 'body' },
  at('page', 'top', 0, 12));
// #endregion

const config = {
  locale: t({ en: 'en-gb', es: 'es' }),
  colorPalette,
  page: { sizePreset: 'custom', width: mm(W), height: mm(H), dpi: 300,
    backgroundColor: col('paper'),
    margins: { top: mm(TOP), bottom: mm(FOOT), left: mm(INNER), right: mm(OUTER), mirror: true } },
  layout: { layoutType: 'single' },
  bodyText: { fontFamily: 'Source Serif 4', fontSize: pt(10.3), lineHeight: pt(LEAD),
    color: col('ink'), boldColor: col('ink'), italicColor: col('ink'), referenceColor: col('ink'),
    textAlign: 'justify', firstLineIndent: mm(4.5), indentAfterHeading: false, avoidWidows: true,
    hyphenation: { enabled: true }, optimalLineBreaking: true, avoidOrphans: true },
  headings: { fontFamily: 'Fraunces', color: col('ink'), textAlign: 'center' },
  headingStyles,
  paragraphStyles: [
    style('rights', 'Source Serif 4', 8.5, 12, col('muted'), { marginBottom: pt(6) }),
    ...coverStyles,
  ],
  header: { elements: [head('v', '{title}', 'even'), head('r', '{chapterTitle}', 'odd')] },
  footer: { elements: [text('f', '{pageNumber}', { ...face('Source Serif 4', 9.5, col('ink')),
    pages: 'body' }, at('page', 'bottom', 0, -12))] },
  production, cover,
};

// ─── 2 · Content ────────────────────────────────────────────────────────────
// The novel's first chapter. The cover's text is a file of its own: the back and the
// front's three boxes; the spine takes the title and the author from the front matter.
const markdown = String.raw`---
title: "Marianela"
subtitle: "A novel"
author: "B. Pérez Galdós"
keywords:
  - "nineteenth-century Spanish novel"
  - "blind young man"
  - "mining village in northern Spain"
  - "orphan girl"
  - "Cantabria fiction"
  - "Spanish realism in translation"
  - "tragic love story"
description: "<p>Teodoro Golfín, an eye surgeon back from the Americas, loses his way at nightfall among the iron mines of Socartes and is led out by Pablo, a blind young man who knows every path. Pablo’s guide is Nela, a small orphan girl the mining families keep out of charity, who tells him every day what the world looks like.</p><p><b>Benito Pérez Galdós</b> published <i>Marianela</i> in 1878. This is Clara Bell’s translation of 1883.</p>"
---

# Marianela {style="title-page" credit="Translated from the Spanish by Clara Bell" imprint="Ediciones del Huerto · Cabra"}

# Rights {style="rights"}

:::paragraphs{style="rights"}
*Marianela* was published in Madrid in 1878. Clara Bell’s translation was printed by William S. Gottsberger, New York, in 1883. The text follows Project Gutenberg eBook 48818 and is in the public domain.

One book, three print-on-demand editions, each 6 × 9 in: a KDP hardcover on cream paper, whose ISBN and barcode KDP supplies; an IngramSpark paperback on creme paper, ISBN 978-84-0000-226-8, a sample number assigned to no book; and a Lulu casewrap.

Cover painting generated with diffusion models. Set in Source Serif 4, Fraunces and Source Sans 3 (SIL OFL).
:::

# Gone Astray {style="chapter" number="I"}

The sun had set. After the brief interval of twilight the night fell calm and dark, and in its gloomy bosom the last sounds of a sleepy world died gently away. The traveller went forward on his way, hastening his step as night came on; the path he followed was narrow and worn by the constant tread of men and beasts, and led gently up a hill on whose verdant slopes grew picturesque clumps of wild cherry trees, beeches and oaks.—The reader perceives that we are in the north of Spain.

Our traveller was a man of middle age, strongly built, tall and broad-shouldered; his movements were brisk and resolute, his step firm, his manner somewhat rugged, his eye bold and bright; his pace was nimble, considering that he was decidedly stout, and he was—the reader may at once be told, though somewhat prematurely—as good a soul as you may meet with anywhere. He was dressed, as a man in easy circumstances should be dressed for a journey in spring weather, with one of those round shady hats, which, from their ugly shape, have been nicknamed mushrooms (*hongo*), a pair of field-glasses hanging to a strap, and a knotted stick which, when he did not use it to support his steps, served to push aside the brambles when they flung their thorny branches across so as to catch his dress.

He presently stopped, and gazing round the dim horizon, he seemed vexed and puzzled. He evidently was not sure of his way and was looking round for some passing native of the district who might give him such topographical information as might enable him to reach his destination.

“I cannot be mistaken,” he said to himself. “They told me to cross the river by the stepping-stones—and I did so—then to walk on, straight on. And there, to my right, I do in fact, see that detestable town which I should call *Villafangosa* by reason of the enormous amount of mud that chokes the streets.—Well then, I can but go ‘on, straight on’—I rather like the phrase, and if I bore arms, I would adopt it for my motto—in order to find myself at last at the famous mines of Socartes.”

But before he had gone much farther, he added: “I have lost my way, beyond a doubt I have lost my way.—This, Teodoro Golfin, is the result of your ‘on, straight on.’ Bah! these blockheads do not know the meaning of words; either they meant to laugh at you or else they did not know the way to the mines of Socartes. A huge mining establishment must be evident to the senses, with its buildings and chimneys, its noise of hammers and snorting of furnaces, neighing of horses and clattering of machinery—and I neither see, nor hear, nor smell anything. I might be in a desert! How absolutely solitary! If I believed in witches, I could fancy that Fate intended me this night to have the honor of making acquaintance with some. Deuce take it! why is there no one to be seen in these parts? And it will be half an hour yet before the moon rises. Ah! treacherous Luna, it is you who are to blame for my misadventure.—If only I could see what sort of place I am in.—However, what could I expect?” and he shrugged his shoulders with the air of a vigorous man who scorns danger. “What, Golfin, after having wandered all round the world are you going to give in now? The peasants were right after all: ‘on, straight on.’ The universal law of locomotion cannot fail me here.”

And he bravely set out to test the law, and went on about a kilometre farther, following the paths which seemed to start from under his feet, crossing each other and breaking off at a short distance, in a thousand angles which puzzled and tired him. Stout as his resolution was, at last he grew weary of his vain efforts. The paths, which had at first all led upwards, began to slope downwards as they crossed each other, and at last he came to so steep a slope that he could only hope to get to the bottom by rolling down it.

“A pretty state of things!” he exclaimed, trying to console himself for this provoking situation by his sense of the ridiculous. “Where have you got to now my friend? This is a perfect abyss. Is anything to be seen at the bottom. No, nothing, absolutely nothing—the hill-side has disappeared, the earth has been dug away. There is nothing to be seen but stones and barren soil tinged red with iron. I have reached the mines, no doubt of that—and yet there is not a living soul to be seen, no smoky chimneys; no noise, not a train in the distance, not even a dog barking. What am I to do? Out there the path seems to slope up again.—Shall I follow that? Shall I leave the beaten track? Shall I go back again? Oh! this is absurd! Either I am not myself or I will reach Socartes to-night, and be welcomed by my worthy brother! ‘On, straight on.’”

He took a step, and his foot sank in the soft and crumbling soil. “What next, ye ruling stars? Am I to be swallowed up alive? If only that lazy moon would favor us with a little light we might see each other’s faces—and, upon my soul, I can hardly expect to find Paradise at the bottom of this hole. It seems to be the crater of some extinct volcano.... Nothing could be easier than a slide down this beautiful precipice. What have we here?... A stone; capital—a good seat while I smoke a cigar and wait for the moon to rise.”

The philosophical Golfin seated himself as calmly as if it were a bench by a promenade, and was preparing for his smoke, when he heard a voice—yes, beyond a doubt, a human voice, at some little distance—a plaintive air, or to speak more accurately, a melancholy chant of a single phrase, of which the last cadence was prolonged into a “dying fall,” and which at last sank into the silence of the night, so softly that the ear could not detect when it ceased.

“Come,” said the listener, well pleased, “there are some human beings about. That was a girl’s voice; yes, certainly a girl’s, and a lovely voice too. I like the popular airs of this country-side. Now it has stopped.... Hark! it will soon begin again.... Yes, I hear it once more. What a beautiful voice, and what a pathetic air! You might believe that it rose from the bowels of the earth, and that Señor Golfin, the most matter-of-fact and least superstitious man in this world, was going to make acquaintance with sylphs, nymphs, gnomes, dryads, and all the rabble rout that obey the mysterious spirit of the place.—But, if I am not mistaken, the voice is going farther away—the fair singer is departing.... Hi, girl, child, stop—wait a minute!...”

The voice which had for a few minutes so charmed the lost wanderer with its enchanting strains was dying away in the dark void, and at the shouts of Golfin it was suddenly silent. Beyond a doubt the mysterious gnome, who was solacing its underground loneliness by singing its plaintive loves, had taken fright at this rough interruption by a human being, and fled to the deepest caverns of the earth, where precious gems lay hidden, jealous of their own splendor.

“This is a pleasant state of things—” muttered Golfin, thinking that after all he could do no better than light his cigar.—“There seems no reason why it should not go on for a hundred years. I can smoke and wait. It was a clever idea of mine that I could walk up alone to the mines of Socartes. My luggage will have got there before me—a signal proof of the advantages of ‘on, straight on.’”

A light breeze at this instant sprang up, and Golfin fancied he heard the sound of footsteps at the bottom of the unknown—or imaginary—abyss before him; he listened sharply, and in a minute felt quite certain that some one was walking below. He stood up and shouted:

“Girl, man, or whoever you are, can I get to the mines of Socartes by this road?”

He had not done speaking when he heard a dog barking wildly, and then a manly voice saying: “Choto, Choto! come here!”

“Hi there!” cried the traveller. “My good friend—man, boy, demon, or whatever you are, call back your dog, for I am a man of peace.”

“Choto, Choto!...”

Golfin could make out the form of a large, black dog coming towards him, but after sniffing round him it retired at its master’s call; and at that moment the traveller could distinguish a figure, a man, standing as immovable as a stone image, at about ten paces below him, on a slanting pathway which seemed to cut across the steep incline. This path, and the human form standing there, became quite clear now to Golfin, who, looking up to the sky, exclaimed:

“Thank God! here is the mad moon at last; now we can see where we are. I had not the faintest notion that a path existed so close to me, why, it is quite a road. Tell me, my friend, do you know whether the mines of Socartes are hereabout?”

“Yes, Señor, these are the mines of Socartes; but we are at some distance from the works.”

The voice which spoke thus was youthful and pleasant, with the attractive inflection that indicates a polite readiness to be of service. The doctor was well pleased at detecting this, and still better pleased at observing the soft light, which was spreading through the darkness and bringing resurrection to earth and sky, as though calling them forth from nothingness.

“*Fiat lux!*” he said, going forward down the slope. “I feel as if I had just emerged into existence from primeval chaos.... Indeed, my good friend, I am truly grateful to you for the information you have given me, and for the farther information you no doubt will give me. I left Villamojada as the sun was setting.—They told me to go on, straight on....”

“Are you going to the works?” asked the strange youth, without stirring from the spot or looking up towards the doctor, who was now quite near him.

“Yes, Señor; but I have certainly lost my way.”

“Well, this is not the entrance to the mines. The entrance is by the steps at Rabagones, from which the road runs and the tram-way that they are making. If you had gone that way you would have reached the works in ten minutes. From here it is a long way, and a very bad road. We are at the outer circle of the mining galleries, and shall have to go through passages and tunnels, down ladders, through cuttings, up slopes, and then down the inclined plane; in short, cross the mines from this side to the other, where the workshops are and the furnaces, the machines and the smelting-house.”

“Well, I seem to have been uncommonly stupid,” said Golfin, laughing.

“I will guide you with much pleasure, for I know every inch of the place.”

Golfin, whose feet sank in the loose earth, slipping here and tottering there, had at last reached the solid ground of the path, and his first idea was to look closely at the good-natured lad who addressed him. For a minute or two he was speechless with surprise.

“You!” he said, in a low voice.

“I am blind, it is true, Señor,” said the boy. “But I can run without seeing from one end to the other of the mines of Socartes. This stick I carry prevents my stumbling, and Choto is always with me, when I have not got Nela with me, who is my guide. So, follow me, Señor, and allow me to guide you.”
`;
const coverText = String.raw`:::frame{slot="front"}
:::

:::frame{slot="title"}
:::paragraphs{style="cover-title"}
Marianela
:::
:::

:::frame{slot="author"}
:::paragraphs{style="cover-author"}
B. Pérez Galdós
:::
:::

:::frame{slot="back"}
:::paragraphs{style="cover-blurb-first"}
At nightfall the eye surgeon Teodoro Golfín loses his way among the iron mines of Socartes, in the north of Spain, and is led out of the pits by Pablo, a young man blind from birth who knows every path by heart.
:::

:::paragraphs{style="cover-blurb"}
Pablo’s guide is Nela, a small orphan girl the mining families keep out of charity. She tells him every day what the world looks like, and he believes her when she says it is beautiful. Golfín means to give him his sight.
:::

:::paragraphs{style="cover-quote"}
I am blind, it is true, Señor.
:::

:::paragraphs{style="cover-note"}
In Clara Bell’s translation of 1883
:::
:::
`;
const resources = [{ id: 'socartes', typeId: 'figure', kind: 'bitmap', createdAt: 0, updatedAt: 0,
  bitmap: { fileId: 'socartes.jpg', format: 'jpeg', width: 1024, height: 1536 },
  altText: t({ en: 'Open-cast iron mines at dusk: stepped pits of red earth, spoil heaps, a '
    + 'wooden ore chute and green hills under a pink evening sky. On a path along the edge of '
    + 'a ravine, a small barefoot girl in a ragged skirt and a shawl leads a tall young man '
    + 'in a dark coat by the hand; he walks with a stick, his face lifted to the light.',
  es: 'Minas de hierro a cielo abierto al anochecer: escalones de tierra roja, escombreras, '
    + 'un cargadero de madera y colinas verdes bajo un cielo rosado. Por un sendero al borde '
    + 'de un barranco, una niña descalza, de falda rota y mantón, lleva de la mano a un joven '
    + 'alto de levita oscura; él camina con un palo y la cara levantada hacia la luz.' }) }];
await loadImage('socartes.jpg', asset('marianela-1024.jpg'));

// ─── 3 · Fonts ──────────────────────────────────────────────────────────────
const FONTS = { 'Source Serif 4': ['400', '400i'], Fraunces: ['400', '400i', '600'],
  'Source Sans 3': ['400', '600'] };

// ─── 4 · Build & show ───────────────────────────────────────────────────────
const book = await buildDocumentWithFonts({ markdown, resources }, config, kitFonts(FONTS));

// #region count: the whole novel's page count, from the pages laid out here
// The pen sets the first chapter only. The spines need the whole book, so the count is
// worked out from the words a page of this design holds, over the novel's length, with
// four pages of front matter.
const WORDS = t({ en: 55730, es: 50000 }); // Gutenberg 48818; Wikisource, about
const body = markdown.split(/^# .*\{style="chapter"/m)[1] ?? markdown;
const perPage = body.split(/\s+/).length / (book.pages.length - 2);
const pages = 4 + 2 * Math.ceil(WORDS / perPage / 2);
// #endregion

// #region sheets: one cover Markdown, one design, a sheet for each printer
const builds = production.versions.map(({ id }) => {
  const built = buildCover({ config, version: id, pages, markdown: coverText,
    metadata: book.metadata, resources });
  if (!('config' in built)) throw new Error(built.issues.map((i) => i.kind).join(', '));
  return { id, built };
});
const sheets = [];
for (const { built } of builds) {
  // The barcode's digits name OCR-B, which no font server has: the label face sets them.
  for (const [id, bytes] of Object.entries(built.files)) {
    await loadSvg(id, new TextDecoder().decode(bytes)
      .replace(/font-family="[^"]*"/g, 'font-family="Source Sans 3"'));
  }
  sheets.push(await buildDocumentWithFonts(built.content, built.config, kitFonts(FONTS)));
}
// #endregion

showPages(book, { title: t({ en: 'Marianela · one cover, three printers',
  es: 'Marianela · una cubierta, tres imprentas' }) });

// #region compare: the three sheets at one scale, with their guides and measures
// Every sheet is drawn at 1.4 px a mm, so a wider spine or a case's wrap shows as width.
// `coverGuideShapes` gives each sheet's trim, folds, safe areas and barcode box in mm.
const PX = 1.4;
const inch = (v) => `${(v / 25.4).toFixed(3)} in`;
const row = document.createElement('section');
row.id = 'printers';
row.style.cssText = 'display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; '
  + 'align-items: flex-start; padding: 24px 16px; color: #ece4d6; '
  + 'font: 13px/1.45 system-ui, sans-serif';
builds.forEach(({ id, built }, n) => {
  const leaf = sheets[n].pages[0];
  const [fig, canvas, cap] = ['figure', 'canvas', 'figcaption']
    .map((tag) => document.createElement(tag));
  const version = production.versions.find((v) => v.id === id);
  canvas.setAttribute('role', 'img');
  canvas.setAttribute('aria-label', `${version.name}: ${t({ en: 'the cover sheet with its guides',
    es: 'el pliego de cubierta con sus guías' })}`);
  renderPageToCanvas(leaf, sheets[n], canvas, { scale: (PX * built.sheet.width) / leaf.width });
  const ctx = canvas.getContext('2d');
  ctx.setTransform(1, 0, 0, 1, 0, 0);
  paintGuides(ctx, coverGuideShapes(built), canvas.width / built.sheet.width);
  canvas.style.cssText = `display: block; width: ${PX * built.sheet.width}px; max-width: 100%`;
  const spine = built.sheets.spine.caseSpine ?? built.sheets.spine.used;
  const checks = built.issues.filter((i) => !i.kind.startsWith('listing')).map((i) => i.kind);
  cap.textContent = `${version.name} · ${pages} ${t({ en: 'pages', es: 'páginas' })} · `
    + `${t({ en: 'spine', es: 'lomo' })} ${inch(spine)} `
    + `(${spine.toFixed(1)} mm) · ${inch(built.sheet.width)} × ${inch(built.sheet.height)} · `
    + `${checks.length ? checks.join(', ') : t({ en: 'no checks raised', es: 'sin avisos' })}`;
  fig.style.cssText = 'margin: 0; max-width: 100%';
  cap.style.cssText = `max-width: ${PX * built.sheet.width}px; margin-top: 6px`;
  fig.append(canvas, cap);
  row.append(fig);
});
document.getElementById('pages').before(row);
// #endregion

// One file: the pages, then the three sheets, each at its own size.
offerPdf(() => renderToPdf([book, ...sheets], { fontProvider: fontsourceProvider,
  resourceBytes: imageBytes }), `${RECIPE}.pdf`);

// ─── Kit ── helpers shared by every Cookbook recipe · postext.dev/cookbook ─────

// ─── Kit · core v1 ── the same in every recipe · postext.dev/cookbook
function mm(value) { return { value, unit: 'mm' }; }
function pt(value) { return { value, unit: 'pt' }; }
function em(value) { return { value, unit: 'em' }; }
/** The sample language's string: t({ en: 'Figure', es: 'Figura' }). */
function t(strings) { return strings[LANG] ?? Object.values(strings)[0]; }
/** A file in this recipe's assets folder, served from the Postext repo by jsDelivr. */
function asset(file) { return `https://cdn.jsdelivr.net/gh/drnachio/postext@main/cookbook/${RECIPE}/assets/${file}`; }

// ─── Kit · fonts v3 ── the same in every recipe · postext.dev/cookbook
// Postext loads the faces a config asks for before layout and asks the kit
// for Fontsource's files, the ones the PDF embeds too.

/** buildDocumentWithFonts' options: the resolver, and FONTS' faces loaded
 *  with the config's. FONTS = { 'Family Name': ['400', '400i', '700'] }. */
function kitFonts(FONTS = {}) {
  const faces = Object.entries(FONTS).flatMap(([family, specs]) => specs.map((spec) =>
    ({ family, weight: parseInt(spec, 10), style: spec.endsWith('i') ? 'italic' : 'normal' })));
  return { resolve: fontsourceResolver, faces };
}

/** A face's files with their ranges: latin, then latin-ext and greek when
 *  `text` needs them (kitSubsetsFor). Null for a face Fontsource lacks. */
async function fontsourceResolver(family, weight, style, { text = '' } = {}) {
  const id = fontsourceId(family);
  const meta = await fontsourceMeta(family);
  if (meta && !(await fontsourceWeights(family, style)).includes(weight)) return null;
  kitStatus('Loading fonts…');
  const at = await fontsourceAt(id);
  return ['latin', ...kitSubsetsFor(text, meta)].map((subset) => ({
    source: `${at}files/${id}-${subset}-${weight}-${style}.woff2`,
    unicodeRange: kitRanges()[subset],
  }));
}

/** Each file's unicode-range (a function: the kit runs after the pen's code). */
function kitRanges() {
  return {
    latin: 'U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,'
      + 'U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD',
    'latin-ext': 'U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,'
      + 'U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF',
    greek: 'U+0370-03FF',
  };
}

/** For the cjk, arabic and comics blocks: loads `faces` (as FONTS) for the
 *  sample `text`; `optional` skips a face Fontsource lacks. Files are added in
 *  the order asked, the last winning a shared character. Resolves to the count. */
async function loadFonts(faces, text = '', { optional = false } = {}) {
  kitStatus('Loading fonts…');
  const ranges = kitRanges();
  const jobs = [];
  for (const [family, specs] of Object.entries(faces)) {
    const id = fontsourceId(family);
    const todo = [...new Set(specs)].map((spec) => [parseInt(spec, 10), spec.endsWith('i') ? 'italic' : 'normal'])
      .filter(([weight, style]) => !hasFace(family, weight, style)); // before any await
    const at = fontsourceAt(id);
    const meta = optional || /[^\0-ÿ]/u.test(text) ? await fontsourceMeta(family) : null;
    const subsets = ['latin', ...kitSubsetsFor(text, meta)];
    for (const [weight, style] of todo) {
      if (optional && !(meta && (await fontsourceWeights(family, style)).includes(weight))) continue;
      for (const subset of subsets) {
        const url = `${await at}files/${id}-${subset}-${weight}-${style}.woff2`;
        const face = new FontFace(family, `url(${url}) format('woff2')`,
          { weight: String(weight), style, unicodeRange: ranges[subset] });
        jobs.push(face.load().catch(() => {
          if (subset === 'latin' && !optional) throw new Error(`Fontsource has no ${family} ${weight} ${style}`);
        }));
      }
    }
  }
  const ready = await Promise.all(jobs).catch((error) => { kitFail(error); throw error; });
  return ready.filter((face) => face && document.fonts.add(face)).length;
}

/** A loaded FontFace covers this face (fonts.check() says yes to any family). */
function hasFace(family, weight, style) {
  for (const face of document.fonts) {
    if (face.status !== 'loaded' || face.style !== style) continue;
    if (face.family.replace(/^["']|["']$/g, '') !== family) continue;
    const [low, high = low] = face.weight.split(' ').map(Number);
    if (weight >= low && weight <= high) return true;
  }
  return false;
}

/** The files beyond latin `text` needs that `meta`'s family ships. */
function kitSubsetsFor(text, meta) {
  return [[/[Ā-˿ᴀ-ᶿḀ-ỿ†ℓⱠ-Ɀ꜠-ꟿ]/u, 'latin-ext'], [/[Ͱ-Ͽ]/u, 'greek']]
    .filter(([re, x]) => re.test(text) && meta?.subsets?.includes(x)).map(([, x]) => x);
}

/** Fontsource's id for a family: 'Source Serif 4' → 'source-serif-4'. */
function fontsourceId(family) { return family.toLowerCase().replace(/\s+/g, '-'); }

/** A package's folder at the one version @5 names now (#766). */
function fontsourceAt(id, u = `https://cdn.jsdelivr.net/npm/@fontsource/${id}@`) {
  return (fontsourceAt.c ??= {})[id] ??= fetch(u + '5/package.json').then((r) => r.json())
    .then((p) => p.version || 5, () => 5).then((v) => `${u}${v}/`);
}

/** The family's Fontsource metadata (weights, styles, subsets), or null. */
function fontsourceMeta(family, id = fontsourceId(family)) {
  return (fontsourceMeta.c ??= {})[id] ??= fetch(`https://api.fontsource.org/v1/fonts/${id}`)
    .then((res) => (res.ok ? res.json() : null), () => null);
}

/** The weights the package ships in `style`: the API pairs none (no Libre
 *  Caslon 700 italic file), so italics are read from latin-italic.css. */
function fontsourceWeights(family, style, id = fontsourceId(family)) {
  return (fontsourceWeights.c ??= {})[id + style] ??= fontsourceMeta(family).then(async (m) => {
    if (!m?.styles.includes(style)) return m ? [] : [400, 700];
    const css = style === 'italic' ? await fetch(`${await fontsourceAt(id)}latin-italic.css`).then((r) => (r.ok ? r.text() : ''), () => '') : '';
    const w = [...css.matchAll(/weight: (\d+)/g)].map((x) => +x[1]);
    return w.length ? w : m.weights;
  });
}

// ─── Kit · viewer v2 ── the same in every recipe · postext.dev/cookbook
/** The pages as spreads on a dark desk, page 1 alone, then verso | recto,
 *  each painted when it scrolls near. Other options go to renderPageToCanvas. */
function showPages(docs, { title, width = 460, ...render } = {}) {
  const root = viewer(title);
  const pages = [docs].flat().flatMap((doc) =>
    doc.pages.map((page) => ({ doc, page, n: (doc.pageIndexOffset ?? 0) + page.index })));
  const spreads = [];
  let verso = null;
  for (const p of pages) {
    if (p.n % 2 === 1) { if (verso) spreads.push([verso, null]); verso = p; }
    else { spreads.push([verso, p]); verso = null; }
  }
  if (verso) spreads.push([verso, null]);
  const density = Math.min(window.devicePixelRatio || 1, 2);
  showPages.painter?.disconnect();
  const painter = new IntersectionObserver((entries) => {
    for (const { isIntersecting, target } of entries) {
      if (!isIntersecting) continue;
      painter.unobserve(target);
      const { doc, page } = target.postext;
      renderPageToCanvas(page, doc, target, { ...render, scale: (width * density) / page.width });
    }
  }, { rootMargin: '800px' });
  showPages.painter = painter;
  root.replaceChildren(...spreads.map((pair) => {
    const spread = document.createElement('div');
    spread.className = 'pt-spread';
    for (const p of pair) {
      const figure = document.createElement('figure');
      if (p) {
        const label = p.page.pageLabel || String(p.n + 1);
        const canvas = document.createElement('canvas');
        canvas.postext = p;
        canvas.style.aspectRatio = `${p.page.width} / ${p.page.height}`;
        canvas.setAttribute('role', 'img');
        canvas.setAttribute('aria-label', `Page ${label}`);
        const folio = document.createElement('figcaption');
        folio.textContent = label;
        figure.append(canvas, folio);
        painter.observe(canvas);
      } else figure.className = 'pt-blank';
      spread.append(figure);
    }
    return spread;
  }));
  kitStatus(`${pages.length} ${pages.length === 1 ? 'page' : 'pages'}`);
  document.documentElement.dataset.postext = 'ready';
  return pages.length;
}

/** The desk, the bar and the error reporting, created once. */
function viewer(title) {
  if (!document.getElementById('pt-kit')) {
    document.head.insertAdjacentHTML('beforeend', `<style id="pt-kit">
      :root { color-scheme: dark; }
      body { margin: 0; background: #0e1014; color: #b9bcc4; font: 13px/1.45 system-ui, sans-serif; }
      #pt-bar { position: sticky; top: 0; z-index: 1; display: flex; flex-wrap: wrap; align-items: center;
        gap: 6px 16px; padding: 10px 16px; background: rgb(14 16 20 / .92); backdrop-filter: blur(6px);
        border-bottom: 1px solid #23262d; }
      #pt-bar strong { color: #f4f1ea; font-weight: 600; }
      #pt-actions { display: flex; gap: 12px; margin-left: auto; }
      #pt-actions a, #pt-actions button { color: #d8a21a; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
      #pages { display: grid; justify-items: center; gap: 48px; padding: 32px 16px 72px; }
      .pt-spread { display: flex; }
      .pt-spread figure { margin: 0; width: min(460px, 44vw); }
      .pt-spread canvas { display: block; width: 100%; background: #fff;
        box-shadow: 0 1px 2px rgb(0 0 0 / .5), 0 22px 44px -16px rgb(0 0 0 / .8); }
      .pt-spread figure:first-child canvas { box-shadow: inset -14px 0 14px -14px rgb(0 0 0 / .18), 0 1px 2px rgb(0 0 0 / .5), 0 22px 44px -16px rgb(0 0 0 / .8); }
      .pt-spread figcaption { margin-top: 10px; text-align: center; font: 600 10px/1 system-ui, sans-serif;
        letter-spacing: .18em; text-transform: uppercase; color: #6c7079; }
      .pt-blank { visibility: hidden; }
      @media (max-width: 760px) {
        .pt-spread { flex-direction: column; gap: 32px; }
        .pt-spread figure { width: min(460px, 92vw); }
        .pt-blank { display: none; }
      }
    </style>`);
    document.body.insertAdjacentHTML('afterbegin',
      '<header id="pt-bar"><strong id="pt-title"></strong><span id="pt-status" role="status"></span><span id="pt-actions"></span></header>');
    document.getElementById('pt-title').textContent = document.title || 'Postext';
    addEventListener('error', (event) => kitFail(event.error ?? event.message));
    addEventListener('unhandledrejection', (event) => kitFail(event.reason));
  }
  if (title) document.getElementById('pt-title').textContent = title;
  return document.getElementById('pages')
    ?? document.body.appendChild(Object.assign(document.createElement('main'), { id: 'pages' }));
}

function kitStatus(text) {
  viewer();
  document.getElementById('pt-status').textContent = text;
}

function kitFail(error) {
  document.documentElement.dataset.postext = 'error';
  kitStatus(`Error: ${error?.message ?? error}`);
}

// ─── Kit · pdf v3 ── the same in every recipe that exports a PDF
/** The Fontsource files the screen used, as TrueType, with their range and
 *  place: the nearest weight the family ships in that style, upright with no italic;
 *  latin, then what its letters need (kitSubsetsFor). */
async function fontsourceProvider(family, weight, style, request) {
  const id = fontsourceId(family);
  const meta = await fontsourceMeta(family);
  const s = style === 'italic' && meta && !meta.styles.includes('italic') ? 'normal' : style;
  const shipped = meta ? await fontsourceWeights(family, s) : [];
  const weights = shipped.length ? shipped : [400, 700];
  const w = weights.reduce((a, b) => (Math.abs(b - weight) < Math.abs(a - weight) ? b : a));
  const text = String.fromCodePoint(...(request?.codePoints ?? []));
  const files = await Promise.all(['latin', ...kitSubsetsFor(text, meta)].map(async (subset, order) => {
    const res = await fetch(`${await fontsourceAt(id)}files/${id}-${subset}-${w}-${s}.woff2`);
    if (!res.ok) throw new Error(`Fontsource has no ${family} ${w} ${s} ${subset}`);
    return Object.assign(await decompressWoff2(new Uint8Array(await res.arrayBuffer())),
      { unicodeRange: kitRanges()[subset], order });
  }));
  return files.length === 1 ? files[0] : files;
}

/** A "Build the PDF" button; then "Open the PDF" (a new tab: CodePen's frame
 *  shows no PDFs) and a download link. */
function offerPdf(makePdf, filename) {
  viewer();
  const button = Object.assign(document.createElement('button'), { type: 'button', textContent: 'Build the PDF' });
  button.dataset.postextPdf = filename;
  button.addEventListener('click', async () => {
    button.disabled = true;
    button.textContent = 'Building the PDF…';
    try {
      const bytes = await makePdf();
      const url = URL.createObjectURL(new Blob([bytes], { type: 'application/pdf' }));
      const size = `${Math.max(1, Math.round(bytes.length / 1024))} KB`;
      button.replaceWith(
        Object.assign(document.createElement('a'), { href: url, target: '_blank', rel: 'noopener', textContent: 'Open the PDF ↗' }),
        Object.assign(document.createElement('a'), { href: url, download: filename, textContent: `Download ${filename} · ${size}` }));
    } catch (error) {
      button.disabled = false;
      button.textContent = 'Build the PDF';
      kitFail(error);
    }
  });
  document.getElementById('pt-actions').append(button);
}

// ─── Kit · images v3 ── recipes with pictures · postext.dev/cookbook
/** Registers a photo or PNG for the canvas and keeps its bytes for the PDF.
 *  fetch → ImageBitmap never taints the canvas (a plain cross-origin <img> would). */
async function loadImage(fileId, url) {
  const res = await fetch(url);
  if (!res.ok) throw new Error(`Image not found (${res.status}): ${url}`);
  const bytes = new Uint8Array(await res.arrayBuffer());
  registerResourceImage(fileId, await createImageBitmap(new Blob([bytes])));
  (loadImage.bytes ??= new Map()).set(fileId, bytes);
}

/** Registers SVG markup as a vector image, its fonts inside (inlineSvgFonts, ≥ 1.25).
 *  `options` go to registerResourceImage: { singleInk: true } tints it on the canvas. */
async function loadSvg(fileId, svg, options) {
  if (typeof inlineSvgFonts === 'function') svg = await inlineSvgFonts(svg, svgFaces);
  const img = new Image();
  img.src = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(svg)}`;
  await img.decode();
  registerResourceImage(fileId, img, options);
  (loadImage.bytes ??= new Map()).set(fileId, new TextEncoder().encode(svg));
}

/** A face's Fontsource files: nearest weight; latin + what the SVG sets. */
async function svgFaces(family, weight, style, { codePoints = [] } = {}) {
  const [id, m] = [fontsourceId(family), await fontsourceMeta(family)];
  const w = m?.weights.reduce((a, b) => (Math.abs(b - weight) < Math.abs(a - weight) ? b : a)) ?? weight;
  const s = m?.styles.includes(style) === false ? 'normal' : style;
  return Promise.all(['latin', ...kitSubsetsFor(String.fromCodePoint(...codePoints), m)].map(async (x) => new Uint8Array(
    await (await fetch(`${await fontsourceAt(id)}files/${id}-${x}-${w}-${s}.woff2`)).arrayBuffer())));
}

/** renderToPdf({ resourceBytes: imageBytes }) */
function imageBytes(fileId) { return loadImage.bytes?.get(fileId); }

/** renderToHtml({ resourceImageUrl: imageUrl }) */
function imageUrl(fileId) {
  const bytes = imageBytes(fileId);
  if (!bytes) return undefined;
  imageUrl.urls ??= new Map();
  if (!imageUrl.urls.has(fileId)) {
    const type = /\.svg$/i.test(fileId) ? 'image/svg+xml' : /\.png$/i.test(fileId) ? 'image/png' : 'image/jpeg';
    imageUrl.urls.set(fileId, URL.createObjectURL(new Blob([bytes], { type })));
  }
  return imageUrl.urls.get(fileId);
}

// ─── /Kit ───────────────────────────────────────────────────────────────────────
```

## Παραλλαγές

### Γράψτε τη ράχη της IngramSpark από το πρότυπό της

Όταν το πρότυπο που στέλνει η IngramSpark για αυτόν τον αριθμό σελίδων δίνει άλλο πλάτος, το `spineOverride` της έκδοσης το ορίζει, και ο έλεγχος γίνεται `spineOverridden` με τις δύο τιμές.

```diff
     { id: 'ingram', name: 'IngramSpark paperback', binding: 'ingramspark-paperback-creme',
-      isbn: '978-84-0000-226-8' },
+      isbn: '978-84-0000-226-8', spineOverride: 9.9 },
```

### Κάντε την έκδοση της Lulu χαρτόδετη

Το `lulu-paperback` μετρά τη ράχη ως σελίδες ÷ 444 + 0,06 ίντσες, χωρίς χαρτόνια και χωρίς γύρισμα.

```diff
-    { id: 'lulu', name: 'Lulu casewrap', binding: 'lulu-casewrap' },
+    { id: 'lulu', name: 'Lulu paperback', binding: 'lulu-paperback' },
```

## Συνήθη λάθη

- Ένα στοιχείο της σχεδίασης τοποθετημένο στο οπισθόφυλλο με συντεταγμένες μπορεί να πέσει στο πλαίσιο του γραμμωτού κώδικα του KDP σε ένα φύλλο και όχι σε άλλο· τότε το φύλλο του KDP αναφέρει `coverBarcodeZoneBusy`. Αγκυρώστε τα πλαίσια στα πεδία.
- Μόνο μία έκδοση εδώ έχει ISBN. Το SVG του γραμμωτού κώδικα έχει το ίδιο id αρχείου σε κάθε έκδοση (`cover-isbn.svg`), οπότε μια πένα που φορτώνει τα αρχεία πολλών εκδόσεων, όπως αυτή, κρατά μόνο το τελευταίο αν δύο από αυτές έχουν γραμμωτό κώδικα.

## Ευχαριστίες

- Συνταγή: Ignacio Ferro ([@drnachio](https://github.com/drnachio))
- Κείμενο: Marianela, by B. Perez Galdós, from the Spanish by Clara Bell (William S. Gottsberger, New York, 1883), Project Gutenberg eBook #48818: Clara Bell ([πηγή](https://www.gutenberg.org/ebooks/48818)), κοινό κτήμα
- Κείμενο: Marianela (Madrid, 1878), chapter I, as transcribed on Wikisource from the copy in the Biblioteca Digital Hispánica, with the spelling of 1878: Benito Pérez Galdós ([πηγή](https://es.wikisource.org/wiki/Marianela)), κοινό κτήμα
- Εικόνες: The cover painting: a barefoot girl leading a tall blind young man by the hand along a path above open-cast iron mines at dusk, in oils: Generated With Diffusion Models, πρωτότυπο
- Γραμματοσειρές: Source Serif 4 (OFL-1.1), Fraunces (OFL-1.1), Source Sans 3 (OFL-1.1)
- Κώδικας: MIT · Δείγμα περιεχομένου: CC-BY-4.0

## Σχετικές συνταγές

- [Αρ. 198 · Ένας τόμος σειράς, με τη σειρά στις φόρζες](https://postext.dev/el/cookbook/collection-volume-endpapers.md): Ο τόμος XI δεμένης σειράς δώδεκα τόμων: δύο ISBN δίπλα στον γραμμωτό κώδικα, σχέδιο εξωφύλλου κοινό σε όλους και φόρζες που δείχνουν όλη τη σειρά. · Επίπεδο 3 (Προχωρημένο) · Πεζογραφία, θέατρο και λογοτεχνικός λόγος
- [Αρ. 196 · Εξώφυλλο χαρτόδετου με αυτιά, με τη ράχη από τις σελίδες](https://postext.dev/el/cookbook/paperback-cover-with-flaps.md): Χαρτόδετο 120 × 190 mm με αυτιά 60 mm: πρώτα σελιδοποιούνται οι σελίδες, και το buildCover φτιάχνει από αυτές το εξώφυλλο, με ράχη όσο το πάχος του χαρτιού. · Επίπεδο 3 (Προχωρημένο) · Πεζογραφία, θέατρο και λογοτεχνικός λόγος
- [Αρ. 197 · Η θήκη, η κουβερτούρα και οι φόρζες ενός σκληρόδετου βιβλίου](https://postext.dev/el/cookbook/hardcover-jacket-and-endpapers.md): Οι σελίδες ενός χαρτόδετου δεμένες ξανά ως πανόδετο σκληρόδετο: δεύτερη εκδοχή με δικό της ISBN, και η buildCover φτιάχνει θήκη, κουβερτούρα και τις δύο φόρζες. · Επίπεδο 3 (Προχωρημένο) · Πεζογραφία, θέατρο και λογοτεχνικός λόγος
