ChoralWiki talk:Seasonal music

From ChoralWiki
Revision as of 22:38, 5 February 2020 by Richard Mix (talk | contribs) (→‎Translation: code needs translating too!)
Jump to navigation Jump to search

Update guidelines

This is week 17.

Week number calculation is based on the ISO 8601 International Standard:

  • Weeks start on a Monday
  • Weeks are measured W01 to W52/W53
  • W01 is the week containing the 4th of January or, equivalently, the first Thursday of the year
Week numbers for the following years
  2015 2016 2017 2018 2019 2020 2021 2022 2023 2024
January, 1st 01 53 52 01 01 01 53 52 52 01
January, 2nd 01 53 01 01 01 01 53 52 01 01
January, 3rd 01 53 01 01 01 01 53 01 01 01
January, 4th 01 01 01 01 01 01 01 01 01 01
... ... ... ... ... ... ... ... ... ... ...
December, 28 53 52 52 52 52 53 52 52 52 52
December, 29 53 52 52 52 52 53 52 52 52 52
December, 30 53 52 52 52 01 53 52 52 52 01
December, 31 53 52 52 01 01 53 52 52 52 01

There is no need to renumber all entries when the first week of a new year does not coincide with the current week numbering. Just change the line below in the code:

{{#switch: {{#time: W }}

and add (+1) or subtract (-1) a week:

{{#switch: {{#time: W |+1 week}}

Automation

Last Fall I made a bunch of entries of the form --> *[[:Category:Advent IV|Music for this Sunday, December 21]] <-- and fora while was updating Sunday nights by manually moving the commenting out brackets. One stage of automating things would be to have precoded entries advance at midnight on Sunday; another would be to have the date automatically supplied from the year's calendar; a third layer of complexity is dealing with the date of Easter! Any thoughts? Richard Mix (talk) 04:08, 22 January 2015 (UTC)

Hi Richard. The first case is very simple to implement, I'll add the code for one or two sundays so you may have an idea of how it works. For specific dates it would work in a similar fashion. For Easter, things complicate a lot because of the various calculations involved, but it's not totally impossible to implement. Maybe for this specific case, it would be easier to add the dates by hand, since it's done just once a year. —Carlos Email.gif 15:57, 22 January 2015 (UTC)

Richard, using the week number function to select the appropriate Sunday revealed to be not as simple as I expected: please have a look at ChoralWiki:Seasonal music/Sandbox. It seems that not all years start in week "01" (e.g., 2016 starts as week 53 of 2015, quite strange!). The week numbers here also do not coincide with the week numbers of the w:Ordinary Time (see table in that page). It seems that I'll have to start the week calculation from scratch, basing myself on that Wikipedia article. A function that calculates the Easter day will also be necessary. I had a look at the way that the Easter date is calculated on Wikipedia, and it's a bit confusing. Unfortunately there isn't a template there that could be imported into CPDL without having to go through a large rewriting of the code. I'll keep you informed of any updates. —Carlos Email.gif 16:54, 23 January 2015 (UTC)

I'm not sure about the week number function (53 seems as good as 0 though) which I see days can be counted from, but there's plenty for me to chew on at WP! We want to fill in {{Cat|Pentecost VI|Music for this Sunday, dd Month}} and know OT12/Proper 7 is what Lutherans call the Sunday between June 19 and June 25 inclusive (I made a table at Ordinary Time as well) even though that may not be the 6th Sunday after Pentecost for churches following the old calendar (such choirs tend to be already quite canny though). After Christmas things get messy: sometimes Baptism gets moved to Monday instead of being the first Sunday of OT. Would it be cheating to just fill in Jan 11 for the first Sunday after Epiphany this year? ;-P
Before automation of the calendar through years, we have to create it for this year. It's presently stopped at February, 2nd, a day that's passed. Claude (talk) 16:31, 5 February 2015 (UTC)
Yes Claude, a completely automated system will demand a lot of work, as it seems! In the mean time, a much simpler system can be developed that will just update "Seasonal music" once a week with whatever content had been previously assigned for that week. This can be done pretty fast; then someone will have to select the appropriate content for each week, as I lack the necessary knowledge for it. —Carlos Email.gif 18:36, 5 February 2015 (UTC)
If the much simpler version is set up I'd be happy to keep it going for a few years. Richard Mix (talk) 03:39, 4 March 2015 (UTC)
Richard, the basic automation is up and running; it's really simple, you just have to add the appropriate links for each week, following the example of the ones already added by me. If you need to add more than one link, put one per line, as usual. Thanks, —Carlos Email.gif 04:13, 7 March 2015 (UTC)

Hm! Did something happen to week 49? Richard Mix (talk) 08:50, 13 December 2016 (UTC)

Translation

I have made changes so the dates on this page will be translated on the Main Page, so far just French and Italian. But the words and phrases on this page are more numerous, and I wonder if it would be better if the material in the switch ("Music for this Sunday … ") was just a list of 52 dates – easier to automate, too. The extra dates and words are explained on the pages linked, so maybe they don't need to appear on the main page? Here is a list of the words and phrases that would need translation; those that have codes are needed in other places.

    CODE                 ENGLISH WORDS                   CODE                 ENGLISH WORDS
                         All Saints                      ACEMusic             Music for Advent, Christmas & Epiphany
                         All Souls                       RecentACEMusic       New at CPDL in the past two years
    Con                  and                                                  New Year's Day
    CompTables           and table comparing                                  Octave of Christmas
                         Annunciation                                         Ordinary Time
    AscensionText        Ascension                                            Palm Sunday
                         Ash Wednesday                                        Passiontide
                         Assumption                      PentecostText        Pentecost
                         Baptism of Christ                                    Peter & Paul
    ChristmasText        Christmas                                            Sacred Heart
                         Christmas Eve                   SacredSeason         Sacred music categorized by season
                                                                              St Joseph
    CorpusChristiText    Corpus Christi                                       St. Cecilia
    EasterText           Easter                                               St. Joseph
    EpiText              Epiphany                                             St. Michael & Archangels
                         Holy Cross                      AfterPentText        Sundays after Pentecost
                         Holy Family                     AfterTrinText        Sundays after Trinity
                         Holy Week                       OrdinaryText         Sundays of Ordinary Time
                         Immaculate Conception                                Sundays of Ordinary Time
                         John the Baptist                                     Thanksgiving
                         Lateran Basilica                                     Transfiguration
                         Lent                            TrinityText          Trinity
                         Mary Magdalene                                
    MusicFor             Music for              

Barry Johnston (talk) 02:49, 5 February 2020 (UTC)

Hi Barry, Where is the translations being done, or should ChoralWiki talk:Seasonal music be the glossary page? An automated shortcut for the seasonal line ("Music for Epiphanytide, Sundays of Ordinary Time and Ash Wednesday (6 March)", soon to be replaced by "Music for Lent, Passiontide & Easter") would be most welcome: how would it be implemented? I think I can still sort of see how things work after the latest changes and figure out how to edit, but could there be a little more explaining please? As we get further away from English and use things like {{{Con|and}}} I start to worry for my successor ;-) Btw, kalendar with a K to avoid confusion with calendar is a standard usage among some Anglicans, believe it or not! Richard Mix (talk) 22:37, 5 February 2020 (UTC)