Update card production workflow and workspaces

This commit is contained in:
2026-09-26 10:42:05 -07:00
parent 5e49435127
commit c09f3b815c
549 changed files with 27659 additions and 64 deletions

View File

@@ -0,0 +1,30 @@
#!/usr/bin/env python3
"""Assemble Ezekiel with the user-reviewed, card-local three-line verse fit."""
from pathlib import Path
import sys
ROOT = Path(__file__).resolve().parent
REPO = next(p for p in ROOT.parents if (p / "docs/card-layer-pipeline.md").is_file())
sys.path.insert(0, str(REPO / "tools/card-production"))
import assemble_card
shared_layout = assemble_card.resolve_verse_layout
def ezekiel_layout(layout, card):
result = shared_layout(layout, card)
local = card.get("verseRegion", {})
approval = local.get("approval", {})
assemble_card.check(approval.get("by") == "user" and approval.get("note"),
"Ezekiel's wider verse region requires user approval.")
assemble_card.check(local.get("rect") == [140, 2260, 1720, 300],
"Unexpected Ezekiel verse-region override.")
result["textRegions"]["verse"] = local["rect"]
return result
if __name__ == "__main__":
assemble_card.resolve_verse_layout = ezekiel_layout
assemble_card.assemble(ROOT)
import subprocess
subprocess.run([sys.executable, str(ROOT / "review/finish-mask-trial-01/install-selected.py")], check=True)