git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: dded2bc18ca4ad24a326920e837c01e75e368a3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
## Timewarrior Holiday Files

The holidays files were created maually for now.

They contain following files:

- **holidays.de-DE:** Holidays which apply to all of Germany
- **holidays.de-XX:** Holidays for German state XX (XX=ISO-3166-2 code for the
				respective states). Said code will be displayed in the output.
- **vacation-2018:** Sample vacation file. As timewarrior only knows the
				holiday definition and this is pretty sufficient (holidays
				only are an auxiliary display anyway), we will mark them as
				"VAC" and are done with it.

### refresh script

Since the refresh script included in the holidays plugin is not working, I'm
creating my own. I'm not a python zen guru, so this is rather slow development.
However, the current state is the following:

* You can pass on the desired locale (e.g. de-DE) and the desired year to the
script (call it with --help to see details). It will then create files for all
of the regions and the country's allover holidays.
* --region is not functional yet, this will be included soon.
* If you don't supply --locale, for now it will draw de-DE by default. In
future versions it will work like the original script, i.e. refresh all
existing files (this will come after the implementation of --region as that is
a prerequisite).

### ISO-3166-2 codes

The following tables are just explanatives - if you know your ISO-3166, you can
ignore this.

#### Germany

|  ISO  | State                           |
| :---: | ------------------------------- |
| de-BB | Brandenburg                     |
| de-BE | Berlin                          |
| de-BW | Baden-Württemberg               |
| de-BY | Bavaria                         |
| de-DE | Pseudocode: in all of Germany   |
| de-HB | Bremen                          |
| de-HE | Hesse                           |
| de-HH | Hamburg                         |
| de-MV | Mecklenburg - Western Pomerania |
| de-NI | Lower Saxony                    |
| de-NW | North Rine - Westphalia         |
| de-RP | Rhineland-Palatinate            |
| de-SH | Schleswig-Holstein              |
| de-SL | Saarland                        |
| de-SN | Saxony                          |
| de-ST | Saxony-Anhalt                   |
| de-TH | Thuringia                       |