summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-08-20 16:01:39 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-08-20 16:01:39 +0200
commit9dfa264f2941f1ca38eff08b6157a94d332cffbd (patch)
tree3c88ace24b4f45f0098f9ef7cf8911582d271bd6 /lang
parentc02e77b73aad34fb5a672a5234a66d64f23b45ce (diff)
downloadcolitur-9dfa264f2941f1ca38eff08b6157a94d332cffbd.tar.gz
colitur-9dfa264f2941f1ca38eff08b6157a94d332cffbd.zip
feat(lang): traditions.ini, and its install rule
Which book a reference denotes does not vary by language, so it lives in its own file rather than in la.ini beside [weekday]. Six mappings, not four: Osee/Jonas are the same question as 3 Kings in transliteration form. The install rule is added in the same commit deliberately -- lang/ once shipped without one, so the feature worked from the source tree and was broken once installed. bin/dune gains colitur_citation as a linked library, needed for the new loader; lang_list's directory scan now excludes traditions.ini, which is not a language file and does not parse as one.
Diffstat (limited to 'lang')
-rw-r--r--lang/dune3
-rw-r--r--lang/traditions.ini21
2 files changed, 23 insertions, 1 deletions
diff --git a/lang/dune b/lang/dune
index 057e95a..929dd42 100644
--- a/lang/dune
+++ b/lang/dune
@@ -14,4 +14,5 @@
(package colitur)
(files
(la.ini as lang/la.ini)
- (en.ini as lang/en.ini)))
+ (en.ini as lang/en.ini)
+ (traditions.ini as lang/traditions.ini)))
diff --git a/lang/traditions.ini b/lang/traditions.ini
new file mode 100644
index 0000000..e2d53ab
--- /dev/null
+++ b/lang/traditions.ini
@@ -0,0 +1,21 @@
+; lang/traditions.ini -- which book a reference DENOTES.
+;
+; Separate from a language file's [bible] section, which decides what a book
+; is CALLED: naming varies by language, this does not. "Modern numbering" is
+; the same decision in Latin, Polish and English.
+;
+; The DEFAULT is [vulgate], as the 1962 Missal prints it. colitur never
+; renumbers unless a tradition is chosen explicitly.
+;
+; Ids follow the Vulgate structure, because that is what the shipped data is.
+
+[vulgate]
+; identity -- deliberately empty
+
+[modern]
+kings_3 = kings_1
+kings_4 = kings_2
+esdras_2 = nehemiah
+ecclesiasticus = sirach
+osee = hosea
+jonas = jonah