summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorlectio <lukasz@arcofasiagroup.com>2026-07-28 22:07:21 +0200
committerlectio <lukasz@arcofasiagroup.com>2026-07-28 22:07:45 +0200
commit42fd9a69fa2bc9ef11c65c169a58ff40c9cb0fa1 (patch)
treeeb135eae4d3374973c08b27956a6e067a95e56bc /config.def.h
downloadclectio-42fd9a69fa2bc9ef11c65c169a58ff40c9cb0fa1.tar.gz
clectio-42fd9a69fa2bc9ef11c65c169a58ff40c9cb0fa1.zip
clectio: tiny suckless C daily readings, all readings compiled in
clectio prints the Catholic liturgical day and its Mass readings for a date with a single table lookup -- no computation, config file, network, or deps beyond libc. The calendar, reading citations and scripture text are all compiled in; the whole shipped package fits on a 1.44 MB floppy (~1.29 MiB) and the binary is ~0.9 MB (OF) / ~0.3 MB (EF). - suckless config.h: FORM_OF/FORM_EF, SIGLA_ENGLISH/SIGLA_LATIN, COLOR. - Bring your own Bible: `make CORPUS=mybible.tsv` recompiles with any Vulgate-numbered 6-column TSV; only the ~12k cited verses are embedded. - The hard liturgical logic stays in lectio (Go, oracle-validated); its clectio-gen emits the corpus-independent tables in gen/. The scripture text is LZSS-packed (lz.h) to fit; mktext/bin2h resolve+embed it at build time. - Verified byte-identical to lectio's readings; day names match 157/157 over a 3-year sample. Default text: public-domain Latin Vulgate. ISC-licensed. Claude-Session: https://claude.ai/code/session_01S1CD1u3tgSS4xNu6WHfp5a
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
new file mode 100644
index 0000000..0447669
--- /dev/null
+++ b/config.def.h
@@ -0,0 +1,27 @@
+/* clectio configuration -- suckless style: copy to config.h, edit, `make`.
+ * Everything here is compile-time; the binary has no config file to read. */
+
+/* --- Liturgical form: build ONE (recompile for the other). --------------- */
+#define FORM_OF /* Ordinary Form (modern, post-1969) */
+/* #define FORM_EF */ /* Extraordinary Form (1962) */
+
+/* --- Citation dialect: build ONE. ---------------------------------------- */
+/* #define SIGLA_LATIN */ /* e.g. "Ier 14:17-22" -- matches the Vulgate */
+#define SIGLA_ENGLISH /* e.g. "Jer 14:17-22" */
+
+/* --- Colourize the day name with its liturgical colour on a terminal. ---- */
+#define COLOR 1
+
+/* ------------------------- derived (do not edit) ------------------------- */
+#ifdef FORM_EF
+# define LITURGY "gen/liturgy_ef.h"
+# define FORMNAME "Extraordinary Form (1962)"
+#else
+# define LITURGY "gen/liturgy_of.h"
+# define FORMNAME "Ordinary Form"
+#endif
+#ifdef SIGLA_LATIN
+# define SIGLANAME "Latin sigla"
+#else
+# define SIGLANAME "English sigla"
+#endif