aboutsummaryrefslogtreecommitdiff
path: root/templates/ef/ordo.adoc
blob: f250426c78dc2f3476afa3d2aa56135334a7124b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// colitur ordo booklet -- AsciiDoc. flavour: none (see man colitur-overlay)
// AsciiDoc's own metacharacters (*, _, +, `, ...) are context-dependent, so
// this template's flavour deliberately does NOT escape interpolated values.
// A feast name containing `*` or `_` will render as emphasis. That is a
// documented limitation, not a bug to fix.
//
// The observed day's own display name is a PLAIN resolved string
// (View.of_days, Task 5), not a lang-keyed object -- there is no
// dotted-la-with-slug-fallback idiom to write here any more; a
// commemoration entry carries its own resolved display name too, so a
// commemoration line no longer prints the bare slug. Every fixed label
// (Ordo, Epistle, Gospel, Commemoration) comes from the view's term
// vocabulary rather than being written into this file, so a translated
// booklet needs no template edit.
//
// Defect 2: AsciiDoc has no page concept either -- mainly needed the same
// header treatment as the paginated flavours. A === per week under each
// month's ==, so :toc: now nests month/week the way ordo.tex's own
// hand-built TOC and ordo.typ's outline already do. Walks
// months>weeks>days (the week's own padded, in-month-guarded day list) in
// place of the old months>days flat loop over the month's own flat one.
// Each week heading is its own Roman numeral plus the span of in-month
// dates it covers (e.g. Hebdomada I (Ian 1-2)), not the month name again
// -- the month's own == heading above already establishes it once.
= {{term.ordo}} {{year}} · {{rite_name}}
:toc:

{{#months}}
== {{name}}

{{#weeks}}
=== {{term.week}} {{num_roman}} ({{month_abbr}} {{first_dom}}{{^single_day}}–{{last_dom}}{{/single_day}})

{{#days}}{{#in_month}}
*{{dom}}* {{name}} +
{{rank}} · {{colour}} +
{{#first}}{{term.epistle}} {{first}} {{/first}}{{#gospel}}{{term.gospel}} {{gospel}}{{/gospel}}
{{#comms}} +
{{term.commemoration}} {{name}}{{/comms}}

{{/in_month}}{{/days}}{{/weeks}}{{/months}}