Skip to content

Commit

Permalink
Merge pull request #4241 from FAJ-Munich/cistercian-clean
Browse files Browse the repository at this point in the history
Deployment of Cistercian (as far as developed)
  • Loading branch information
APMarcello3 authored Jan 3, 2025
2 parents 7f03896 + fe1f0aa commit 7d56aee
Show file tree
Hide file tree
Showing 448 changed files with 16,759 additions and 9,774 deletions.
6 changes: 6 additions & 0 deletions web/cgi-bin/DivinumOfficium/LanguageTextTools.pm
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,16 @@ sub prayer {
my $lang = shift;
my $version = $main::version;

my $prayer =
$_prayers{"$lang$version"}{$name}
|| $_prayers{"English$version"}{$name}
|| $_prayers{"Latin$version"}{$name}
|| $name;

if ($version =~ /cist/i && $name !~ /Pater Ave|Incipit|clara|bene.*Final/i) {
$prayer =~ s/\++ //g;
}
return $prayer;
}

#*** rubric($name)
Expand Down
17 changes: 13 additions & 4 deletions web/cgi-bin/DivinumOfficium/SetupString.pl
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@
our %setupstring_caches_by_version;

# Pseudo constants to be used in vero() sub
# Commone Summorum Pont. introduced in 1942 only (=> not for Monastic 1930)
# Commune Summorum Pont. introduced in 1942 only (=> not for Monastic 1930)
my %subjects = (
rubricis => sub {$version},
rubrica => sub {$version},
tempore => \&get_tempus_id,
missa => sub { our $missanumber },
communi => sub { {summpont => ($version =~ /1960/ || $version =~ /1955/ || $version =~ /^Divino/)} },
communi => sub { our $version },
'die' => \&get_dayname_for_condition,
feria => sub { our $dayofweek + 1 },
commune => sub {$commune},
officio => sub { $dayname[1]; },
);
my %predicates = (
tridentina => sub { shift =~ /Trident/ },
Expand All @@ -36,7 +38,8 @@
tertia => sub { shift == 3 },
longior => sub { shift == 1 },
brevior => sub { shift == 2 },
'summorum pontificum' => sub { ${shift()}{summpont} },
'summorum pontificum' => sub { shift =~ /^Divino|1955|1960/ },
feriali => sub { shift =~ /feria|vigilia/i; },
);

# Constants specifying which @-directives to resolve when calling &setupstring.
Expand Down Expand Up @@ -203,6 +206,7 @@ sub get_dayname_for_condition {
$month == 11
&& ($day == 2 || ($day == 3 && $dayofweek == 1) || ($day == 1 && day_of_week(11, 1, $year) != 6 && $vesp_or_comp))
);
return 'Nicolai' if $month == 12 && $day == 6;
return '';
}

Expand Down Expand Up @@ -662,7 +666,12 @@ ($$;$)
|| $fname =~ m{^Tempora[^/]*/Pent0[1-5]})
{
%s = %{setupstring($lang, $fname)};
if ($version =~ /196/ && $s{Rank} =~ /Feria.*?(III|IV) Adv/i && $day > 16) { $s{Rank} =~ s/;;2.1/;;4.9/; }

if ($version =~ /196/ && $s{Rank} =~ /Feria.*?(III|IV) Adv/i && $day > 16) {
$s{Rank} =~ s/;;2\.1/;;4.9/;
} elsif ($version =~ /cist/i && $s{Rank} =~ /Feria.*?(III|IV) Adv/i && $day > 16) {
$s{Rank} =~ s/;;1\.15/;;2.1/;
}
return \%s;
}

Expand Down
Loading

0 comments on commit 7d56aee

Please sign in to comment.