Ingest della tesi: concetti, composti, tecniche, difetti noti e bibliografia

- Aggiunge 10 pagine concetto, 5 composti e 6 tecniche, riorganizzate per argomento con tesi_loc e righe di raw/tesi.md
- Incorpora le figure (embed e link alle note) nelle pagine pertinenti
- Aggiunge overview, mappa wiki/tesi.md, difetti-noti (incoerenze rilevate) e bibliografia generata (scripts/gen_bibliografia.py)
- Rigenera le note figura con avviso per caption_mismatch; aggiorna CLAUDE.md, index.md e log.md

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
davideandClaude Sonnet 5.5 committed 2026-10-09 19:21:52 +02:00
1 parent 0f495b198e
commit af88e23d3a
41 files changed
+1994 -23

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
"""Genera wiki/bibliografia.md da raw/bibliografia.json (una voce per riferimento, link alla scheda in raw/fonti/).
Uso: python scripts/gen_bibliografia.py (rigenera tutto; pagina derivata, non si modifica a mano)."""
import json
from pathlib import Path
root = Path(__file__).resolve().parent.parent
refs = json.loads((root / "raw/bibliografia.json").read_text(encoding="utf8"))["references"]
out = [
"---", "title: Bibliografia", "type: overview", "tags: [bibliografia]",
"created: 2026-10-09", "updated: 2026-10-09", 'tesi_loc: "r.1293-1411"', "derivata: true", "status: draft", "---", "",
"# Bibliografia", "",
"Elenco dei 59 riferimenti della tesi (`text` = testo originale). Ogni voce rimanda alla scheda in `raw/fonti/` e alle righe/sezioni di `raw/tesi.md` in cui è citata. Difetti noti: [[difetti-noti]].", "",
"| N | Riferimento (testo della tesi) | Citato in (sezioni; righe) | Scheda | Stato | DOI verificato | Flag |",
"| --- | --- | --- | --- | --- | --- | --- |",
]
for r in refs:
f = r["fonte"]
card = Path(f["file"]).stem
text = r["text"].replace("|", "\\|")
secs = ", ".join(r["cited_in_sections"]) or "-"
lines = ", ".join(map(str, r["cited_in_md_lines"])) or "-"
out.append(
f"| {r['id']} | {text} | §{secs}; r.{lines} | [[{card}\\|{r['id']}]] | {f.get('stato', '-')} | "
f"{f.get('doi_verificato') or '-'} | {', '.join(r.get('quality_flags', [])) or '-'} |"
)
out += ["", "## Collegamenti", "- [[tesi]]", ""]
(root / "wiki/bibliografia.md").write_text("\n".join(out), encoding="utf8")
print(f"{len(refs)} voci")