geometor.fundamentals.catalog¶
Unified catalog of all 55 topics (F.1–F.55) and 353 folio transcriptions.
Combines TOPICS_1_TO_28 (catalog_a.py) and TOPICS_29_TO_55 (catalog_b.py) into TOPICS_CATALOG and provides lookup and diplomatic folio transcription helpers for the archival ingestion and Book Codex compilation pipelines.
Attributes¶
Functions¶
|
Return the topic dictionary for 1-based topic number num (1..55). |
|
Return the topic dictionary for topic identifier F.<num>. |
|
Build the diplomatic RST transcription and editorial notes for a single folio. |
Module Contents¶
- geometor.fundamentals.catalog.get_topic_by_num(num: int) dict[str, object]¶
Return the topic dictionary for 1-based topic number num (1..55).
- Parameters:
num – Topic number from 1 to 55.
- Returns:
Matching topic dictionary from TOPICS_CATALOG.
- Raises:
KeyError – If num is outside 1..55.
- geometor.fundamentals.catalog.get_topic_by_id(topic_id: str) dict[str, object]¶
Return the topic dictionary for topic identifier F.<num>.
- Parameters:
topic_id – Topic identifier such as ‘F.1’ or ‘F.52’.
- Returns:
Matching topic dictionary from TOPICS_CATALOG.
- Raises:
KeyError – If topic_id is not found.
- geometor.fundamentals.catalog.get_folio_transcription(topic: dict[str, object], folio_id: str, page_index: int, total_pages: int, original_filename: str) dict[str, str]¶
Build the diplomatic RST transcription and editorial notes for a single folio.
- Parameters:
topic – Topic dictionary from TOPICS_CATALOG.
folio_id – 4-digit sequential folio identifier (0001..`0353`).
page_index – 1-based index of this scan within the topic folder.
total_pages – Total number of scanned pages in this topic folder.
original_filename – Original .jpg filename from Fred W. Seelig’s scans.
- Returns:
Dictionary with keys ‘heading’, ‘diplomatic_rst’, and ‘notes_rst’.