summaryrefslogtreecommitdiff
path: root/test/test_validate.ml
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-08-26 13:08:55 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-08-26 13:08:55 +0200
commit1a3046e2a3793fe52ec518818b19a6f15aadbb75 (patch)
tree83bb4bcc6d646b74093d18324076c32e2fede74b /test/test_validate.ml
parent37a3d4ee06717c24ad07db2bc365cad587ad6d5f (diff)
downloadcolitur-1a3046e2a3793fe52ec518818b19a6f15aadbb75.tar.gz
colitur-1a3046e2a3793fe52ec518818b19a6f15aadbb75.zip
fix(of): print the OF's own transcribed Latin/English names, not EF's
day_line_of/readings_line_of resolved every displayed name through lang/la.ini -- data documented as "transcribed from the 1962 Missale Romanum", i.e. EF vocabulary, keyed on slug. 18 of 222 shipped OF sanctoral slugs collide with an EF slug there and all 18 printed the WRONG (1962) title (e.g. "S. Marthae Virg.", a rank word the 1969 reform abolished, silently overriding amendment 011's own "Ss. Marthae, Mariae et Lazari"); the other 204 had no entry and degraded to a bare slug, so none of the 208 titles calendar-2002.sexp itself transcribes (cited against the 2002 Missal) was ever reachable. Add observed_name_of: prefer the observed celebration's own Celebration.names (looked up by the requested language code), fall back to the lang/*.ini table only on a miss. Under --raw this is a no-op (Lang.raw's own code, "raw", is not a valid 2-letter ISO code, so the names lookup always misses and falls through to the identity table exactly as before). EF's day_line/readings_line are untouched -- EF's Celebration.names is almost always empty by design, lang/la.ini is its real, independently-cited name table. Regression net, two layers: test_lang_coverage.ml gains a test walking the real assembled OF layer's entries, asserting that every genuine lang/la.ini collision resolves to the OF's own name, never the EF table's; test/cli.t pins one real collision (Martha, 29 July) through the actual CLI in both la and en.
Diffstat (limited to 'test/test_validate.ml')
0 files changed, 0 insertions, 0 deletions