diff options
| -rw-r--r-- | cmd/clectio-gen/main.go | 8 | ||||
| -rw-r--r-- | internal/bible/books.ini | 4 |
2 files changed, 10 insertions, 2 deletions
diff --git a/cmd/clectio-gen/main.go b/cmd/clectio-gen/main.go index 167ed53..9a2930d 100644 --- a/cmd/clectio-gen/main.go +++ b/cmd/clectio-gen/main.go @@ -96,6 +96,11 @@ func main() { fmt.Fprintln(os.Stderr, "usage: clectio-gen <new|old> <startYear> <endYear> <outdir>") os.Exit(2) } + // Hermetic: point config at a nonexistent path so the generator always uses + // lectio's EMBEDDED calendar, lectionary and book table -- never the running + // user's ~/.config/lectio (whose books.ini/calendars/etc. could be stale and + // would silently change or drop readings). + os.Setenv("LECTIO_CONFIG", filepath.Join(os.TempDir(), "clectio-gen-no-such-dir", "config.ini")) form := os.Args[1] // "new" (OF) or "old" (EF) lect := "new" tag := "of" @@ -170,6 +175,9 @@ func main() { } if id := internReading(secEN, secLA); id >= 0 { rids = append(rids, id) + } else { + fmt.Fprintf(os.Stderr, "clectio-gen: %s DROP part=%s ref=%q cite=%q\n", + ds, secEN.PartID, resolveRef(secEN, form), secEN.Citation) } } dy := day{ diff --git a/internal/bible/books.ini b/internal/bible/books.ini index a5bd711..6784722 100644 --- a/internal/bible/books.ini +++ b/internal/bible/books.ini @@ -32,7 +32,7 @@ Ruth = Ru, Ruth 1 Chronicles = 1 Chr, 1 Chronicles 2 Chronicles = 2 Chr, 2 Chronicles Ezra = Ezra, Ezra -Nehemiah = Neh, Nehemiah +Nehemiah = Neh, 2 Esdras, 2 Esd, Nehemiah Tobit = Tob, Tobit Judith = Jdt, Judith Esther = Esth, Esther @@ -51,7 +51,7 @@ Lamentations = Lam, Lamentations Baruch = Bar, Baruch Ezekiel = Ezek, Ezech, Ezekiel Daniel = Dan, Daniel -Hosea = Hos, Hosea +Hosea = Hos, Osee, Hosea Joel = Jl, Joel Amos = Am, Amos Obadiah = Obad, Obadiah |
