Forward glossary provenance without transcript substitution
This commit is contained in:
@@ -355,6 +355,11 @@ def render_glossary_terms(entries: Iterable[GlossaryEntry]) -> list[str]:
|
||||
return rendered
|
||||
|
||||
|
||||
def glossary_alias_mapping(entries: Iterable[GlossaryEntry]) -> dict[str, str]:
|
||||
"""Return explicit alias configuration for provenance, not substitution."""
|
||||
return {alias: entry.canonical_term for entry in entries for alias in entry.aliases}
|
||||
|
||||
|
||||
def _timestamp() -> str:
|
||||
return datetime.now(UTC).isoformat(timespec="seconds")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user