Skip to content

Instantly share code, notes, and snippets.

@igneus
Created August 18, 2023 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igneus/deb03a447e49b5f67acf500f524b1b56 to your computer and use it in GitHub Desktop.
Save igneus/deb03a447e49b5f67acf500f524b1b56 to your computer and use it in GitHub Desktop.
How many celebrations of rank of a feast or higher have been added since the 1969 calendar reform?
# How many celebrations of rank of a feast or higher have been added
# since the 1969 calendar reform?
# (Data for the discussion at https://www.facebook.com/Liturgie.cz/posts/pfbid02g7wBtAEfsuwjZDoebsqsjnu5VHAyx42txiRqreZrRZ826mxPPzGfjp48PAjgyZXal )
require 'calendarium-romanum/cr'
require 'pp'
class CalendariumRomanum::Sanctorale
def to_h
r = {}
each_day do |date, celebrations|
celebrations.each do |c|
raise 'symbol missing' if c.symbol.nil?
raise 'symbol not unique' if r.has_key? c.symbol
r[c.symbol] = c
end
end
r
end
end
original = CR::Data::GENERAL_ROMAN_LATIN_1969.load.to_h
now = CR::Data::GENERAL_ROMAN_LATIN.load.to_h
FEAST = CR::Ranks::FEAST_PROPER # lowest feast rank
added = now.select do |symbol, celebration|
celebration.rank >= FEAST &&
((!original.has_key?(symbol)) ||
original[symbol].rank < FEAST)
end
pp added
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment