# Omero in greco politonico, a fronte della traduzione

> L’inizio dell’Odissea sulle pagine pari e la versione in greco moderno di Eftaliotis sulle dispari, sillabati con gli schemi grc e numerati ogni cinque versi.

- Versione HTML: https://postext.dev/it/cookbook/homer-polytonic-facing-translation
- Ricetta Nº 202 · Caratteri e testo · Livello 2 (Intermedio) · Output: Canvas
- Generi: Poesia
- Richiede postext ≥ 1.99.1 · provata con 1.99.1 il 2026-11-29
- Pagine: [1](https://postext.dev/cookbook/homer-polytonic-facing-translation/en/p01.webp?v=ccab6327), [2](https://postext.dev/cookbook/homer-polytonic-facing-translation/en/p02.webp?v=ccab6327), [3](https://postext.dev/cookbook/homer-polytonic-facing-translation/en/p03.webp?v=ccab6327), [4](https://postext.dev/cookbook/homer-polytonic-facing-translation/en/p04.webp?v=ccab6327), [5](https://postext.dev/cookbook/homer-polytonic-facing-translation/en/p05.webp?v=ccab6327), [6](https://postext.dev/cookbook/homer-polytonic-facing-translation/en/p06.webp?v=ccab6327)
- Apri nella Sandbox: https://postext.dev/it/sandbox#recipe=homer-polytonic-facing-translation&lang=en (.postext: https://postext.dev/cookbook/homer-polytonic-facing-translation/en/homer-polytonic-facing-translation.postext)
- Ultimo aggiornamento: 2026-11-29
- Altre lingue: [en](https://postext.dev/en/cookbook/homer-polytonic-facing-translation.md), [es](https://postext.dev/es/cookbook/homer-polytonic-facing-translation.md), [ca](https://postext.dev/ca/cookbook/homer-polytonic-facing-translation.md), [de](https://postext.dev/de/cookbook/homer-polytonic-facing-translation.md), [el](https://postext.dev/el/cookbook/homer-polytonic-facing-translation.md), [fr](https://postext.dev/fr/cookbook/homer-polytonic-facing-translation.md), [pt](https://postext.dev/pt/cookbook/homer-polytonic-facing-translation.md), [zh](https://postext.dev/zh/cookbook/homer-polytonic-facing-translation.md), [ja](https://postext.dev/ja/cookbook/homer-polytonic-facing-translation.md), [ar](https://postext.dev/ar/cookbook/homer-polytonic-facing-translation.md)

## In breve

I primi versi dell’Odissea di Omero in greco antico, con tutti gli accenti e gli spiriti, sulle pagine di sinistra, e una traduzione in versi in greco moderno a destra, ogni verso all’altezza di quello che traduce.

## Che cosa comporrai

Un piccolo classico di 14 × 21,5 cm in GFS Didot, il carattere politonico della Greek Font Society. Si apre con una pagina della *Vita di Omero* bizantina che la Suda tramanda sotto il nome di Esichio di Mileto, con l’epitaffio di Omero a Io. Seguono due doppie pagine: i versi da 1 a 27 del primo libro dell’*Odissea* sulle pari e la versione in quindecasillabi di Argyris Eftaliotis sulle dispari, verso per verso, numerati ogni cinque nel margine esterno. I tre testi sono di pubblico dominio e vengono dalla Wikisource greca. Testatine e aperture mettono i titoli in maiuscolo, che perde ogni spirito e accento.

**Questa ricetta risponde a:**

- Come compongo il greco antico politonico, con sillabazione e numeri di verso, a fronte di una traduzione?
- Come numero un verso ogni cinque nel margine di una poesia e collego le note a quei numeri di verso?
- Come compongo poesia: una riga per verso, spazi tra le strofe, rientri sporgenti per i versi che vanno a capo, niente sillabazione?
- Come ottengo una buona giustificazione e sillabazione per testi in spagnolo, francese o tedesco?

## La risposta breve

```js
// script.js, righe 31–51
// locale 'grc' takes the polytonic patterns, which read breathings, circumflexes, the iota
// subscript and the diaeresis as the letters they sit on (Πει-σι-στρά-του, ὀφ-θαλ-μῶν,
// ἀ-ναμ-φί-λε-κτα). Eftaliotis's modern Greek is written polytonic too; under 'el' a
// polytonic word would be divided by the same patterns, so the two pages hyphenate alike.
// The labels are the modern Greek ones (Εικόνα, Πίνακας), as for 'el'.
const LOCALE = 'grc';
// Fontsource cuts each face into files by script, and loadFonts adds latin and greek. The
// accented letters of polytonic Greek (ἀ ὃ ῷ, U+1F00–1FFF) are in a third file, greek-ext:
// each face takes it too before the build, so no letter falls to a system font.
async function loadGreekExtended(faces) {
  const jobs = Object.entries(faces).flatMap(([family, specs]) => specs.map(async (spec) => {
    const id = fontsourceId(family);
    const style = spec.endsWith('i') ? 'italic' : 'normal';
    const file = `${id}-greek-ext-${parseInt(spec, 10)}-${style}.woff2`;
    const url = `${await fontsourceAt(id)}files/${file}`;
    const face = new FontFace(family, `url(${url}) format('woff2')`,
      { weight: String(parseInt(spec, 10)), style, unicodeRange: 'U+1F00-1FFF' });
    document.fonts.add(await face.load());
  }));
  await Promise.all(jobs);
}
```

## Ingredienti

**Insegna**

- [Sillabazione e lingua del documento](https://postext.dev/it/docs/justification.md#lingue-supportate): Sillabazione dai pattern di TeX in nove lingue, tra cui il greco, scelta dal locale del documento, che imposta anche le diciture di continuazione delle tabelle e la lingua del PDF con tag.
- [Numeri di riga](https://postext.dev/it/docs/configuration-notes-references.md#numeri-di-riga): lineNumbers stampa il numero di ogni quinta riga (o di ogni N-esima) nel margine, nell’intercolonna o nella colonna laterale: i versi delle poesie :::verse o ogni riga del testo, ripartendo a ogni poesia, pagina, capitolo o sezione o proseguendo per tutto il libro, senza spostare nessuna riga.
- [Versi riga per riga](https://postext.dev/it/docs/document-format-directives.md#verse): :::verse compone una poesia così come è scritta: un verso per riga di Markdown, righe vuote tra le strofe, spazi iniziali come rientri; un verso troppo lungo va a capo con un rientro sospeso o allineato a destra dietro una parentesi quadra, senza mai essere separato dal suo verso a un’interruzione di pagina, e le strofe brevi si possono tenere intere.

**Usa anche**

- [I font prima dell’impaginazione](https://postext.dev/it/docs/configuration-programmatic-usage.md#caricare-i-font-prima-dellimpaginazione)
- [Stili di titolo](https://postext.dev/it/docs/configuration-styles.md#stili-dei-titoli)
- [Attributi dei titoli](https://postext.dev/it/docs/document-format.md#attributi-dei-titoli)
- [Aperture progettate](https://postext.dev/it/docs/configuration-headings.md#estensione-e-grafica-avanzata)
- [Testo, filetti e riquadri nei progetti di pagina](https://postext.dev/it/docs/configuration-headers-footers.md#intestazioni-e-piè-di-pagina)
- [Testatine e folio](https://postext.dev/it/docs/configuration-headers-footers.md#intestazioni-e-piè-di-pagina)
- [Testatine secondo il ruolo della pagina](https://postext.dev/it/docs/configuration-headers-footers.md#elementi-di-testo)
- [Interruzioni di pagina e di colonna](https://postext.dev/it/docs/document-format-directives.md#pagebreak)
- [Margini speculari](https://postext.dev/it/docs/configuration-page-layout.md#margini-speculari)
- [Colore della carta](https://postext.dev/it/docs/configuration-page-layout.md#pagina)
- [Stili di paragrafo](https://postext.dev/it/docs/configuration-styles.md#stili-di-paragrafo)
- [Metadati del documento](https://postext.dev/it/docs/document-format.md#front-matter)
- [Tavolozza di colori semantica](https://postext.dev/it/docs/configuration-fonts-colors-viewers.md#tavolozza-dei-colori)
- [Pagine su un canvas](https://postext.dev/it/docs/configuration-programmatic-usage.md#rasterizzare-una-pagina)
- [Bibliografie e glossari](https://postext.dev/it/docs/configuration-styles.md#stili-di-paragrafo)
- [Testatine per sezione](https://postext.dev/it/docs/configuration-styles.md#stili-dei-titoli)

**La configurazione in breve**

- [`bodyText`](https://postext.dev/it/docs/configuration-text.md#testo-corrente), [`colorPalette`](https://postext.dev/it/docs/configuration-fonts-colors-viewers.md#tavolozza-dei-colori), [`footer`](https://postext.dev/it/docs/configuration-headers-footers.md#intestazioni-e-piè-di-pagina), [`header`](https://postext.dev/it/docs/configuration-headers-footers.md#intestazioni-e-piè-di-pagina), [`headingStyles`](https://postext.dev/it/docs/configuration-styles.md#stili-dei-titoli), [`headings`](https://postext.dev/it/docs/configuration-headings.md#titoli), [`layout`](https://postext.dev/it/docs/configuration-page-layout.md#impaginazione), [`lineNumbers`](https://postext.dev/it/docs/configuration-notes-references.md#numeri-di-riga), [`locale`](https://postext.dev/it/docs/configuration-language.md#sillabazione), [`page`](https://postext.dev/it/docs/configuration-page-layout.md#pagina), [`paragraphStyles`](https://postext.dev/it/docs/configuration-styles.md#stili-di-paragrafo)

**API**

- [`buildDocumentWithFonts`](https://postext.dev/it/docs/configuration-programmatic-usage.md#caricare-i-font-prima-dellimpaginazione), [`renderPageToCanvas`](https://postext.dev/it/docs/configuration-programmatic-usage.md#rasterizzare-una-pagina)

**Caratteri**

- GFS Didot (OFL-1.1)

## Preparazione

### 1 · Etichetta il testo come grc e carica le sue lettere accentate

Il codice è [la risposta breve](https://postext.dev/it/cookbook/homer-polytonic-facing-translation.md#la-risposta-breve) qui sopra. `locale: 'grc'` prende gli schemi politonici ([sillabazione](https://postext.dev/it/docs/configuration-language.md)), che leggono uno spirito, un circonflesso, uno iota sottoscritto o una dieresi come parte della lettera su cui stanno. La pagina 1 divide Βατρα-χομυομαχία, ἐπι-δειξάμενος e τυράν-νου. Fontsource divide ogni famiglia per sistema di scrittura, e `loadFonts` aggiunge solo i file latin e greek. Le lettere politoniche precomposte, U+1F00–1FFF, stanno in un terzo file, greek-ext, che `loadGreekExtended` aggiunge a ogni famiglia prima della composizione. Chiamala dopo `loadFonts`, o il motore dà la famiglia per caricata e salta il file greek.

### 2 · Numera ogni cinque versi nel margine esterno

```js
// script.js, righe 67–73
// Each page of verse is its own :::verse block. The Greek and the translation of a spread
// both open with {lineStart=11}, so the numbers on the two pages agree: restart 'poem'
// counts each block from its own start, and the epitaph, {numbered=false}, is not counted.
const lineNumbers = {
  enabled: true, count: 'verse', interval: 5, restart: 'poem', position: 'outer',
  gap: mm(6), fontFamily: DIDOT, fontSize: em(0.8), color: col('rubric'),
};
```

`count: 'verse'` numera solo i versi, e `restart: 'poem'` conta ogni blocco `:::verse` dal suo inizio. Ogni pagina di versi è un blocco. Il greco e la traduzione della seconda doppia pagina si aprono entrambi con `{lineStart=11}`, così i numeri delle pagine affrontate coincidono. `position: 'outer'` li porta nel margine sinistro di una pari e in quello destro di una dispari ([numeri di riga](https://postext.dev/it/docs/configuration-text.md)). L’epitaffio ha `{numbered=false}` e non prende numero.

### 3 · Aperture e testatine in maiuscolo

```js
// script.js, righe 83–124
// textTransform 'uppercase' turns Ὀδύσσεια into ΟΔΥΣΣΕΙΑ and Ῥαψῳδία into ΡΑΨΩΔΙΑ: Greek
// capitals take no breathing, no accent and no iota subscript (a dialytika stays, Ϊ Ϋ).
const caps = (size, tracking, color = 'muted') => ({ fontFamily: DIDOT, fontSize: pt(size),
  letterSpacing: pt(tracking), textTransform: 'uppercase', color: col(color) });
const opener = (title) => ({ enabled: true, minHeight: pt(5 * LEAD), slot: { elements: [
  { kind: 'text', id: 'kicker', content: '{attr.kicker}', align: 'center', ...caps(8, 2, 'rubric'),
    placement: { ...at('container', 'top', 0, LINE), size: { width: 'fill' } } },
  { kind: 'text', id: 'title', content: title, align: 'center', ...caps(17, 3.5, 'ink'),
    placement: { ...at('container', 'top', 0, 2.2 * LINE), size: { width: 'fill' } } },
] } });
// # Ὀδύσσεια {style="original"} opens a verso, {style="translation"} the recto facing it;
// a style sets its own break side (gotcha: style-inherits-break).
const headingStyles = [
  { id: 'original', breakBefore: { enabled: true, parity: 'even' }, marginBottom: pt(0),
    advancedDesign: opener('{titleText}') },
  { id: 'translation', breakBefore: { enabled: true, parity: 'odd' }, marginBottom: pt(0),
    advancedDesign: opener('{titleText}') },
  { id: 'life', breakBefore: { enabled: true, parity: 'odd' }, marginBottom: pt(0),
    advancedDesign: { enabled: true, minHeight: pt(6 * LEAD), slot: { elements: [
      { kind: 'text', id: 'title', content: '{titleText}', align: 'center', ...caps(15, 3, 'ink'),
        placement: { ...at('container', 'top', 0, 1.6 * LINE), size: { width: 'fill' } } },
      { kind: 'text', id: 'source', content: '{attr.source}', align: 'center', fontFamily: DIDOT,
        fontSize: pt(10), color: col('muted'),
        placement: { ...at('container', 'top', 0, 3.2 * LINE), size: { width: 'fill' } } },
    ] } } },
  { id: 'note-page', breakBefore: { enabled: true, parity: 'even' }, marginBottom: pt(LEAD),
    header: { elements: [] }, advancedDesign: { enabled: true, minHeight: pt(3 * LEAD),
      slot: { elements: [{ kind: 'text', id: 'label', content: '{titleText}', align: 'center',
        ...caps(7.5, 1.6, 'rubric'), placement: { ...at('container', 'top', 0, LINE),
          size: { width: 'fill' } } }] } } },
];
// The author and the title over the versos, the translator over the rectos; folios outside.
const head = (id, content, parity, edge, x, extra = {}) => ({ kind: 'text', id, content, parity,
  pages: 'body', ...caps(7.5, 1.5), ...extra, placement: at('page', edge, x, 12) });
const folio = { textTransform: 'none', letterSpacing: pt(0), fontSize: pt(9), color: col('ink') };
const SHIFT = (INNER - OUTER) / 2; // mm: the text block's centre is off the page's centre
const header = { elements: [
  head('verso-folio', '{pageNumber}', 'even', 'top-left', OUTER, folio),
  head('verso-head', '{author} · {title}', 'even', 'top', -SHIFT),
  head('recto-head', '{subtitle}', 'odd', 'top', SHIFT),
  head('recto-folio', '{pageNumber}', 'odd', 'top-right', -OUTER, folio),
] };
```

`textTransform: 'uppercase'` trasforma Ὀδύσσεια in ΟΔΥΣΣΕΙΑ e Ῥαψῳδία in ΡΑΨΩΔΙΑ: le maiuscole greche non portano spirito, accento né iota sottoscritto, e il motore li toglie componendo. Lo stile `original` apre il greco su una pari e `translation` la versione sulla dispari di fronte. `:::pagebreak{parity="even"}` e `{parity="odd"}` fanno lo stesso nella seconda doppia pagina. Il testo del titolo e quello del PDF restano come sono scritti, con tutti i segni.

## La ricetta completa

Un unico file, composto a partire dalla cartella della ricetta con il testo di esempio e il kit comune del Ricettario già inclusi; costruisce la propria pagina. Per eseguirlo, mettilo in uno `<script type="module">` di una pagina vuota, oppure incollalo nel pannello JS di un nuovo pen di CodePen (come modulo). Importa postext da esm.sh: non c’è niente da installare né da compilare.

- Cartella della ricetta: https://github.com/drnachio/postext/tree/main/cookbook/homer-polytonic-facing-translation

### script.js

```js
// ═══ Postext Cookbook · Nº 202 · Homer in polytonic Greek, facing its translation ═══════
// https://postext.dev/en/cookbook/homer-polytonic-facing-translation
// Code: MIT · Texts: Homer, Hesychius, A. Eftaliotis (PD, el.wikisource) · Pictures: none
// Fonts: GFS Didot (SIL OFL 1.1) · Needs postext ≥ 1.99.1
// The opening of the Odyssey on the versos, Eftaliotis's line-for-line modern Greek on the
// rectos, both numbered every fifth line, after a page of the Byzantine Life of Homer.
import { buildDocumentWithFonts, renderPageToCanvas } from 'https://esm.sh/postext';

const LANG = 'en'; // @lang: the language of the note on the text ('en' | 'es' | 'el')
const RECIPE = 'homer-polytonic-facing-translation';

// ─── 1 · Design ─────────────────────────────────────────────────────────────
// Black text on a warm white, and the dull red of a classical text's rubrics.
const palette = {
  ink: '#1c1a18', // the texts
  rubric: '#8c2f23', // line numbers, headings, rules
  muted: '#6b6359', // running heads, the note on the text, the colophon
  paper: '#fcfaf5',
};
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: 'rubric (defaults)', value: { hex: palette.rubric, model: 'hex' } },
];
const DIDOT = 'GFS Didot'; // the Greek Font Society's Didot: polytonic, with its own Latin
const [BODY, LEAD] = [10.2, 15]; // pt
const LINE = (LEAD * 25.4) / 72; // mm: one line, 5.29
const at = (to, edge, x = 0, y = 0) => ({ anchor: { to, edge }, offset: { x: mm(x), y: mm(y) } });

// #region answer: Ancient Greek is 'grc', with the polytonic accents written in the text
// locale 'grc' takes the polytonic patterns, which read breathings, circumflexes, the iota
// subscript and the diaeresis as the letters they sit on (Πει-σι-στρά-του, ὀφ-θαλ-μῶν,
// ἀ-ναμ-φί-λε-κτα). Eftaliotis's modern Greek is written polytonic too; under 'el' a
// polytonic word would be divided by the same patterns, so the two pages hyphenate alike.
// The labels are the modern Greek ones (Εικόνα, Πίνακας), as for 'el'.
const LOCALE = 'grc';
// Fontsource cuts each face into files by script, and loadFonts adds latin and greek. The
// accented letters of polytonic Greek (ἀ ὃ ῷ, U+1F00–1FFF) are in a third file, greek-ext:
// each face takes it too before the build, so no letter falls to a system font.
async function loadGreekExtended(faces) {
  const jobs = Object.entries(faces).flatMap(([family, specs]) => specs.map(async (spec) => {
    const id = fontsourceId(family);
    const style = spec.endsWith('i') ? 'italic' : 'normal';
    const file = `${id}-greek-ext-${parseInt(spec, 10)}-${style}.woff2`;
    const url = `${await fontsourceAt(id)}files/${file}`;
    const face = new FontFace(family, `url(${url}) format('woff2')`,
      { weight: String(parseInt(spec, 10)), style, unicodeRange: 'U+1F00-1FFF' });
    document.fonts.add(await face.load());
  }));
  await Promise.all(jobs);
}
// #endregion

// #region page: a 14 × 21.5 cm classical text, 28 lines of 15 pt
const TRIM = { width: 140, height: 215 }; // mm
const [TOP, INNER, OUTER, LINES] = [22, 16, 21, 28];
const page = {
  width: mm(TRIM.width), height: mm(TRIM.height), dpi: 150, backgroundColor: col('paper'),
  margins: { top: mm(TOP), bottom: mm(TRIM.height - TOP - LINES * LINE),
    left: mm(INNER), right: mm(OUTER), mirror: true },
};
// 103 mm of measure: the longest line of Eftaliotis, 59 letters, sets in 97 mm at 10.2 pt,
// so no line turns over and the two pages of a spread keep their lines level.
// #endregion

// #region lines: every fifth line numbered at the outer edge, the count kept by each page
// Each page of verse is its own :::verse block. The Greek and the translation of a spread
// both open with {lineStart=11}, so the numbers on the two pages agree: restart 'poem'
// counts each block from its own start, and the epitaph, {numbered=false}, is not counted.
const lineNumbers = {
  enabled: true, count: 'verse', interval: 5, restart: 'poem', position: 'outer',
  gap: mm(6), fontFamily: DIDOT, fontSize: em(0.8), color: col('rubric'),
};
// #endregion

// #region verse: hexameters and fifteen-syllable lines, centred on the longest
// A blank space in the source would start a stanza: neither text has any, so each block
// is one run of lines. A line too long for the measure would turn over and hang 2 em in.
const verseStyle = { id: 'verse', hangingIndent: em(2) };
// #endregion

// #region heads: kicker and title in capitals, which drop breathings and accents
// textTransform 'uppercase' turns Ὀδύσσεια into ΟΔΥΣΣΕΙΑ and Ῥαψῳδία into ΡΑΨΩΔΙΑ: Greek
// capitals take no breathing, no accent and no iota subscript (a dialytika stays, Ϊ Ϋ).
const caps = (size, tracking, color = 'muted') => ({ fontFamily: DIDOT, fontSize: pt(size),
  letterSpacing: pt(tracking), textTransform: 'uppercase', color: col(color) });
const opener = (title) => ({ enabled: true, minHeight: pt(5 * LEAD), slot: { elements: [
  { kind: 'text', id: 'kicker', content: '{attr.kicker}', align: 'center', ...caps(8, 2, 'rubric'),
    placement: { ...at('container', 'top', 0, LINE), size: { width: 'fill' } } },
  { kind: 'text', id: 'title', content: title, align: 'center', ...caps(17, 3.5, 'ink'),
    placement: { ...at('container', 'top', 0, 2.2 * LINE), size: { width: 'fill' } } },
] } });
// # Ὀδύσσεια {style="original"} opens a verso, {style="translation"} the recto facing it;
// a style sets its own break side (gotcha: style-inherits-break).
const headingStyles = [
  { id: 'original', breakBefore: { enabled: true, parity: 'even' }, marginBottom: pt(0),
    advancedDesign: opener('{titleText}') },
  { id: 'translation', breakBefore: { enabled: true, parity: 'odd' }, marginBottom: pt(0),
    advancedDesign: opener('{titleText}') },
  { id: 'life', breakBefore: { enabled: true, parity: 'odd' }, marginBottom: pt(0),
    advancedDesign: { enabled: true, minHeight: pt(6 * LEAD), slot: { elements: [
      { kind: 'text', id: 'title', content: '{titleText}', align: 'center', ...caps(15, 3, 'ink'),
        placement: { ...at('container', 'top', 0, 1.6 * LINE), size: { width: 'fill' } } },
      { kind: 'text', id: 'source', content: '{attr.source}', align: 'center', fontFamily: DIDOT,
        fontSize: pt(10), color: col('muted'),
        placement: { ...at('container', 'top', 0, 3.2 * LINE), size: { width: 'fill' } } },
    ] } } },
  { id: 'note-page', breakBefore: { enabled: true, parity: 'even' }, marginBottom: pt(LEAD),
    header: { elements: [] }, advancedDesign: { enabled: true, minHeight: pt(3 * LEAD),
      slot: { elements: [{ kind: 'text', id: 'label', content: '{titleText}', align: 'center',
        ...caps(7.5, 1.6, 'rubric'), placement: { ...at('container', 'top', 0, LINE),
          size: { width: 'fill' } } }] } } },
];
// The author and the title over the versos, the translator over the rectos; folios outside.
const head = (id, content, parity, edge, x, extra = {}) => ({ kind: 'text', id, content, parity,
  pages: 'body', ...caps(7.5, 1.5), ...extra, placement: at('page', edge, x, 12) });
const folio = { textTransform: 'none', letterSpacing: pt(0), fontSize: pt(9), color: col('ink') };
const SHIFT = (INNER - OUTER) / 2; // mm: the text block's centre is off the page's centre
const header = { elements: [
  head('verso-folio', '{pageNumber}', 'even', 'top-left', OUTER, folio),
  head('verso-head', '{author} · {title}', 'even', 'top', -SHIFT),
  head('recto-head', '{subtitle}', 'odd', 'top', SHIFT),
  head('recto-folio', '{pageNumber}', 'odd', 'top-right', -OUTER, folio),
] };
// #endregion

const config = () => ({
  locale: LOCALE, // written out, never LANG: the texts are Greek in every edition
  colorPalette, page, lineNumbers, header, headingStyles, footer: { elements: [] },
  layout: { layoutType: 'single' }, // the default is two columns
  bodyText: {
    fontFamily: DIDOT, fontSize: pt(BODY), lineHeight: pt(LEAD), color: col('ink'),
    boldColor: col('ink'), italicColor: col('ink'), referenceColor: col('ink'),
    firstLineIndent: em(1.5), indentAfterHeading: false, hyphenateAcrossColumns: false,
    maxWordSpacing: 1.6, minWordSpacing: 0.8, maxJustifyTracking: 10,
    verse: { indentStep: em(1) },
  },
  headings: { fontFamily: DIDOT, fontWeight: 400,
    levels: [{ level: 1, breakBefore: { enabled: true, parity: 'any' } }] },
  paragraphStyles: [verseStyle,
    // The note is in the edition's language, hyphenated with that language's patterns.
    { id: 'note', fontSize: pt(9), lineHeight: pt(13), color: col('muted'),
      italicColor: col('muted'), firstLineIndent: em(1.5), hyphenation: { locale: LANG } },
    { id: 'colophon', fontSize: pt(7.5), lineHeight: pt(10), color: col('muted'),
      textAlign: 'center', firstLineIndent: pt(0), marginTop: pt(LEAD),
      hyphenation: { enabled: false } },
  ],
});

// ─── 2 · Content ────────────────────────────────────────────────────────────
// The Life and the two spreads of verse (content.text.<lang>.md), then the note on the text
// in the edition's language (content.<lang>.md).
const markdown = [String.raw`---
title: "Ὀδύσσεια"
author: "Ὅμηρος"
subtitle: "Μετάφραση Ἀργύρη Ἐφταλιώτη"
---

# Βίος Ὁμήρου {style="life" source="Ἡσυχίου τοῦ Μιλησίου, ἐκ τῆς Σούδας"}

ποιήματα δ’ αὐτοῦ ἀναμφίλεκτα Ἰλιὰς καὶ Ὀδύσσεια. ἔγραψε δὲ τὴν Ἰλιάδα οὐχ ἅμα οὐδὲ κατὰ τὸ συνεχές, καθάπερ σύγκειται, ἀλλ’ αὐτὸς μὲν ἑκάστην ῥαψῳδίαν γράψας καὶ ἐπιδειξάμενος ἐν τῷ περινοστεῖν τὰς πόλεις τροφῆς ἕνεκεν ἀπέλιπεν. ὕστερον δὲ συνετέθη καὶ συνετάχθη ὑπὸ πολλῶν καὶ μάλιστα ὑπὸ Πεισιστράτου τοῦ τῶν Ἀθηναίων τυράννου. ἀναφέρεται δὲ εἰς αὐτὸν καὶ ἄλλα τινὰ ποιήματα, Ἀμαζονία, Ἰλιὰς μικρά, Νόστοι, Ἐπικιχλίδες, Ἠθιέπακτος ἤτοι Ἴαμβοι, Βατραχομυομαχία, Ἀραχνομαχία, Γερανομαχία, Κεραμίς, Ἀμφιαράου ἐξέλασις, παίγνια, Οἰχαλίας ἅλωσις, Ἐπιθαλάμια, Κύκλος, Ὕμνοι, Κύπρια.

γηραιὸς δὲ τελευτήσας ἐν τῇ νήσῳ τῇ Ἴῳ τέθαπται, τυφλὸς ἐκ παίδων γεγονώς, τὸ δ’ ἀληθὲς ὅτι οὐχ ἡττήθη ἐπιθυμίας, ἣ διὰ τῶν ὀφθαλμῶν ἄρχεται· καὶ παρὰ τοῦτο ἱστορήθη τυφλός. ἐπιγέγραπται δ’ ἐν τῷ τάφῳ αὐτοῦ τόδε τὸ ἐλεγεῖον, ὃ ὑπὸ τῶν Ἰητῶν ἐποιήθη χρόνῳ·

:::verse{numbered=false}
ἐνθάδε τὴν ἱερὰν κεφαλὴν κατὰ γαῖα καλύπτει,
ἀνδρῶν ἡρώων κοσμήτορα, θεῖον Ὅμηρον.
:::

# Ὀδύσσεια {style="original" kicker="Ῥαψῳδία α"}

:::verse
Ἄνδρα μοι ἔννεπε, Μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσε·
πολλῶν δ’ ἀνθρώπων ἴδεν ἄστεα καὶ νόον ἔγνω,
πολλὰ δ’ ὅ γ’ ἐν πόντῳ πάθεν ἄλγεα ὃν κατὰ θυμόν,
ἀρνύμενος ἥν τε ψυχὴν καὶ νόστον ἑταίρων.
ἀλλ’ οὐδ’ ὣς ἑτάρους ἐρρύσατο, ἱέμενός περ·
αὐτῶν γὰρ σφετέρῃσιν ἀτασθαλίῃσιν ὄλοντο,
νήπιοι, οἳ κατὰ βοῦς Ὑπερίονος Ἠελίοιο
ἤσθιον· αὐτὰρ ὁ τοῖσιν ἀφείλετο νόστιμον ἦμαρ.
τῶν ἁμόθεν γε, θεά, θύγατερ Διός, εἰπὲ καὶ ἡμῖν.
:::

# Ὀδύσσεια {style="translation" kicker="Μετάφραση Ἀργύρη Ἐφταλιώτη"}

:::verse
Τὸν ἄντρα τὸν πολύπραγο τραγούδησέ μου, ὦ Μοῦσα,
ποὺ περισσὰ πλανήθηκε, σὰν κούρσεψε τῆς Τροίας
τὸ ἱερὸ κάστρο, καὶ πολλῶν ἀνθρώπων εἶδε χῶρες
κι ἔμαθε γνῶμες, καὶ πολλὰ στὰ πέλαα βρῆκε πάθια,
γιὰ μιὰ ζωὴ παλεύοντας καὶ γυρισμὸ συντρόφων.
Μὰ πάλε δὲν τοὺς γλύτωσε, κι ἂν τὸ ποθοῦσε, ἐκείνους,
τὶ ἀπὸ δική τους χάθηκαν οἱ κούφιοι ἀμυαλωσύνη,
τοῦ Ἥλιου τοῦ Ὑπερίονα σὰν ἔφαγαν τὰ βόδια,
κι αὐτὸς τοὺς πῆρε τὴ γλυκειὰ τοῦ γυρισμοῦ τους μέρα.
Ἀπ’ ὅπου ἂν τά ’χης, πές μας τα, ὦ θεά, τοῦ Δία κόρη.
:::

:::pagebreak{parity="even"}

:::verse{lineStart=11}
ἔνθ’ ἄλλοι μὲν πάντες, ὅσοι φύγον αἰπὺν ὄλεθρον,
οἴκοι ἔσαν, πόλεμόν τε πεφευγότες ἠδὲ θάλασσαν·
τὸν δ’ οἶον, νόστου κεχρημένον ἠδὲ γυναικός,
νύμφη πότνι’ ἔρυκε Καλυψώ, δῖα θεάων,
ἐν σπέεσι γλαφυροῖσι, λιλαιομένη πόσιν εἶναι.
ἀλλ’ ὅτε δὴ ἔτος ἦλθε περιπλομένων ἐνιαυτῶν,
τῷ οἱ ἐπεκλώσαντο θεοὶ οἶκόνδε νέεσθαι
εἰς Ἰθάκην, οὐδ’ ἔνθα πεφυγμένος ἦεν ἀέθλων
καὶ μετὰ οἷσι φίλοισι· θεοὶ δ’ ἐλέαιρον ἅπαντες
νόσφι Ποσειδάωνος· ὁ δ’ ἀσπερχὲς μενέαινεν
ἀντιθέῳ Ὀδυσῆϊ πάρος ἣν γαῖαν ἱκέσθαι.
ἀλλ’ ὁ μὲν Αἰθίοπας μετεκίαθε τηλόθ’ ἐόντας,
Αἰθίοπας, τοὶ διχθὰ δεδαίαται, ἔσχατοι ἀνδρῶν,
οἱ μὲν δυσομένου Ὑπερίονος, οἱ δ’ ἀνιόντος,
ἀντιόων ταύρων τε καὶ ἀρνειῶν ἑκατόμβης.
ἔνθ’ ὅ γε τέρπετο δαιτὶ παρήμενος· οἱ δὲ δὴ ἄλλοι
Ζηνὸς ἐνὶ μεγάροισιν Ὀλυμπίου ἁθρόοι ἦσαν.
:::

:::pagebreak{parity="odd"}

:::verse{lineStart=11}
Ὅλοι ποὺ τότες τὸν πολὺ τὸ χαλασμὸ ξεφύγαν
γυρίσανε, ἀπὸ πόλεμο καὶ θάλασσα σωσμένοι,
καὶ μόνο ἐκειόνε, σπιτικὸ καὶ ταίρι στερημένο,
ἡ Καλυψὼ ἡ τρισέμορφη θεὰ τόνε κρατοῦσε,
γιατὶ ἄντρα της τὸν ἤθελε στὶς βαθουλὲς σπηλιές της.
Μὰ ὁ γῦρος σὰν τελέστηκε τῶν χρόνων, κι ἦρθε ἡ ὥρα,
ποὺ τό ’χανε οἱ θεοὶ γραφτὸ στὸ Θιάκι νὰ ξανάρθη
στὸ σπιτικό του, μήτ’ ἐκεῖ δὲν τοῦ ’λειψαν οἱ ἀγῶνες,
καὶ σὲ δικοὺς κοντά. Κι οἱ θεοὶ τὸν συμπονοῦσαν ὅλοι,
ἐξὸν τὸν Ποσειδώνα· αὐτὸς βαριὰ ἦταν χολωμένος
μὲ τὸ Δυσσέα τὸ θεϊκό, στὸν τόπο του πρὶν φτάση.
Βρισκόταν στοὺς Αἰθίοπες ὁ Ποσειδώνας τότες,
ποὺ ζοῦνε μοιραστοὶ μακριὰ στοῦ κόσμου τὶς ἀκροῦλες,
στοῦ Ἡλιοῦ τὸ βούλημα οἱ μισοί, στ’ ἀνάβλεμμά του οἱ ἄλλοι,
γιὰ νὰ δεχτῆ ἑκατοβοδιὰ ἀπὸ ταύρους καὶ κριάρια.
Ἐκεῖ γλυκοξεφάντωνε· οἱ θεοὶ ὡς τόσο οἱ ἄλλοι
στοὺς πύργους μαζωχτήκανε τοῦ Δία τοῦ Ὀλυμπήσου,
:::
`, String.raw`# A note on the text {style="note-page"}

:::paragraphs{style="note"}
The opening of the Odyssey, lines 1–27 of Book I, faces the modern Greek of Argyris Eftaliotis (1849–1923), who rendered Homer line for line in the fifteen-syllable verse of the folk songs, so that each line of the translation stands level with its original. Both are polytonic: the Homer in the text of Greek Wikisource, the translation in Eftaliotis’s own spelling, from the same library, with one accent corrected. Before them stand the last two sections of the Life of Homer that the Suda keeps from Hesychius of Miletus (ed. A. Westermann, 1845), with four slips corrected, and the epitaph on Homer’s grave on Ios.
:::

:::paragraphs{style="colophon"}
Set in GFS Didot (SIL OFL) · Texts: Homer, Hesychius and A. Eftaliotis, public domain, from el.wikisource
:::
`].join('\n\n');

// ─── 3 · Fonts ──────────────────────────────────────────────────────────────
const FONTS = { 'GFS Didot': ['400'] }; // DIDOT: every text on the pages; it has one weight

// ─── 4 · Build & show ───────────────────────────────────────────────────────
await loadFonts(FONTS, markdown); // latin and greek
await loadGreekExtended(FONTS); // and the polytonic letters
const doc = await buildDocumentWithFonts({ markdown }, config(), kitFonts(FONTS));
showPages(doc, { title: 'Ὀδύσσεια · Ῥαψῳδία α' });

// ─── 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 ───────────────────────────────────────────────────────────────────────
```

## Errori frequenti

- **Uno stile di titolo eredita l’interruzione di pagina del suo livello.** Una voce di headingStyles prende dal suo livello di titolo ogni campo che omette, breakBefore compreso. Un indice o un colophon con lo stile di un H1 dopo un :::pagebreak eredita parity 'odd' e finisce dietro una pagina bianca. Dai a uno stile del genere breakBefore: { enabled: false }.

- Senza il file greek-ext, ogni vocale accentata ricade su un font di sistema che raramente si accorda. La cattura confronta ogni glifo con i file caricati (C36) e respinge una pagina così.
- GFS Didot ha un solo peso e nessun corsivo: un’enfasi verrebbe inclinata dal renderer. Per questo la nota sul testo è in tondo.
- Il fornitore di font PDF del kit carica solo latin e greek, perciò questa ricetta mostra il canvas e non offre il PDF.
- Nessun verso della traduzione deve superare la giustezza. Un verso che va a capo spinge in giù di una riga il resto della pagina, e le due pagine smettono di corrispondersi verso per verso; 103 mm a 10,2 pt contengono il verso più lungo di Eftaliotis, 59 lettere.

## Crediti

- Ricetta: Ignacio Ferro ([@drnachio](https://github.com/drnachio))
- Testo: Odyssey, Book I, lines 1–27, in the polytonic text of el.wikisource (revision 165777): Homer ([fonte](https://el.wikisource.org/wiki/Οδύσσεια/α)), pubblico dominio
- Testo: The modern Greek translation of the same lines, line for line, from el.wikisource (revision 166701), with one accent corrected: Argyris Eftaliotis ([fonte](https://el.wikisource.org/wiki/Οδύσσεια_(Μετάφραση_Εφταλιώτη)/α)), pubblico dominio
- Testo: Life of Homer, §§ 6–7 and the epitaph, from the Suda (ed. A. Westermann, 1845), via el.wikisource (revision 152483), with four slips corrected: Hesychius of Miletus ([fonte](https://el.wikisource.org/wiki/Ησυχίου_Βίος_Ομήρου)), pubblico dominio
- Testo: The note on the text and the colophon: Postext Cookbook, originale
- Caratteri: GFS Didot (OFL-1.1)
- Codice: MIT · Contenuto di esempio: CC-BY-4.0

## Ricette correlate

- [Nº 083 · Poesie Tang con i versi inglesi a fronte](https://postext.dev/it/cookbook/tang-poems-facing-english.md): Ogni poesia Tang apre un recto colorato e l’inglese di Giles il verso di fronte: uno stile di titolo va alle pagine pari, l’altro alle dispari. · Livello 2 (Intermedio) · Poesia
- [Nº 044 · Edizione critica: numeri di verso e note per verso](https://postext.dev/it/cookbook/critical-edition-line-numbers.md): Il Lycidas di Milton nel testo del 1645: lineNumbers stampa un numero ogni cinque versi nella colonna laterale, e ogni nota si apre su quel numero, come chip. · Livello 3 (Avanzato) · Poesia
- [Nº 043 · Traduzione a fronte, strofa per strofa](https://postext.dev/it/cookbook/bilingual-facing-verse.md): Ogni poesia è un riquadro senza bordo a due colonne: un salto di colonna fisso apre l’inglese sul suo titolo e :::space allinea ogni strofa all’originale. · Livello 2 (Intermedio) · Poesia
