git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: c49c89fca3df22d249ac5c4e42252a8ba01ae57a (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
## Timewarrior Holiday Files

The holidays files were created manually for now. The data delivered from
holidata.net for Germany is nearly complete, but it lacks some states and has
some formal issues. I have handed in this to the holdata.net devs, and as soon
as they have fixed that I will switch to using the refresh script.

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                       |

#### Austria

The official ISO-3166 codes are just AT-1 through AT-9, in alphabetical order
of the states. So in this case, we use pseudo codes to make it easier for
timewarrior users to identify their state.

| Code  | State               | ISO  |
| :---: | ------------------- | -----|
| at-BL | Burgenland          | AT-1 |
| at-KT | Carinthia (Kärnten) | AT-2 |
| at-NO | Lower Austria       | AT-3 |
| at-OO | Upper Austria       | AT-4 |
| at-SZ | Salzburg            | AT-5 |
| at-ST | Styria (Steiermark) | AT-6 |
| at-TI | Tyrol               | AT-7 |
| at-VA | Vorarlberg          | AT-8 |
| at-WI | Vienna (Wien)       | AT-9 |

#### Switzerland

|  ISO  | State                  |
| :---: | ---------------------- |
| ch-AG | Aargau                 |
| ch-AI | Appenzell Innerrhoden  |
| ch-AR | Appenzell Ausserrhoden |
| ch-BL | Basel-Landschaft       |
| ch-BS | Basel-Stadt            |
| ch-BE | Bern                   |
| ch-FR | Freiburg (Fribourg)    |
| ch-GE | Genf (Génève)          |
| ch-GL | Glarus                 |
| ch-GR | Graubünden             |
| ch-JU | Jura                   |
| ch-LU | Luzern (Lucerne)       |
| ch-NE | Neuenburg (Neuchâtel)  |
| ch-NW | Nidwalden              |
| ch-OW | Obwalden               |
| ch-SH | Schaffhausen           |
| ch-SZ | Schwyz                 |
| ch-SO | Solothurn              |
| ch-SG | St. Gallen             |
| ch-TI | Tessin (Ticino)        |
| ch-TG | Thurgau                |
| ch-UR | Uri                    |
| ch-VD | Waadt                  |
| ch-VS | Wallis (Vallese)       |
| ch-ZG | Zug                    |
| ch-ZH | Zürich (Zurigo)        |