# Um romance grego com hifenização monotônica

> O primeiro capítulo de «Η τιμή και το χρήμα», de Theotokis, num livro de 13,5 × 20,5 cm: padrões do grego monotônico, aspas «» e versais sem acento.

- Versão HTML: https://postext.dev/pt/cookbook/monotonic-greek-novel
- Receita Nº 201 · Tipo e texto · Nível 2 (Intermediário) · Saídas: Canvas, PDF
- Gêneros: Ficção, teatro e prosa literária
- Requer postext ≥ 1.99.1, postext-pdf ≥ 1.99.1 · testada com 1.99.1, postext-pdf 1.99.1 em 2026-11-29
- Páginas: [1](https://postext.dev/cookbook/monotonic-greek-novel/en/p01.webp?v=beab86c3), [2](https://postext.dev/cookbook/monotonic-greek-novel/en/p02.webp?v=beab86c3), [3](https://postext.dev/cookbook/monotonic-greek-novel/en/p03.webp?v=beab86c3), [4](https://postext.dev/cookbook/monotonic-greek-novel/en/p04.webp?v=beab86c3), [5](https://postext.dev/cookbook/monotonic-greek-novel/en/p05.webp?v=beab86c3), [6](https://postext.dev/cookbook/monotonic-greek-novel/en/p06.webp?v=beab86c3), [7](https://postext.dev/cookbook/monotonic-greek-novel/en/p07.webp?v=beab86c3)
- Abrir no Sandbox: https://postext.dev/pt/sandbox#recipe=monotonic-greek-novel&lang=en (.postext: https://postext.dev/cookbook/monotonic-greek-novel/en/monotonic-greek-novel.postext)
- Última atualização: 2026-11-29
- Outros idiomas: [en](https://postext.dev/en/cookbook/monotonic-greek-novel.md), [es](https://postext.dev/es/cookbook/monotonic-greek-novel.md), [ca](https://postext.dev/ca/cookbook/monotonic-greek-novel.md), [de](https://postext.dev/de/cookbook/monotonic-greek-novel.md), [el](https://postext.dev/el/cookbook/monotonic-greek-novel.md), [fr](https://postext.dev/fr/cookbook/monotonic-greek-novel.md), [it](https://postext.dev/it/cookbook/monotonic-greek-novel.md), [zh](https://postext.dev/zh/cookbook/monotonic-greek-novel.md), [ja](https://postext.dev/ja/cookbook/monotonic-greek-novel.md), [ar](https://postext.dev/ar/cookbook/monotonic-greek-novel.md)

## Em poucas palavras

O primeiro capítulo de um romance grego de 1914, composto como um livro de bolso. As palavras são divididas no fim da linha como ensina a gramática escolar grega, e os cabeços vão em maiúsculas, que em grego não levam acento.

## O que você vai compor

O primeiro capítulo de *Η τιμή και το χρήμα* (*A honra e o dinheiro*, 1914), de Konstantinos Theotokis, tirado da Wikisource grega, num livro de 13,5 × 20,5 cm. Antes vêm uma folha de rosto e uma nota sobre o texto; o capítulo abre em página ímpar sob o seu numeral, Αʹ, em GFS Didot, rebaixado dez linhas. O texto é Literata 9,7 sobre 14,2 pt, 31 linhas por página, justificado e hifenizado com os padrões do grego monotônico. Os cabeços trazem o autor nas pares e o título nas ímpares, em versais espaçadas que perdem o acento, como pedem as maiúsculas gregas. A nota e o colofão seguem a língua da edição; o romance continua grego nas três.

**Esta receita responde a:**

- Como componho um romance em grego moderno, com boa hifenização e cabeços em maiúsculas?
- Como configuro os cabeços: título do livro na página esquerda, título do capítulo na direita e fólio do lado de fora?
- Como escrevo travessões de diálogo, anos no início do parágrafo, preços e símbolos literais sem que o Markdown os interprete errado?

## A resposta curta

```js
// script.js, linhas 51–65
// locale 'el' picks the monotonic patterns, which keep the digraphs and the diphthongs
// whole (μπρά-τσα, ευ-τυ-χί-α) and divide between two consonants the way a Greek school
// grammar does (κάρ-βου-να, αν-θρώ-πους). The same tag gives the Greek labels and tags the
// PDF as Greek. The defaults justify, hyphenate in config().locale and break by Knuth–Plass.
const LOCALE = 'el';
const bodyText = { // config().bodyText
  fontFamily: TEXT, fontSize: pt(BODY), lineHeight: pt(LEAD), color: col('ink'),
  boldColor: col('ink'), italicColor: col('ink'), referenceColor: col('ink'),
  firstLineIndent: em(1.2), indentAfterHeading: false,
  // Two letters at least on either side of a break (ξα-νά, not ξ-ανά) and no page that ends
  // on a divided word. Greek words run long: spaces from 0.8× to 1.6× of the face's own,
  // then up to 12‰ of tracking, and a last line under about eleven letters is a runt.
  hyphenation: { leftMin: 2, rightMin: 2 }, hyphenateAcrossColumns: false,
  maxWordSpacing: 1.6, minWordSpacing: 0.8, maxJustifyTracking: 12, runtMinCharacters: 22,
};
```

## Ingredientes

**Ensina**

- [Hifenização e idioma do documento](https://postext.dev/pt/docs/justification.md#idiomas-compatíveis): Hifenização com padrões do TeX em nove idiomas, entre eles o grego, escolhida pelo locale do documento, que também define os textos de continuação das tabelas e o idioma do PDF com tags.
- [Quebra de linha ótima (Knuth–Plass)](https://postext.dev/pt/docs/justification.md#knuth-plass-o-parágrafo-inteiro-de-uma-vez): Quebra cada parágrafo como um todo para igualar o espaçamento entre palavras, dentro dos limites definidos, em vez de preencher linha por linha.
- [Cabeços e fólios](https://postext.dev/pt/docs/configuration-headers-footers.md#cabeçalhos-e-rodapés): Espaços de cabeçalho e rodapé com variáveis ({pageNumber}, {chapterTitle}, {title}…) definidos para páginas ímpares ou pares, com títulos longos truncados ou quebrados em mais linhas.

**Também usa**

- [Tipografia do texto](https://postext.dev/pt/docs/configuration-text.md#texto-do-corpo)
- [Recuos, alinhamento e espaço entre parágrafos](https://postext.dev/pt/docs/configuration-text.md#texto-do-corpo)
- [Viúvas, órfãs e linhas curtas](https://postext.dev/pt/docs/configuration-page-flow.md#órfãs-viúvas-linhas-curtas-e-regras-de-manter-junto)
- [Aberturas desenhadas](https://postext.dev/pt/docs/configuration-headings.md#largura-e-design-avançado)
- [Estilos de título](https://postext.dev/pt/docs/configuration-styles.md#estilos-de-título)
- [Atributos de título](https://postext.dev/pt/docs/document-format.md#atributos-de-título)
- [Textos, fios e caixas nos designs de página](https://postext.dev/pt/docs/configuration-headers-footers.md#cabeçalhos-e-rodapés)
- [Cabeços por tipo de página](https://postext.dev/pt/docs/configuration-headers-footers.md#elementos-de-texto)
- [Margens espelhadas](https://postext.dev/pt/docs/configuration-page-layout.md#margens-espelhadas)
- [Cor do papel](https://postext.dev/pt/docs/configuration-page-layout.md#página)
- [Estilos de parágrafo](https://postext.dev/pt/docs/configuration-styles.md#estilos-de-parágrafo)
- [Metadados do documento](https://postext.dev/pt/docs/document-format.md#front-matter)
- [Paleta de cores semântica](https://postext.dev/pt/docs/configuration-fonts-colors-viewers.md#paleta-de-cores)
- [Exportação para PDF](https://postext.dev/pt/docs/configuration-pdf-output.md#geração-de-pdf)
- [Fontes incorporadas ao PDF](https://postext.dev/pt/docs/configuration-pdf-output.md#por-que-um-provedor-de-fontes)
- [Cabeços por seção](https://postext.dev/pt/docs/configuration-styles.md#estilos-de-título)

**A configuração em resumo**

- [`bodyText`](https://postext.dev/pt/docs/configuration-text.md#texto-do-corpo), [`colorPalette`](https://postext.dev/pt/docs/configuration-fonts-colors-viewers.md#paleta-de-cores), [`footer`](https://postext.dev/pt/docs/configuration-headers-footers.md#cabeçalhos-e-rodapés), [`header`](https://postext.dev/pt/docs/configuration-headers-footers.md#cabeçalhos-e-rodapés), [`headingStyles`](https://postext.dev/pt/docs/configuration-styles.md#estilos-de-título), [`headings`](https://postext.dev/pt/docs/configuration-headings.md#títulos), [`layout`](https://postext.dev/pt/docs/configuration-page-layout.md#diagramação), [`locale`](https://postext.dev/pt/docs/configuration-language.md#hifenização), [`page`](https://postext.dev/pt/docs/configuration-page-layout.md#página), [`paragraphStyles`](https://postext.dev/pt/docs/configuration-styles.md#estilos-de-parágrafo)

**API**

- [`buildDocumentWithFonts`](https://postext.dev/pt/docs/configuration-programmatic-usage.md#carregar-as-fontes-antes-da-diagramação), [`decompressWoff2`](https://postext.dev/pt/docs/configuration-pdf-output.md#provedor-de-fontes-no-navegador-fontsource--woff2), [`renderPageToCanvas`](https://postext.dev/pt/docs/configuration-programmatic-usage.md#renderizar-uma-página-como-bitmap), [`renderToPdf`](https://postext.dev/pt/docs/configuration-pdf-output.md#geração-de-pdf)

**Tipos**

- Literata (OFL-1.1), GFS Didot (OFL-1.1)

## Preparo

### 1 · Declare a língua: el

O código é [a resposta curta](https://postext.dev/pt/cookbook/monotonic-greek-novel.md#a-resposta-curta) acima. `locale: 'el'` usa os padrões do grego monotônico ([hifenização](https://postext.dev/pt/docs/configuration-language.md)). Eles mantêm inteiros os dígrafos μπ, ντ, γκ, τσ, τζ e os ditongos e dividem entre duas consoantes como uma gramática escolar grega: a página 3 divide εση-κώθηκε e μεσο-φόρι. `leftMin` e `rightMin` em 2 impedem uma letra sozinha de um lado da divisão, e `hyphenateAcrossColumns: false` evita que uma página termine em palavra dividida. As palavras gregas são longas; espaços de 0,8 a 1,6 vez o da fonte, e depois até 12 ‰ de tracking, igualam as linhas.

### 2 · Cabeços em versais

```js
// script.js, linhas 69–88
// textTransform 'uppercase' in a Greek document writes ΚΩΝΣΤΑΝΤΙΝΟΣ ΘΕΟΤΟΚΗΣ for
// Κωνσταντίνος Θεοτόκης: Greek capitals carry no accent, and the engine removes the tonos
// (and keeps a dialytika, ΑΫΠΝΙΑ) as it sets the letters. The Markdown keeps the accents,
// so search and the PDF's text read the words as written.
const caps = (size, tracking, color = 'muted') => ({ fontFamily: TEXT, fontSize: pt(size),
  fontWeight: 500, letterSpacing: pt(tracking), textTransform: 'uppercase', color: col(color) });
const SHIFT = (INNER - OUTER) / 2; // mm: the text block's centre is off the page's centre
const head = (id, content, parity, edge, x, y = 11.5, pages = 'body') => ({
  kind: 'text', id, content, parity, pages, ...caps(7.5, 1.4), placement: at('page', edge, x, y),
});
const folio = { fontWeight: 400, letterSpacing: pt(0), color: col('ink') }; // digits: no case
const header = { elements: [
  { ...head('verso-folio', '{pageNumber}', 'even', 'top-left', OUTER), ...folio },
  head('verso-author', '{author}', 'even', 'top', -SHIFT),
  head('recto-title', '{title}', 'odd', 'top', SHIFT),
  { ...head('recto-folio', '{pageNumber}', 'odd', 'top-right', -OUTER), ...folio },
] };
const drop = (parity, x) => ({ ...head(`drop-${parity}`, '{pageNumber}', parity, 'bottom', x,
  -11, 'opener'), ...folio });
const footer = { elements: [drop('odd', SHIFT), drop('even', -SHIFT)] };
```

Num documento grego, `textTransform: 'uppercase'` escreve ΚΩΝΣΤΑΝΤΙΝΟΣ ΘΕΟΤΟΚΗΣ para Κωνσταντίνος Θεοτόκης: as maiúsculas gregas não levam tonos, e o motor o tira ao compor as letras, enquanto o trema fica (ΑΫΠΝΙΑ). O Markdown e o texto do PDF guardam as palavras acentuadas, e a busca as encontra. Os fólios não têm caixa e ficam no peso 400.

### 3 · Um numeral de capítulo em Didot

```js
// script.js, linhas 92–103
// # Α΄ {style="chapter"}: the numeral is the heading's text, a capital and the Greek numeral
// sign ʹ (U+0374), as Greek books number their chapters.
const chapter = { id: 'chapter', breakBefore: { enabled: true, parity: 'odd' },
  marginBottom: pt(0), // the opener's own height already ends on a line
  advancedDesign: { enabled: true, minHeight: pt(10 * LEAD), slot: { elements: [
    text('book', '{title}', TEXT, 8, at('container', 'top', 0, 2 * LINE),
      caps(8, 2.2, 'muted')),
    text('numeral', '{titleText}', DISPLAY, 30, at('container', 'top', 0, 3.6 * LINE),
      { color: col('accent'), lineHeight: 1 }),
    rule('rule', 6.4 * LINE, 10),
  ] } },
};
```

O título `# Αʹ {style="chapter"}` é o próprio numeral: uma maiúscula e a keraia ʹ, como os livros gregos numeram os capítulos. O desenho o põe a 30 pt em GFS Didot sob o título do livro, com um fio curto, e `minHeight` rebaixa o texto dez linhas. `breakBefore` com paridade `odd` abre o capítulo em ímpar; um estilo de título define o próprio lado da quebra.

## A receita completa

Um único arquivo, composto a partir da pasta da receita com o texto de exemplo e o kit comum das Receitas já incluídos; ele monta a própria página. Para executá-lo, coloque-o em um `<script type="module">` de uma página vazia ou cole-o no painel JS de um pen novo do CodePen (como módulo). Ele importa o postext do esm.sh, então não há nada para instalar nem compilar.

- Pasta da receita: https://github.com/drnachio/postext/tree/main/cookbook/monotonic-greek-novel

### script.js

```js
// ═══ Postext Cookbook · Nº 201 · A Greek novel page, hyphenated in monotonic Greek ═══════
// https://postext.dev/en/cookbook/monotonic-greek-novel
// Code: MIT · Text: K. Theotokis, Η τιμή και το χρήμα, 1914 (PD, el.wikisource) · Pictures: none
// Fonts: Literata, GFS Didot (SIL OFL 1.1) · Needs postext ≥ 1.99.1
import { buildDocumentWithFonts, renderPageToCanvas } from 'https://esm.sh/postext';
import { renderToPdf, decompressWoff2 } from 'https://esm.sh/postext-pdf';

const LANG = 'en'; // @lang: the language of the note on the text ('en' | 'es' | 'el')
const RECIPE = 'monotonic-greek-novel';

// ─── 1 · Design ─────────────────────────────────────────────────────────────
// Black text on an ivory paper and one blue-grey accent, as the Athens literary presses
// set their novels between the wars.
const palette = {
  ink: '#1f1d1b', // text
  accent: '#2f4f6b', // chapter numeral, rules, the title on the title page
  muted: '#6a645c', // running heads, the note on the text, the colophon
  paper: '#fbf8f1', // an ivory book paper
};
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' } },
];
const [TEXT, DISPLAY] = ['Literata', 'GFS Didot']; // a text face with Greek; a Greek Didot
const [BODY, LEAD] = [9.7, 14.2]; // pt
const LINE = (LEAD * 25.4) / 72; // mm: one line, 5.01
const at = (to, edge, x = 0, y = 0) => ({ anchor: { to, edge }, offset: { x: mm(x), y: mm(y) } });
// Hung under another element, centred on it.
const under = (id, y) => ({ anchor: { to: id, edge: 'below', at: 'center' },
  offset: { y: mm(y) } });
const text = (id, content, fontFamily, size, placement, extra = {}) => ({ kind: 'text', id,
  content, fontFamily, fontSize: pt(size), color: col('ink'), align: 'center',
  overflow: 'wrap', placement, ...extra });
const rule = (id, y, width) => ({ kind: 'rule', id, direction: 'horizontal', thickness: pt(0.5),
  color: col('accent'),
  placement: { ...at('container', 'top', 0, y), size: { width: mm(width) } } });

// #region page: a 13.5 × 20.5 cm novel; the text block holds 31 whole lines
const TRIM = { width: 135, height: 205 }; // mm
const [TOP, INNER, OUTER, LINES] = [20, 18, 21, 31];
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 }, // left is the inner margin on a recto
};
// 96 mm of measure: about 60 characters of Literata, nine or ten Greek words.
// #endregion

// #region answer: monotonic Greek, justified and hyphenated by its own patterns
// locale 'el' picks the monotonic patterns, which keep the digraphs and the diphthongs
// whole (μπρά-τσα, ευ-τυ-χί-α) and divide between two consonants the way a Greek school
// grammar does (κάρ-βου-να, αν-θρώ-πους). The same tag gives the Greek labels and tags the
// PDF as Greek. The defaults justify, hyphenate in config().locale and break by Knuth–Plass.
const LOCALE = 'el';
const bodyText = { // config().bodyText
  fontFamily: TEXT, fontSize: pt(BODY), lineHeight: pt(LEAD), color: col('ink'),
  boldColor: col('ink'), italicColor: col('ink'), referenceColor: col('ink'),
  firstLineIndent: em(1.2), indentAfterHeading: false,
  // Two letters at least on either side of a break (ξα-νά, not ξ-ανά) and no page that ends
  // on a divided word. Greek words run long: spaces from 0.8× to 1.6× of the face's own,
  // then up to 12‰ of tracking, and a last line under about eleven letters is a runt.
  hyphenation: { leftMin: 2, rightMin: 2 }, hyphenateAcrossColumns: false,
  maxWordSpacing: 1.6, minWordSpacing: 0.8, maxJustifyTracking: 12, runtMinCharacters: 22,
};
// #endregion

// #region caps: running heads in capitals, which drop the tonos by themselves
// textTransform 'uppercase' in a Greek document writes ΚΩΝΣΤΑΝΤΙΝΟΣ ΘΕΟΤΟΚΗΣ for
// Κωνσταντίνος Θεοτόκης: Greek capitals carry no accent, and the engine removes the tonos
// (and keeps a dialytika, ΑΫΠΝΙΑ) as it sets the letters. The Markdown keeps the accents,
// so search and the PDF's text read the words as written.
const caps = (size, tracking, color = 'muted') => ({ fontFamily: TEXT, fontSize: pt(size),
  fontWeight: 500, letterSpacing: pt(tracking), textTransform: 'uppercase', color: col(color) });
const SHIFT = (INNER - OUTER) / 2; // mm: the text block's centre is off the page's centre
const head = (id, content, parity, edge, x, y = 11.5, pages = 'body') => ({
  kind: 'text', id, content, parity, pages, ...caps(7.5, 1.4), placement: at('page', edge, x, y),
});
const folio = { fontWeight: 400, letterSpacing: pt(0), color: col('ink') }; // digits: no case
const header = { elements: [
  { ...head('verso-folio', '{pageNumber}', 'even', 'top-left', OUTER), ...folio },
  head('verso-author', '{author}', 'even', 'top', -SHIFT),
  head('recto-title', '{title}', 'odd', 'top', SHIFT),
  { ...head('recto-folio', '{pageNumber}', 'odd', 'top-right', -OUTER), ...folio },
] };
const drop = (parity, x) => ({ ...head(`drop-${parity}`, '{pageNumber}', parity, 'bottom', x,
  -11, 'opener'), ...folio });
const footer = { elements: [drop('odd', SHIFT), drop('even', -SHIFT)] };
// #endregion

// #region opener: the chapter's numeral in Didot, sunk ten lines, under the book's title
// # Α΄ {style="chapter"}: the numeral is the heading's text, a capital and the Greek numeral
// sign ʹ (U+0374), as Greek books number their chapters.
const chapter = { id: 'chapter', breakBefore: { enabled: true, parity: 'odd' },
  marginBottom: pt(0), // the opener's own height already ends on a line
  advancedDesign: { enabled: true, minHeight: pt(10 * LEAD), slot: { elements: [
    text('book', '{title}', TEXT, 8, at('container', 'top', 0, 2 * LINE),
      caps(8, 2.2, 'muted')),
    text('numeral', '{titleText}', DISPLAY, 30, at('container', 'top', 0, 3.6 * LINE),
      { color: col('accent'), lineHeight: 1 }),
    rule('rule', 6.4 * LINE, 10),
  ] } },
};
// #endregion

// #region front: the title page and, behind it, the note on the text
const front = (id, elements, { minHeight, ...extra } = {}) => ({ id,
  breakBefore: { enabled: true, parity: 'any' }, marginBottom: pt(0),
  header: { elements: [] }, footer: { elements: [] }, ...extra,
  advancedDesign: { enabled: true, ...(minHeight && { minHeight }), slot: { elements } } });
const headingStyles = [
  front('title-page', [
    text('author', '{author}', TEXT, 9.5, at('container', 'top', 0, 6 * LINE),
      caps(9.5, 2.4, 'ink')),
    // The title wraps in a long book; the subtitle and the rule hang from whatever it takes.
    text('title', '{titleText}', DISPLAY, 27, { ...at('container', 'top', 0, 9 * LINE),
      size: { width: 'fill' } }, { color: col('accent'), lineHeight: 1.15 }),
    text('subtitle', '{subtitle}', DISPLAY, 13, under('#title', 3)),
    { kind: 'rule', id: 'rule', direction: 'horizontal', thickness: pt(0.5), color: col('accent'),
      placement: { ...under('#subtitle', 6), size: { width: mm(14) } } },
    text('date', '{attr.year}', TEXT, 9, at('container', 'top', 0, 26 * LINE),
      { color: col('muted') }),
  ]),
  // The note sits low on the verso behind the title page, under a small label.
  front('note-page', [text('label', '{titleText}', TEXT, 7.5,
    at('container', 'top', 0, 15 * LINE), caps(7.5, 1.6, 'accent'))],
  { minHeight: pt(17 * LEAD) }),
  chapter,
];
// #endregion

const paragraphStyles = [
  // The note is in the edition's language, hyphenated with that language's patterns.
  { id: 'note', fontSize: pt(8.5), lineHeight: pt(LEAD * 0.85), color: col('muted'),
    italicColor: col('muted'), firstLineIndent: em(1.2), hyphenation: { locale: LANG } },
  { id: 'colophon', fontSize: pt(7), lineHeight: pt(10), color: col('muted'),
    italicColor: col('muted'), textAlign: 'center', firstLineIndent: pt(0),
    marginTop: pt(LEAD), hyphenation: { enabled: false } },
];

const config = () => ({
  locale: LOCALE, // written out, never LANG: the novel is Greek in every edition
  colorPalette, page, bodyText, paragraphStyles, headingStyles, header, footer,
  layout: { layoutType: 'single' }, // the default is two columns
  headings: { // the designs paint every title; this keeps Open Sans unloaded
    fontFamily: DISPLAY, fontWeight: 400,
    levels: [{ level: 1, breakBefore: { enabled: true, parity: 'any' } }],
  },
});

// ─── 2 · Content ────────────────────────────────────────────────────────────
// The title page and the note (content.<lang>.md), then chapter Α΄ (content.text.<lang>.md).
const markdown = [String.raw`---
title: "Η τιμή και το χρήμα"
subtitle: "Μυθιστόρημα"
author: "Κωνσταντίνος Θεοτόκης"
---

# Η τιμή και το χρήμα {style="title-page" year="1914"}

# A note on the text {style="note-page"}

:::paragraphs{style="note"}
Konstantinos Theotokis (1872–1923), of Corfu, published *Η τιμή και το χρήμα* (*Honour and Money*) in 1914. Its first chapter is given here whole, from the monotonic transcription of Greek Wikisource. The Corfiot speech of the women, and the northern speech of the two gendarmes, with its dropped vowels, are kept as Theotokis wrote them. One misprint is corrected and one opening guillemet restored; each line of dialogue is a paragraph of its own.
:::

:::paragraphs{style="colophon"}
Set in Literata and GFS Didot (SIL OFL) · Text: K. Theotokis, public domain, from el.wikisource
:::
`, String.raw`# Αʹ {style="chapter"}

Σαν καλή νοικοκυρά η σιόρα Επιστήμη η Τρινκούλαινα εσηκώθηκε πρωί πρωί από το κρεβάτι, εφόρεσε μόνο το μεσοφόρι της, έσιαξε λίγο τα μαλλιά της, άνοιξε την πόρτα της κ’ εβγήκε μία στιγμή στο λιθόστρωτο καντούνι της. Οι γειτόνοι εκοιμούνταν ακόμη· εκοίταξε ψηλά το μικρό κομμάτι του ουρανού που ολοένα εφώτιζε κι όπου έλαμπαν ακόμα δύο ή τρία αστέρια, εκοίταξε κιόλας στην άκρη του στενού του δρόμου τη θάλασσα, που απλωνότουν ως τα απέναντι βουνά της Στεριάς σταχτιά κ’ ήσυχη, κ’ εξαναμπήκε πάλι στο σπίτι της για να ανάψει φωτιά στο μικρό μαγειριό της. Είταν γυναίκα μισόκοπη, έως σαράντα πέντε χρονώ, λιγνή και ψηλή, με ζαρωμένο πρόσωπο, με πολλά μαλλιά άσπρα· αλλά τα μάτια της είταν ζωερά κι ακόμα νέα.

«Θα κάμει ζέστα σήμερα» εσυλλογίστηκε ανοίγοντας το μικρό παράθυρο του μαγειριού. Και βλέποντας πως το φως δεν είταν ακόμη αρκετό, άναψε μ’ ένα σπίρτο το κατάμαυρο λυχνάρι που εκρεμότουν από ένα καρφί στον κοκκινωπό και καπνισμένον τοίχο πάνωθε από την ογνήστρα, έπειτα εκοίταξε τριγύρου, γυρεύοντας με το βλέμμα την κούκουμα του καφέ, έσκυψε κ’ επήρε κάρβουνα και τ’ άναψε επιδέξια σε λίγες στιγμές στο σιδερένιο φουρνέλο, φυσώντας τα με το στόμα πρώτα και στερνά με το βέντουλο. Και εσυλλογιζότουν:

«Έξη στήματα σφυρίδες από τέσσερα φράνκα το στήμα κάνουνε… έξη, κ’ έξη, δώδεκα· και δώδεκα, εικοστέσσερα φράνκα· ως το σάββατο μεθαύριο, θα γένουνε άλλα τρία, τρεις ντουζίνες όλα όλα, τριάντα έξη φράνκα· θα πάνε κι αυτά μαζί με τ’ άλλα στον κομό, και σα γενούν εκατό του τα δίνω και τα παίρνει στην τράπεζα. Μην τα ιδεί όμως πρώτα ο μεθύστακάς μου, γιατί τα παίρνει και τα κάνει στάχτη ευτύς στην ταβέρνα! Ωχ, τόνε γνοιάζει εκείνονε για τα παιδιά μας, για τσι κοπέλες μας! τα μαυρισμένα μεγαλώνουνε ωστόσο. Να η Ρήνη μου, εγίνηκε, πάει, γυναίκα· αν επρόσμενα από ’φτόνε, αλλίμονό της! Ό,τι εκάμανε τούτα τα μπράτσα, αλλιώς ουδέ ποκάμισο ν’ αλλάξουμε δε θα ’χαμε.» Κι αναστέναξε κουνώντας το κεφάλι.

Όλο παίζοντας με το βέντουλο εφώναξε στην κρεβατοκάμαρη:

«Ε Ρήνη, τι έπαθες σήμερα! Ασηκώσου, μωρή κοπέλα! Με το νου πλουταίνει η κόρη, με τον ύπνο η ακαμάτρα. Δεν ακούς, ε! Ή κάνεις που δεν ακούς; Ξύπνα, λέω, ξύπνα.»

«Ακόμα δεν εχάραξε, μητέρα» αποκρίθηκε από μέσα χασμουριώντας η Ρήνη που ήθελε να πάρει ακόμα ένα γλυκό σουρούπι.

«Είναι μεσημέρι» της εφώναξε άσπλαχνα η μάνα της· «σήκω! Πρέπει να το πάρεις μάθημα να σηκώνεσαι πρωί· θα πας σε αντρός χέρια, και ανάθεμα δε θέλω να ’χω από τους γαμπρούς μου.»

Ολομεμιάς στο καντούνι ακούστηκε βιαστικό ποδοβολητό.

«Τι να ’ναι» έκαμε η νοικοκυρά προσέχοντας.

Κι αφήνοντας το βέντουλο εξαναβγήκε στην πόρτα.

Από το γιαλό ανέβαιναν βιαστικά στο καντούνι τρεις άνθρωποι. Ο ένας τους είταν φορτωμένος μ’ ένα βαρύ τσουβάλι που τον έσκυφτε· οι άλλοι δύο τον εβοηθούσαν με τα χέρια για να μπορεί να τρέχει. Κι αμέσως η νοικοκυρά εκατάλαβε τι εσυνέβαινε.

«Είναι λαθρέμποροι» είπε με το νου της· «θα τους έλαχε κάποιος μπελάς στο δρόμο· πώς λεχομανάνε, οι καημένοι, από το φόβο τους κι από τον κόπο.»

Ωστόσο οι άνθρωποι είχαν ζυγώσει το σπίτι της κυράς Επιστήμης και μπρος στην πόρτα της, καθαυτό στο κατώφλι, εξεβοήθησαν με μιας το σακί.

«Γλύτωσέ μας» της είπε ο ένας βιαστικά· «κρούψε το».

Τον εγνώρισε ποιος ήταν. «Δε μπορώ, Αντρέα μου, να σε χαρώ» του ’πε γλυκά· «η αρχή μάς υποψιάζεται.»

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

«Θα το αρνηθείς του Αντρέα;»

Κι ο Αντρέας ωστόσο αποκρενότουν: «Η ώρα βιάζει· μας κυνηγούνε· κάμε ό,τι θέλεις· κατάδωσέ μας, α σου το λέει η καρδιά.» Κι αμέσως με τους συντρόφους του επήρε το φυγί προς τον ανήφορο.

«Εκατάλαβες μπελιάς αμπονώρα, αμπονώρα, που να μην είχα σηκωθεί!» είπε η κυρά Επιστήμη σταυρώνοντας ανάποδα τα χέρια της και κοιτάζοντας λυπητερά το τσουβάλι «θέλεις και δε θέλεις πιε γάιδαρε αγιάσμα. Και να σου λέω, μωρή κοπέλα να σηκώνεσαι πρωί!»

«Έλα, μάνα» της είπε χαμογελώντας η Ρήνη, «πιάσ’ το να το κυλήσουμε μέσα.»

Και χωρίς να ειπούν άλλο λόγο τό ’πιασαν και οι δύο με δύναμη και τό ’συραν με προφύλαξη στο σπίτι.

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

«Τι κάνετε, μωρές παραδερμένες; θα σας βάλουνε στη φυλακή και μένα μαζί σας, θα πάρεις και τα παιδιά μας στο λαιμό σου.»

«Το δικό μου τ’ όνομα πάρ’ το εσύ γειτόνισσα!» του αποκρίθηκε η κυρά Επιστήμη κάνοντας πως θυμώνει «αφόντις μας εκατέστρεψες, κ’ εσπατάλησες ό,τι κι αν είχες στον τζιόγο, στο πιοτό και ο Θεός το ξέρεις πού αλλού, τώρα χλιέσαι τα παιδιά μας, μεθούα! Πώς θα βγει το θεόψωμο;»

«Μα δε μας λείπει, μωρή γυναίκα» της αποκρίθηκε καθίζοντας στο κρεβάτι και κοιτάζοντας την πόρτα της κάμαρας όπου τώρα η νοικοκυρά εστεκότουν τρομερή, παρέτοιμη να μαλλώσει περισσότερο.

«Το φέρνεις βλέπεις εσύ κάθε μέρα» του αποκρίθηκε βάζοντας το γρόθο της στη ζώση. «Πού είσουνα εψές και επροψές και πού θα πας απόψε; Στην ταβέρνα ε; Κι ακόμα έχεις μούτρο και μιλείς!»

«Ό,τι λάχει κι απολάχει» της απάντησε δειλά δειλά, θέλοντας να τελειώσει «η ίδια θα ’χεις το φταίξιμο. Μα ας αφήσουμε τώρα τσι κουβέντες, άμε να μου φτιάξεις τον καφέ να πάμε στη δουλειά μας.»

«Δε γνοιάζεσαι παρά για την κοιλιά σου» του απάντησε με ημερότερη φωνή· «γιατί νά ’σαι έτσι, καημένε;»

Και εξαναγύρισε στο μαγειριό της όπου τώρα τα αθράκια εξεψύχιζαν, και το νερό δεν είχε ζεστάνει.

Μα ένας νέος ποδοβολημός την έφερε πάλι στην πόρτα.

«Είναι οι χωροφυλάκοι» είπε με το νου της χωρίς κανένα φόβο «ας πάνε να τσου μιλήσουμε.»

«Κιουρία» της εφώναξε ο ένας «μήπους πέρασαν δώθ’ νις;»

«Ποιοι;» του αποκρίθηκε χαμογελώντας.

«Δεν άκ’σις τίπ’τς; Μας χτ’πήσανι, ανάθιμ’ τουν πατέρα τ’ς, του νουματάρχ’ και μας ’φ’γαν. Δεν τις είδις να διαβούνι;»

«Εγώ;» απολογήθηκε κάνοντας το σταυρό της «τώρα σηκώθηκα· με βλέπετε που ’μαι άντυτη ακόμα… Μα πιστεύω ν’ άκουσα τρεχατά στ’ άλλο το καντούνι· πηγαίνετε ιδέστε· πάνε προς τη χώρα, λογιάζω· αν τρέξετε γλήγορα τσου πιαίνεται.»

Οι χωροφύλακες εκοιτάχτηκαν σα να ρωτούσαν ο ένας τη γνώμη του άλλου:

«Άμι γύριβε τ’ς τώρα» έκαμε ένας «μας φύγανι, χαλάλ’ τ’ς για τούτ’ τ’ν φουρά.»

«Άλλοντ’ς, βρε πιδιά, κάτ’ κουλνούσ’ κι για μας, τώρα αντί ξύλου!»

Κ’ εχαιρέτησαν τη νοικοκυρά πηγαίνοντας αφρόντιστα προς το γιαλό και παίζοντας με τα κομπολόγια τους.
`].join('\n\n');

// ─── 3 · Fonts ──────────────────────────────────────────────────────────────
const FONTS = { // every face the pages use, loaded before the build
  Literata: ['400', '400i', '500'], // TEXT: the novel, the note, the heads and the folios
  'GFS Didot': ['400'], // DISPLAY: the title and the chapter numeral
};

// ─── 4 · Build & show ───────────────────────────────────────────────────────
const doc = await buildDocumentWithFonts({ markdown }, config(), kitFonts(FONTS));
showPages(doc, { title: 'Η τιμή και το χρήμα' });
offerPdf(() => renderToPdf(doc, { fontProvider: fontsourceProvider }), `${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 ───────────────────────────────────────────────────────────────────────
```

## Erros comuns

- **Um estilo de título herda a quebra de página do seu nível.** Uma entrada de headingStyles recebe do seu nível de título todos os campos que não define, inclusive breakBefore. Um sumário ou um colofão com estilo sobre um H1 depois de um :::pagebreak herda a paridade 'odd' e cai depois de uma página em branco. Dê a esse estilo breakBefore: { enabled: false }.

- Uma maiúscula que abre palavra no texto corrido mantém o tonos, à esquerda (Ό,τι, Ή κάνεις). Só um `textTransform: 'uppercase'` tira os acentos; o Markdown deve trazê-los sempre.
- A GFS Didot não tem o florão ❦ nem itálico. Um ornamento ou uma *ênfase* nessa fonte cai em outra fonte ou num redondo inclinado; esta receita usa a Didot só para o título e o numeral.
- Falas curtas de diálogo numa mancha de 96 mm dão pouca margem à justificação. A captura conta 3 de 97 linhas acima de 1,6 vez o espaço normal, a pior na página 4; uma mancha mais larga ou um corpo menor diminuem a conta.

## Créditos

- Receita: Ignacio Ferro ([@drnachio](https://github.com/drnachio))
- Texto: Η τιμή και το χρήμα (1914), chapter I, complete, from the monotonic transcription of el.wikisource (revision 101144), with one misprint corrected, one opening guillemet restored, elision marks as ’ and each line of dialogue a paragraph: Konstantinos Theotokis ([fonte](https://el.wikisource.org/wiki/Η_Τιμή_και_το_Χρήμα/Κεφάλαιο_Α')), domínio público
- Texto: The note on the text and the colophon: Postext Cookbook, original
- Tipos: Literata (OFL-1.1), GFS Didot (OFL-1.1)
- Código: MIT · Conteúdo de exemplo: MIT

## Relacionadas

- [Nº 104 · Uma novela catalã, hifenizada pelas regras do IEC](https://postext.dev/pt/cookbook/catalan-pocket-novella.md): El transplantat, de Oller, completo num livro de bolso de 32 páginas: sílabas catalãs pelo IEC, l·l quebrado como il- | lusió e uma gravura por capítulo. · Nível 2 (Intermediário) · Ficção, teatro e prosa literária
- [Nº 016 · Espanhol justificado num romance de bolso](https://postext.dev/pt/cookbook/spanish-pocket-novel.md): O início de Marianela em edição de bolso: hifenização espanhola, espaços abaixo de 1,7×, sem linhas curtas, capitular elevada e o mapa como Figura 1. · Nível 2 (Intermediário) · Ficção, teatro e prosa literária
- [Nº 014 · Espaçamento uniforme em colunas estreitas justificadas](https://postext.dev/pt/cookbook/justification-lab.md): Quebra Knuth–Plass com os espaços entre 0,8 e 1,6 vez o normal, ao lado de um controle guloso com linhas frouxas, isoladas e curtas marcadas a partir do VDT. · Nível 3 (Avançado) · Revistas e fanzines
