veromary / divinum-officium

Automatically exported from code.google.com/p/divinum-officium
0 stars 0 forks source link

Add support for conditionals to the data files #76

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Adding support to the data files for conditional blocks testing rubrics etc. 
would make it possible to express many variations in the offices more concisely.

Regarding syntax, perhaps something vaguely like the C preprocessor? And for 
supported conditions, I can imagine testing the active rubric set and the 
current temporal season. Should there be anything else?

Original issue reported on code.google.com by igregord on 16 Nov 2011 at 1:48

GoogleCodeExporter commented 9 years ago

Original comment by igregord on 16 Nov 2011 at 1:59

GoogleCodeExporter commented 9 years ago

Original comment by igregord on 16 Nov 2011 at 2:11

GoogleCodeExporter commented 9 years ago
How about testing "any" of the parameters? Something like

[Rule version~1960]

then the (already) [Rank1960] would have a synthetic replacement.

Original comment by a...@malton.name on 26 Nov 2011 at 4:43

GoogleCodeExporter commented 9 years ago
There's an implementation in the getrefs branch, which I should be able to 
merge to trunk soon. If it became necessary, it would be reasonably 
straightdorward to modify it to allow arbitrary(-ish) tests. As it is 
currently, the above could be accomplished by:

[Rule]
common stuff
%if rubricset >= R_RUBRICS1960
something
%else
something else
%endif

Original comment by igregord on 26 Nov 2011 at 10:33

GoogleCodeExporter commented 9 years ago
Merged to trunk in r375. The scheme described above was superseded. Will be 
taught more Latin as necessary. Documentation will follow at some point.

Original comment by igregord on 3 Jan 2012 at 10:46

GoogleCodeExporter commented 9 years ago

Original comment by canon.mi...@gmail.com on 20 Jun 2012 at 9:38

GoogleCodeExporter commented 9 years ago

Original comment by igregord on 29 Oct 2012 at 6:19