From 4e47752ffb1083ca4426d9c08ae1c1ceb100acdb Mon Sep 17 00:00:00 2001 From: mickeyl Date: Fri, 06 May 2005 21:11:54 +0000 Subject: add US holidays to nationaldays and improve README. patch courtesy Erik Hovland (erik@hovland.org) - thanks --- (limited to 'etc') diff --git a/etc/nationaldays/README b/etc/nationaldays/README index 71af75b..6a1cbb5 100644 --- a/etc/nationaldays/README +++ b/etc/nationaldays/README @@ -1,48 +1,54 @@ -Config files for the nationalholiday plugin +Entry files for the nationalholiday plugin -Format is simple: -Standard-xml file. -It must always enclosed by +The format is simple. It is a standard xml file. So all tags must closed. A +handy tool for checking closed tags is the xmllint utility provided by +libxml2. + +Each xml file is enclosed by: ... -then a short description tag. +Each tag should be follwed by a short description tag: -for example. It should be used later on. - -then a list of holidays follows, encapsulated with +The description will probably be used later on. Follow the description with +the enclosure: ... -A non-floating holiday entry has the form - +Insert your holidays in either fixed or floating format. A fixed holiday entry +has the form: + -floating holidays: +A floating holiday entry has the form: - - ... calc entries .. - + + ... calc entries .. + -The calcentries may following tags: - -date - a short date (without Year!) in form M-D or the string "easter" -offset - integer. these days will added (or substracted) after all other calcs are made. -weekday - the day of week as monday, tuesday and so on. -dayofmoth - in combination with weekday you can say "first of ..." or "second of ..." -month - monthname(!) eg. january, february and so on. -datedep - dependy to "date", may "before" or "after". - -example: +The calc entries may have the following tags: +date - A short date (without Year!) in the form M-D or the special string + "easter" +offset - A signed integer. This will added (or substracted) after all other + calculations are made. +weekday - The day of week as in "monday', "tuesday", "wednesday", "thursday", + "friday", "saturday" or "sunday". +dayofmonth - Used in combination with weekday tag. You can use "first", + "second", "third", "fourth" or "last". +month - Used in combination with weekday and/or dayofmonth eg. "january", + "february" and so on. +datedep - Used in combination with date and/or weekday, may "before" or "after". + +example calculation entry: -these will calculate sunday before christmaseve or christmas eve itself if it is a sunday. +this will calculate sunday before christmas eve or christmas eve itself if it is a sunday. -see german.xml for futher examples. +see german.xml or any of the .xml files in this directory for futher examples. diff --git a/etc/nationaldays/us-ca.xml b/etc/nationaldays/us-ca.xml new file mode 100644 index 0000000..bfdec4a --- a/dev/null +++ b/etc/nationaldays/us-ca.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/etc/nationaldays/us-common.xml b/etc/nationaldays/us-common.xml new file mode 100644 index 0000000..70aaa58 --- a/dev/null +++ b/etc/nationaldays/us-common.xml @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/etc/nationaldays/us.xml b/etc/nationaldays/us.xml new file mode 100644 index 0000000..fc75b86 --- a/dev/null +++ b/etc/nationaldays/us.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v0.9.0.2