This is a tool for generation of calendars, which can be shown in an Internet Browser.
The stuff in this file relies on the XHTML 1.0 transitional mirror together with the XHTML
convenience library. Thus, in order to use this calendar tool, you should load libraries in the following way:
(laml-style "simple-xhtml1.0-transitional-validating")
(lib-load "xhtml1.0-convenience.scm")
(load (string-append laml-dir "tools/calendar/xml-in-laml/calendar.scm"))
It is also possible to use this calendar tool with the HTML4.01 validating mirror. In this case you should load:
(laml-style "simple-html4.01-transitional-validating")
(load (string-append laml-dir "tools/calendar/xml-in-laml/calendar.scm"))
The main function of the tool is calendar.
Besides this function, it is important to understand the input format of appointments in the calendar.
Also, there are a number of constants, which affect the appearance of the calendar.
This tools requires input (appointments). The tool assumes that the calendar input is the Scheme
variabel calendar-events. In other words, you must define this variable.
Below, we explain the calendar events format
Besides the general LAML stuff (laml.scm) and the XHTML mirror libraries (mentioned above) this tools requires the libraries
color.scm, time.scm and file-read.scm (all from lib).
The required libraries are not loaded by the tool itself. Notice however, that the loading example given above also includes
loading of color, time and file-read (by means of simple-xhtml1.0-transitional-validating).
The font size of the calendar entries are controlled by CSS.
You can either link to a CSS file, or embed a CSS clause in the head of your HTML element.
The following CSS clauses is an example:
(style 'type "text/css" "TABLE.calendar-table TD { font-size: 7pt; }")