igneus / calendarium-romanum

liturgical calendar library (Roman Catholic, post-Vatican II)
50 stars 21 forks source link

Get rid of book-specific features? #35

Open igneus opened 6 years ago

igneus commented 6 years ago

Calendar#lectionary and #ferial_lectionary are features specific to the Mass lectionary, included without much thinking in an initial phase of the project. I am convinced more and more that they don't belong in the scope of this gem.

martindonat commented 5 years ago

Hi, thanks a lot for your contributions. I came across "Ordodo", because I looked for a way to compile a liturgical directorium in an easy way. The directoriums I know also include the readings for each day such as:

Christmas, In nocte [status, color etc] Reading 1: Jes 9,1–6 Ps: Ps 96,1–2.3 u. 11.12–13a (R: cf. Lk 2,11) Reading 2: Tit 2,11–14 Ev: Lk 2,1–14

As far as I can see there is no data about the readings included, right? What is this issue about? Did you plan to include it and now want to get rid of it? So I would like to have this feature, I think it's a reasonable extension, but I see that it is a lot of work and don't have an idea how to make it more efficient...

igneus commented 5 years ago

@martindonat Hi, this issue only expresses my intent to deprecate and remove two methods of the CalendariumRomanum::Calendar class, since they are out of the gem's scope. It's kind of RFC directed towards people whose applications possibly rely on the gem to express their opinions.

Currently neither calendarium-romanum, nor ordodo provide lectionary data. As for calendarium-romanum it would be out of scope - the gem deals with a single task, which is computing the liturgical calendar in the narrow sense: "what celebration should be celebrated on day D?"

The work on ordodo is currently stalled, but I would like to develop another gem on top of calendarium-romanum, dealing with specific features of various liturgical books (lectionary, missal, breviary), and integrate it in ordodo. Unfortunately I can't make any promises as for when (in terms of years) this eventually will be available. ordodo's initial design follows the shape of the ordo in Czech Republic, and our ordos in the recent decades haven't contained lectionary data. But I have opened an issue https://github.com/igneus/ordodo/issues/1 as a memo that support for the lectionary in ordodo would be useful (probably not only for you).

martindonat commented 5 years ago

Hmm. Maybe I could help. I have a bit of coding experience and what is needed would be just an XML or JSON which contains the data for each day of each year. Maybe there is already something similar, maybe there is a way to semiautomatically crawl the data from the web. So if you could specify what you are thinking about, I could try to help a bit.

igneus commented 5 years ago

For possible readers: lectionary-related discussion continued at ---> igneus/ordodo#1