Skip to content

Commit

Permalink
Merge pull request #27 from itsallcode/Feature/6-holiday-definition-f…
Browse files Browse the repository at this point in the history
…iles

6 holiday-definition files for various countries.
  • Loading branch information
kaklakariada authored Jun 19, 2021
2 parents b1536bf + 66b0dac commit cf2fdeb
Show file tree
Hide file tree
Showing 25 changed files with 815 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [#10](https://github.com/itsallcode/holiday-calculator/issues/10) Support holidays with conditions and alternative dates.
- [#23](https://github.com/itsallcode/holiday-calculator/issues/23) Support negated list of days of week for holidays with alternative dates.
- [#9](https://github.com/itsallcode/holiday-calculator/issues/9) Support floating holidays with additional offset in days.
- [#6](https://github.com/itsallcode/holiday-calculator/issues/6) Added holiday-definition files for various countries.

## [0.1.0] - 2021-06-05

Expand Down
49 changes: 49 additions & 0 deletions holidays/0-remaining.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Source: https://www.emacswiki.org/emacs/CalendarLocalization
#
# For floating holidays:
#
# -------------------------------------------
# Emacs Lisp format (1):
# (holiday-float MONTH DAYNAME OFFSET NAME &optional DAY)
#
# example: (holiday-float 12 0 -1 "4. Advent" 24)
#
# query-replace-regexp:
# (holiday-float \([0-9]+\) +\([0-9]+\) +\([-+0-9]+\) +"\(.*\)" +\([0-9]+\))
# holiday float \3 \2 \1 \5 \4
#
# -------------------------------------------
# Emacs Lisp format (2):
# (holiday-sexp '(calendar-nth-named-day OFFSET DAYNAME MONTH year &optional DAY) NAME)
#
# example:
# (holiday-sexp '(calendar-nth-named-day 1 1 1 year 6) "Día de Reyes")
#
# query-replace-regexp:
# (holiday-sexp '(calendar-nth-named-day +\([-+0-9]+\) +\([0-9]+\) +\([0-9]+\) +year +\([0-9]+\)) +"\(.*\)")
# holiday float \1 \2 \3 \4 \5
#
# DAYNAME: 0 = SUNDAY, last argument DAY is optional. If missing
# and negative offset then last day of the month, if offset
# positive then first day of the month.
#
# -------------------------------------------
# holiday-calculator format:
# holiday float OFFSET DAYNAME MONTH DAY "4. Advent")
#
# DAY==-1 means last day of the month.

# -FILE Chinese
# see http://github.com/stepnem/emacs-libraries/blob/master/cal-china-x.el

# -FILE Korean
#
# There is a package, cal-korea-x that support Korean lunar calendar, and
# display names for months.
#
# see http://github.com/cinsk/cal-korea-x/

# -FILE Japanese
# See http://www.meadowy.org/meadow/netinstall/export/799/branches/3.00/pkginfo/japanese-holidays/japanese-holidays.el
# https://github.com/emacs-jp/japanese-holidays/blob/master/japanese-holidays.el

41 changes: 41 additions & 0 deletions holidays/Bavaria.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# holiday-calculator
#
# fixed: holiday is every year on the same month and day of month.
# arguments: month, day, name of holiday
#
# float: holiday is floating.
# arguments: nth, day of week, befor or after, month, day of month, name of holiday.
#
# Day of week is a case-insensitive string, can be abbreviated, if unique,
# e.g. MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY.
#
# Meaning holiday is on the nth day of week after or before given month and day of
# month. Day of month can also be the string "last-day".
#
# easter: holiday is after or before easter sunday.
# arguments: positive or negative number of days, name of holiday.
#

holiday fixed 1 1 Neujahr
holiday fixed 1 6 Heilige Drei Könige
holiday fixed 5 1 1. Mai
holiday fixed 10 3 Tag der Deutschen Einheit

holiday float 4 SUN before 12 24 1. Advent
holiday float 3 SUN before 12 24 2. Advent
holiday float 2 SUN before 12 24 3. Advent
holiday float 1 SUN before 12 24 4. Advent
holiday fixed 12 25 1. Weihnachtstag
holiday fixed 12 26 2. Weihnachtstag

holiday easter -48 Rosenmontag
holiday easter -2 Karfreitag
holiday easter 0 Ostersonntag
holiday easter +1 Ostermontag
holiday easter +39 Christi Himmelfahrt
holiday easter +49 Pfingstsonntag
holiday easter +50 Pfingstmontag
holiday easter +60 Fronleichnam
holiday fixed 8 15 Mariä Himmelfahrt
holiday fixed 11 1 Allerheiligen
holiday float 1 SUN after 11 20 Totensonntag
12 changes: 12 additions & 0 deletions holidays/Belarussia.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Belarussian holidays
# source https://www.emacswiki.org/emacs/CalendarLocalization

holiday fixed 1 1 New Year
holiday fixed 1 7 Orthodox Christmas
holiday fixed 2 23 Defender of the Fatherland and Armed Forces day
holiday fixed 3 8 International Women's Day #'
holiday fixed 5 1 International Labor Day
holiday fixed 5 9 Victory Day
holiday fixed 7 3 Independence Day
holiday fixed 11 7 October Revolution Day
holiday fixed 12 25 Catholic Christmas
91 changes: 91 additions & 0 deletions holidays/Bulgaria.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# Bulgarian holidays
# source https://github.com/dimitern/bulgarian-holidays.el/blob/master/bulgarian-holidays.el

holiday easter-east -57 † Задушница (Голяма)
holiday easter-east -56 † Неделя Месопустна (Месни заговезни)
holiday easter-east -49 † Неделя Сиропустна (Сирни заговезни, Прошка)
holiday easter-east -48 † Начало на Велики пости
holiday easter-east -43 † Тодорова събота (Тодоровден)
holiday easter-east -8 † Лазарова събота (Лазаровден)
holiday easter-east -7 † Цветница (Връбница)
holiday easter-east -6 † Велики понеделник
holiday easter-east -5 † Велики вторник
holiday easter-east -4 † Велика сряда
holiday easter-east -3 † Велики четвъртък
holiday easter-east -2 † Велики петък
holiday easter-east -1 † Велика събота
holiday easter-east +0 Великден († Възкресение Христово, 1-ви ден)
holiday easter-east +1 † Възкресение Христово (2-ри ден)
holiday easter-east +2 † Възкресение Христово (3-ти ден)
holiday easter-east +3 † Светла сряда
holiday easter-east +4 † Светли четвъртък
holiday easter-east +5 † Светли петък (Живоприемни източник)
holiday easter-east +6 † Светла събота
holiday easter-east +7 † Томина неделя (Светла неделя)
holiday easter-east +39 † Възнесение Господне (Спасовден)
holiday easter-east +48 † Черешова Задушница
holiday easter-east +49 † Петдесетница (Св. Троица)
holiday easter-east +50 † Св. Дух (Духовден)
holiday easter-east +56 † Всички светии (Петрови заговезни)
holiday easter-east +63 † Всички български светии
# Fixed holidays
holiday fixed 1 1 Нова година († Васильовден)
holiday fixed 1 6 † Св. Богоявление (Йордановден)
holiday fixed 1 7 † Св. Йоан Кръстител (Ивановден)
holiday fixed 1 17 † Пр. Антоний Велики (Антоновден)
holiday fixed 1 18 † Св. Атанасий Александрийски (Атанасовден)
holiday fixed 1 20 † Св. Евтимий, патриарх Търновски
holiday fixed 1 21 † Св. Максим Изповедник
holiday fixed 1 25 † Св. Григорий Богослов
holiday fixed 2 1 † Св. Трифон (Трифоновден, Трифон Зарезан)
holiday fixed 2 2 † Сретение Господне
holiday fixed 2 3 † Св. Симеон Богоприимец (Симеоновден - зимен)
holiday fixed 2 14 * Св. Валентин (кат.) (Трифон Зарезан - ст.ст)
holiday fixed 2 17 † Св. Теодор Тирон (Тодоровден)
holiday fixed 3 1 * Баба Марта
holiday fixed 3 3 Освобождение на България
holiday fixed 3 8 * Ден на жената
holiday fixed 3 9 † Св. 40 мъченици
holiday fixed 3 17 * Св. Патрик (кат.)
holiday fixed 3 25 † Благовещение
holiday fixed 4 1 * Ден на лъжата
holiday fixed 4 14 † Св. Мартин, папа Римски
holiday fixed 4 18 † Св. Виктор
holiday fixed 5 1 Ден на труда
holiday fixed 5 2 † Св. цар Борис-Михаил
holiday fixed 5 5 † Св. Ирина
holiday fixed 5 6 Св. Георги Победоносец (Гергьовден)
holiday fixed 5 11 † Св. равноапостоли Кирил и Методий
holiday fixed 5 21 † Св. Константин и Елена
holiday fixed 5 24 Ден на Българската просвета и култура
holiday fixed 6 20 † Пр. Наум Охридски
holiday fixed 6 24 † Рождение на Св. Йоан Кръстител (Еньовден)
holiday fixed 6 29 † Св. ап. Петър и Павел (Петровден)
holiday fixed 6 30 † Св. 12 апостоли
holiday fixed 7 1 † Св. Козма и Дамян
holiday fixed 7 7 † Св. Неделя
holiday fixed 7 20 † Св. прор. Илия (Илинден)
holiday fixed 7 27 † Св. Седмочисленици
holiday fixed 8 6 † Преображение Господне
holiday fixed 8 15 † Успение Богородично (Голяма Богородица)
holiday fixed 9 1 † Начало на Църковната нова година
holiday fixed 9 6 Съединение на България
holiday fixed 9 8 † Рождество Богородично (Малка Богородица)
holiday fixed 9 14 † Въздвижение на Св. Кръст Господен (Кръстовден)
holiday fixed 9 17 † Св. София, Вяра, Надежда и Любов
holiday fixed 9 22 Независимост на България
holiday fixed 10 14 † Св. Параскева Петка Търновска (Петковден)
holiday fixed 10 19 † Пр. Йоан Рилски Чудотворец
holiday fixed 10 26 † Св. Димитрий Мироточиви (Димитровден)
holiday fixed 10 31 * Halloween
holiday float 1 SAT after 11 1 † Архангеловска Задушница
holiday fixed 11 8 † Св. архангел Михаил (Архангеловден)
holiday fixed 11 21 † Въведение Богородично (ден на хр. семейство)
holiday fixed 11 30 † Св. ап. Андрей Първозвани (Андреевден)
holiday fixed 12 6 † Св. Николай Чудотворец (Никулден)
holiday fixed 12 20 † Св. Игнатий Богоносец (Игнажден)
holiday fixed 12 22 † Св. Анастасия
holiday fixed 12 24 Бъдни вечер
holiday fixed 12 25 Коледа († Рождество Христово)
holiday fixed 12 26 Понеделник след Коледа († Събор Богородичен)
holiday fixed 12 27 † Св. Стефан (Стефановден)
21 changes: 21 additions & 0 deletions holidays/Colombia.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Colombia holidays
# source https://www.emacswiki.org/emacs/CalendarLocalization

holiday fixed 1 1 Año nuevo
holiday float 1 MON 1 6 Día de Reyes
holiday float 1 MON 3 19 Día de San José
holiday easter -3 Jueves Santo
holiday easter -2 Viernes Santo
holiday fixed 5 1 Día del trabajo
holiday easter +43 Día de la ascención
holiday float 1 MON 6 29 San Pedro y San Pablo
holiday easter +64 Corpus Christi
holiday easter +71 Sagrado corazón
holiday fixed 7 20 Día de la independencia
holiday fixed 8 7 Batalla de Boyacá
holiday float 1 MON 8 15 Asunción de la virgen
holiday float 1 MON 10 12 Día de la raza
holiday float 1 MON 11 1 Todos los santos
holiday float 1 MON 11 11 Independencia de Cartagena
holiday fixed 12 25 Navidad
holiday fixed 12 8 Inmaculada concepción
15 changes: 15 additions & 0 deletions holidays/Costa Rica.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Costa Rica holidays
# source https://www.emacswiki.org/emacs/CalendarLocalization

holiday fixed 1 1 Año Nuevo
holiday fixed 4 11 Día de Juan Santamaría
holiday easter -3 Jueves Santo
holiday easter -2 Viernes Santo
holiday fixed 5 1 Día Internacional del Trabajo
holiday float 3 SUN 6 1 Día del Padre
holiday fixed 7 25 Anexión del Partido de Nicoya
holiday fixed 8 2 Día de Virgen de los Ángeles
holiday fixed 8 15 Día de la Madre
holiday fixed 9 15 Independencia de Costa Rica
holiday fixed 10 12 Día de las Culturas
holiday fixed 12 25 Navidad
16 changes: 16 additions & 0 deletions holidays/Czechia.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Czech holidays
# source https://www.emacswiki.org/emacs/CalendarLocalization

holiday fixed 1 1 Den obnovy samostatného českého státu; Nový rok
holiday easter -2 Velký pátek
holiday easter +1 Velikonoční Pondělí
holiday fixed 5 1 Svátek práce
holiday fixed 5 8 Den vítězství
holiday fixed 7 5 Den slovanských věrozvěstů Cyrila a Metoděje
holiday fixed 7 6 Den upálení mistra Jana Husa
holiday fixed 9 28 Den české státnosti
holiday fixed 10 28 Den vzniku samostatného československého státu
holiday fixed 11 17 Den boje za svobodu a demokracii
holiday fixed 12 24 Štědrý den
holiday fixed 12 25 svátek vánoční
holiday fixed 12 26 svátek vánoční
27 changes: 27 additions & 0 deletions holidays/Denmark.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Danish holidays
# source https://raw.githubusercontent.com/soren/elisp/master/da-kalender.el

# general holidays
holiday easter -49 Fastelavn
holiday easter -7 Palmesøndag
holiday easter -3 Skærtorsdag
holiday easter -2 Langfredag
holiday easter 0 Påskedag
holiday easter +1 Anden påskedag
holiday easter +26 Store bededag
holiday easter +39 Kristi himmelfartsdag
holiday easter +49 Pinsedag
holiday easter +50 Anden pinsedag
holiday fixed 12 24 Juleaften
holiday fixed 12 25 Juledag
holiday fixed 12 26 Anden juledag
holiday fixed 12 31 Nytårsaften
# other-holidays
holiday fixed 3 8 Kvindernes internationale kampdag
holiday fixed 5 1 Arbejdernes internationale kampdag
holiday fixed 5 4 Danmarks befrielse
holiday float 2 SUN after 5 1 Mors dag
holiday fixed 6 5 Grundlovsdag
holiday fixed 6 5 Fars dag
holiday fixed 6 15 Valdemarsdag (Dannebrog)
holiday fixed 6 24 Skt. Hans dag
Loading

0 comments on commit cf2fdeb

Please sign in to comment.