Jean Forget > DateTime-Calendar-FrenchRevolutionary > g2r_table

Download:
DateTime-Calendar-FrenchRevolutionary-0.07.tar.gz

Annotate this POD

CPAN RT

Open  1
View Bugs
Report a bug
Source  

NAME ^

g2r_table - Print a few charts which can be used to convert a date from the Gregorian calendar to the French Revolutionary calendar.

SYNOPSIS ^

g2r_table [--columns=number] [--example=date] [--lang=language] [--table-workaround]

DESCRIPTION ^

This program prints five tables, plus a small text showing how to use these tables. The output uses the HTML format. When printed from a table-aware web browser, these tables allow a computer-less user to convert dates from the Gregorian calendar to the French Revolutionary calendar.

OPTIONS ^

columns

The number of columns in the first table. This number must be a multiple of 4 (because of the 4-year quasi-cycle for leap days) plus one (for the first line, giving year intervals). So you can choose 5, 9, 13 or 17. Higher number are allowed, but they will not give beutiful results.

example

The instructions for use need a date as an example. The user can select the date that will be used as an example (Gregorian date, YYYYMMDD numeric format). Actually, the instructions use two examples: the first one not in September, the second one in September. If the user provides a date in September, the program will select a random month for the first example.

lang

Select the language that will be used for all language-dependant elements, including the instructions for use.

en

English (default)

us

English, with the Gregorian dates formatted in the US way (December 1, 2001)

fr

French

table-workaround

I have noticed that when my web browser renders and prints tables, it has problems with plain text following the tables, and it might skip a few plain text lines. In the present case, the first lines of the instructions for use disappear. The workaround I have found consists in building a table around the instructions for use. This option triggers this workaround.

AUTHOR ^

Jean Forget <JFORGET@cpan.org>