geometor.altshiller_court.hero_figures¶
Exact symbolic .euclid-graphic hero diagram generator for College Geometry.
Constructs canonical synthetic configurations for Chapters I–X, Frontmatter,
Historical Notes, and Section containers using 100% exact SymPy symbolic algebra
via geometor.model.Model (auto_intersect=False, zero sp.Float
coordinates), verifies their defining theorems deductively (assert_collinear,
assert_perpendicular, assert_parallel, assert_concyclic, assert_equal,
and cross_ratio), and projects them onto theme-adaptive .euclid-graphic SVGs.
Attributes¶
Classes¶
Declarative visual specification backed by an exact |
|
Lazy-cached builder and emitter of symbolic and calibrated hero |
Functions¶
|
Project an exact |
|
Select the exact symbolic hero key matching |
Module Contents¶
- class geometor.altshiller_court.hero_figures.SymbolicHeroSpec¶
Declarative visual specification backed by an exact
geometor.model.Model.- key: str¶
- caption: str¶
- alt: str¶
- model: geometor.model.Model¶
- points: list[tuple[str, sympy.geometry.Point, str]] = []¶
- elements: list[dict[str, Any]] = []¶
- label_nudges: dict[str, tuple[float, float]]¶
- geometor.altshiller_court.hero_figures.SYMBOLIC_HERO_BUILDERS: dict[str, collections.abc.Callable[[], SymbolicHeroSpec]]¶
- geometor.altshiller_court.hero_figures.render_symbolic_hero_svg(spec: SymbolicHeroSpec, out_svg_path: pathlib.Path, folio_id: str = 'hero', vw: float = 420.0, vh: float = 280.0, pad: float = 34.0) dict[str, Any]¶
Project an exact
SymbolicHeroSpeconto an SVG viewport viacompile_graphic_svg.
- geometor.altshiller_court.hero_figures.CHAPTER_HERO_KEYS: dict[str, str]¶
- geometor.altshiller_court.hero_figures.CALIBRATED_CHAPTER_HEROES: dict[str, tuple[str, str, str, str]]¶
- geometor.altshiller_court.hero_figures.CALIBRATED_SECTION_HEROES: dict[tuple[str, str], tuple[str, str, str, str]]¶
- geometor.altshiller_court.hero_figures.resolve_section_hero_key(chapter_slug: str, sec_code: str) str¶
Select the exact symbolic hero key matching
(chapter_slug, sec_code).
- class geometor.altshiller_court.hero_figures.HeroFigureRegistry(volume_dir: pathlib.Path)¶
Lazy-cached builder and emitter of symbolic and calibrated hero
.euclid-graphicSVGs.- volume_dir¶
- get_spec(key: str) SymbolicHeroSpec¶
- write_symbolic_hero(key: str, dest_dir: pathlib.Path, filename: str = 'hero.svg') tuple[str, str, str]¶
Write
<dest_dir>/<filename>and return(filename, caption, alt).
- write_chapter_hero(chapter_slug: str, dest_dir: pathlib.Path, filename: str = 'hero.svg') tuple[str, str, str]¶
Emit calibrated folio SVG if configured for
chapter_slug, else exact symbolic hero.
- write_section_hero(chapter_slug: str, sec_slug: str, sec_code: str, dest_dir: pathlib.Path, filename: str = 'hero.svg') tuple[str, str, str]¶
Emit calibrated folio SVG if configured for
(chapter_slug, sec_slug), else exact symbolic hero.