summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/main.ml14
1 files changed, 12 insertions, 2 deletions
diff --git a/bin/main.ml b/bin/main.ml
index e00e020..f957190 100644
--- a/bin/main.ml
+++ b/bin/main.ml
@@ -388,7 +388,16 @@ let readings_line ~lang ~sigla (d : (Rite_ef.Vocab_ef.season, Rite_ef.Vocab_ef.r
asserted by {!Colitur_kernel.Validate}'s own ["formulary"] check -- but
the type itself permits [None] (a rite with no lectionary), so this
prints "-" rather than pattern-matching partially and crashing on a
- guarantee that belongs to DATA, not to the type. *)
+ guarantee that belongs to DATA, not to the type.
+
+ Task 5 (celebrant-rubrics-phase1): a fourth column, whether the Creed is
+ said (EF: RG 475-476, {!Rite_ef.Rubrics_ef.creed}) -- "true"/"false"
+ ([string_of_bool], not "yes"/"no" or "1"/"0": this row has no other
+ boolean column to be consistent with, so OCaml's own literal is the
+ least surprising choice for a machine-readable field). Unlike
+ [formulary], [d.creed] is a plain [bool] with no [option] to guard: a
+ rite that has not implemented the rule answers [false] outright, so
+ there is no third "unknown" state this column could ever need to print. *)
let rubrics_line (d : (Rite_ef.Vocab_ef.season, Rite_ef.Vocab_ef.rank) Colitur_kernel.Liturgical_day.t)
=
let said, via =
@@ -398,7 +407,8 @@ let rubrics_line (d : (Rite_ef.Vocab_ef.season, Rite_ef.Vocab_ef.rank) Colitur_k
Colitur_kernel.Mass_formulary.source_to_string f.Colitur_kernel.Mass_formulary.via )
| None -> ("-", "-")
in
- Printf.printf "%s\t%s\t%s\n" (D.to_iso8601 d.Colitur_kernel.Liturgical_day.date) said via
+ Printf.printf "%s\t%s\t%s\t%s\n" (D.to_iso8601 d.Colitur_kernel.Liturgical_day.date) said via
+ (string_of_bool d.Colitur_kernel.Liturgical_day.creed)
(* One civil year, Jan 1 - Dec 31, matching [temporal_report]'s own scan --
NOT one liturgical year: [Colitur_kernel.Calendar.year] resolves a single