modules

geometor.bertrand_russell

Scholarly Book Codex and cross-corpus concordance for Bertrand Russell’s treatises on geometry.

Submodules

Attributes

__version__

Classes

ConcordanceEntry

Structured bidirectional concordance entry across Russell's 1897/1903 treatises and GEOMETOR.

ExternalLocus

Cross-corpus locus connecting Russell to Hoenen, Heath's Euclid, Pappus, Hilbert, or Wildberger.

RussellLocus

Locus reference inside one of Russell's geometric treatises (1897 or 1903).

Functions

compile_all([repo_root]) → dict[str, int]

Compile all SVG figures, Codex I (1903), Codex II (1897), and scholarly apparatus into docsrc/.

apparatus_slug(key) → str

Convert an apparatus key into the deterministic anchor slug used by publish.

find_concordance_by_corpus(corpus_query[, repo_root]) → list[ConcordanceEntry]

Return concordance entries referencing a given corpus substring (e.g. 'hoenen', 'euclid').

find_concordance_by_section(work, section[, repo_root]) → list[ConcordanceEntry]

Return concordance entries linked to a numbered section in '1903' or '1897'.

get_repo_root() → pathlib.Path

Return the root directory of the geometor/bertrand-russell repository.

load_apparatus_registries([repo_root]) → dict[str, dict[str, Any]]

Load citations.json, persons.json, and glossary.json from resources/.

load_concordance([repo_root]) → list[ConcordanceEntry]

Load and parse all entries from resources/bertrand_russell/concordance.json.

load_sources_manifest([repo_root]) → dict[str, Any]

Load resources/bertrand_russell/sources_manifest.json.

verify_source_checksums([repo_root]) → list[tuple[str, bool]]

Verify SHA-256 digests and byte lengths of all archived primary source files.

generate_all_diagrams([output_dir]) → list[pathlib.Path]

Generate all 9 vector SVG diagrams into docsrc/_static/diagrams/.

Package Contents

geometor.bertrand_russell.compile_all(repo_root: pathlib.Path | None = None) → dict[str, int]

Compile all SVG figures, Codex I (1903), Codex II (1897), and scholarly apparatus into docsrc/.

class geometor.bertrand_russell.ConcordanceEntry

Structured bidirectional concordance entry across Russell’s 1897/1903 treatises and GEOMETOR.

id: str
theme: str
russell_1903: RussellLocus
russell_1897: RussellLocus
external_loci: tuple[ExternalLocus, ...]
class geometor.bertrand_russell.ExternalLocus

Cross-corpus locus connecting Russell to Hoenen, Heath’s Euclid, Pappus, Hilbert, or Wildberger.

corpus: str
work: str
locus: str
relation: str
class geometor.bertrand_russell.RussellLocus

Locus reference inside one of Russell’s geometric treatises (1897 or 1903).

chapter: str
sections: tuple[str, ...]
pages: str
anchor: str
verbatim_excerpt: str = ''
geometor.bertrand_russell.apparatus_slug(key: str) → str

Convert an apparatus key into the deterministic anchor slug used by publish.

geometor.bertrand_russell.find_concordance_by_corpus(corpus_query: str, repo_root: pathlib.Path | None = None) → list[ConcordanceEntry]

Return concordance entries referencing a given corpus substring (e.g. 'hoenen', 'euclid').

geometor.bertrand_russell.find_concordance_by_section(work: str, section: int | str, repo_root: pathlib.Path | None = None) → list[ConcordanceEntry]

Return concordance entries linked to a numbered section in '1903' or '1897'.

geometor.bertrand_russell.get_repo_root() → pathlib.Path

Return the root directory of the geometor/bertrand-russell repository.

geometor.bertrand_russell.load_apparatus_registries(repo_root: pathlib.Path | None = None) → dict[str, dict[str, Any]]

Load citations.json, persons.json, and glossary.json from resources/.

geometor.bertrand_russell.load_concordance(repo_root: pathlib.Path | None = None) → list[ConcordanceEntry]

Load and parse all entries from resources/bertrand_russell/concordance.json.

geometor.bertrand_russell.load_sources_manifest(repo_root: pathlib.Path | None = None) → dict[str, Any]

Load resources/bertrand_russell/sources_manifest.json.

geometor.bertrand_russell.verify_source_checksums(repo_root: pathlib.Path | None = None) → list[tuple[str, bool]]

Verify SHA-256 digests and byte lengths of all archived primary source files.

geometor.bertrand_russell.generate_all_diagrams(output_dir: pathlib.Path | None = None) → list[pathlib.Path]

Generate all 9 vector SVG diagrams into docsrc/_static/diagrams/.

geometor.bertrand_russell.__version__ = '0.1.0'