geometor.altshiller_court.assemble

Deterministic folio-to-codex assembler for Nathan Altshiller-Court’s College Geometry (1952).

Verifies and compiles the 334-folio archival layer under resources/college_geometry/ into the Digital Scriptorium Book Codex under docsrc/college_geometry/:

  • Audits resources/college_geometry/structure_map.json against all 334 scans (326 transcribed content folios + 8 blank versos and Dover front/back covers).

  • Prunes superseded routine diagram PNGs and .inverted.png duplicates from docsrc/college_geometry/ where calibrated .euclid-graphic SVGs are present, preserving 100% of archival crops untouched in resources/college_geometry/.

  • Assembles visually transcribed folio text into all Chapter II–XII section pages while preserving the decomposed item-per-page architecture of Frontmatter, Chapter I, and Chapter III Sections A–C.

  • Migrates all inline .. folio:: directives and en-dash folio ranges into explicit comma-separated 4-digit :folios: frontmatter for footer-only nav.book-footer-folios source links, keeping reading prose unbroken.

  • Injects auditable GitHub PR Folio Audit Trail & Scholarly Provenance tables into every commentary.rst companion track and synchronizes folio_reviews.json.

Attributes

EDITION_SLUG

GH_ORG

GH_REPO

GH_BRANCH

Functions

assemble_edition([repo_root, check, notes_only]) → dict[str, Any]

Assemble and verify the GEOMETOR Altshiller-Court Book Codex deterministically.

main([argv]) → int

CLI entry point for python -m geometor.altshiller_court.assemble.

Module Contents

geometor.altshiller_court.assemble.EDITION_SLUG = 'college_geometry'
geometor.altshiller_court.assemble.GH_ORG = 'geometor'
geometor.altshiller_court.assemble.GH_REPO = 'altshiller-court'
geometor.altshiller_court.assemble.GH_BRANCH = 'main'
geometor.altshiller_court.assemble.assemble_edition(repo_root: pathlib.Path | str | None = None, *, check: bool = False, notes_only: bool = False) → dict[str, Any]

Assemble and verify the GEOMETOR Altshiller-Court Book Codex deterministically.

Parameters:
  • repo_root – Repository root directory (defaults to package ancestor).

  • check – If True, report drift without writing any files.

  • notes_only – If True, update/verify only provenance tables in commentary tracks.

Returns:

Structured summary dictionary consumed by publish assemble.

geometor.altshiller_court.assemble.main(argv: list[str] | None = None) → int

CLI entry point for python -m geometor.altshiller_court.assemble.