geometor.altshiller_court.compile_edition

Book Codex compiler and scholarly apparatus builder for College Geometry (1952).

Compiles verified diplomatic folio transcriptions (resources/college_geometry/<dir>/<NNNN>.rst and <NNNN>.notes.rst), diagram crops (<NNNN>.g<k>.png), interactive SVGs (<NNNN>.g<k>.svg), structure_map.json, and apparatus registries (persons.json, citations.json, glossary.json, folio_reviews.json) into a multi-level Euclid-style Book Codex (Book -> Chapters -> Sections -> Items) with .. collection:: navigation and Commentary companion tracks under docsrc/college_geometry/.

Attributes

CHAPTER_OVERVIEWS

CHAPTER_COMMENTARY

NON_LETTERED_SECTION_CODES

Functions

apparatus_slug(key) → str

Deterministic anchor slug matching photon_platform.publish.roles.geometry._apparatus_slug.

build_chapter_unit(chapter, chapter_folios, ...) → dict[str, Any]

Build <slug>/index.rst, <slug>/commentary.rst, and nested section/item collections.

build_apparatus_pages(volume_dir, book_doc_dir, ...) → dict[str, int]

Generate bibliography.rst, persons.rst, glossary.rst, and scan-inventory.rst.

build_book_index(structure, apparatus_counts, book_doc_dir) → None

Write docsrc/college_geometry/index.rst Book Codex master landing page.

compile_edition(repo_root) → dict[str, Any]

Compile the complete College Geometry Book Codex into docsrc/college_geometry/.

get_edition_status(repo_root) → dict[str, Any]

Return a diagnostic summary of ingested scans, transcriptions, graphics, SVGs, and reviews.

Module Contents

geometor.altshiller_court.compile_edition.apparatus_slug(key: str) → str

Deterministic anchor slug matching photon_platform.publish.roles.geometry._apparatus_slug.

geometor.altshiller_court.compile_edition.CHAPTER_OVERVIEWS: dict[str, str]
geometor.altshiller_court.compile_edition.CHAPTER_COMMENTARY: dict[str, str]
geometor.altshiller_court.compile_edition.NON_LETTERED_SECTION_CODES
geometor.altshiller_court.compile_edition.build_chapter_unit(chapter: dict[str, Any], chapter_folios: list[dict[str, Any]], volume_dir: pathlib.Path, book_doc_dir: pathlib.Path, folio_to_anchor: dict[str, str], hero_registry: geometor.altshiller_court.hero_figures.HeroFigureRegistry) → dict[str, Any]

Build <slug>/index.rst, <slug>/commentary.rst, and nested section/item collections.

geometor.altshiller_court.compile_edition.build_apparatus_pages(volume_dir: pathlib.Path, book_doc_dir: pathlib.Path, structure: dict[str, Any], folio_to_anchor: dict[str, str]) → dict[str, int]

Generate bibliography.rst, persons.rst, glossary.rst, and scan-inventory.rst.

geometor.altshiller_court.compile_edition.build_book_index(structure: dict[str, Any], apparatus_counts: dict[str, int], book_doc_dir: pathlib.Path) → None

Write docsrc/college_geometry/index.rst Book Codex master landing page.

geometor.altshiller_court.compile_edition.compile_edition(repo_root: pathlib.Path) → dict[str, Any]

Compile the complete College Geometry Book Codex into docsrc/college_geometry/.

geometor.altshiller_court.compile_edition.get_edition_status(repo_root: pathlib.Path) → dict[str, Any]

Return a diagnostic summary of ingested scans, transcriptions, graphics, SVGs, and reviews.