-
-
Notifications
You must be signed in to change notification settings - Fork 676
Split holiday calendars into public ([country]-public.py) and other ([country]-other.py) categories #3067
Description
Do not close this issue solely because the Swedish calendar was updated without splitting; at least one country calendar must be SPLIT into public ([country]-public.py) and other ([country]-other.py) first.
Is your feature request related to a problem? Please describe
The current calendar files combine legally mandated public holidays and de facto or cultural holidays. Public holidays are the ones required by law.
For example, in Sweden, the following are not public holidays because they are not listed in the Swedish Parliament legal document:
Förordning (1989:253) om allmänna helgdagar:
- Jungfru Marie bebådelsedag
- Midsommarafton
- Nyårsafton
- Julafton
People are CalDAV subscribing calendars from https://www.thunderbird.net/en-US/calendar/, for example SwedishHolidays.ics, and use them with calendar software. Thunderbird developers are evaluating the vacanza/holidays library to generate the SwedishHolidays.ics file, see:
- use free software to generate public calendars thunderbird/thunderbird-website#753
- media/caldata/SwedishHolidays.ics: Restore public holidays, remove non-public observances, and add Swedish names for all observances thunderbird/thunderbird-website#941 (comment)
However, the vacanza/holidays calendars are not split. Currently it is not possible to hide selected categories in these software:
- Etar: Hide Event/Task Categories - [Feature request]: Hide Event/Task Categories Etar-Group/Etar-Calendar#2000
- Fossify Calendar: Hide Event/Task Categories - Hide Event/Task Categories FossifyOrg/Calendar#911
- Thunderbird: Hide Event/Task Categories - https://bugzilla.mozilla.org/show_bug.cgi?id=2003212
So users must manually split ICS files, a time-consuming process that most will avoid.
Describe the solution you'd like
Split the calendars into two files:
[country]-public.py: Contains only public holidays mandated by law.[country]-other.py: Contains other culturally important or de facto holidays.
Example: Sweden
- Move "Jungfru Marie bebådelsedag", "Midsommarafton", "Nyårsafton", and "Julafton" from the current sweden.py to a new file called sweden-other.py
- Rename sweden.py to sweden-public.py with only the legally mandated public holidays remaining.
Describe alternatives you've considered
Currently using date-holidays, which implements this exact split:
- Public holidays ICS:
https://github.com/FossifyOrg/Calendar/blob/main/app/src/main/assets/holidays/SE/public.ics - Other days ICS:
https://github.com/FossifyOrg/Calendar/blob/main/app/src/main/assets/holidays/SE/other.ics
References
- Swedish legal basis for public holidays:
Förordning (1989:253) om allmänna helgdagar- Note: Act 1952:48, was effectively replaced by Act 1989:253.
- Wikipedia overview:
https://en.wikipedia.org/wiki/Public_holidays_in_Sweden